drm/i915: Display current hangcheck status in debugfs
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 26 Jan 2015 16:03:04 +0000 (18:03 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Jan 2015 16:22:27 +0000 (17:22 +0100)
commitf654449a28e9cce283d6e3ef22c31fe7d865dff5
tree6060b590f33c76455276325bb86ec0d5b398e15d
parent737b1506037788f1e01b2a4c5795d4180b2e2e00
drm/i915: Display current hangcheck status in debugfs

For example,

/sys/kernel/debug/dri/0/i915_hangcheck_info:

Hangcheck active, fires in 15887800ms
render ring:
        seqno = -4059 [current -583]
        action = 2
        score = 0
        ACTHD = 1ee8 [current 21f980]
        max ACTHD = 0

v2: Include expiration ETA. Can anyone spot a problem?
v3: Convert for workqueued hangcheck (Mika)
v4: Print seqnos as unsigned ints (Ville)
v5: Print seqnos as hex (Chris)

Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com) (v2)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (v2)
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c