summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-02-20 19:22:03 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2014-02-26 18:42:39 -0300
commit34318a39739e8a8202c3f5fce7f1930b5837e9e3 (patch)
treec47ebfea7d088726eda8c1a9296a687a24b72eee
parentc5457472fee14fe236555f7212683769c1c9027a (diff)
drm/i915: get/put runtime PM at i915_semaphore_status
Testcase: igt/pm_pc8/debugfs-read Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-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 2f79ba481f94..5aa9f20e807e 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2265,6 +2265,8 @@ static int i915_semaphore_status(struct seq_file *m, void *unused)
if (ret)
return ret;
+ intel_runtime_pm_get(dev_priv);
+
if (IS_BROADWELL(dev)) {
struct page *page;
uint64_t *seqno;
@@ -2313,6 +2315,7 @@ static int i915_semaphore_status(struct seq_file *m, void *unused)
}
seq_putc(m, '\n');
+ intel_runtime_pm_put(dev_priv);
mutex_unlock(&dev->struct_mutex);
return 0;
}