mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
We manipulate ring->head while active in i915_request_retire underneath the timeline manipulation. We cannot rely on a stable ring->head outside of the timeline->mutex, in particular while setting up the context for resume and reset. Closes: https://gitlab.freedesktop.org/drm/intel/issues/1126 Fixes:0881954965("drm/i915: Introduce intel_context.pin_mutex for pin management") Fixes:e5dadff4b0("drm/i915: Protect request retirement with timeline->mutex") References:f3c0efc9fe("drm/i915/execlists: Leave resetting ring to intel_ring") Signed-off-by: Chris Wilson <[email protected]> Cc: Matthew Auld <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Mika Kuoppala <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit42827350f7) Signed-off-by: Jani Nikula <[email protected]>