Add SR-IOV provisioning scheduling attributes and tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 5 repliesIn review
- v14 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- After review corrections (update description, remove magic numbers, remove debug message for consistency with the remaining code, remove short command line options) (Lukasz)
- Refactor scheduling parameter preparation for reuse in other tests
- Replace hardcoded JOB_TIMEOUT_MS with sysfs_get_job_timeout_ms() to dynamically retrieve the value.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lib/xe/xe_sriov_provisioning: Add scheduling attributes accessorslib/ lib/ | +420 | 0 replies | |
| 2/5 | lib/xe/xe_sriov_provisioning: Add helper to check default scheduling attributeslib/ lib/ | +43 | 0 replies | |
| 3/5 | tests/xe_sriov_scheduling: VF equal-throughput validationtests/ tests/ | +714 | 1 reply | |
| 4/5 | tests/xe_sriov_scheduling: nonpreempt-engine-resets subtesttests/ | +94 | 1 reply | |
| 5/5 | tests/xe_sriov_scheduling: Get job timeout from sysfstests/ | +22 | 2 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Lukasz Laguna | Satyanarayana K V P |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b | 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 SR-IOV provisioning scheduling attributes and tests
Add helper functions to get and set SR-IOV provisioning scheduling attributes. These functions provide an interface for accessing provisioning attributes such as execution quantum, preemption timeout, schedule if idle policy, schedule priority, and engine reset policy. Include both returning and asserting versions to handle errors appropriately.
Introduce a function to validate default SR-IOV scheduling attributes for VFs and PF. This function skips the test if non-default attributes are detected. The default attributes verified include:
- exec_quantum_ms set to 0 (infinite execution quantum)
- preempt_timeout_us set to 0 (infinite preemption timeout)
- sched_if_idle set to false
- reset_engine set to false
- sched_priority set to XE_SRIOV_SCHED_PRIORITY_LOW
Implement equal-throughput validation for VFs (PF is treated as VF0) with identical workloads and scheduling settings. Scheduling settings are adjusted to consider execution quantum, job duration, and the number of VFs, while adhering to timeout constraints and aiming for a sufficient number of job repeats. This approach balances overall test duration with accuracy.
Verify the occurrence of engine resets
when non-preemptible workloads surpass the combined duration of execution quantum and preemption timeout.
v2:
- After review corrections (update description, remove magic numbers, remove debug message for consistency with the remaining code, remove short command line options) (Lukasz)
- Refactor scheduling parameter preparation for reuse in other tests
- Replace hardcoded JOB_TIMEOUT_MS with sysfs_get_job_timeout_ms() to dynamically retrieve the value.
Marcin Bernatowicz (5):
lib/xe/xe_sriov_provisioning: Add scheduling attributes accessors lib/xe/xe_sriov_provisioning: Add helper to check default scheduling
attributes
tests/xe_sriov_scheduling: VF equal-throughput validation tests/xe_sriov_scheduling: nonpreempt-engine-resets subtest tests/xe_sriov_scheduling: Get job timeout from sysfs
lib/xe/xe_sriov_provisioning.c | 410 ++++++++++++++- lib/xe/xe_sriov_provisioning.h | 55 +- tests/intel/xe_sriov_scheduling.c | 821 ++++++++++++++++++++++++++++++ tests/meson.build | 1 + 4 files changed, 1285 insertions(+), 2 deletions(-) create mode 100644 tests/intel/xe_sriov_scheduling.c
Signature · 1 line
2.31.1