]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc512c41a1b42a50b765657344963f2e871ca6190
tree1b48d40a793f6d13f2bd81a3dde74adbbd3659c5
parentea275993c6445163f74ce746e4380e234cd212f2
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