[Intel-gfx] [PATCH 15/19] drm/i915: Hold rpm wakeref for modifying the global seqno
Michał Winiarski
michal.winiarski at intel.com
Wed Jan 3 10:58:44 UTC 2018
On Tue, Jan 02, 2018 at 03:12:31PM +0000, Chris Wilson wrote:
> 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 at chris-wilson.co.uk>
Reviewed-by: Michał Winiarski <michal.winiarski at intel.com>
-Michał
> ---
> drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> 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;
> --
> 2.15.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list