Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF
@ 2026-12-03 18:14 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
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe; +Cc: Piotr Piórkowski

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

Wa_14028597154 requires the low-4MB GGTT PTE matching each 4MB chunk of
GGTT (addr >> 10), plus the following page, to be backed by a dummy page
of the function owning that chunk. The WA is currently applied only on
native, this series extends it to SR-IOV PF and VF.

Patch 1 makes the probe fail if multi-queue is disabled via configfs on
an SR-IOV PF. The GuC is shared with the VFs and the PF has to prepare
the VF resources needed by multi-queue, so multi-queue can only be
disabled after SR-IOV is disabled (sriov/max_vfs=0).

Patches 2-3 make the shareable GGTT allocations align the GGTT address
instead of the drm_mm offset, which differ by ggtt->start (the WOPCM
size), and add a KUnit test for it. This is needed to provision VF GGTT
ranges with an alignment that ggtt->start does not satisfy.

Patch 4 is the PF side. When the WA is active, VF GGTT ranges are
provisioned 4MB aligned, in whole 4MB chunks and of at least 8MB. The
matching low-4MB PTEs are assigned to the VF together with its range
and returned to the PF dummy page on release. The 4MB chunk below a VF
range is kept free of PF allocations.

Patch 5 is the VF side. The VF maps its own dummy page into the low-4MB
PTEs matching its GGTT range at probe, on resume and after migration,
verifies that the PTEs were written and fails the probe if they were not
or if the provisioned range can't be used with the WA.

v1 -> v2:
 - Fix build without CONFIG_PCI_IOV in the PF patch (CI)

Piotr Piórkowski (3):
  drm/xe: Don't allow disabling multi-queue on PF
  drm/xe/ggtt: Align shareable GGTT nodes by GGTT address
  drm/xe/tests: Test shareable GGTT alignment by GGTT address

Varun Gupta (2):
  drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF
  drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF

 drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c   |  24 ++
 drivers/gpu/drm/xe/xe_configfs.c           |   6 +
 drivers/gpu/drm/xe/xe_ggtt.c               | 370 ++++++++++++++++++---
 drivers/gpu/drm/xe/xe_ggtt.h               |   3 +-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  19 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c        |  12 +-
 drivers/gpu/drm/xe/xe_pci.c                |   6 +
 7 files changed, 394 insertions(+), 46 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-12-03 20:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox