arm64: dts: sm8650: Add msi-map-mask for PCIe nodes
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 16 Feb 2024 17:05:21 +0000 (22:35 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 19 Feb 2024 05:06:56 +0000 (23:06 -0600)
"msi-map-mask" is a required property for all Qcom PCIe controllers as it
would allow all PCIe devices under a bus to share the same MSI identifier.

Without this property, each device has to use a separate MSI identifier
which is not possible due to platform limitations.

Currently, this is not an issue since only one device is connected to the
bus on boards making use of this SoC.

Fixes: a33a532b3b1e ("arm64: dts: qcom: sm8650: Use GIC-ITS for PCIe0 and PCIe1")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240216-sm8550-msi-map-fix-v1-1-b66d83ce48b7@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8650.dtsi

index d488b3b3265e74988a1f23a632b17f8d1051e5a9..12ba839f215eb96fcc4a9f0f98d83e17840b7567 100644 (file)
                        /* Entries are reversed due to the unusual ITS DeviceID encoding */
                        msi-map = <0x0 &gic_its 0x1401 0x1>,
                                  <0x100 &gic_its 0x1400 0x1>;
+                       msi-map-mask = <0xff00>;
 
                        linux,pci-domain = <0>;
                        num-lanes = <2>;
                        /* Entries are reversed due to the unusual ITS DeviceID encoding */
                        msi-map = <0x0 &gic_its 0x1481 0x1>,
                                  <0x100 &gic_its 0x1480 0x1>;
+                       msi-map-mask = <0xff00>;
 
                        linux,pci-domain = <1>;
                        num-lanes = <2>;