Introduce xe_sriov_flr test
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 3 repliesIn review
- v16 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | lib/igt_sriov_device: add helper for opening SR-IOV device sysfslib/ lib/ | +33 | 0 replies | |
| 2/6 | lib/igt_sriov_device: add helper for resetting SR-IOV devicelib/ lib/ | +53 | 2 replies | |
| 3/6 | tests/intel/xe_sriov_flr: Add skeleton for clear and isolation teststests/ tests/ | +332 | 0 replies | |
| 4/6 | tests/intel/xe_sriov_flr: Implement clear-ggtt subchecktests/ | +278 | 0 replies | |
| 5/6 | tests/intel/xe_sriov_flr: Implement clear-lmem subchecktests/ | +209 | 0 replies | |
| 6/6 | tests/intel/xe_sriov_flr: Implement clear-scratch-regs and clear-media-scratch-regs subcheckstests/ | +121 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Adam Miszczak | Lukasz Laguna |
|---|---|---|
| Series | R-b | |
| 1/6 | R-b | |
| 2/6 | R-b | |
| 3/6 | ||
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 i-g-t 0/6] Introduce xe_sriov_flr test
Introduce VF (Virtual Function) FLR (Function Level Reset) tests to validate shared resource cleanup and ensure isolation across VFs (confirm that one VF's FLR does not affect another VF's resources). To reduce runtime perform a single FLR and verify all subchecks (clear-lmem, clear-ggtt, clear-scratch-regs, clear-media-scratch-regs) in one go. The proposed skeleton ensures that while one subcheck may stop due to failure or a skip condition, other subchecks can continue execution.
The series includes:
lib/igt_sriov_device: Add helper for opening SR-IOV device sysfs lib/igt_sriov_device: Add helper for resetting SR-IOV device
tests/intel/xe_sriov_flr: Add skeleton for clear and isolation tests Introduce a skeleton and verify_flr method to orchestrate FLRs across VFs.
tests/intel/xe_sriov_flr: Implement clear-ggtt subcheck Add GGTT subcheck to verify address resets post-FLR.
tests/intel/xe_sriov_flr: Implement clear-lmem subcheck Add LMEM subcheck to validate VF memory clearing post-FLR.
tests/intel/xe_sriov_flr: Implement clear-scratch-regs and
clear-media-scratch-regs subchecks
Add subchecks to verify clearing of scratch and media scratch registers post-FLR.
Example test output:
ATSM:~# xe_sriov_flr IGT-Version: 1.29-gf1c71392e (x86_64) (Linux: 6.11.0-rc5-xe+ x86_64) Using IGT_SRANDOM=1728461543 for randomisation Opened device: /dev/dri/card1 Starting subtest: flr-vf1-clear clear-ggtt: SUCCESS clear-lmem: SUCCESS clear-scratch-regs: SUCCESS clear-media-scratch-regs: SKIP : No media GT Subtest flr-vf1-clear: SUCCESS (7.506s) Starting subtest: flr-each-isolation clear-ggtt: SUCCESS clear-lmem: SUCCESS clear-scratch-regs: SUCCESS clear-media-scratch-regs: SKIP : No media GT Subtest flr-each-isolation: SUCCESS (11.797s)
v2: Correct subtest run type, use uppercase for GT.
Adjust pte_offsets, vf_lmem_size, mmio arrays to align VF index with array index.
Add set_skip_reason, set_fail_reason helpers for readability.
Marcin Bernatowicz (6):
lib/igt_sriov_device: add helper for opening SR-IOV device sysfs lib/igt_sriov_device: add helper for resetting SR-IOV device tests/intel/xe_sriov_flr: Add skeleton for clear and isolation tests tests/intel/xe_sriov_flr: Implement clear-ggtt subcheck tests/intel/xe_sriov_flr: Implement clear-lmem subcheck tests/intel/xe_sriov_flr: Implement clear-scratch-regs and
clear-media-scratch-regs subchecks
lib/igt_sriov_device.c | 83 ++++ lib/igt_sriov_device.h | 3 + tests/intel/xe_sriov_flr.c | 936 +++++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 4 files changed, 1023 insertions(+) create mode 100644 tests/intel/xe_sriov_flr.c
Signature · 1 line
2.31.1