]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assume exclusive access to objects inside resume
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Aug 2019 20:07:05 +0000 (21:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Aug 2019 21:44:00 +0000 (22:44 +0100)
commit6412f26e9792186f4edc5314d0d5757f67feef17
tree82ab8e8532bef2d5816cff53a95b84726082feb6
parent3327a50b6b5dc97c66b3633166c447354c20188a
drm/i915: Assume exclusive access to objects inside resume

Inside gtt_restore_mappings() we currently take the obj->resv->lock, but
in the future we need to avoid taking this fs-reclaim tainted lock as we
need to extend the coverage of the vm->mutex. Take advantage of the
single-threaded nature of the early resume phase, and do a single
wbinvd() to flush all the GTT objects en masse.

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/20190819200705.3631-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c