OSDN Git Service

drm/i915: Revoke mmap before fence
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 16:09:51 +0000 (17:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 17:39:37 +0000 (18:39 +0100)
commit9657aaa2055d0f7a5bce8020c35cdf66947f10b4
treee2b6ccb767cae6e507d9f4dc1e92e16f2df14c9f
parentd82a855ac085e22b7bc309c337afab1ff1afc298
drm/i915: Revoke mmap before fence

Make sure we revoke the user's mmaps of this vma to force them to take a
pagefault *before* we remove the associated aperture detiling register.

Fixes: 0d86ee35097a ("drm/i915/gt: Make fence revocation unequivocal")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200403160951.8271-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c