Skip to content

Add debugfs SR-IOV helpers; Improve clear-lmem check

Marcin Bernatowicz igt-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib/xe_sriov_debugfs: Add helper for opening attributeslib/meson.build lib/xe/xe_sriov_debugfs.c lib/xe/xe_sriov_debugfs.h+82 -00 replies
2/5lib/xe/xe_sriov_provisioning: Define resource types and provisioned range structurelib/meson.build lib/xe/xe_sriov_provisioning.c lib/xe/xe_sriov_provisioning.h+79 -00 replies
3/5lib/xe/xe_sriov_debugfs: Add function to read provisioned rangeslib/xe/xe_sriov_debugfs.c lib/xe/xe_sriov_debugfs.h+146 -10 replies
4/5tests/intel/xe_sriov_flr: Verify full LMEM rangetests/intel/xe_sriov_flr.c+45 -140 replies
5/5lib/xe/xe_sriov_provisioning: Extract function to search provisioned PTE rangeslib/xe/xe_sriov_provisioning.c lib/xe/xe_sriov_provisioning.h tests/intel/xe_sriov_flr.c+137 -890 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAdam Miszczak
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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/5] Add debugfs SR-IOV helpers; Improve clear-lmem check

This patch series introduces SR-IOV debugfs and provisioning helpers to allow enhance test coverage.

The following changes are included:

1. Add helper for opening SR-IOV debugfs attributes:
Helper allows to open SR-IOV debugfs attributes corresponding to specified PF device, VF number, and GT number.

2. Define shared resource types and provisioned range structure:
Add shared resource enumeration, provisioned range structure definition, and provide a function to convert shared resource enums to their string representation.

3. Add function to read provisioned ranges from debugfs:
Implement xe_sriov_pf_debugfs_read_provisioned_ranges() to read and parse VFs provisioned shared resource ranges from the debug filesystem. Introduce xe_sriov_debugfs_provisioned_attr_name() to get the debugfs attribute name for a given shared resource type.

4. Improved clear-lmem subcheck in xe_sriov_flr test:
Read and verify full LMEM ranges using the lmem_provisioned debugfs attribute in the clear-lmem subcheck.

5. Extract the function to search for GGTT provisioned PTE ranges for each VF from test/xe_sriov_flr to a library file lib/xe/xe_sriov_provisioning. This refactoring improves code reusability and will allow to prepare a test comparing debugfs exposed ggtt_provisioned attribute.

v2: Remove unnecessary include (Kamil)
Correct function descriptions (Adam)

Lukasz Laguna (1):
lib/xe_sriov_debugfs: Add helper for opening attributes

Marcin Bernatowicz (4):
lib/xe/xe_sriov_provisioning: Define resource types and provisioned
range structure
lib/xe/xe_sriov_debugfs: Add function to read provisioned ranges tests/intel/xe_sriov_flr: Verify full LMEM range lib/xe/xe_sriov_provisioning: Extract function to search provisioned
PTE ranges

 lib/meson.build                |   2 +
 lib/xe/xe_sriov_debugfs.c      | 206 +++++++++++++++++++++++++++++++++
 lib/xe/xe_sriov_debugfs.h      |  20 ++++
 lib/xe/xe_sriov_provisioning.c | 124 ++++++++++++++++++++
 lib/xe/xe_sriov_provisioning.h |  50 ++++++++
 tests/intel/xe_sriov_flr.c     | 189 ++++++++++++++----------------
 6 files changed, 488 insertions(+), 103 deletions(-)
 create mode 100644 lib/xe/xe_sriov_debugfs.c
 create mode 100644 lib/xe/xe_sriov_debugfs.h
 create mode 100644 lib/xe/xe_sriov_provisioning.c
 create mode 100644 lib/xe/xe_sriov_provisioning.h
Signature · 1 line
2.31.1