]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/xe_migrate: Handle migration logic for xe2+ dgfx
authorAkshata Jahagirdar <akshata.jahagirdar@intel.com>
Wed, 17 Jul 2024 21:10:06 +0000 (21:10 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 18 Jul 2024 00:02:31 +0000 (17:02 -0700)
commit523f191cc0c728a02a7e5fd0ec26526c41f399ef
treeea636498d93358733a844ec5f409d3a1c1a8b9ea
parent2b808d6b2919cb2fe92901e5087da7b4ed4b9e07
drm/xe/xe_migrate: Handle migration logic for xe2+ dgfx

During eviction (vram->sysmem), we use compressed -> uncompressed mapping.
During restore (sysmem->vram), we need to use mapping from
uncompressed -> uncompressed.
Handle logic for selecting the compressed identity map for eviction,
and selecting uncompressed map for restore operations.
v2: Move check of xe_migrate_ccs_emit() before calling
xe_migrate_ccs_copy(). (Nirmoy)

Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/79b3a016e686a662ae68c32b5fc7f0f2ac8043e9.1721250309.git.akshata.jahagirdar@intel.com
drivers/gpu/drm/xe/xe_migrate.c