[PATCH i-g-t 0/4] Subject: [PATCH i-g-t 0/4] lib/xe: Add SR-IOV debugfs and provisioning helpers

Marcin Bernatowicz marcin.bernatowicz at linux.intel.com
Wed Nov 27 20:02:58 UTC 2024


This patch series introduces helper functions for managing SR-IOV debugfs
and provisioning attributes in the XE driver.

Summary of changes:

1. lib/xe/xe_sriov_debugfs:
   - Add generic helper functions to get and set debugfs attributes
     for u32, u64, and bool types.

2. lib/xe/xe_sriov_provisioning:
   - Introduce functions to get and set scheduling attributes such as
     execution quantum, preemption timeout, idle scheduling policy,
     priority, and engine reset behavior. Provide both returning and
     asserting variants for error handling flexibility.
   - Add a helper to ensure default scheduling attributes are set
     for PF and VF contexts. Skip tests when non-default configurations
     are detected.
   - Add accessors for shared resource quota and spare attributes
     (GGTT, LMEM, contexts, and doorbells).

Marcin Bernatowicz (4):
  lib/xe/xe_sriov_debugfs: Add debugfs get/set functions for u32, u64,
    bool
  lib/xe/xe_sriov_provisioning: Add scheduling attributes accessors
  lib/xe/xe_sriov_provisioning: Add helper to check default scheduling
    attributes
  lib/xe/xe_sriov_provisioning: Add accessors for quota/spare attributes

 lib/xe/xe_sriov_debugfs.c      | 194 ++++++++++++
 lib/xe/xe_sriov_debugfs.h      |  18 ++
 lib/xe/xe_sriov_provisioning.c | 534 +++++++++++++++++++++++++++++++++
 lib/xe/xe_sriov_provisioning.h |  68 +++++
 4 files changed, 814 insertions(+)

-- 
2.31.1



More information about the igt-dev mailing list