drm/i915/gt: Disable the ring before resetting HEAD/TAIL
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 11:08:00 +0000 (11:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 11:55:13 +0000 (11:55 +0000)
commit77e2faeb0744515939c4f5651e0d39ead96b39f1
tree1b48d40a793f6d13f2bd81a3dde74adbbd3659c5
parent14139c3e8d12756f3123ec6e294185c3b10cb363
drm/i915/gt: Disable the ring before resetting HEAD/TAIL

During the reset of ring submission, we first stop the engine by
clearing the HEAD/TAIL and marking the ring as disabled. However, it
would be safer to disable the ring (after emptying) before resetting the
HEAD/TAIL.

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