]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Hold rpm wakeref for modifying the global seqno
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jan 2018 15:12:31 +0000 (15:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jan 2018 11:42:33 +0000 (11:42 +0000)
commit38a36d383de414f2e35bbcdbb55c1f2a138e879c
tree7c92a67f90f2f21899763f4b0f0fbce16910c19c
parent62143cd5b611d757b4c0ddf3b91f9b11a2e2012a
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
drivers/gpu/drm/i915/i915_debugfs.c