public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PCI: Allow disabling port services on broken root ports
@ 2026-03-31 17:56 Han Gao
  2026-03-31 17:56 ` [PATCH 1/2] PCI: Add per-device flag to disable native PCIe port services Han Gao
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Han Gao @ 2026-03-31 17:56 UTC (permalink / raw)
  To: Bjorn Helgaas, Uwe Kleine-König, Jonathan Cameron,
	Lukas Wunner, Ilpo Järvinen, Kees Cook, Han Gao, Chen Wang,
	Manivannan Sadhasivam
  Cc: linux-pci, sophgo, linux-kernel, linux-riscv, Han Gao,
	Icenowy Zheng, Inochi Amaoto, Vivian Wang, Yao Zi

Some PCIe root ports break MSI delivery to downstream devices when
native port services (AER, PME, bwctrl, etc.) are active. The existing
pcie_ports=compat kernel parameter works around this globally, but
affects all ports on the system.

This series adds a per-device mechanism to skip port service probing:
  1. Introduce PCI_DEV_FLAGS_NO_PORT_SERVICES flag and wire it into
     the PCIe port driver
  2. Apply it via quirk to Sophgo SG2042 root ports [1f1c:2042], which
     fail to deliver MSI interrupts when port services are enabled

SG2042's PCIe root ports only support MSI, not MSI-X. The MSI
controller provides only 32 vectors shared across all devices behind
each root port. When native port services claim vectors from this
limited pool, downstream devices are starved of interrupts, resulting
in zero interrupts delivered and driver timeouts (e.g. amdgpu fence
fallback timer expired on all rings).

Han Gao (2):
  PCI: Add per-device flag to disable native PCIe port services
  PCI: Add quirk to disable PCIe port services on Sophgo SG2042

 drivers/pci/pcie/portdrv.c |  3 +++
 drivers/pci/quirks.c       | 12 ++++++++++++
 include/linux/pci.h        |  2 ++
 include/linux/pci_ids.h    |  2 ++
 4 files changed, 19 insertions(+)

-- 
2.47.3


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 17:56 [PATCH 0/2] PCI: Allow disabling port services on broken root ports Han Gao
2026-03-31 17:56 ` [PATCH 1/2] PCI: Add per-device flag to disable native PCIe port services Han Gao
2026-03-31 17:56 ` [PATCH 2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042 Han Gao
2026-03-31 18:58 ` [PATCH 0/2] PCI: Allow disabling port services on broken root ports Lukas Wunner
2026-03-31 19:07   ` Han Gao

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