]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Take rpm wakelock around debugfs/i915_gpu_info
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Mar 2017 13:14:07 +0000 (14:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Mar 2017 14:59:12 +0000 (15:59 +0100)
commit44a9261edcf562ff36d9bbbf04e9a92c9644d6f7
tree2ad7be225ba33502c68351d9d778efed8366b2ee
parent21e50f7ce746a4e330b8e49c15385e3006995c96
drm/i915: Take rpm wakelock around debugfs/i915_gpu_info

Capturing GPU state requires the device to be awake in order to read
registers. Normally, this is taken along the error handler, but for the
direct debugfs access, we cannot make assumptions about the current
device state and so either need to wake it up, or abort.

Fixes: e91583eb21c8 ("drm/i915: The return of i915_gpu_info to debugfs")
Testcase: igt/pm_rpm/debugfs-read
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170328131407.14863-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c