]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Use PPGTT addresses for TLB invalidation to avoid GGTT fixups
authorSatyanarayana K V P <satyanarayana.k.v.p@intel.com>
Wed, 8 Oct 2025 21:45:28 +0000 (14:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 9 Oct 2025 10:24:07 +0000 (03:24 -0700)
commit673167d9f08378b7c619e332fe9eea230425d330
tree5dd6eea5f4ac2ca1f0cb32d179f01a26aa00fcbb
parent3b56911960b3c938d2eed70526ef4bc496520123
drm/xe: Use PPGTT addresses for TLB invalidation to avoid GGTT fixups

The migrate VM builds the CCS metadata save/restore batch buffer (BB) in
advance and retains it so the GuC can submit it directly when saving a
VM’s state.

When a VM migrates between VFs, the GGTT base can change. Any GGTT-based
addresses embedded in the BB would then have to be parsed and patched.

Use PPGTT addresses in the BB (including for TLB invalidation) so the BB
remains GGTT-agnostic and requires no address fixups during migration.

Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20251008214532.3442967-31-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_migrate.c