drm/i915/debugfs: Take runtime_pm ref for sseu
authorDavid Weinehall <david.weinehall@linux.intel.com>
Mon, 1 Aug 2016 14:33:27 +0000 (17:33 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Aug 2016 14:52:54 +0000 (15:52 +0100)
commit238010ed6cc8d3b5c6b146ab813838c6a6992a7b
tree6c6cf50daface13d986ab5be0399e5aba2aed703
parent6ce213575cf37c50667850b4372272b4f1660b51
drm/i915/debugfs: Take runtime_pm ref for sseu

When reading the SSEU statistics, we need to call
intel_runtime_pm_get() first, otherwise we might end up
triggering "Device suspended during HW access".

Signed-off-by: David Weinehall <david.weinehall@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470062007-26996-1-git-send-email-david.weinehall@linux.intel.com
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c