From: Michel Thierry Date: Thu, 16 Oct 2014 15:13:38 +0000 (+0100) Subject: drm/i915: add runtime PM get/put call in i915_execlists X-Git-Tag: v3.19-rc1~73^2~78^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc0412ec0ff5aa7eef694ccde47606caa7c089e0;p=platform%2Fkernel%2Flinux-exynos.git drm/i915: add runtime PM get/put call in i915_execlists Otherwise we will get WARNs when we read context status registers and the machine is suspended. Testcase: igt/pm_rpm/debugfs-read Signed-off-by: Michel Thierry Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 1e7a7c6..e60d5c2 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1848,6 +1848,8 @@ static int i915_execlists(struct seq_file *m, void *data) if (ret) return ret; + intel_runtime_pm_get(dev_priv); + for_each_ring(ring, dev_priv, ring_id) { struct intel_ctx_submit_request *head_req = NULL; int count = 0; @@ -1899,6 +1901,7 @@ static int i915_execlists(struct seq_file *m, void *data) seq_putc(m, '\n'); } + intel_runtime_pm_put(dev_priv); mutex_unlock(&dev->struct_mutex); return 0;