Skip to content

Enable PCIe1 xHCI on Qualcomm QCS6490 RB3 Gen2

Sumit Singh Dhami u-boot 1 version NAK

Status from this message: NAK, we have a driver model for a reason, use it. Please also write

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 8 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/9pci: dwc: add inbound ATU window supportdrivers/pci/pcie_dw_common.c drivers/pci/pcie_dw_common.h+82 -01 reply
2/9pci: pcie_dw_qcom: configure an inbound iATU windowdrivers/pci/pcie_dw_qcom.c+30 -61 reply
3/9pci: pcie_dw_qcom: program PARF DBI/ATU base address registersdrivers/pci/pcie_dw_qcom.c+20 -61 reply
4/9clk: qcom: sc7280: add GCC_PCIE_1_PIPE_CLK_SRC no-op gatedrivers/clk/qcom/clock-sc7280.c+5 -01 reply
5/9phy: qcom-qmp-pcie: add SM8250/Kodiak Gen3x2 PHY supportdrivers/phy/qcom/phy-qcom-qmp-pcie.c+184 -31 reply
6/9gpio: qcom_spmi: add pm7250b/pm8350c compatible stringsdrivers/gpio/qcom_spmi_gpio.c+1 -01 reply
7/9arm: mach-snapdragon: add QCS6490 PCIe1 power/reset sequencingarch/arm/mach-snapdragon/Kconfig arch/arm/mach-snapdragon/Makefile arch/arm/mach-snapdragon/qcs6490_pcie_init.c+188 -01 reply
8/9iommu: add PCI stream-ID resolution for devices without an ofnodedrivers/iommu/iommu-uclass.c drivers/iommu/qcom-hyp-smmu.c include/dm/device.h+70 -421 reply
9/9configs: qcom_defconfig: enable PCIe1 RC/PHY and qcom_board_init override for QCS6490configs/qcm6490_defconfig configs/qcom_defconfig+8 -00 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchNeil Armstrong
1/9R-b
2/9R-b
3/9R-b
4/9
5/9R-b
6/9R-b
7/9
8/9
9/9

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

Read the v1 thread

Cover letter [PATCH v1 0/9] Enable PCIe1 xHCI on Qualcomm QCS6490 RB3 Gen2

This series enables PCIe1 (RC1) on the QCS6490/Kodiak RB3 Gen2 so that the Renesas uPD720201 xHCI controller behind the on-board QPS615 PCIe switch can be used from U-Boot.

PCIe controller (patches 1-3):
- Add inbound iATU window support to the DesignWare common code and use it in pcie_dw_qcom, sized from "dma-ranges". Without an enabled inbound window the RC drops endpoint Memory Read/Write TLPs, which shows up as a Completion Timeout at the requester.
- Program the PARF DBI/ATU base address registers, as Linux does in qcom_pcie_configure_dbi_atu_base().

SoC support (patches 4-6):
- Add a no-op gate for GCC_PCIE_1_PIPE_CLK_SRC on sc7280.
- Add SM8250/Kodiak Gen3x2 QMP PCIe PHY support.
- Add the PM7250B GPIO compatible string.

Board and IOMMU (patches 7-9):
- Sequence the QPS615 switch and xHCI power/reset GPIOs on every boot from qcom_board_init(). A static gpio-hog only drives its level once and cannot re-assert across a warm reboot, since the PMIC rails stay powered.
- Resolve PCI stream IDs for devices without an ofnode via the bridge's iommu-map, and stop qcom-hyp-smmu from disabling stream classification at EL2, as firmware turns unclaimed streams into FAULT streams regardless of exception level.
- Enable the PCI, DesignWare/Qualcomm PCIe and QMP PCIe PHY options in qcom_defconfig. Also, enable qcom_board_init() override for QCS6490 / RB3 Gen 2 platform in qcm6490_defconfig.

Senthilkumar (9):
pci: dwc: add inbound ATU window support
pci: pcie_dw_qcom: configure an inbound iATU window
pci: pcie_dw_qcom: program PARF DBI/ATU base address registers
clk: qcom: sc7280: add GCC_PCIE_1_PIPE_CLK_SRC no-op gate
phy: qcom-qmp-pcie: add SM8250/Kodiak Gen3x2 PHY support
gpio: qcom_spmi: add pm7250b/pm8350c compatible strings
arm: mach-snapdragon: add QCS6490 PCIe1 power/reset sequencing
iommu: add PCI stream-ID resolution for devices without an ofnode
configs: qcom_defconfig: enable PCIe1 RC/PHY and qcom_board_init
override for QCS6490

 arch/arm/mach-snapdragon/Kconfig             |   9 +
 arch/arm/mach-snapdragon/Makefile            |   1 +
 arch/arm/mach-snapdragon/qcs6490_pcie_init.c | 178 ++++++++++++++++++
 configs/qcm6490_defconfig                    |   1 +
 configs/qcom_defconfig                       |   7 +
 drivers/clk/qcom/clock-sc7280.c              |   5 +
 drivers/gpio/qcom_spmi_gpio.c                |   1 +
 drivers/iommu/iommu-uclass.c                 |  78 +++++---
 drivers/iommu/qcom-hyp-smmu.c                |  27 +--
 drivers/pci/pcie_dw_common.c                 |  59 ++++++
 drivers/pci/pcie_dw_common.h                 |  23 +++
 drivers/pci/pcie_dw_qcom.c                   |  62 ++++--
 drivers/phy/qcom/phy-qcom-qmp-pcie.c         | 187 ++++++++++++++++++-
 include/dm/device.h                          |   7 +
 14 files changed, 588 insertions(+), 57 deletions(-)
 create mode 100644 arch/arm/mach-snapdragon/qcs6490_pcie_init.c

base-commit: 3973f3c4d24df75ca90d7c0a9f03e5e5c9b48f32

Signature · 2 lines
Best Regards
Sumit Singh Dhami