]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Release shortlived maps of longlived objects
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Jul 2020 17:37:47 +0000 (18:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Jul 2020 21:05:50 +0000 (22:05 +0100)
commit11b02d117ffac701e2aa084405c7a5b6a7804a9b
tree653e4b88fad418fd4f600df1c4b96fa062453bca
parent068ce5b4525e822f9fa7cff1a273201cca38a900
drm/i915: Release shortlived maps of longlived objects

Some objects we map once during their construction, and then never
access their mappings again, even if they are kept around for the
duration of the driver. Keeping those pages mapped, often vmapped, is
therefore wasteful and we should release the maps as soon as we no
longer need them.

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/20200708173748.32734-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_pages.c
drivers/gpu/drm/i915/gt/gen7_renderclear.c
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_renderstate.c
drivers/gpu/drm/i915/gt/intel_ring_submission.c
drivers/gpu/drm/i915/i915_perf.c