Skip to content

PCI: dwc: Advertise L1 PM Substates only if driver requests it

Bjorn Helgaas linux-arm-kernel linux-pci linux-rockchip linux-tegra 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 13 repliesIn review
  2. v14 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4PCI: dwc: Advertise L1 PM Substates only if driver requests itdrivers/pci/controller/dwc/pcie-designware-ep.c drivers/pci/controller/dwc/pcie-designware-host.c drivers/pci/controller/dwc/pcie-designware.c +3 more+35 -012 replies
2/4PCI: tegra194: Remove unnecessary L1SS disable codedrivers/pci/controller/dwc/pcie-tegra194.c+5 -400 replies
3/4PCI: dw-rockchip: Configure L1SS supportdrivers/pci/controller/dwc/pcie-dw-rockchip.c+40 -00 replies
4/4arm64: dts: rockchip: Add PCIe clkreq stuff for RK3588 EVB1arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts+5 -20 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchHans ZhangManivannan Sadhasivam
1/4
2/4
3/4
4/4R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] PCI: dwc: Advertise L1 PM Substates only if driver requests it

From: Bjorn Helgaas <[email protected]>

This is a follow-up to Niklas's patch at
https://lore.kernel.org/r/[email protected]. That patch clears the L1 PM Substate Supported bits for the dw-rockchip driver, which doesn't yet do the device configuration to support the L1 Substates.

This series does the same thing, but in the DWC core so it applies to all DWC-based drivers. Drivers that do support L1 Substates (currently tegra194 and qcom) indicate that by setting "dw_pcie.l1ss_support", and the DWC core will leave the L1 PM Substate Supported bits alone.

This also includes Shawn's patches to add the dw-rockchip support for L1 Substates.

The problem this fixes is that users are currently able to enable L1 Substates, e.g., by

- building with with CONFIG_PCIEASPM_POWER_SUPERSAVE=y
- booting with "pcie_aspm.policy=powersupersave"
- echo powersupersave > /sys/module/pcie_aspm/parameters/policy
- echo 1 > /sys/bus/pci/devices/.../link/l1_1_aspm

but this breaks devices if the platform doesn't support CLKREQ# or lacks Root Port configuration. This series avoids that problem by preventing the kernel from enabling L1.x in the first place.

Bjorn Helgaas (2):
PCI: dwc: Advertise L1 PM Substates only if driver requests it
PCI: tegra194: Remove unnecessary L1SS disable code

Shawn Lin (2):
PCI: dw-rockchip: Configure L1SS support
arm64: dts: rockchip: Add PCIe clkreq stuff for RK3588 EVB1

 .../boot/dts/rockchip/rk3588-evb1-v10.dts     |  7 ++-
 .../pci/controller/dwc/pcie-designware-ep.c   |  2 +
 .../pci/controller/dwc/pcie-designware-host.c |  2 +
 drivers/pci/controller/dwc/pcie-designware.c  | 24 ++++++++++
 drivers/pci/controller/dwc/pcie-designware.h  |  2 +
 drivers/pci/controller/dwc/pcie-dw-rockchip.c | 40 ++++++++++++++++
 drivers/pci/controller/dwc/pcie-qcom.c        |  2 +
 drivers/pci/controller/dwc/pcie-tegra194.c    | 48 ++++---------------
 8 files changed, 85 insertions(+), 42 deletions(-)
Signature · 1 line
2.43.0