* [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller
@ 2023-01-11 12:30 Manivannan Sadhasivam
2023-01-11 12:30 ` [PATCH 2/2] arm64: dts: qcom: sm8450: " Manivannan Sadhasivam
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2023-01-11 12:30 UTC (permalink / raw)
To: andersson, robh+dt, krzysztof.kozlowski+dt
Cc: bhelgaas, konrad.dybcio, linux-arm-msm, linux-pci, devicetree,
linux-kernel, lpieralisi, Manivannan Sadhasivam, Rob Herring
The binding should specify both MSI implementations and the OS/driver
should choose the one based on the platform requirements.
Fixes: 2b0d557419cd ("dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller")
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
index 01208450e05c..e106bdf93f09 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
@@ -119,7 +119,7 @@ required:
- clocks
- clock-names
-oneOf:
+anyOf:
- required:
- interrupts
- interrupt-names
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: sm8450: Allow both GIC-ITS and internal MSI controller
2023-01-11 12:30 [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller Manivannan Sadhasivam
@ 2023-01-11 12:30 ` Manivannan Sadhasivam
2023-01-13 19:17 ` [PATCH 1/2] dt-bindings: PCI: qcom: " Rob Herring
2023-01-19 2:42 ` (subset) " Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2023-01-11 12:30 UTC (permalink / raw)
To: andersson, robh+dt, krzysztof.kozlowski+dt
Cc: bhelgaas, konrad.dybcio, linux-arm-msm, linux-pci, devicetree,
linux-kernel, lpieralisi, Manivannan Sadhasivam, Rob Herring
The devicetree should specify both MSI implementations and the OS/driver
should choose the one based on the platform requirements. Currently, Linux
DWC driver will choose GIC-ITS over the internal MSI controller.
Fixes: a11bbf6adef4 ("arm64: dts: qcom: sm8450: Use GIC-ITS for PCIe0 and PCIe1")
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8450.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi
index c4dd5838fac6..442b7be10858 100644
--- a/arch/arm64/boot/dts/qcom/sm8450.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi
@@ -1740,6 +1740,9 @@ pcie0: pci@1c00000 {
msi-map = <0x0 &gic_its 0x5981 0x1>,
<0x100 &gic_its 0x5980 0x1>;
msi-map-mask = <0xff00>;
+ interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "msi";
+ #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 */
<0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
@@ -1853,6 +1856,9 @@ pcie1: pci@1c08000 {
msi-map = <0x0 &gic_its 0x5a01 0x1>,
<0x100 &gic_its 0x5a00 0x1>;
msi-map-mask = <0xff00>;
+ interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "msi";
+ #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 */
<0 0 0 2 &intc 0 0 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller
2023-01-11 12:30 [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller Manivannan Sadhasivam
2023-01-11 12:30 ` [PATCH 2/2] arm64: dts: qcom: sm8450: " Manivannan Sadhasivam
@ 2023-01-13 19:17 ` Rob Herring
2023-01-19 2:42 ` (subset) " Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2023-01-13 19:17 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: krzysztof.kozlowski+dt, konrad.dybcio, andersson, bhelgaas,
linux-arm-msm, devicetree, lpieralisi, robh+dt, linux-kernel,
linux-pci
On Wed, 11 Jan 2023 18:00:03 +0530, Manivannan Sadhasivam wrote:
> The binding should specify both MSI implementations and the OS/driver
> should choose the one based on the platform requirements.
>
> Fixes: 2b0d557419cd ("dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller")
> Suggested-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> ---
> Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (subset) [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller
2023-01-11 12:30 [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller Manivannan Sadhasivam
2023-01-11 12:30 ` [PATCH 2/2] arm64: dts: qcom: sm8450: " Manivannan Sadhasivam
2023-01-13 19:17 ` [PATCH 1/2] dt-bindings: PCI: qcom: " Rob Herring
@ 2023-01-19 2:42 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2023-01-19 2:42 UTC (permalink / raw)
To: Manivannan Sadhasivam, robh+dt, krzysztof.kozlowski+dt
Cc: linux-arm-msm, lpieralisi, devicetree, bhelgaas, robh, linux-pci,
linux-kernel, konrad.dybcio
On Wed, 11 Jan 2023 18:00:03 +0530, Manivannan Sadhasivam wrote:
> The binding should specify both MSI implementations and the OS/driver
> should choose the one based on the platform requirements.
>
>
Applied, thanks!
[2/2] arm64: dts: qcom: sm8450: Allow both GIC-ITS and internal MSI controller
commit: 0da2eff44e78ded247fe35d8a3f73508263d0948
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-19 2:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 12:30 [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller Manivannan Sadhasivam
2023-01-11 12:30 ` [PATCH 2/2] arm64: dts: qcom: sm8450: " Manivannan Sadhasivam
2023-01-13 19:17 ` [PATCH 1/2] dt-bindings: PCI: qcom: " Rob Herring
2023-01-19 2:42 ` (subset) " Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).