drm/i915: Take runtime pm reference on hangcheck_info
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 5 Feb 2015 16:41:48 +0000 (18:41 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 9 Feb 2015 12:29:36 +0000 (14:29 +0200)
commitebbc7546d2099c94ff2ea940ae5ce740e512a66d
treef3cd76d630f13eac99b037919591bd522b15f9ea
parentd180d2bbb66579e3bf449642b8ec2a76f4014fcd
drm/i915: Take runtime pm reference on hangcheck_info

We read the coherent current seqno and actual head from ring.
For hardware access we need to take runtime_pm reference.

Get hardware specific values with runtime reference held
and print them first to emphasize hw state vs bookkeepping.

v2: Reorder output according to hw access (Chris)
    remove superfluous locking (Daniel)

Testcase: igt/pm_rpm/debugfs-read
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88910
Tested-by: Ding Heng <hengx.ding@intel.com> (v1)
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c