]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: add xe_migrate_resolve wrapper and is_vram_resolve support
authorNitin Gote <nitin.r.gote@intel.com>
Wed, 4 Mar 2026 12:38:01 +0000 (18:08 +0530)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 12 Mar 2026 09:37:40 +0000 (09:37 +0000)
commitbe97fd06458d66a53aefb6d9429db0df734c81c0
treef053f10366e2eee262d13c855a2ead96eea4548d
parent2270bd7124f4d25497d58c293cd40ea014ddaf01
drm/xe: add xe_migrate_resolve wrapper and is_vram_resolve support

Introduce an internal __xe_migrate_copy(..., is_vram_resolve) path and
expose a small wrapper xe_migrate_resolve() that calls it with
is_vram_resolve=true.

For resolve/decompression operations we must ensure the copy code uses
the compression PAT index when appropriate; this change centralizes that
behavior and allows callers to schedule a resolve (decompress) operation
via the migrate API.

v3: Fix kernel-doc warnings

v2: (Matt)
  - Simplify xe_migrate_resolve(), use single BO/resource;
    remove copy_only_ccs argument as it's always false.

Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260304123758.3050386-7-nitin.r.gote@intel.com
drivers/gpu/drm/xe/xe_migrate.c
drivers/gpu/drm/xe/xe_migrate.h