[PATCH v3 0/4] PF: Add functions to save and restore VF LMEM and CCS data

Lukasz Laguna lukasz.laguna at intel.com
Thu Nov 7 13:55:13 UTC 2024


State of VF LMEM and corresponding CCS metadata needs to be saved and
restored during migration of VM with attached dGPU VF. Add helpers that
allow it. We will start using them in upcoming patches. For feature
enabling and testing purposes, allow to save VF LMEM and CCS state and
to replace it using debugfs blob file, but only under strict debug
config.

v3:
 - refactor locking (Matt B)
 - add helper to retrieve VF's LMEM object (Lukasz).

Lukasz Laguna (4):
  drm/xe/migrate: Add function for raw copy of VRAM and CCS
  drm/xe/pf: Add helper to retrieve VF's LMEM object
  drm/xe/pf: Add functions to save and restore VF LMEM and CCS data
  drm/xe/pf: Allow to view and replace VF LMEM and CCS state over
    debugfs

 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    |  22 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h    |   1 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c   |  78 +++++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c | 318 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h |  18 +
 drivers/gpu/drm/xe/xe_migrate.c               | 208 ++++++++++++
 drivers/gpu/drm/xe/xe_migrate.h               |   5 +
 7 files changed, 650 insertions(+)

-- 
2.40.0



More information about the Intel-xe mailing list