drm/i915: Simplify check for idleness in hangcheck
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Apr 2016 06:29:18 +0000 (07:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 10:45:05 +0000 (11:45 +0100)
commitcffa781e59070cf115525a57e8f6042bd4e2bf7c
tree4fd10698e69b6129ea83bbbc22f50aff6048880d
parent7c90b7de7372fcd634fa0cffea6e580fb32e6b85
drm/i915: Simplify check for idleness in hangcheck

Having fixed the tracking of the engine's last_submitted_seqno, we can
now rely on it for detecting when the engine is idle (and not have to
touch the requests pointer).

Testcase: igt/gem_exec_whisper
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460010558-10705-9-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/i915_irq.c