[PATCH 0/6] PF: Initial support to save/restore VF GuC state
Michal Wajdeczko
michal.wajdeczko at intel.com
Thu Sep 12 20:38:11 UTC 2024
To successfully migrate a VM with attached GPU VF we also need to
migrate VF's GuC state. This series adds necessary functions to save
and restore a VF state and also allows testing migration flow using
debugfs, ahead of availability of other required components that are
under development.
Michal Wajdeczko (6):
drm/xe/guc: Fix GUC_{SUBMIT,FIRMWARE}_VER helper macros
drm/xe/guc: Add PF2GUC_SAVE_RESTORE_VF to ABI
drm/xe/pf: Add functions to save and restore VF GuC state
drm/xe/pf: Save VF GuC state when pausing VF
drm/xe/pf: Allow to view and replace VF GuC state over debugfs
drm/xe/pf: Allow to trigger VF GuC state restore from debugfs
drivers/gpu/drm/xe/Makefile | 1 +
.../gpu/drm/xe/abi/guc_actions_sriov_abi.h | 61 +++
drivers/gpu/drm/xe/xe_gt_sriov_pf.c | 2 +
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c | 41 +-
.../gpu/drm/xe/xe_gt_sriov_pf_control_types.h | 2 +
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c | 49 ++
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c | 419 ++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h | 24 +
.../drm/xe/xe_gt_sriov_pf_migration_types.h | 40 ++
drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h | 6 +
drivers/gpu/drm/xe/xe_guc.h | 6 +-
11 files changed, 648 insertions(+), 3 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
create mode 100644 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h
create mode 100644 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration_types.h
--
2.43.0
More information about the Intel-xe
mailing list