Skip to content

PF: Add functions to save and restore VF LMEM and CCS data

Lukasz Laguna intel-xe 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 4 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v3 from the cover letter

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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/xe/migrate: Add function for raw copy of VRAM and CCSdrivers/gpu/drm/xe/xe_migrate.c drivers/gpu/drm/xe/xe_migrate.h+213 -00 replies
2/4drm/xe/pf: Add helper to retrieve VF's LMEM objectdrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h+23 -00 replies
3/4drm/xe/pf: Add functions to save and restore VF LMEM and CCS datadrivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h+122 -00 replies
4/4drm/xe/pf: Allow to view and replace VF LMEM and CCS state over debugfsdrivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h+292 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

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

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(+)
Signature · 1 line
2.40.0