Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms
@ 2026-11-30 12:36 Mrinmay Sarkar
  2026-11-30 12:36 ` [PATCH 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mrinmay Sarkar @ 2026-11-30 12:36 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Helgaas, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Krzysztof Kozlowski, Conor Dooley,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-pci, devicetree, Mrinmay Sarkar,
	Rama Krishna, Nitesh Gupta, Ayiluri Naga Rashmi,
	Krishna Chaitanya Chundru, Shazad Hussain

This series adds device-tree support for firmware-managed PCIe
host controllers on Qualcomm Nord systems.

The firmware-managed PCIe implementation is compatible with the
SA8255P PCIe controller and is accessed through an ECAM region.
Update the PCIe binding to describe the Nord-specific compatible and
the optional resources required by the firmware-managed configuration.

With the binding in place, enable the PCIe controllers for Nord
GearVM systems and expand the SoC address translation window to cover
PCIe host bridge resources.

Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>
---
Mrinmay Sarkar (2):
      dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe
      arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant

 .../devicetree/bindings/pci/qcom,pcie-sa8255p.yaml | 15 +++++--
 arch/arm64/boot/dts/qcom/nord-gearvm.dtsi          | 48 ++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord-ride.dts             | 16 ++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi                 |  4 +-
 4 files changed, 77 insertions(+), 6 deletions(-)
---
base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d
change-id: 20261130-nord-pcie-fw-dt-d8a18e684b42

Best regards,
--  
Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>


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

* [PATCH 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe
  2026-11-30 12:36 [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
@ 2026-11-30 12:36 ` Mrinmay Sarkar
  2026-11-30 12:36 ` [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
  2026-11-30 12:53 ` [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms sashiko-bot
  2 siblings, 0 replies; 5+ messages in thread
From: Mrinmay Sarkar @ 2026-11-30 12:36 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Helgaas, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Krzysztof Kozlowski, Conor Dooley,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-pci, devicetree, Mrinmay Sarkar,
	Rama Krishna, Nitesh Gupta, Ayiluri Naga Rashmi,
	Krishna Chaitanya Chundru, Shazad Hussain

Document the PCIe root complex on the Qualcomm Nord SoC when the
controller is managed by firmware and accessed through an ECAM region.

Nord's firmware-managed PCIe controller is compatible with the SA8255P
controller, so add "qcom,nord-pcie-fw" with "qcom,pcie-sa8255p" as a
fallback compatible and reuse the existing binding.

Nord exposes an I/O window in addition to the non-prefetchable and
prefetchable memory windows, so allow up to three "ranges" entries.
The controller also provides a "global" interrupt, so allow it as an
optional ninth interrupt after the MSI interrupts.

Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>
---
 .../devicetree/bindings/pci/qcom,pcie-sa8255p.yaml        | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml
index 1f2d098b8638..349099e300da 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml
@@ -16,7 +16,12 @@ description:
 
 properties:
   compatible:
-    const: qcom,pcie-sa8255p
+    oneOf:
+      - const: qcom,pcie-sa8255p
+      - items:
+          - enum:
+              - qcom,nord-pcie-fw
+          - const: qcom,pcie-sa8255p
 
   reg:
     description:
@@ -30,15 +35,16 @@ properties:
     description:
       As described in IEEE Std 1275-1994, but must provide at least a
       definition of non-prefetchable memory. One or both of prefetchable Memory
-      may also be provided.
+      and IO Space may also be provided.
     minItems: 1
-    maxItems: 2
+    maxItems: 3
 
   interrupts:
     minItems: 8
-    maxItems: 8
+    maxItems: 9
 
   interrupt-names:
+    minItems: 8
     items:
       - const: msi0
       - const: msi1
@@ -48,6 +54,7 @@ properties:
       - const: msi5
       - const: msi6
       - const: msi7
+      - const: global
 
   power-domains:
     maxItems: 1

-- 
2.43.0


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

* [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant
  2026-11-30 12:36 [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
  2026-11-30 12:36 ` [PATCH 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
@ 2026-11-30 12:36 ` Mrinmay Sarkar
  2026-11-30 12:53   ` sashiko-bot
  2026-11-30 12:53 ` [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms sashiko-bot
  2 siblings, 1 reply; 5+ messages in thread
From: Mrinmay Sarkar @ 2026-11-30 12:36 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Helgaas, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Krzysztof Kozlowski, Conor Dooley,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-pci, devicetree, Mrinmay Sarkar,
	Rama Krishna, Nitesh Gupta, Ayiluri Naga Rashmi,
	Krishna Chaitanya Chundru, Shazad Hussain

Add GearVM-specific overrides for the Nord PCIe controllers and enable
the required SCMI power-domain providers to support PCIe controller
enablement on GearVM platforms.

Expand the soc@0 identity translation range to accommodate PCIe host
bridge resources that reside outside the currently covered address
space.

Enable PCIe0 and PCIe1 on the Nord RIDE platform.

Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>
---
Note: The GearVM PCIe nodes override the nord.dtsi nodes in place. The
node names keep the unit address of the PARF register base from
nord.dtsi, while "reg" is replaced with the firmware-managed ECAM base,
so they no longer match. This triggers W=1 dtc simple_bus_reg warnings,
which are known and acknowledged.
---
 arch/arm64/boot/dts/qcom/nord-gearvm.dtsi | 48 +++++++++++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord-ride.dts    | 16 +++++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi        |  4 +--
 3 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
index 5514f9a6f49f..b71f48e09d51 100644
--- a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
@@ -2098,6 +2098,54 @@ &i2c20 {
 			     "perf";
 };
 
+&pcie0 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x50 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x40000000 0x0 0x40000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x40100000 0x0 0x40100000 0x0 0x7000000>,
+		 <0x43000000 0x50 0x10100000 0x50 0x10100000 0x8 0x00000000>;
+	power-domains = <&scmi5_pd 0>;
+};
+
+&pcie1 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x48 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x50000000 0x0 0x50000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x50100000 0x0 0x50100000 0x0 0x7000000>,
+		 <0x43000000 0x48 0x10100000 0x48 0x10100000 0x4 0x00000000>;
+	power-domains = <&scmi6_pd 0>;
+};
+
+&pcie2 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x40 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x60000000 0x0 0x60000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x60100000 0x0 0x60100000 0x0 0x7000000>,
+		 <0x43000000 0x40 0x10100000 0x40 0x10100000 0x4 0x00000000>;
+	power-domains = <&scmi32_pd 0>;
+};
+
+&pcie3 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x4 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x70000000 0x0 0x70000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x70100000 0x0 0x70100000 0x0 0x7000000>,
+		 <0x43000000 0x4 0x10100000 0x4 0x10100000 0x0 0x80000000>;
+	power-domains = <&scmi33_pd 0>;
+};
+
 &qupv3_0 {
 	compatible = "qcom,sa8797p-geni-se-qup",
 		     "qcom,sa8255p-geni-se-qup";
diff --git a/arch/arm64/boot/dts/qcom/nord-ride.dts b/arch/arm64/boot/dts/qcom/nord-ride.dts
index 1af4117d24d7..3892830cc58a 100644
--- a/arch/arm64/boot/dts/qcom/nord-ride.dts
+++ b/arch/arm64/boot/dts/qcom/nord-ride.dts
@@ -45,6 +45,14 @@ &scmi3 {
 	status = "okay";
 };
 
+&scmi5 {
+	status = "okay";
+};
+
+&scmi6 {
+	status = "okay";
+};
+
 &scmi9 {
 	status = "okay";
 };
@@ -241,6 +249,14 @@ trip1 {
 	};
 };
 
+&pcie0 {
+	status = "okay";
+};
+
+&pcie1 {
+	status = "okay";
+};
+
 &uart4 {
 	status = "okay";
 };
diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
index 56778dd444e4..1841cc651c63 100644
--- a/arch/arm64/boot/dts/qcom/nord.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord.dtsi
@@ -1034,8 +1034,8 @@ soc: soc@0 {
 		compatible = "simple-bus";
 		#address-cells = <2>;
 		#size-cells = <2>;
-		dma-ranges = <0 0 0 0 0x10 0>;
-		ranges = <0 0 0 0 0x10 0>;
+		dma-ranges = <0 0 0 0 0x100 0>;
+		ranges = <0 0 0 0 0x100 0>;
 
 		gpi_dma2: dma-controller@800000 {
 			compatible = "qcom,nord-gpi-dma", "qcom,sm6350-gpi-dma";

-- 
2.43.0


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

* Re: [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant
  2026-11-30 12:36 ` [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
@ 2026-11-30 12:53   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-11-30 12:53 UTC (permalink / raw)
  To: Mrinmay Sarkar; +Cc: linux-pci, devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: qcom: nord-gearvm: invalid PCI I/O bus address in
  ranges
--

commit ad0f5ff027365730c5e407ace2981b409b13d1de
Author: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>

arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant

This commit adds GearVM-specific overrides for the Nord PCIe controllers,
expands the soc@0 address translation range, and enables PCIe0 and PCIe1
along with their SCMI power domains on the Nord RIDE platform.

> diff --git a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
> index 5514f9a6f49f5..b71f48e09d517 100644
> --- a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
> +++ b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
> @@ -2098,6 +2098,54 @@ &i2c20 {
>  			     "perf";
>  };
>  
> +&pcie0 {
> +	/delete-property/ num-lanes;
> +	/delete-property/ reg-names;
> +
> +	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
> +	reg = <0x50 0x00000000 0x0 0x10000000>;
> +	ranges = <0x01000000 0x0 0x40000000 0x0 0x40000000 0x0 0x100000>,
> +		 <0x02000000 0x0 0x40100000 0x0 0x40100000 0x0 0x7000000>,
> +		 <0x43000000 0x50 0x10100000 0x50 0x10100000 0x8 0x00000000>;
> +	power-domains = <&scmi5_pd 0>;
> +};
> +
> +&pcie1 {
> +	/delete-property/ num-lanes;
> +	/delete-property/ reg-names;
> +
> +	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
> +	reg = <0x48 0x00000000 0x0 0x10000000>;
> +	ranges = <0x01000000 0x0 0x50000000 0x0 0x50000000 0x0 0x100000>,
> +		 <0x02000000 0x0 0x50100000 0x0 0x50100000 0x0 0x7000000>,
> +		 <0x43000000 0x48 0x10100000 0x48 0x10100000 0x4 0x00000000>;
> +	power-domains = <&scmi6_pd 0>;
> +};
> +
> +&pcie2 {
> +	/delete-property/ num-lanes;
> +	/delete-property/ reg-names;
> +
> +	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
> +	reg = <0x40 0x00000000 0x0 0x10000000>;
> +	ranges = <0x01000000 0x0 0x60000000 0x0 0x60000000 0x0 0x100000>,
> +		 <0x02000000 0x0 0x60100000 0x0 0x60100000 0x0 0x7000000>,
> +		 <0x43000000 0x40 0x10100000 0x40 0x10100000 0x4 0x00000000>;
> +	power-domains = <&scmi32_pd 0>;
> +};
> +
> +&pcie3 {
> +	/delete-property/ num-lanes;
> +	/delete-property/ reg-names;
> +
> +	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
> +	reg = <0x4 0x00000000 0x0 0x10000000>;
> +	ranges = <0x01000000 0x0 0x70000000 0x0 0x70000000 0x0 0x100000>,
> +		 <0x02000000 0x0 0x70100000 0x0 0x70100000 0x0 0x7000000>,
> +		 <0x43000000 0x4 0x10100000 0x4 0x10100000 0x0 0x80000000>;
> +	power-domains = <&scmi33_pd 0>;
> +};

[Severity: Medium]
Should the PCI bus address in the I/O space (0x01000000) ranges entries
for pcie0 through pcie3 be 0x0 0x00000000 (as in nord.dtsi) instead of
matching the CPU physical address (0x40000000..0x70000000)?

When devm_of_pci_get_host_bridge_resources() parses an IORESOURCE_IO
range, of_pci_range_to_resource() converts range.cpu_addr into a logical
PIO port resource and pci_add_resource_offset() records the window offset
as res->start - range.pci_addr.  Setting the PCI child address to
0x40000000..0x70000000 causes pcibios_resource_to_bus() to translate
logical PIO resources to PCI bus I/O addresses starting at
0x40000000..0x70000000 rather than 0x0..0xfffff, breaking I/O port BAR
and bridge window assignment.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-nord-pcie-fw-dt-v1-0-117d03dedb1c@oss.qualcomm.com?part=2

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

* Re: [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms
  2026-11-30 12:36 [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
  2026-11-30 12:36 ` [PATCH 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
  2026-11-30 12:36 ` [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
@ 2026-11-30 12:53 ` sashiko-bot
  2 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-11-30 12:53 UTC (permalink / raw)
  To: Mrinmay Sarkar; +Cc: linux-pci

Sashiko has finished reviewing this 2-patch series:

- Patch 1: no issues found.
- Patch 2 ("arm64: dts: qcom: nord: Enable PCIe controllers for..."): 1
  potential issue (1 Medium)

A detailed review has been sent as a separate reply to patch 2.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-nord-pcie-fw-dt-v1-0-117d03dedb1c@oss.qualcomm.com

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

end of thread, other threads:[~2026-11-30 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 12:36 [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
2026-11-30 12:36 ` [PATCH 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
2026-11-30 12:36 ` [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
2026-11-30 12:53   ` sashiko-bot
2026-11-30 12:53 ` [PATCH 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms sashiko-bot

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