All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] drm/xe/pf: Support PCIe FLR when VFs are enabled
@ 2026-11-30 15:03 Lukasz Laguna
  2026-11-30 15:03 ` [PATCH 1/5] drm/xe/pf: Add helper to rewrite VF LMTT page table tree Lukasz Laguna
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Lukasz Laguna @ 2026-11-30 15:03 UTC (permalink / raw)
  To: intel-xe
  Cc: piotr.piorkowski, satyanarayana.k.v.p, tomasz.lis, raag.jadav,
	lukasz.laguna

Enable PCIe FLR handling on the PF when VFs are enabled.

After PF FLR, the VF-related state set up by the PF is lost, including
VF GGTT ownership and LMTT. This also applies to VFs that are
provisioned but not enabled.

The PF recovers this state from the existing VF provisioning during
device re-initialization, before the GTs resume. The VF configurations
are then pushed to GuC by the PF restart workers, and the FLR completes
once they finish. A failure to recover VF state only affects the VFs
and doesn't fail the PF FLR.

There are two limitations on the PCI core side:

- .reset_prepare() and .reset_done() are currently not automatically
  triggered on VFs when the PF is reset, so after PF FLR each VF needs
  a VF FLR to recover.

- On PF FLR, the PCI core doesn't preserve the config space of enabled
  VFs. This is handled on the xe side by "drm/xe/pf: Preserve VF PCI
  config space across PF FLR".

Both should be handled by the PCI core and are addressed in series [1].
As it's a broader PCI core change that may take some time to land, keep
the VF config space preservation on the xe side and drop it once [1]
is merged. This is also how other PCI drivers (e.g. i40e) currently
handle it.

[1] https://lore.kernel.org/linux-pci/20261027160446.858300-1-lukasz.laguna@intel.com/

Lukasz Laguna (5):
  drm/xe/pf: Add helper to rewrite VF LMTT page table tree
  drm/xe/pf: Extract VF LMTT pages population into helper
  drm/xe/pf: Recover VF state after PF FLR
  drm/xe/pf: Preserve VF PCI config space across PF FLR
  drm/xe/pf: Support PCIe FLR when VFs are enabled

 drivers/gpu/drm/xe/xe_device.c             |   8 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 128 ++++++++++++++++++---
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h |   1 +
 drivers/gpu/drm/xe/xe_lmtt.c               |  60 ++++++++++
 drivers/gpu/drm/xe/xe_lmtt.h               |   1 +
 drivers/gpu/drm/xe/xe_pci_error.c          |   4 +-
 drivers/gpu/drm/xe/xe_pci_sriov.c          |  38 ++++++
 drivers/gpu/drm/xe/xe_pci_sriov.h          |  10 ++
 drivers/gpu/drm/xe/xe_sriov.c              |  17 +++
 drivers/gpu/drm/xe/xe_sriov.h              |   1 +
 drivers/gpu/drm/xe/xe_sriov_pf.c           |  52 +++++++--
 drivers/gpu/drm/xe/xe_sriov_pf.h           |   4 +
 12 files changed, 298 insertions(+), 26 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-12-02 10:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 15:03 [PATCH 0/5] drm/xe/pf: Support PCIe FLR when VFs are enabled Lukasz Laguna
2026-11-30 15:03 ` [PATCH 1/5] drm/xe/pf: Add helper to rewrite VF LMTT page table tree Lukasz Laguna
2026-12-02  9:37   ` Piotr Piórkowski
2026-11-30 15:03 ` [PATCH 2/5] drm/xe/pf: Extract VF LMTT pages population into helper Lukasz Laguna
2026-12-02  9:40   ` Piotr Piórkowski
2026-11-30 15:03 ` [PATCH 3/5] drm/xe/pf: Recover VF state after PF FLR Lukasz Laguna
2026-12-02  9:59   ` Piotr Piórkowski
2026-11-30 15:03 ` [PATCH 4/5] drm/xe/pf: Preserve VF PCI config space across " Lukasz Laguna
2026-12-02 10:38   ` Piotr Piórkowski
2026-11-30 15:03 ` [PATCH 5/5] drm/xe/pf: Support PCIe FLR when VFs are enabled Lukasz Laguna
2026-12-02 10:44   ` Piotr Piórkowski
2026-11-30 17:23 ` ✓ CI.KUnit: success for " Patchwork
2026-11-30 18:13 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-01  2:30 ` ✓ Xe.CI.FULL: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.