aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Thierry <michel.thierry@intel.com>2014-10-16 11:13:38 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-10-24 10:34:11 -0400
commitfc0412ec0ff5aa7eef694ccde47606caa7c089e0 (patch)
tree593640b8629ccc683da0dd7a9c0b4d0fb504ef3f
parent142d2eca356af6744c7e4bb577c3dfaadee486fc (diff)
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 <michel.thierry@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 1e7a7c68deb7..e60d5c2f4a35 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)
1848 if (ret) 1848 if (ret)
1849 return ret; 1849 return ret;
1850 1850
1851 intel_runtime_pm_get(dev_priv);
1852
1851 for_each_ring(ring, dev_priv, ring_id) { 1853 for_each_ring(ring, dev_priv, ring_id) {
1852 struct intel_ctx_submit_request *head_req = NULL; 1854 struct intel_ctx_submit_request *head_req = NULL;
1853 int count = 0; 1855 int count = 0;
@@ -1899,6 +1901,7 @@ static int i915_execlists(struct seq_file *m, void *data)
1899 seq_putc(m, '\n'); 1901 seq_putc(m, '\n');
1900 } 1902 }
1901 1903
1904 intel_runtime_pm_put(dev_priv);
1902 mutex_unlock(&dev->struct_mutex); 1905 mutex_unlock(&dev->struct_mutex);
1903 1906
1904 return 0; 1907 return 0;