drm/i915/ttm: use cached system pages when evicting lmem
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Oct 2021 09:10:54 +0000 (10:10 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 22 Oct 2021 12:19:29 +0000 (13:19 +0100)
commit2eda4fc6d005b51271642ebfae4ac00e15618a23
tree6d8839d6bec6ffb3e41f70f1758393b7f13d6a20
parentebd4a8ec7799b1ce6969acf04432f4980179986a
drm/i915/ttm: use cached system pages when evicting lmem

This should let us do an accelerated copy directly to the shmem pages
when temporarily moving lmem-only objects, where the i915-gem shrinker
can later kick in to swap out the pages, if needed.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018091055.1998191-7-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_ttm.c