Skip to content

Add SR-IOV simplified VF migration test

Adam Miszczak igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/xe/xe_sriov_debugfs: Add VF save/restore related functionslib/xe/xe_sriov_debugfs.c lib/xe/xe_sriov_debugfs.h+283 -01 reply
2/2tests/xe_sriov_migration: VF fake migration validationtests/intel/xe_sriov_migration.c tests/meson.build+298 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH i-g-t 0/2] Add SR-IOV simplified VF migration test

New test validates simplified (a.k.a fake) VF migration scenario, that doesn't require VM and VFIO driver support, as it relies on PF and VF driver interfaces.
Test exercise possiblity to restore previously saved GuC state, cleared during VF states transitions and reset.
Setup involves VF(s) provisioning (either auto or manual), enablement and driver probe.
Additionally, runtime power management is disabled to prevent VF suspend. VF run state (pause-resume) is controlled to put VF in a state allowing to perform save/restore operations. GuC state as well as GGTT and LMEM raw data is read via relevant debugfs attributes for later restore. VF health in pre- and post-migration phase is verified by running simple workload.

SRIOV debugfs library functions added to support tested scenario:
- send VF control commands
- get/set GuC state, GTTT and LMEM data
- trigger GGTT relocation

Note, test currently requires xe driver built with SRIOV debug flag:
CONFIG_DRM_XE_DEBUG_SRIOV=y

Cc Tomasz Lis <[email protected]>
Cc Michał Wajdeczko <[email protected]>
Cc Marcin Bernatowicz <[email protected]>
Cc Lukasz Laguna <[email protected]>
Cc Jakub Kolakowski <[email protected]>
Cc Satyanarayana K V P <[email protected]>

Adam Miszczak (2):
lib/xe/xe_sriov_debugfs: Add VF save/restore related functions tests/xe_sriov_migration: VF fake migration validation

 lib/xe/xe_sriov_debugfs.c        | 252 ++++++++++++++++++++++++++
 lib/xe/xe_sriov_debugfs.h        |  31 ++++
 tests/intel/xe_sriov_migration.c | 297 +++++++++++++++++++++++++++++++
 tests/meson.build                |   1 +
 4 files changed, 581 insertions(+)
 create mode 100644 tests/intel/xe_sriov_migration.c
Signature · 1 line
2.39.1