]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Only revoke the GGTT mmappings on aperture detiling changes
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jul 2020 16:36:22 +0000 (17:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jul 2020 19:46:08 +0000 (20:46 +0100)
commit6d1146fb2fb2d26d792ba41742c8d81eb78ee373
treeb4f373cc685b8f6634efad3fa0cd5cf4c8d0ce2e
parent9a1761e8233bd964eb61ded850f14524bb10fe78
drm/i915/gem: Only revoke the GGTT mmappings on aperture detiling changes

Only a GGTT mmapping will use the aperture detiling registers, so on a
tiling change for an object, we only need to revoke those mmappings and
not the CPU mmappings (which are always linear irrespective of the tiling).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702163623.6402-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/gem/i915_gem_mman.h
drivers/gpu/drm/i915/gem/i915_gem_tiling.c