summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorChris Wilson2018-01-02 16:12:31 +0100
committerChris Wilson2018-01-03 12:42:33 +0100
commit65c475c6dd607226159a774d7c3d7ff4b6e00255 (patch)
tree7c92a67f90f2f21899763f4b0f0fbce16910c19c /drivers/gpu/drm/i915/i915_debugfs.c
parentdrm/i915/execlists: Tidy enabling execlists (diff)
downloadkernel-qcow2-linux-65c475c6dd607226159a774d7c3d7ff4b6e00255.tar.gz
kernel-qcow2-linux-65c475c6dd607226159a774d7c3d7ff4b6e00255.tar.xz
kernel-qcow2-linux-65c475c6dd607226159a774d7c3d7ff4b6e00255.zip
drm/i915: Hold rpm wakeref for modifying the global seqno
To modify the global seqno may require rewriting a few registers, which requires us to hold the rpm wakeref. We must therefore take it around the call to i915_gem_set_global_seqno() in debugfs, on behalf of the user. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180102151235.3949-15-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-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 d81cb2513069..2bb63073d73f 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -988,7 +988,10 @@ i915_next_seqno_set(void *data, u64 val)
if (ret)
return ret;
+ intel_runtime_pm_get(dev_priv);
ret = i915_gem_set_global_seqno(dev, val);
+ intel_runtime_pm_put(dev_priv);
+
mutex_unlock(&dev->struct_mutex);
return ret;