• Chris Wilson's avatar
    drm/i915: Recover all available ringbuffer space following reset · 608c1a52
    Chris Wilson authored
    Having flushed all requests from all queues, we know that all
    ringbuffers must now be empty. However, since we do not reclaim
    all space when retiring the request (to prevent HEADs colliding
    with rapid ringbuffer wraparound) the amount of available space
    on each ringbuffer upon reset is less than when we start. Do one
    more pass over all the ringbuffers to reset the available space
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
    Cc: Arun Siluvery <arun.siluvery@linux.intel.com>
    Cc: Mika Kuoppala <mika.kuoppala@intel.com>
    Cc: Dave Gordon <david.s.gordon@intel.com>
    608c1a52
intel_lrc.c 74.6 KB