Add debugfs SR-IOV helpers; Improve clear-lmem check
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 0 repliesNew
- v15 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lib/xe_sriov_debugfs: Add helper for opening attributeslib/ lib/ lib/ | +82 | 0 replies | |
| 2/5 | lib/xe/xe_sriov_provisioning: Define resource types and provisioned range structurelib/ lib/ lib/ | +79 | 0 replies | |
| 3/5 | lib/xe/xe_sriov_debugfs: Add function to read provisioned rangeslib/ lib/ | +146 | 0 replies | |
| 4/5 | tests/intel/xe_sriov_flr: Verify full LMEM rangetests/ | +45 | 0 replies | |
| 5/5 | lib/xe/xe_sriov_provisioning: Extract function to search provisioned PTE rangeslib/ lib/ tests/ | +137 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Adam Miszczak |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
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/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