]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Process interrupted context on reset
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 16 Jul 2019 12:49:29 +0000 (13:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Jul 2019 13:44:57 +0000 (14:44 +0100)
commit1990c98f7063543ed87a370328d4db45260527c8
tree73b837343eb732442cc32dbd3ef270a539121e85
parentdadc60498a04a8ba92014bffbd2d550cee01f009
drm/i915/execlists: Process interrupted context on reset

By stopping the rings, we may trigger an arbitration point resulting in
a premature context-switch (i.e. a completion event before the request
is actually complete). This clears the active context before the reset,
but we must remember to rewind the incomplete context for replay upon
resume.

Fixes: b4cba2579ab4 ("drm/i915/execlists: Always reset the context's RING registers")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190716124931.5870-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c