Skip to content

Commit ac6598a

Browse files
committed
drm/xe/pf: Add support to configure SR-IOV VFs
To run correctly, each Virtual Function must be provisioned with some chunk of shared hardware or firmware resources (like GGTT, device memory, GuC doorbell IDs, GuC context IDs) and scheduling parameters (execution quantum or preemption timeout). All resources assigned to VFs must be excluded from the PF driver use and may require some additional preparation steps (like setup of the LMTT or update of the GGTT PTE). Those provisioning details must be then sent to the GuC firmware as most of those details will be shared later with the VF drivers during their boot. Add basic functions to provision VFs with all hardware resources or scheduling parameters. We will use them shortly in upcoming patches either in manual provisioning over debugfs, exposed to the advanced users, or automatic provisioning done by PF driver during VFs enabling. Reviewed-by: Piotr Piórkowski <[email protected]> Signed-off-by: Michal Wajdeczko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 1f2880b commit ac6598a

File tree

5 files changed

+2089
-1
lines changed

5 files changed

+2089
-1
lines changed

drivers/gpu/drm/xe/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ xe-y += \
161161

162162
xe-$(CONFIG_PCI_IOV) += \
163163
xe_gt_sriov_pf.o \
164+
xe_gt_sriov_pf_config.o \
164165
xe_gt_sriov_pf_control.o \
165166
xe_gt_sriov_pf_policy.o \
166167
xe_lmtt.o \

0 commit comments

Comments
 (0)