PF: Add sriov_admin sysfs tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest17 patches 2 repliesIn review
- v217 patches 23 repliesSuperseded
- v114 patches 26 repliesSuperseded
Changes in v3 from the cover letter
fix typo, unify kernel-doc (Piotr)
add debug message about inconsistency (Piotr) small nit in emit_choice (Lucas)
fix patch title (Piotr)
some doc rewording (Lucas)
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | drm/xe/pf: Prepare sysfs for SR-IOV admin attributesdrivers/ drivers/ drivers/ +2 more | +317 | 0 replies | |
| 2/17 | drm/xe/pf: Take RPM during calls to SR-IOV attr.store()drivers/ | +14 | 0 replies | |
| 3/17 | drm/xe/pf: Add _locked variants of the VF EQ config functionsdrivers/ drivers/ | +53 | 0 replies | |
| 4/17 | drm/xe/pf: Add _locked variants of the VF PT config functionsdrivers/ drivers/ | +52 | 0 replies | |
| 5/17 | drm/xe/pf: Allow change PF and VFs EQ/PT using sysfsdrivers/ drivers/ drivers/ | +195 | 0 replies | |
| 6/17 | drm/xe/pf: Relax report helper to accept PF in bulk configsdrivers/ | +8 | 0 replies | |
| 7/17 | drm/xe/pf: Fix signature of internal config helpersdrivers/ | +2 | 0 replies | |
| 8/17 | drm/xe/pf: Add functions to bulk configure EQ/PT on GTdrivers/ drivers/ | +58 | 0 replies | |
| 9/17 | drm/xe/pf: Add functions to bulk provision EQ/PTdrivers/ drivers/ | +58 | 0 replies | |
| 10/17 | drm/xe/pf: Allow bulk change all VFs EQ/PT using sysfsdrivers/ | +36 | 0 replies | |
| 11/17 | drm/xe/pf: Add functions to provision scheduling prioritydrivers/ drivers/ | +97 | 0 replies | |
| 12/17 | drm/xe/pf: Allow bulk change all VFs priority using sysfsdrivers/ | +41 | 0 replies | |
| 13/17 | drm/xe/pf: Allow change PF scheduling priority using sysfsdrivers/ | +82 | 0 replies | |
| 14/17 | drm/xe/pf: Promote xe_pci_sriov_get_vf_pdevdrivers/ drivers/ | +24 | 0 replies | |
| 15/17 | drm/xe/pf: Add sysfs device symlinks to enabled VFsdrivers/ drivers/ drivers/ | +101 | 0 replies | |
| 16/17 | drm/xe/pf: Allow to stop the VF using sysfsdrivers/ | +49 | 0 replies | |
| 17/17 | drm/xe/pf: Add documentation for sriov_admin attributesDocumentation/ | +159 | 1 reply |
Reviews trailers per patch
All 17 patches have a Reviewed-by or Acked-by.
| Patch | Rodrigo Vivi | Lucas De Marchi | Piotr Piórkowski |
|---|---|---|---|
| 1/17 | A-b | R-b | |
| 2/17 | R-b | ||
| 3/17 | R-b | ||
| 4/17 | R-b | R-b | |
| 5/17 | A-b | R-b | R-b |
| 6/17 | R-b | ||
| 7/17 | R-b | ||
| 8/17 | R-b | R-b | |
| 9/17 | R-b | ||
| 10/17 | A-b | R-b | |
| 11/17 | R-b | ||
| 12/17 | A-b | R-b | |
| 13/17 | A-b | R-b | |
| 14/17 | R-b | ||
| 15/17 | A-b | R-b | |
| 16/17 | R-b | R-b | |
| 17/17 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 00/17] PF: Add sriov_admin sysfs tree
To allow the admin to provision VFs using production quality vGPU profiles, we need to expose some of the SR-IOV knobs at the sysfs level as existing debugfs entries may not be available.
Start with some basic scheduling parameters and apply them to all tiles/GTs where VF can be running. Provisioning of the other hard resources (like GGTT, VRAM) is still fully done by the PF, which uses fair auto-provisioning, but soon we will try to expose that to the admin too (after this series).
Below is an example of the new sysfs attributes tree on the PF with 2 of 3 VFs enabled (VFs were limited by max_vfs config):
/sys/bus/pci/drivers/xe/0000:00:02.0/sriov_admin
├── .bulk_profile
│ ├── exec_quantum_ms
│ ├── preempt_timeout_us
│ └── sched_priority
├── pf
│ ├── device -> ../../../0000:00:02.0
│ └── profile
│ ├── exec_quantum_ms
│ ├── preempt_timeout_us
│ └── sched_priority
├── vf1
│ ├── device -> ../../../0000:00:02.1
│ ├── profile
│ │ ├── exec_quantum_ms
│ │ ├── preempt_timeout_us
│ │ └── sched_priority
│ └── stop
├── vf2
│ ├── device -> ../../../0000:00:02.2
│ ├── profile
│ │ ├── exec_quantum_ms
│ │ ├── preempt_timeout_us
│ │ └── sched_priority
│ └── stop
└── vf3
├── profile
│ ├── exec_quantum_ms
│ ├── preempt_timeout_us
│ └── sched_priority
└── stopv1: https://patchwork.freedesktop.org/series/156220/#rev1
v2: https://patchwork.freedesktop.org/series/156220/#rev2
drop dbg messages about unexpected attr usage (Lucas) use single lock while configuring all GTs (Lucas) drop redundant comment (Piotr)
drop reset file (Rodrigo, Lucas)
update kernel version (Rodrigo)
v3:
fix typo, unify kernel-doc (Piotr)
add debug message about inconsistency (Piotr) small nit in emit_choice (Lucas)
fix patch title (Piotr)
some doc rewording (Lucas)
Michal Wajdeczko (17):
drm/xe/pf: Prepare sysfs for SR-IOV admin attributes drm/xe/pf: Take RPM during calls to SR-IOV attr.store() drm/xe/pf: Add _locked variants of the VF EQ config functions drm/xe/pf: Add _locked variants of the VF PT config functions drm/xe/pf: Allow change PF and VFs EQ/PT using sysfs drm/xe/pf: Relax report helper to accept PF in bulk configs drm/xe/pf: Fix signature of internal config helpers drm/xe/pf: Add functions to bulk configure EQ/PT on GT drm/xe/pf: Add functions to bulk provision EQ/PT drm/xe/pf: Allow bulk change all VFs EQ/PT using sysfs drm/xe/pf: Add functions to provision scheduling priority drm/xe/pf: Allow bulk change all VFs priority using sysfs drm/xe/pf: Allow change PF scheduling priority using sysfs drm/xe/pf: Promote xe_pci_sriov_get_vf_pdev drm/xe/pf: Add sysfs device symlinks to enabled VFs drm/xe/pf: Allow to stop the VF using sysfs drm/xe/pf: Add documentation for sriov_admin attributes
.../ABI/testing/sysfs-driver-intel-xe-sriov | 159 +++++ drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 200 ++++-- drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h | 10 + drivers/gpu/drm/xe/xe_pci_sriov.c | 41 +- drivers/gpu/drm/xe/xe_pci_sriov.h | 1 + drivers/gpu/drm/xe/xe_sriov_pf.c | 5 + drivers/gpu/drm/xe/xe_sriov_pf_provision.c | 284 ++++++++ drivers/gpu/drm/xe/xe_sriov_pf_provision.h | 14 + drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c | 647 ++++++++++++++++++ drivers/gpu/drm/xe/xe_sriov_pf_sysfs.h | 16 + drivers/gpu/drm/xe/xe_sriov_pf_types.h | 11 + 12 files changed, 1337 insertions(+), 52 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-intel-xe-sriov create mode 100644 drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c create mode 100644 drivers/gpu/drm/xe/xe_sriov_pf_sysfs.h
Signature · 1 line
2.47.1