]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Lock the drm_mm while modifying
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 09:17:13 +0000 (10:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 10:07:57 +0000 (11:07 +0100)
commit2ef820a621a2afea860a0d556b41723b25d7c429
tree8263cc42a15ca905cd6d34aab27898a3ad54a581
parent214b86d7c9f48413b0def6db3280fbc0ba010dcc
drm/i915/selftests: Lock the drm_mm while modifying

Remember to lock the drm_mm as we modify it, lest it be modified in the
background by retire/free workers!

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