[PATCH i-g-t 0/5] Add debugfs SR-IOV helpers; Improve clear-lmem check
Marcin Bernatowicz
marcin.bernatowicz at linux.intel.com
Wed Oct 30 19:36:24 UTC 2024
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.
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
--
2.31.1
More information about the igt-dev
mailing list