]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: debugfs/i915_gem_interrupt_info does not need struct_mutex
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 3 Sep 2016 06:53:43 +0000 (07:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 3 Sep 2016 12:11:05 +0000 (13:11 +0100)
commit66c8a03c53c7d8a24e60edb236a3d41a38f5f846
tree4eaef5614fe0e9763a3020c4225d3d9b11119ea0
parentc64f9d3c9b6e70d2f5f953ecf3d8ffbe81e017fd
drm/i915: debugfs/i915_gem_interrupt_info does not need struct_mutex

i915_gem_interrupt_info() only looks at mmio registers, and the waiters
under a spinlock. It doesn't need struct_mutex (but does need the rpm
wakelock for mmio access). Maybe useful using get_if_notidle?

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20160903065343.25151-2-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c