drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 May 2019 08:06:25 +0000 (09:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 May 2019 14:06:35 +0000 (15:06 +0100)
commit519a019491b833209b2920f0fe9db4aa22da6bbe
tree3a7a74045f76ae510a7f6087c8af67734690a5da
parent18ecc6c55bcb52e958d1257def58df86ceef7ece
drm/i915/hangcheck: Replace hangcheck.seqno with RING_HEAD

After realising we need to sample RING_START to detect context switches
from preemption events that do not allow for the seqno to advance, we
can also realise that the seqno itself is just a distance along the ring
and so can be replaced by sampling RING_HEAD.

v2: Bonus comment for the mystery separate CS_STALL before MI_USER_INTERRUPT

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/20190508080704.24223-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_hangcheck.c
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_ringbuffer.c
drivers/gpu/drm/i915/i915_debugfs.c