Mapping a non-contiguous VRAM BO doesn't work, start to fix this. v2: - Include missing local change v3: - Use GPU for non-visible access - Take PM ref in xe_ttm_access_memory - Disable VMAP for non-contiguous BOs Matthew Brost (6): drm/ttm: Add ttm_bo_access drm/xe: Add xe_ttm_access_memory drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access drm/xe: Use ttm_bo_access in xe_vm_snapshot_capture_delayed drm/xe: Set XE_BO_FLAG_PINNED in migrate selftest BOs drm/xe: Only allow contiguous BOs to use xe_bo_vmap drivers/gpu/drm/ttm/ttm_bo_util.c | 86 +++++++++ drivers/gpu/drm/ttm/ttm_bo_vm.c | 65 +------ drivers/gpu/drm/xe/tests/xe_migrate.c | 13 +- drivers/gpu/drm/xe/xe_bo.c | 95 +++++++-- drivers/gpu/drm/xe/xe_migrate.c | 267 ++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_migrate.h | 4 + drivers/gpu/drm/xe/xe_vm.c | 17 +- include/drm/ttm/ttm_bo.h | 2 + 8 files changed, 458 insertions(+), 91 deletions(-) -- 2.34.1