Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [PATCH v2 17/17] drm/xe/pf: Add documentation for sriov_admin attributes
Date: Fri, 31 Oct 2025 13:35:20 +0100	[thread overview]
Message-ID: <448e82a4-49d5-4200-a474-d61b56f81ccb@intel.com> (raw)
In-Reply-To: <om52bqvbzzsw53bkrxyan5l3jribcbxg3sedwesw2exgsnyx3g@xqiy7tgg6w2z>



On 10/30/2025 6:25 PM, Lucas De Marchi wrote:
> On Tue, Oct 28, 2025 at 06:58:31PM +0100, 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>
>> ---
>> v2: update version (Rodrigo)
>> ---
>> .../ABI/testing/sysfs-driver-intel-xe-sriov   | 160 ++++++++++++++++++

...

>> +            Actual quantum value might be aligned per HW/FW requirements.
> 
> Is the aligned value returned on read so user can know the actual value?

yes, while GuC does not tell us about any specific low level alignment,
the PF driver clamps requested value based on the GuC ABI prior to sending
this new EQ settings to the GuC, see [1]

[1] https://elixir.bootlin.com/linux/v6.18-rc3/source/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c#L197

and you may also try it:

$ echo 150000 | /sys/bus/pci/drivers/xe/0000:00:02.0/sriov_admin/vf1/profile/exec_quantum_ms

[ ] xe 0000:00:02.0: [drm] PF: Tile0: GT0: VF1 provisioned with 100000ms execution quantum
[ ] xe 0000:00:02.0: [drm] PF: Tile0: GT1: VF1 provisioned with 100000ms execution quantum

$ cat /sys/bus/pci/drivers/xe/0000:00:02.0/sriov_admin/vf1/profile/exec_quantum_ms
100000

> 
> Does this need to be expanded to mention what is a GT execution quantum?
> I don't think we have it documented elsewhere.

we have small kernel-doc for the EQ KLV [2], but it looks it could be
a good candidate for a section in the xe_sriov.rst ;)

[2] https://elixir.bootlin.com/linux/v6.18-rc3/source/drivers/gpu/drm/xe/abi/guc_klvs_abi.h#L257

> How does a 0 in one of
> the functions interact with the others not being 0?

that's definitely a not recommended configuration, but still may work

please note that currently there is no synchronization between GuCs,
so engines on those GTs are utilized for the VF WLs independently

btw, there is one problematic configuration when EQ/PT is infinity/infinity
together with VF priority set to "normal" - I'm wondering if we should
somehow try to reject such setting over sysfs ...

> 
> In the scenario below, I was expecting the functions to get 1/3, 1/3, 1/6, and 1/6
> of the GPU, but I'm not entirely sure:
> 
>     cat sriov_admin/*/profile/exec_quantum_ms
>     100
>     100
>     50
>     50

with VFs priority set to "normal" this should work

but if VFs priority is still at default "low" then if other VFs are
idle, the one VF with active WL will get 100% GPU (it will be just
sliced at its EQ)


  reply	other threads:[~2025-10-31 12:35 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-28 17:58 [PATCH v2 00/17] PF: Add sriov_admin sysfs tree Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 01/17] drm/xe/pf: Prepare sysfs for SR-IOV admin attributes Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 02/17] drm/xe/pf: Take RPM during calls to SR-IOV attr.store() Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 03/17] drm/xe/pf: Add _locked variants of the VF EQ config functions Michal Wajdeczko
2025-10-29  8:47   ` Piotr Piórkowski
2025-10-29  9:00     ` Piotr Piórkowski
2025-10-30 19:47     ` Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 04/17] drm/xe/pf: Add _locked variants of the VF PT " Michal Wajdeczko
2025-10-29 11:00   ` Piotr Piórkowski
2025-10-29 20:27   ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 05/17] drm/xe/pf: Allow change PF and VFs EQ/PT using sysfs Michal Wajdeczko
2025-10-29 11:17   ` Piotr Piórkowski
2025-10-29 20:26   ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 06/17] drm/xe/pf: Relax report helper to accept PF in bulk configs Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 07/17] drm/xe/pf: Fix signature of internal config helpers Michal Wajdeczko
2025-10-29  8:02   ` Piotr Piórkowski
2025-10-28 17:58 ` [PATCH v2 08/17] drm/xe/pf: Add functions to bulk configure EQ/PT on GT Michal Wajdeczko
2025-10-29 13:59   ` Piotr Piórkowski
2025-10-29 20:32   ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 09/17] drm/xe/pf: Add functions to bulk provision EQ/PT Michal Wajdeczko
2025-10-29 20:33   ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 10/17] drm/xe/pf: Allow bulk change all VFs EQ/PT using sysfs Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 11/17] drm/xe/pf: Add functions to provision scheduling priority Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 12/17] drm/xe/pf: Allow bulk change all VFs priority using sysfs Michal Wajdeczko
2025-10-30 12:43   ` Lucas De Marchi
2025-10-30 13:47     ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 13/17] drm/xe/pf: Allow change PF scheduling " Michal Wajdeczko
2025-10-30 13:35   ` Lucas De Marchi
2025-10-30 13:49     ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 14/17] drm/xe/pf: Promote xe_pci_sriov_get_vf_pdev Michal Wajdeczko
2025-10-28 17:58 ` [PATCH v2 15/17] drm/xe/pf: Add sysfs device symlinks to enabled VFs Michal Wajdeczko
2025-10-30 13:40   ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 16/17] drm/xe/pf: Allow to stop and reset VF using sysfs Michal Wajdeczko
2025-10-30  8:45   ` Piotr Piórkowski
2025-10-30 13:43   ` Lucas De Marchi
2025-10-30 13:50     ` Michal Wajdeczko
2025-10-30 14:14       ` Lucas De Marchi
2025-10-28 17:58 ` [PATCH v2 17/17] drm/xe/pf: Add documentation for sriov_admin attributes Michal Wajdeczko
2025-10-30 17:25   ` Lucas De Marchi
2025-10-31 12:35     ` Michal Wajdeczko [this message]
2025-10-28 20:04 ` ✗ CI.checkpatch: warning for PF: Add sriov_admin sysfs tree (rev2) Patchwork
2025-10-28 20:05 ` ✓ CI.KUnit: success " Patchwork
2025-10-28 20:43 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-29  7:15 ` ✗ Xe.CI.Full: failure " Patchwork
2025-10-29 10:11   ` Michal Wajdeczko

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=448e82a4-49d5-4200-a474-d61b56f81ccb@intel.com \
    --to=michal.wajdeczko@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=rodrigo.vivi@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