Add SR-IOV simplified VF migration test
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib/xe/xe_sriov_debugfs: Add VF save/restore related functionslib/ lib/ | +283 | 1 reply | |
| 2/2 | tests/xe_sriov_migration: VF fake migration validationtests/ tests/ | +298 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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
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