1*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/ 2*6b514ed2SMichal WajdeczkoDate: October 2025 3*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 4*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 5*6b514ed2SMichal WajdeczkoDescription: 6*6b514ed2SMichal Wajdeczko This directory appears for the particular Intel Xe device when: 7*6b514ed2SMichal Wajdeczko 8*6b514ed2SMichal Wajdeczko - device supports SR-IOV, and 9*6b514ed2SMichal Wajdeczko - device is a Physical Function (PF), and 10*6b514ed2SMichal Wajdeczko - driver support for the SR-IOV PF is enabled on given device. 11*6b514ed2SMichal Wajdeczko 12*6b514ed2SMichal Wajdeczko This directory is used as a root for all attributes required to 13*6b514ed2SMichal Wajdeczko manage both Physical Function (PF) and Virtual Functions (VFs). 14*6b514ed2SMichal Wajdeczko 15*6b514ed2SMichal Wajdeczko 16*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/ 17*6b514ed2SMichal WajdeczkoDate: October 2025 18*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 19*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 20*6b514ed2SMichal WajdeczkoDescription: 21*6b514ed2SMichal Wajdeczko This directory holds attributes related to the SR-IOV Physical 22*6b514ed2SMichal Wajdeczko Function (PF). 23*6b514ed2SMichal Wajdeczko 24*6b514ed2SMichal Wajdeczko 25*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf1/ 26*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf2/ 27*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<N>/ 28*6b514ed2SMichal WajdeczkoDate: October 2025 29*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 30*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 31*6b514ed2SMichal WajdeczkoDescription: 32*6b514ed2SMichal Wajdeczko These directories hold attributes related to the SR-IOV Virtual 33*6b514ed2SMichal Wajdeczko Functions (VFs). 34*6b514ed2SMichal Wajdeczko 35*6b514ed2SMichal Wajdeczko Note that the VF number <N> is 1-based as described in PCI SR-IOV 36*6b514ed2SMichal Wajdeczko specification as the Xe driver follows that naming schema. 37*6b514ed2SMichal Wajdeczko 38*6b514ed2SMichal Wajdeczko There could be "vf1", "vf2" and so on, up to "vf<N>", where <N> 39*6b514ed2SMichal Wajdeczko matches the value of the "sriov_totalvfs" attribute. 40*6b514ed2SMichal Wajdeczko 41*6b514ed2SMichal Wajdeczko 42*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/profile/exec_quantum_ms 43*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/profile/preempt_timeout_us 44*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/profile/sched_priority 45*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/profile/exec_quantum_ms 46*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/profile/preempt_timeout_us 47*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/profile/sched_priority 48*6b514ed2SMichal WajdeczkoDate: October 2025 49*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 50*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 51*6b514ed2SMichal WajdeczkoDescription: 52*6b514ed2SMichal Wajdeczko These files expose scheduling parameters for the PF and its VFs, and 53*6b514ed2SMichal Wajdeczko are visible only on Intel Xe platforms that use time-sliced GPU sharing. 54*6b514ed2SMichal Wajdeczko They can be changed even if VFs are enabled and running and reflect the 55*6b514ed2SMichal Wajdeczko settings of all tiles/GTs assigned to the given function. 56*6b514ed2SMichal Wajdeczko 57*6b514ed2SMichal Wajdeczko exec_quantum_ms: (RW) unsigned integer 58*6b514ed2SMichal Wajdeczko The GT execution quantum (EQ) in [ms] for the given function. 59*6b514ed2SMichal Wajdeczko Actual quantum value might be aligned per HW/FW requirements. 60*6b514ed2SMichal Wajdeczko 61*6b514ed2SMichal Wajdeczko Default is 0 (unlimited). 62*6b514ed2SMichal Wajdeczko 63*6b514ed2SMichal Wajdeczko preempt_timeout_us: (RW) unsigned integer 64*6b514ed2SMichal Wajdeczko The GT preemption timeout in [us] of the given function. 65*6b514ed2SMichal Wajdeczko Actual timeout value might be aligned per HW/FW requirements. 66*6b514ed2SMichal Wajdeczko 67*6b514ed2SMichal Wajdeczko Default is 0 (unlimited). 68*6b514ed2SMichal Wajdeczko 69*6b514ed2SMichal Wajdeczko sched_priority: (RW/RO) string 70*6b514ed2SMichal Wajdeczko The GT scheduling priority of the given function. 71*6b514ed2SMichal Wajdeczko 72*6b514ed2SMichal Wajdeczko "low" - function will be scheduled on the GPU for its EQ/PT 73*6b514ed2SMichal Wajdeczko only if function has any work already submitted. 74*6b514ed2SMichal Wajdeczko 75*6b514ed2SMichal Wajdeczko "normal" - functions will be scheduled on the GPU for its EQ/PT 76*6b514ed2SMichal Wajdeczko irrespective of whether it has submitted a work or not. 77*6b514ed2SMichal Wajdeczko 78*6b514ed2SMichal Wajdeczko "high" - function will be scheduled on the GPU for its EQ/PT 79*6b514ed2SMichal Wajdeczko in the next time-slice after the current one completes 80*6b514ed2SMichal Wajdeczko and function has a work submitted. 81*6b514ed2SMichal Wajdeczko 82*6b514ed2SMichal Wajdeczko Default is "low". 83*6b514ed2SMichal Wajdeczko 84*6b514ed2SMichal Wajdeczko When read, this file will display the current and available 85*6b514ed2SMichal Wajdeczko scheduling priorities. The currently active priority level will 86*6b514ed2SMichal Wajdeczko be enclosed in square brackets, like: 87*6b514ed2SMichal Wajdeczko 88*6b514ed2SMichal Wajdeczko [low] normal high 89*6b514ed2SMichal Wajdeczko 90*6b514ed2SMichal Wajdeczko This file can be read-only if changing the priority is not 91*6b514ed2SMichal Wajdeczko supported. 92*6b514ed2SMichal Wajdeczko 93*6b514ed2SMichal Wajdeczko Writes to these attributes may fail with errors like: 94*6b514ed2SMichal Wajdeczko -EINVAL if provided input is malformed or not recognized, 95*6b514ed2SMichal Wajdeczko -EPERM if change is not applicable on given HW/FW, 96*6b514ed2SMichal Wajdeczko -EIO if FW refuses to change the provisioning. 97*6b514ed2SMichal Wajdeczko 98*6b514ed2SMichal Wajdeczko Reads from these attributes may fail with: 99*6b514ed2SMichal Wajdeczko -EUCLEAN if value is not consistent across all tiles/GTs. 100*6b514ed2SMichal Wajdeczko 101*6b514ed2SMichal Wajdeczko 102*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/.bulk_profile/exec_quantum_ms 103*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/.bulk_profile/preempt_timeout_us 104*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/.bulk_profile/sched_priority 105*6b514ed2SMichal WajdeczkoDate: October 2025 106*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 107*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 108*6b514ed2SMichal WajdeczkoDescription: 109*6b514ed2SMichal Wajdeczko These files allows bulk reconfiguration of the scheduling parameters 110*6b514ed2SMichal Wajdeczko of the PF or VFs and are available only for Intel Xe platforms with 111*6b514ed2SMichal Wajdeczko GPU sharing based on the time-slice basis. These scheduling parameters 112*6b514ed2SMichal Wajdeczko can be changed even if VFs are enabled and running. 113*6b514ed2SMichal Wajdeczko 114*6b514ed2SMichal Wajdeczko exec_quantum_ms: (WO) unsigned integer 115*6b514ed2SMichal Wajdeczko The GT execution quantum (EQ) in [ms] to be applied to all functions. 116*6b514ed2SMichal Wajdeczko See sriov_admin/{pf,vf<N>}/profile/exec_quantum_ms for more details. 117*6b514ed2SMichal Wajdeczko 118*6b514ed2SMichal Wajdeczko preempt_timeout_us: (WO) unsigned integer 119*6b514ed2SMichal Wajdeczko The GT preemption timeout (PT) in [us] to be applied to all functions. 120*6b514ed2SMichal Wajdeczko See sriov_admin/{pf,vf<N>}/profile/preempt_timeout_us for more details. 121*6b514ed2SMichal Wajdeczko 122*6b514ed2SMichal Wajdeczko sched_priority: (RW/RO) string 123*6b514ed2SMichal Wajdeczko The GT scheduling priority to be applied for all functions. 124*6b514ed2SMichal Wajdeczko See sriov_admin/{pf,vf<N>}/profile/sched_priority for more details. 125*6b514ed2SMichal Wajdeczko 126*6b514ed2SMichal Wajdeczko Writes to these attributes may fail with errors like: 127*6b514ed2SMichal Wajdeczko -EINVAL if provided input is malformed or not recognized, 128*6b514ed2SMichal Wajdeczko -EPERM if change is not applicable on given HW/FW, 129*6b514ed2SMichal Wajdeczko -EIO if FW refuses to change the provisioning. 130*6b514ed2SMichal Wajdeczko 131*6b514ed2SMichal Wajdeczko 132*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/stop 133*6b514ed2SMichal WajdeczkoDate: October 2025 134*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 135*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 136*6b514ed2SMichal WajdeczkoDescription: 137*6b514ed2SMichal Wajdeczko This file allows to control scheduling of the VF on the Intel Xe GPU 138*6b514ed2SMichal Wajdeczko platforms. It allows to implement custom policy mechanism in case VFs 139*6b514ed2SMichal Wajdeczko are misbehaving or triggering adverse events above defined thresholds. 140*6b514ed2SMichal Wajdeczko 141*6b514ed2SMichal Wajdeczko stop: (WO) bool 142*6b514ed2SMichal Wajdeczko All GT executions of given function shall be immediately stopped. 143*6b514ed2SMichal Wajdeczko To allow scheduling this VF again, the VF FLR must be triggered. 144*6b514ed2SMichal Wajdeczko 145*6b514ed2SMichal Wajdeczko Writes to this attribute may fail with errors like: 146*6b514ed2SMichal Wajdeczko -EINVAL if provided input is malformed or not recognized, 147*6b514ed2SMichal Wajdeczko -EPERM if change is not applicable on given HW/FW, 148*6b514ed2SMichal Wajdeczko -EIO if FW refuses to change the scheduling. 149*6b514ed2SMichal Wajdeczko 150*6b514ed2SMichal Wajdeczko 151*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/device 152*6b514ed2SMichal WajdeczkoWhat: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/device 153*6b514ed2SMichal WajdeczkoDate: October 2025 154*6b514ed2SMichal WajdeczkoKernelVersion: 6.19 155*6b514ed2SMichal WajdeczkoContact: intel-xe@lists.freedesktop.org 156*6b514ed2SMichal WajdeczkoDescription: 157*6b514ed2SMichal Wajdeczko These are symlinks to the underlying PCI device entry representing 158*6b514ed2SMichal Wajdeczko given Xe SR-IOV function. For the PF, this link is always present. 159*6b514ed2SMichal Wajdeczko For VFs, this link is present only for currently enabled VFs. 160