]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Push engine stopping into reset-prepare
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 16 Jul 2019 12:49:28 +0000 (13:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Jul 2019 17:47:00 +0000 (18:47 +0100)
commit6a4cb463ab69d70cc2b7f684978327723a401c1b
tree38dcd8e845d21865118c5b84b372e16f635e8a0f
parent1990c98f7063543ed87a370328d4db45260527c8
drm/i915/gt: Push engine stopping into reset-prepare

Push the engine stop into the back reset_prepare (where it already was!)
This allows us to avoid dangerously setting the RING registers to 0 for
logical contexts. If we clear the register on a live context, those
invalid register values are recorded in the logical context state and
replayed (with hilarious results).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190716124931.5870-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/gt/intel_ringbuffer.c