]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: Set the exclusive stream under perf->lock
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Oct 2019 21:09:42 +0000 (22:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Oct 2019 06:52:36 +0000 (07:52 +0100)
commit4602c660b7e2713380148c2ad6a78a1c5206f6fa
treeb60287aabe4697738739734e0bdc71b86a221f35
parentdc4fdbc37f54ba2a4c178e91624bbe85832d6f97
drm/i915/perf: Set the exclusive stream under perf->lock

The BKL struct_mutex is no more, the only serialisation we required for
setting the exclusive stream is already managed by ce->pin_mutex in
gen8_configure_all_contexts(). As such, we can manipulate
i915_perf.exclusive_stream underneath our own (already held) perf->lock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191007140812.10963-2-chris@chris-wilson.co.uk
Link: https://patchwork.freedesktop.org/patch/msgid/20191007210942.18145-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c