linux-stable/drivers/pci/controller/dwc
Manivannan Sadhasivam 11bce06b21 PCI: qcom: Do not advertise hotplug capability for IPs v2.3.3 and v2.9.0
SoCs making use of Qcom PCIe controller IPs v2.3.3 and v2.9.0 do not
support hotplug functionality. But the hotplug capability bit is set by
default in the hardware. This causes the kernel PCI core to register
hotplug service for the controller and send hotplug commands to it. But
those commands will timeout generating messages as below during boot
and suspend/resume.

[    5.782159] pcieport 0001:00:00.0: pciehp: Timeout on hotplug command 0x03c0 (issued 2020 msec ago)
[    5.810161] pcieport 0001:00:00.0: pciehp: Timeout on hotplug command 0x03c0 (issued 2048 msec ago)
[    7.838162] pcieport 0001:00:00.0: pciehp: Timeout on hotplug command 0x07c0 (issued 2020 msec ago)
[    7.870159] pcieport 0001:00:00.0: pciehp: Timeout on hotplug command 0x07c0 (issued 2052 msec ago)

This not only spams the console output but also induces a delay of a
couple of seconds. To fix this issue, let's not set the HPC bit in
PCI_EXP_SLTCAP register as a part of the post init sequence to not
advertise the hotplug capability for the controller.

Link: https://lore.kernel.org/r/20230619150408.8468-6-manivannan.sadhasivam@linaro.org
Tested-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-06-20 12:12:44 +02:00
..
Kconfig PCI: dwc: Sort Kconfig entries by vendor 2023-04-20 16:18:05 -05:00
Makefile
pci-dra7xx.c PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ 2023-02-14 07:26:45 +09:00
pci-exynos.c
pci-imx6.c PCI: imx6: Install the fault handler only on compatible match 2023-03-24 16:07:55 +01:00
pci-keystone.c
pci-layerscape-ep.c PCI: layerscape: Add EP mode support for ls1028a 2023-03-17 17:36:37 +01:00
pci-layerscape.c
pci-meson.c
pcie-al.c
pcie-armada8k.c
pcie-artpec6.c
pcie-bt1.c PCI: bt1: Set 64-bit DMA mask 2023-02-22 13:46:14 -06:00
pcie-designware-ep.c PCI: dwc: Add Root Port and Endpoint controller eDMA engine support 2023-02-22 13:46:14 -06:00
pcie-designware-host.c PCI: dwc: Add Root Port and Endpoint controller eDMA engine support 2023-02-22 13:46:14 -06:00
pcie-designware-plat.c
pcie-designware.c PCI: dwc: Fix PORT_LINK_CONTROL update when CDM check enabled 2023-03-21 13:06:24 -05:00
pcie-designware.h PCI: dwc: Add Root Port and Endpoint controller eDMA engine support 2023-02-22 13:46:14 -06:00
pcie-dw-rockchip.c
pcie-fu740.c
pcie-hisi.c
pcie-histb.c PCI: Remove MODULE_LICENSE so boolean drivers don't look like modules 2023-02-17 08:47:58 -06:00
pcie-intel-gw.c
pcie-keembay.c
pcie-kirin.c
pcie-qcom-ep.c
pcie-qcom.c PCI: qcom: Do not advertise hotplug capability for IPs v2.3.3 and v2.9.0 2023-06-20 12:12:44 +02:00
pcie-spear13xx.c
pcie-tegra194-acpi.c
pcie-tegra194.c PCI: tegra194: Move dw_pcie_ep_linkup() to threaded IRQ handler 2023-02-14 07:26:56 +09:00
pcie-uniphier-ep.c
pcie-uniphier.c
pcie-visconti.c