* [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document 'global' interrupt
2024-11-26 10:22 [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Neil Armstrong
@ 2024-11-26 10:22 ` Neil Armstrong
2024-11-26 12:55 ` Manivannan Sadhasivam
` (2 more replies)
2024-11-26 10:22 ` [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes Neil Armstrong
` (3 subsequent siblings)
4 siblings, 3 replies; 13+ messages in thread
From: Neil Armstrong @ 2024-11-26 10:22 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-pci, devicetree, linux-kernel,
Neil Armstrong
Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
to the host CPU. This interrupt can be used by the device driver to handle
PCIe link specific events such as Link up and Link down, which give the
driver a chance to start bus enumeration on its own when link is up and
initiate link training if link goes to a bad state. The PCIe driver can
still work without this interrupt but it will provide a nice user
experience when device gets plugged and removed.
Document the interrupt as optional for SM8550 and SM8650 platforms.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml
index 24cb38673581d7391f877d3af5fadd6096c8d5be..19a614c74fa2aae94556ae3dfc24dcfcd520af11 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml
@@ -55,9 +55,10 @@ properties:
interrupts:
minItems: 8
- maxItems: 8
+ maxItems: 9
interrupt-names:
+ minItems: 8
items:
- const: msi0
- const: msi1
@@ -67,6 +68,7 @@ properties:
- const: msi5
- const: msi6
- const: msi7
+ - const: global
resets:
minItems: 1
@@ -137,9 +139,10 @@ examples:
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0", "msi1", "msi2", "msi3",
- "msi4", "msi5", "msi6", "msi7";
+ "msi4", "msi5", "msi6", "msi7", "global";
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 0x7>;
interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document 'global' interrupt
2024-11-26 10:22 ` [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document " Neil Armstrong
@ 2024-11-26 12:55 ` Manivannan Sadhasivam
2024-11-27 8:42 ` Krzysztof Kozlowski
2025-01-15 11:35 ` Krzysztof Wilczyński
2 siblings, 0 replies; 13+ messages in thread
From: Manivannan Sadhasivam @ 2024-11-26 12:55 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, linux-arm-msm, linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:49AM +0100, Neil Armstrong wrote:
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPU. This interrupt can be used by the device driver to handle
> PCIe link specific events such as Link up and Link down, which give the
> driver a chance to start bus enumeration on its own when link is up and
> initiate link training if link goes to a bad state. The PCIe driver can
> still work without this interrupt but it will provide a nice user
> experience when device gets plugged and removed.
>
> Document the interrupt as optional for SM8550 and SM8650 platforms.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> ---
> Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml
> index 24cb38673581d7391f877d3af5fadd6096c8d5be..19a614c74fa2aae94556ae3dfc24dcfcd520af11 100644
> --- a/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml
> +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml
> @@ -55,9 +55,10 @@ properties:
>
> interrupts:
> minItems: 8
> - maxItems: 8
> + maxItems: 9
>
> interrupt-names:
> + minItems: 8
> items:
> - const: msi0
> - const: msi1
> @@ -67,6 +68,7 @@ properties:
> - const: msi5
> - const: msi6
> - const: msi7
> + - const: global
>
> resets:
> minItems: 1
> @@ -137,9 +139,10 @@ examples:
> <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
> + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "msi0", "msi1", "msi2", "msi3",
> - "msi4", "msi5", "msi6", "msi7";
> + "msi4", "msi5", "msi6", "msi7", "global";
> #interrupt-cells = <1>;
> interrupt-map-mask = <0 0 0 0x7>;
> interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
>
> --
> 2.34.1
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document 'global' interrupt
2024-11-26 10:22 ` [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document " Neil Armstrong
2024-11-26 12:55 ` Manivannan Sadhasivam
@ 2024-11-27 8:42 ` Krzysztof Kozlowski
2025-01-15 11:35 ` Krzysztof Wilczyński
2 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-27 8:42 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:49AM +0100, Neil Armstrong wrote:
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPU. This interrupt can be used by the device driver to handle
> PCIe link specific events such as Link up and Link down, which give the
> driver a chance to start bus enumeration on its own when link is up and
> initiate link training if link goes to a bad state. The PCIe driver can
> still work without this interrupt but it will provide a nice user
> experience when device gets plugged and removed.
>
> Document the interrupt as optional for SM8550 and SM8650 platforms.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document 'global' interrupt
2024-11-26 10:22 ` [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document " Neil Armstrong
2024-11-26 12:55 ` Manivannan Sadhasivam
2024-11-27 8:42 ` Krzysztof Kozlowski
@ 2025-01-15 11:35 ` Krzysztof Wilczyński
2 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Wilczyński @ 2025-01-15 11:35 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Manivannan Sadhasivam,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, linux-arm-msm, linux-pci, devicetree, linux-kernel
Hello,
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPU. This interrupt can be used by the device driver to handle
> PCIe link specific events such as Link up and Link down, which give the
> driver a chance to start bus enumeration on its own when link is up and
> initiate link training if link goes to a bad state. The PCIe driver can
> still work without this interrupt but it will provide a nice user
> experience when device gets plugged and removed.
>
> Document the interrupt as optional for SM8550 and SM8650 platforms.
Applied to dt-bindings for v6.14, thank you!
Krzysztof
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes
2024-11-26 10:22 [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Neil Armstrong
2024-11-26 10:22 ` [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document " Neil Armstrong
@ 2024-11-26 10:22 ` Neil Armstrong
2024-11-26 11:49 ` Dmitry Baryshkov
2024-11-26 12:55 ` Manivannan Sadhasivam
2024-11-26 10:22 ` [PATCH 3/3] arm64: dts: qcom: sm8650: " Neil Armstrong
` (2 subsequent siblings)
4 siblings, 2 replies; 13+ messages in thread
From: Neil Armstrong @ 2024-11-26 10:22 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-pci, devicetree, linux-kernel,
Neil Armstrong
Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
to the host CPUs. This interrupt can be used by the device driver to
identify events such as PCIe link specific events, safety events, etc...
Hence, add it to the PCIe RC node along with the existing MSI interrupts.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8550.dtsi | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
index 9dc0ee3eb98f8711e01934e47331b99e3bb73682..44613fbe0c7f352ea0499782ca825cbe2a257aab 100644
--- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
@@ -1734,7 +1734,8 @@ pcie0: pcie@1c00000 {
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0",
"msi1",
"msi2",
@@ -1742,7 +1743,8 @@ pcie0: pcie@1c00000 {
"msi4",
"msi5",
"msi6",
- "msi7";
+ "msi7",
+ "global";
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 0x7>;
interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
@@ -1850,7 +1852,8 @@ pcie1: pcie@1c08000 {
<GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>;
+ <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0",
"msi1",
"msi2",
@@ -1858,7 +1861,8 @@ pcie1: pcie@1c08000 {
"msi4",
"msi5",
"msi6",
- "msi7";
+ "msi7",
+ "global";
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 0x7>;
interrupt-map = <0 0 0 1 &intc 0 0 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes
2024-11-26 10:22 ` [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes Neil Armstrong
@ 2024-11-26 11:49 ` Dmitry Baryshkov
2024-11-26 12:55 ` Manivannan Sadhasivam
1 sibling, 0 replies; 13+ messages in thread
From: Dmitry Baryshkov @ 2024-11-26 11:49 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:50AM +0100, Neil Armstrong wrote:
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPUs. This interrupt can be used by the device driver to
> identify events such as PCIe link specific events, safety events, etc...
>
> Hence, add it to the PCIe RC node along with the existing MSI interrupts.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes
2024-11-26 10:22 ` [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes Neil Armstrong
2024-11-26 11:49 ` Dmitry Baryshkov
@ 2024-11-26 12:55 ` Manivannan Sadhasivam
1 sibling, 0 replies; 13+ messages in thread
From: Manivannan Sadhasivam @ 2024-11-26 12:55 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, linux-arm-msm, linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:50AM +0100, Neil Armstrong wrote:
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPUs. This interrupt can be used by the device driver to
> identify events such as PCIe link specific events, safety events, etc...
>
> Hence, add it to the PCIe RC node along with the existing MSI interrupts.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> ---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> index 9dc0ee3eb98f8711e01934e47331b99e3bb73682..44613fbe0c7f352ea0499782ca825cbe2a257aab 100644
> --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> @@ -1734,7 +1734,8 @@ pcie0: pcie@1c00000 {
> <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
> + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "msi0",
> "msi1",
> "msi2",
> @@ -1742,7 +1743,8 @@ pcie0: pcie@1c00000 {
> "msi4",
> "msi5",
> "msi6",
> - "msi7";
> + "msi7",
> + "global";
> #interrupt-cells = <1>;
> interrupt-map-mask = <0 0 0 0x7>;
> interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
> @@ -1850,7 +1852,8 @@ pcie1: pcie@1c08000 {
> <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>;
> + <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "msi0",
> "msi1",
> "msi2",
> @@ -1858,7 +1861,8 @@ pcie1: pcie@1c08000 {
> "msi4",
> "msi5",
> "msi6",
> - "msi7";
> + "msi7",
> + "global";
> #interrupt-cells = <1>;
> interrupt-map-mask = <0 0 0 0x7>;
> interrupt-map = <0 0 0 1 &intc 0 0 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
>
> --
> 2.34.1
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: sm8650: Add 'global' interrupt to the PCIe RC nodes
2024-11-26 10:22 [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Neil Armstrong
2024-11-26 10:22 ` [PATCH 1/3] dt-bindings: PCI: qcom,pcie-sm8550: document " Neil Armstrong
2024-11-26 10:22 ` [PATCH 2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes Neil Armstrong
@ 2024-11-26 10:22 ` Neil Armstrong
2024-11-26 11:49 ` Dmitry Baryshkov
2024-11-26 12:56 ` Manivannan Sadhasivam
2025-01-08 22:51 ` (subset) [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Bjorn Andersson
2025-01-19 15:26 ` Manivannan Sadhasivam
4 siblings, 2 replies; 13+ messages in thread
From: Neil Armstrong @ 2024-11-26 10:22 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-pci, devicetree, linux-kernel,
Neil Armstrong
Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
to the host CPUs. This interrupt can be used by the device driver to
identify events such as PCIe link specific events, safety events, etc...
Hence, add it to the PCIe RC node along with the existing MSI interrupts.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8650.dtsi | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi
index 01ac3769ffa62ffb83c5c51878e2823e1982eb67..f394fadf11f9ac1f781d31f514946bd5060fa56f 100644
--- a/arch/arm64/boot/dts/qcom/sm8650.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi
@@ -2233,7 +2233,8 @@ pcie0: pcie@1c00000 {
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0",
"msi1",
"msi2",
@@ -2241,7 +2242,8 @@ pcie0: pcie@1c00000 {
"msi4",
"msi5",
"msi6",
- "msi7";
+ "msi7",
+ "global";
clocks = <&gcc GCC_PCIE_0_AUX_CLK>,
<&gcc GCC_PCIE_0_CFG_AHB_CLK>,
@@ -2365,7 +2367,8 @@ pcie1: pcie@1c08000 {
<GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>;
+ <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0",
"msi1",
"msi2",
@@ -2373,7 +2376,8 @@ pcie1: pcie@1c08000 {
"msi4",
"msi5",
"msi6",
- "msi7";
+ "msi7",
+ "global";
clocks = <&gcc GCC_PCIE_1_AUX_CLK>,
<&gcc GCC_PCIE_1_CFG_AHB_CLK>,
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [PATCH 3/3] arm64: dts: qcom: sm8650: Add 'global' interrupt to the PCIe RC nodes
2024-11-26 10:22 ` [PATCH 3/3] arm64: dts: qcom: sm8650: " Neil Armstrong
@ 2024-11-26 11:49 ` Dmitry Baryshkov
2024-11-26 12:56 ` Manivannan Sadhasivam
1 sibling, 0 replies; 13+ messages in thread
From: Dmitry Baryshkov @ 2024-11-26 11:49 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:51AM +0100, Neil Armstrong wrote:
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPUs. This interrupt can be used by the device driver to
> identify events such as PCIe link specific events, safety events, etc...
>
> Hence, add it to the PCIe RC node along with the existing MSI interrupts.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8650.dtsi | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: sm8650: Add 'global' interrupt to the PCIe RC nodes
2024-11-26 10:22 ` [PATCH 3/3] arm64: dts: qcom: sm8650: " Neil Armstrong
2024-11-26 11:49 ` Dmitry Baryshkov
@ 2024-11-26 12:56 ` Manivannan Sadhasivam
1 sibling, 0 replies; 13+ messages in thread
From: Manivannan Sadhasivam @ 2024-11-26 12:56 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, linux-arm-msm, linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:51AM +0100, Neil Armstrong wrote:
> Qcom PCIe RC controllers are capable of generating 'global' SPI interrupt
> to the host CPUs. This interrupt can be used by the device driver to
> identify events such as PCIe link specific events, safety events, etc...
>
> Hence, add it to the PCIe RC node along with the existing MSI interrupts.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> ---
> arch/arm64/boot/dts/qcom/sm8650.dtsi | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi
> index 01ac3769ffa62ffb83c5c51878e2823e1982eb67..f394fadf11f9ac1f781d31f514946bd5060fa56f 100644
> --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi
> @@ -2233,7 +2233,8 @@ pcie0: pcie@1c00000 {
> <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
> + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "msi0",
> "msi1",
> "msi2",
> @@ -2241,7 +2242,8 @@ pcie0: pcie@1c00000 {
> "msi4",
> "msi5",
> "msi6",
> - "msi7";
> + "msi7",
> + "global";
>
> clocks = <&gcc GCC_PCIE_0_AUX_CLK>,
> <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
> @@ -2365,7 +2367,8 @@ pcie1: pcie@1c08000 {
> <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>;
> + <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "msi0",
> "msi1",
> "msi2",
> @@ -2373,7 +2376,8 @@ pcie1: pcie@1c08000 {
> "msi4",
> "msi5",
> "msi6",
> - "msi7";
> + "msi7",
> + "global";
>
> clocks = <&gcc GCC_PCIE_1_AUX_CLK>,
> <&gcc GCC_PCIE_1_CFG_AHB_CLK>,
>
> --
> 2.34.1
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: (subset) [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt
2024-11-26 10:22 [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Neil Armstrong
` (2 preceding siblings ...)
2024-11-26 10:22 ` [PATCH 3/3] arm64: dts: qcom: sm8650: " Neil Armstrong
@ 2025-01-08 22:51 ` Bjorn Andersson
2025-01-19 15:26 ` Manivannan Sadhasivam
4 siblings, 0 replies; 13+ messages in thread
From: Bjorn Andersson @ 2025-01-08 22:51 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Konrad Dybcio, Neil Armstrong
Cc: linux-arm-msm, linux-pci, devicetree, linux-kernel
On Tue, 26 Nov 2024 11:22:48 +0100, Neil Armstrong wrote:
> Following [1], document the global irq for the PCIe RC and
> add the interrupt for the SM8550 & SM8650 PCIe RC nodes.
>
> Tested on SM8550-QRD, SM8650-QRD and SM8650-HDK.
>
> [1] https://lore.kernel.org/all/20240731-pci-qcom-hotplug-v3-0-a1426afdee3b@linaro.org/
>
> [...]
Applied, thanks!
[2/3] arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes
commit: 3e14b14ec8b94c954d8d09230686cdaf5162f3ce
[3/3] arm64: dts: qcom: sm8650: Add 'global' interrupt to the PCIe RC nodes
commit: 9eb81b31ab62cfaa243c6fe948b9f7cfdfdad666
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt
2024-11-26 10:22 [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Neil Armstrong
` (3 preceding siblings ...)
2025-01-08 22:51 ` (subset) [PATCH 0/3] PCI: qcom-sm8[56]50: document and add 'global' interrupt Bjorn Andersson
@ 2025-01-19 15:26 ` Manivannan Sadhasivam
4 siblings, 0 replies; 13+ messages in thread
From: Manivannan Sadhasivam @ 2025-01-19 15:26 UTC (permalink / raw)
To: Neil Armstrong
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, linux-arm-msm, linux-pci, devicetree, linux-kernel
On Tue, Nov 26, 2024 at 11:22:48AM +0100, Neil Armstrong wrote:
> Following [1], document the global irq for the PCIe RC and
> add the interrupt for the SM8550 & SM8650 PCIe RC nodes.
>
> Tested on SM8550-QRD, SM8650-QRD and SM8650-HDK.
>
> [1] https://lore.kernel.org/all/20240731-pci-qcom-hotplug-v3-0-a1426afdee3b@linaro.org/
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> ---
> Neil Armstrong (3):
> dt-bindings: PCI: qcom,pcie-sm8550: document 'global' interrupt
> arm64: dts: qcom: sm8550: Add 'global' interrupt to the PCIe RC nodes
> arm64: dts: qcom: sm8650: Add 'global' interrupt to the PCIe RC nodes
>
> Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 9 ++++++---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 12 ++++++++----
> arch/arm64/boot/dts/qcom/sm8650.dtsi | 12 ++++++++----
> 3 files changed, 22 insertions(+), 11 deletions(-)
> ---
> base-commit: adc218676eef25575469234709c2d87185ca223a
> change-id: 20241126-topic-sm8x50-pcie-global-irq-712d678b5226
>
> Best regards,
> --
> Neil Armstrong <neil.armstrong@linaro.org>
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 13+ messages in thread