]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4fe677dce27aba9ee69f76014e1c9d49e987270
tree657a6f43b2854ecf81f0c13bd83f8ffde6a497fe
parent0f3008b1cd1bf4827e214ae49be7619c418cdbe8
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