From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH 14/14] drm/xe/pf: Add documentation for sriov_admin attributes
Date: Mon, 27 Oct 2025 12:44:56 -0400 [thread overview]
Message-ID: <aP-hiB44nJIu23HZ@intel.com> (raw)
In-Reply-To: <20251020182414.576-15-michal.wajdeczko@intel.com>
On Mon, Oct 20, 2025 at 08:24:14PM +0200, Michal Wajdeczko wrote:
> Add initial documentation for all recently added Xe driver
> specific SR-IOV sysfs files located under device/sriov_admin.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> .../ABI/testing/sysfs-driver-intel-xe-sriov | 164 ++++++++++++++++++
> 1 file changed, 164 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-driver-intel-xe-sriov
>
> diff --git a/Documentation/ABI/testing/sysfs-driver-intel-xe-sriov b/Documentation/ABI/testing/sysfs-driver-intel-xe-sriov
> new file mode 100644
> index 000000000000..ac650b673270
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-driver-intel-xe-sriov
> @@ -0,0 +1,164 @@
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/
> +Date: October 2025
> +KernelVersion: 6.18
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + This directory appears for the particular Intel Xe device when:
> +
> + - device supports SR-IOV, and
> + - device is a Physical Function (PF), and
> + - driver support for the SR-IOV PF is enabled on given device.
> +
> + This directory is used as a root for all attributes required to
> + manage both Physical Function (PF) and Virtual Functions (VFs).
> +
> +
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/
> +Date: October 2025
> +KernelVersion: 6.18
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + This directory holds attributes related to the SR-IOV Physical
> + Function (PF).
> +
> +
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf1/
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf2/
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<N>/
> +Date: October 2025
> +KernelVersion: 6.18
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + These directories hold attributes related to the SR-IOV Virtual
> + Functions (VFs).
> +
> + Note that the VF number <N> is 1-based as described in PCI SR-IOV
> + specification as the Xe driver follows that naming schema.
> +
> + There could be "vf1", "vf2" and so on, up to "vf<N>", where <N>
> + matches value of the "sriov_totalvfs" attribute.
> +
> +
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/profile/exec_quantum_ms
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/profile/preempt_timeout_us
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/profile/sched_priority
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/profile/exec_quantum_ms
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/profile/preempt_timeout_us
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/profile/sched_priority
> +Date: October 2025
> +KernelVersion: 6.18
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + These files represent scheduling parameters of the PF or VFs and
> + are available only for Intel Xe platforms with GPU sharing based
> + on the time-slice basis. These scheduling parameters can be changed
> + even if VFs are enabled and running. Those parameters reflects
> + settings of all tiles/GTs assigned to the given function.
> +
> + exec_quantum_ms: (RW) unsigned integer
> + The GT execution quantum (EQ) in [ms] of the given function.
> + Actual quantum value might be aligned per HW/FW requirements.
> +
> + Default is 0 (unlimited).
> +
> + preempt_timeout_us: (RW) unsigned integer
> + The GT preemption timeout in [us] of the given function.
> + Actual timeout value might be aligned per HW/FW requirements.
> +
> + Default is 0 (unlimited).
> +
> + sched_priority: (RW/RO) string
> + The GT scheduling priority of the given function.
> +
> + "low" - function will be scheduled on the GPU for its EQ/PT
> + only if function has any work already submitted.
> +
> + "normal" - functions will be scheduled on the GPU for its EQ/PT
> + irrespective of whether it has submitted a work or not.
> +
> + "high" - function will be scheduled on the GPU for its EQ/PT
> + in the next time-slice after the current one completes
> + and function has a work submitted.
> +
> + Default is "low".
> +
> + When read, this file will display the current and available
> + scheduling priorities. The currently active priority level will
> + be enclosed in square brackets, like:
> +
> + [low] normal high
> +
> + This file can be read-only if changing is currently not supported
> + for given function due to any known HW/FW limitations.
> +
> + Writes to these attributes may fail with errors like:
> + -EINVAL if provided input is malformed or not recognized,
> + -EPERM if change is not applicable on given HW/FW,
> + -EIO if GuC refuses to change provisioning.
> +
> + Reads from these attributes may fail with:
> + -EUCLEAN if value is not consistent across all tiles/GTs.
> +
> +
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/.bulk_profile/exec_quantum_ms
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/.bulk_profile/preempt_timeout_us
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/.bulk_profile/sched_priority
> +Date: October 2025
> +KernelVersion: 6.18
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + These files allows bulk reconfiguration of the scheduling parameters
> + of the PF or VFs and are available only for Intel Xe platforms with
> + GPU sharing based on the time-slice basis. These scheduling parameters
> + can be changed even if VFs are enabled and running.
> +
> + exec_quantum_ms: (WO) unsigned integer
> + The GT execution quantum (EQ) in [ms] to be applied to all functions.
> + See sriov_admin/{pf,vf<N>}/profile/exec_quantum_ms for more details.
> +
> + preempt_timeout_us: (WO) unsigned integer
> + The GT preemption timeout (PT) in [us] to be applied to all functions.
> + See sriov_admin/{pf,vf<N>}/profile/preempt_timeout_us for more details.
> +
> + sched_priority: (RW/RO) string
> + The GT scheduling priority to be applied for all functions.
> + See sriov_admin/{pf,vf<N>}/profile/sched_priority for more details.
> +
> + Writes to these attributes may fail with errors like:
> + -EINVAL if provided input is malformed or not recognized,
> + -EPERM if change is not applicable on given HW/FW,
> + -EIO if GuC refuses to change provisioning.
> +
> +
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/stop
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/reset
> +Date: October 2025
> +KernelVersion: 6.18
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + These files allow to control scheduling of the VF on the Intel Xe GPU
> + platforms. They allow to implement custom policy mechanism in case VFs
> + are misbehaving or triggering adverse events above defined thresholds.
> +
> + stop: (WO) bool
> + All GT executions of given function shall be immediately stopped.
> +
> + reset: (WO) bool
> + The GT executions of the given function shall be reset after
> + completing software-initiated VF FLR.
> +
> + Writes to these attributes may fail with errors like:
> + -EINVAL if provided input is malformed or not recognized,
> + -EPERM if change is not applicable on given HW/FW,
> + -EIO if GuC refuses to change provisioning.
> +
> +
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/pf/device
> +What: /sys/bus/pci/drivers/xe/.../sriov_admin/vf<n>/device
> +Date: October 2025
> +KernelVersion: 6.18
6.19
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> +Contact: intel-xe@lists.freedesktop.org
> +Description:
> + These are symlinks to the underlying PCI device entry representing
> + given Xe SR-IOV function. For the PF, this link is always present.
> + For VFs, this link is present only for currently enabled VFs.
> --
> 2.47.1
>
next prev parent reply other threads:[~2025-10-27 16:45 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 18:24 [PATCH 00/14] PF: Add sriov_admin sysfs tree Michal Wajdeczko
2025-10-20 18:24 ` [PATCH 01/14] drm/xe/pf: Prepare sysfs for SR-IOV admin attributes Michal Wajdeczko
2025-10-24 19:43 ` Rodrigo Vivi
2025-10-27 17:11 ` Lucas De Marchi
2025-10-27 17:59 ` Michal Wajdeczko
2025-10-27 18:30 ` Lucas De Marchi
2025-10-20 18:24 ` [PATCH 02/14] drm/xe/pf: Take RPM during calls to SR-IOV attr.store() Michal Wajdeczko
2025-10-27 17:14 ` Lucas De Marchi
2025-10-20 18:24 ` [PATCH 03/14] drm/xe/pf: Allow change PF and VFs EQ/PT using sysfs Michal Wajdeczko
2025-10-24 19:45 ` Rodrigo Vivi
2025-10-27 17:27 ` Lucas De Marchi
2025-10-27 18:09 ` Michal Wajdeczko
2025-10-27 18:32 ` Lucas De Marchi
2025-10-20 18:24 ` [PATCH 04/14] drm/xe/pf: Relax report helper to accept PF in bulk configs Michal Wajdeczko
2025-10-27 18:50 ` Lucas De Marchi
2025-10-20 18:24 ` [PATCH 05/14] drm/xe/pf: Add functions to bulk configure EQ/PT on GT Michal Wajdeczko
2025-10-27 19:03 ` Lucas De Marchi
2025-10-27 20:12 ` Michal Wajdeczko
2025-10-20 18:24 ` [PATCH 06/14] drm/xe/pf: Add functions to bulk provision EQ/PT Michal Wajdeczko
2025-10-27 19:18 ` Lucas De Marchi
2025-10-20 18:24 ` [PATCH 07/14] drm/xe/pf: Allow bulk change all VFs EQ/PT using sysfs Michal Wajdeczko
2025-10-24 19:46 ` Rodrigo Vivi
2025-10-27 19:28 ` Lucas De Marchi
2025-10-27 20:15 ` Michal Wajdeczko
2025-10-20 18:24 ` [PATCH 08/14] drm/xe/pf: Add functions to provision scheduling priority Michal Wajdeczko
2025-10-28 11:17 ` Piotr Piórkowski
2025-10-20 18:24 ` [PATCH 09/14] drm/xe/pf: Allow bulk change all VFs priority using sysfs Michal Wajdeczko
2025-10-24 19:47 ` Rodrigo Vivi
2025-10-20 18:24 ` [PATCH 10/14] drm/xe/pf: Allow change PF scheduling " Michal Wajdeczko
2025-10-24 19:47 ` Rodrigo Vivi
2025-10-20 18:24 ` [PATCH 11/14] drm/xe/pf: Promote xe_pci_sriov_get_vf_pdev Michal Wajdeczko
2025-10-28 9:57 ` Piotr Piórkowski
2025-10-28 12:22 ` Michal Wajdeczko
2025-10-28 16:03 ` Piotr Piórkowski
2025-10-20 18:24 ` [PATCH 12/14] drm/xe/pf: Add sysfs device symlinks to enabled VFs Michal Wajdeczko
2025-10-24 19:47 ` Rodrigo Vivi
2025-10-20 18:24 ` [PATCH 13/14] drm/xe/pf: Allow to stop and reset VF using sysfs Michal Wajdeczko
2025-10-24 19:51 ` Rodrigo Vivi
2025-10-27 20:58 ` Lucas De Marchi
2025-10-20 18:24 ` [PATCH 14/14] drm/xe/pf: Add documentation for sriov_admin attributes Michal Wajdeczko
2025-10-27 16:44 ` Rodrigo Vivi [this message]
2025-10-21 4:35 ` ✗ CI.checkpatch: warning for PF: Add sriov_admin sysfs tree Patchwork
2025-10-21 4:36 ` ✓ CI.KUnit: success " Patchwork
2025-10-21 10:19 ` ✗ Xe.CI.Full: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aP-hiB44nJIu23HZ@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=michal.wajdeczko@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox