drm/i915/gt: Lift stop_ring() to reset_prepare
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 11:07:59 +0000 (11:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 11:55:13 +0000 (11:55 +0000)
commit14139c3e8d12756f3123ec6e294185c3b10cb363
tree4812b310e9050c87394911388cbbadece5b83274
parent80655d2ad1332e6f8eb7e1ea1d7ad339ad3f7d49
drm/i915/gt: Lift stop_ring() to reset_prepare

Push the sleeping stop_ring() out of the reset resume function to reset
prepare; we are not allowed to sleep in the former.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210119110802.22228-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ring_submission.c