Skip to content

Add xe_sriov_auto_provisioning tests

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 Latest7 patches 3 repliesIn review
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7lib/xe/xe_sriov_debugfs: Add debugfs get/set functions for u32, u64, boollib/xe/xe_sriov_debugfs.c lib/xe/xe_sriov_debugfs.h+169 -00 replies
2/7lib/xe/xe_sriov_debugfs: Add validation for provisioned rangeslib/xe/xe_sriov_debugfs.c lib/xe/xe_sriov_debugfs.h+120 -01 reply
3/7lib/xe/xe_sriov_provisioning: Add accessors for quota/spare attributeslib/xe/xe_sriov_provisioning.c lib/xe/xe_sriov_provisioning.h+138 -00 replies
4/7lib/xe/xe_sriov_provisioning: Add shared resource provisionability checklib/xe/xe_sriov_provisioning.c lib/xe/xe_sriov_provisioning.h+51 -00 replies
5/7lib/igt_sriov_device: Add helper functions for VF range validationlib/igt_sriov_device.h+75 -70 replies
6/7tests/xe_sriov_auto_provisioning: Add tests for SR-IOV auto-provisioningtests/intel/xe_sriov_auto_provisioning.c tests/meson.build+291 -01 reply
7/7tests/xe_sriov_auto_provisioning: Add 'extended' command line optiontests/intel/xe_sriov_auto_provisioning.c+39 -11 reply

Reviews trailers per patch

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

PatchLukasz Laguna
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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/7] Add xe_sriov_auto_provisioning tests

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 <[email protected]>
Cc Jakub Kolakowski <[email protected]>
Cc Lukasz Laguna <[email protected]>
Cc Michał Wajdeczko <[email protected]>
Cc Michał Winiarski <[email protected]>
Cc Narasimha C V <[email protected]>
Cc Piotr Piórkowski <[email protected]>
Cc Satyanarayana K V P <[email protected]>
Cc Tomasz Lis <[email protected]>

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
Signature · 1 line
2.31.1