drm/i915/ttm: mappable migration on fault
authorMatthew Auld <matthew.auld@intel.com>
Mon, 28 Feb 2022 12:36:05 +0000 (12:36 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 1 Mar 2022 08:50:46 +0000 (08:50 +0000)
commit503725c2d9865533b2894f7363be16c762260b7e
tree657a6f43b2854ecf81f0c13bd83f8ffde6a497fe
parent9373505967ffc1b7b8331a21ba86ea436c09b981
drm/i915/ttm: mappable migration on fault

The end goal is to have userspace tell the kernel what buffers will
require CPU access, however if we ever reach the CPU fault handler, and
the current resource is not mappable, then we should attempt to migrate
the buffer to the mappable portion of LMEM, or even system memory, if the
allowable placements permit it.

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/20220228123607.580432-2-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_ttm.c