OSDN Git Service

drm/i915/execlists: Peek at the next submission for error interrupts
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Apr 2020 11:04:34 +0000 (12:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Apr 2020 20:30:30 +0000 (21:30 +0100)
commit4c977837ba296e4b601e2b0abd11c4b296e7786b
treec2a929f8016b43f1cf3fdf6acc79c7380abccc26
parent7bcb773dafc0d5209575a96e6f08d6d62bafb023
drm/i915/execlists: Peek at the next submission for error interrupts

If we receive the error interrupt before the CS interrupt, we may find
ourselves without an active request to reset, skipping the GPU reset.
All because the attempt to reset was too early.

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/20200401110435.30389-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c