From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "Piotr Piórkowski" <piotr.piorkowski@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
Matt Atwood <matthew.s.atwood@intel.com>,
Satyanarayana K V P <satyanarayana.k.v.p@intel.com>,
Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>,
Varun Gupta <varun.gupta@intel.com>
Subject: Re: [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF
Date: Thu, 3 Dec 2026 15:30:03 -0500 [thread overview]
Message-ID: <axHRS-TAUcZKIyTv@intel.com> (raw)
In-Reply-To: <20261203200646.7rpwrjyoq62ej4uu@intel.com>
On Thu, Dec 03, 2026 at 09:06:46PM +0100, Piotr Piórkowski wrote:
> Piórkowski, Piotr <piotr.piorkowski@intel.com> wrote on czw [2026-gru-03 19:14:04 +0100]:
> > From: Piotr Piórkowski <piotr.piorkowski@intel.com>
> >
> > Multi-queue can be disabled via configfs. On an SR-IOV PF this also
> > disables it in the GuC, which is shared with the VFs. Each VF has its
> > own configfs setting and may still expect multi-queue to be available.
> > The PF also has to prepare the VF resources needed by multi-queue, like
> > the GGTT layout required by Wa_14028597154, and it skips that when
> > multi-queue is disabled on the PF.
> >
> > Fail the probe if multi-queue is disabled on a PF that supports it and
> > tell the user to disable SR-IOV (sriov/max_vfs=0) first. Disabling
> > multi-queue on native and on a VF works as before.
>
> This patch, as it is, is garbage - but it seems there's a way for VF to realize
> that MQ is disabled - I'll implement it in correct way
Sounds good. Just make sure the VF knows MQ is off before
xe_ggtt_init_early(), since 5/5 checks it there.
And if the VF can't apply the WA (like on an older PF), let it just
turn off its own MQ instead of failing the probe.
>
> Thanks
> Piotr
> >
> > Cc: Matt Atwood <matthew.s.atwood@intel.com>
> > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> > Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> > Cc: Varun Gupta <varun.gupta@intel.com>
> > Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
> > ---
> > drivers/gpu/drm/xe/xe_configfs.c | 6 ++++++
> > drivers/gpu/drm/xe/xe_pci.c | 6 ++++++
> > 2 files changed, 12 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_configfs.c b/drivers/gpu/drm/xe/xe_configfs.c
> > index 3a05e1cd9dda..9ad07ee4f58e 100644
> > --- a/drivers/gpu/drm/xe/xe_configfs.c
> > +++ b/drivers/gpu/drm/xe/xe_configfs.c
> > @@ -139,6 +139,12 @@
> > *
> > * # echo 0 > /sys/kernel/config/xe/0000:03:00.0/enable_multi_queue
> > *
> > + * Multi-queue can't be disabled on an SR-IOV PF, because the GuC is shared with
> > + * the VFs and each VF decides on its own whether it uses multi-queue. Setting 0
> > + * on a PF makes the probe fail. To disable multi-queue on such a device,
> > + * disable SR-IOV first, e.g. with ``sriov/max_vfs`` set to 0, so the device
> > + * runs as native.
> > + *
> > * This attribute can only be set before binding to the device.
> > *
> > * PSMI
> > diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> > index 0c6bc82d917b..1a457b3f8d25 100644
> > --- a/drivers/gpu/drm/xe/xe_pci.c
> > +++ b/drivers/gpu/drm/xe/xe_pci.c
> > @@ -931,6 +931,12 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile,
> > !(GRAPHICS_VERx100(xe) == 3510 && xe->info.step.graphics < STEP_B0);
> > gt->info.multi_queue_engine_class_mask = graphics_desc->multi_queue_engine_class_mask;
> > if (!xe_configfs_get_enable_multi_queue(to_pci_dev(xe->drm.dev))) {
> > + /* GuC is shared with VFs and PF must prepare their multi-queue resources */
> > + if (IS_SRIOV_PF(xe) && gt->info.multi_queue_engine_class_mask) {
> > + xe_gt_err(gt, "Can't disable multi-queue in SR-IOV PF mode, disable SR-IOV first (sriov/max_vfs=0)!\n");
> > + return ERR_PTR(-ENODEV);
> > + }
> > +
> > xe_gt_info(gt, "Multi-queue disabled via configfs\n");
> > gt->info.multi_queue_engine_class_mask = 0;
> > }
> > --
> > 2.34.1
> >
>
> --
next prev parent reply other threads:[~2026-12-03 20:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
2026-12-03 18:14 ` [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF Piórkowski, Piotr
2026-12-03 20:06 ` Piotr Piórkowski
2026-12-03 20:30 ` Rodrigo Vivi [this message]
2026-12-03 18:14 ` [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address Piórkowski, Piotr
2026-12-03 20:06 ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment " Piórkowski, Piotr
2026-12-03 20:07 ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF Piórkowski, Piotr
2026-12-03 20:30 ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
2026-12-03 20:31 ` Rodrigo Vivi
2026-12-03 18:28 ` ✓ CI.KUnit: success for Apply Wa_14028597154 to SR-IOV VF (rev2) Patchwork
2026-12-03 19:04 ` ✓ Xe.CI.BAT: " 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=axHRS-TAUcZKIyTv@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.s.atwood@intel.com \
--cc=piotr.piorkowski@intel.com \
--cc=satyanarayana.k.v.p@intel.com \
--cc=tilak.tirumalesh.tangudu@intel.com \
--cc=varun.gupta@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