[PATCH v2 i-g-t 0/7] Add xe_sriov_auto_provisioning tests
Marcin Bernatowicz
marcin.bernatowicz at linux.intel.com
Tue Jan 14 15:08:41 UTC 2025
This patch series introduces several enhancements to the SR-IOV
provisioning and validation functionalities. The changes include
debugfs accessors, quota/spare attribute accessors, shared resource
provisionability checks, and helper functions for VF range validation.
Additionally, the xe_sriov_auto_provisioning tests validate the
following scenarios:
- Auto-provisioned resources are allocated by the PF driver in a fair
manner.
- Auto-provisioned resources are released once VFs are disabled.
- Verify that ranges of auto-provisioned resources are exclusive.
v2:
- Update DEFINE_XE_SRIOV_PF_DEBUGFS_FUNC macro comment (Lukasz)
- Simplify range validation in test (Lukasz)
(moved validation of provisioned ranges to library
`xe_sriov_pf_debugfs_read_check_ranges`)
- Rename subtests for clarity (Lukasz)
- Add 'extended' command line option to enable dynamic subtests with
arbitrary num_vfs
Cc: Adam Miszczak <adam.miszczak at linux.intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski at intel.com>
Cc: Lukasz Laguna <lukasz.laguna at intel.com>
Cc: Michał Wajdeczko <michal.wajdeczko at intel.com>
Cc: Michał Winiarski <michal.winiarski at intel.com>
Cc: Narasimha C V <narasimha.c.v at intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski at intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
Cc: Tomasz Lis <tomasz.lis at intel.com>
Marcin Bernatowicz (7):
lib/xe/xe_sriov_debugfs: Add debugfs get/set functions for u32, u64,
bool
lib/xe/xe_sriov_debugfs: Add validation for provisioned ranges
lib/xe/xe_sriov_provisioning: Add accessors for quota/spare attributes
lib/xe/xe_sriov_provisioning: Add shared resource provisionability
check
lib/igt_sriov_device: Add helper functions for VF range validation
tests/xe_sriov_auto_provisioning: Add tests for SR-IOV
auto-provisioning
tests/xe_sriov_auto_provisioning: Add 'extended' command line option
lib/igt_sriov_device.h | 82 +++++-
lib/xe/xe_sriov_debugfs.c | 267 ++++++++++++++++++
lib/xe/xe_sriov_debugfs.h | 22 ++
lib/xe/xe_sriov_provisioning.c | 146 ++++++++++
lib/xe/xe_sriov_provisioning.h | 43 +++
tests/intel/xe_sriov_auto_provisioning.c | 328 +++++++++++++++++++++++
tests/meson.build | 1 +
7 files changed, 882 insertions(+), 7 deletions(-)
create mode 100644 tests/intel/xe_sriov_auto_provisioning.c
--
2.31.1
More information about the igt-dev
mailing list