]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove toplevel struct_mutex locking from debugfs/i915_drop_caches
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 May 2017 16:26:53 +0000 (17:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 May 2017 10:46:23 +0000 (11:46 +0100)
commitffe4d46e1231a0c05538ae153e92c98cfe0cf951
tree69c16d4813bee1b3deac1e03b629a3126bcd2aeb
parenta7f72a439ee6c9e35e1f860579fad0d511b0b176
drm/i915: Remove toplevel struct_mutex locking from debugfs/i915_drop_caches

I have a plan to write a quick test to exercise concurrent usage of
i915_gem_shrink(), the simplest way looks to be to have multiple threads
using debugfs/i915_drop_caches. However, we currently take one lock over
the entire function, serialising the calls into i915_gem_shrink() so
reduce the lock coverage.

Testcase: igt/gem_shrink/reclaim
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170524162653.5446-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_debugfs.c