Skip to content

Introduce xe_sriov_flr test

Marcin Bernatowicz igt-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v16 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib/igt_sriov_device: add helper for opening SR-IOV device sysfslib/igt_sriov_device.c lib/igt_sriov_device.h+33 -00 replies
2/6lib/igt_sriov_device: add helper for resetting SR-IOV devicelib/igt_sriov_device.c lib/igt_sriov_device.h+53 -02 replies
3/6tests/intel/xe_sriov_flr: Add skeleton for clear and isolation teststests/intel/xe_sriov_flr.c tests/meson.build+332 -00 replies
4/6tests/intel/xe_sriov_flr: Implement clear-ggtt subchecktests/intel/xe_sriov_flr.c+278 -10 replies
5/6tests/intel/xe_sriov_flr: Implement clear-lmem subchecktests/intel/xe_sriov_flr.c+209 -10 replies
6/6tests/intel/xe_sriov_flr: Implement clear-scratch-regs and clear-media-scratch-regs subcheckstests/intel/xe_sriov_flr.c+121 -10 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.

PatchAdam MiszczakLukasz Laguna
SeriesR-b
1/6R-b
2/6R-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.

Read the v2 thread

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