Skip to content

PCI: Add pci=nobwctrl to disable the PCIe bandwidth controller

Guixin Liu linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI/bwctrl: Add pci_bwctrl_available()drivers/pci/pci.h drivers/pci/pcie/bwctrl.c drivers/pci/pcie/portdrv.c+18 -10 replies
2/2PCI: Add pci=nobwctrl parameter to disable the PCIe bandwidth controllerDocumentation/admin-guide/kernel-parameters.txt drivers/pci/pci.c+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] PCI: Add pci=nobwctrl to disable the PCIe bandwidth controller

Enabling the PCIe bandwidth controller sets the Link Bandwidth Management Interrupt Enable (LBMIE) and Link Autonomous Bandwidth Interrupt Enable (LABIE) bits. On some (typically old) platforms this has been observed to cause boot hangs; commit 46a9f70e93ef ("PCI/bwctrl: Disable BW controller on Intel P45 using a quirk") works around one such platform with a per-device quirk.

A per-device quirk only helps once the offending device is identified and a quirk has shipped, which is awkward for a boot hang since the machine cannot be booted to report the culprit. The only existing escape hatch, pcie_ports=compat, is a blunt instrument that also disables AER, PME, hotplug and DPC.

This series adds a pci=nobwctrl boot option to disable just the bandwidth controller system-wide, giving users an immediate, rebuild-free workaround while a targeted quirk is worked out.

Patch 1 adds the pci_bwctrl_available()/pci_no_bwctrl() infrastructure (mirroring pci_aer_available()/pci_no_aer()) with no functional change. Patch 2 wires up the pci=nobwctrl parameter and documents it.

Tested on a QEMU q35 topology with PCIe ports and switches: without the parameter the bwctrl service devices are present as before; with pci=nobwctrl they all disappear while PME/AER/hotplug services stay intact and boot is clean.

Guixin Liu (2):
PCI/bwctrl: Add pci_bwctrl_available()
PCI: Add pci=nobwctrl parameter to disable the PCIe bandwidth
controller

 Documentation/admin-guide/kernel-parameters.txt |  6 ++++++
 drivers/pci/pci.c                               |  2 ++
 drivers/pci/pci.h                               |  4 ++++
 drivers/pci/pcie/bwctrl.c                       | 12 ++++++++++++
 drivers/pci/pcie/portdrv.c                      |  3 ++-
 5 files changed, 26 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.7