[PATCH v2 0/4] PF: Add functions to save and restore VF LMEM and CCS data
Lukasz Laguna
lukasz.laguna at intel.com
Thu Oct 31 15:17:21 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.
v2:
- allow to set offsets for SMEM and CCS buffer objects (M. Winiarski),
- extend the commit description with the explanation why existing APIs
are not enough (N. Das),
- allow to save VF LMEM and CCS state and replace it using debugfs blob
file (M. Wajdeczko),
- use asserts in internal functions (M. Wajdeczko),
- hold PF master mutex when accessing VF LMEM BO (M. Wajdeczko),
- instead of waiting for fence internally, return fence to the caller
(M. Wajdeczko).
Lukasz Laguna (4):
drm/xe/migrate: Add function for raw copy of VRAM and CCS
drm/xe/bo: Add trylock helper for buffer objects
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_bo.c | 16 +-
drivers/gpu/drm/xe/xe_bo.h | 2 +-
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c | 78 +++++
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c | 317 ++++++++++++++++++
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, 642 insertions(+), 2 deletions(-)
--
2.40.0
More information about the Intel-xe
mailing list