arm64: dts: qcom: sm8450: Use GIC-ITS for PCIe0 and PCIe1
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 2 Jan 2023 10:58:21 +0000 (16:28 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 11 Jan 2023 04:52:00 +0000 (22:52 -0600)
commitff384ab56f164ef14bcc5f2bd79e995b4dea4bf3
treee3ded9ba9704e16e03286b08e5b198314cac0935
parent66b14154e278807811d67de9fb0d5cc76638d07b
arm64: dts: qcom: sm8450: Use GIC-ITS for PCIe0 and PCIe1

Both PCIe0 and PCIe1 controllers are capable of signalling the MSIs
received from endpoint devices to the CPU using GIC-ITS MSI controller.
Add support for it.

Currently, BDF (0:0.0) and BDF (1:0.0) are enabled and with the
msi-map-mask of 0xff00, all the 32 devices under these two busses can
share the same Device ID.

The GIC-ITS MSI implementation provides an advantage over internal MSI
implementation using Locality-specific Peripheral Interrupts (LPI) that
would allow MSIs to be targeted for each CPU core.

It should be noted that the MSIs for BDF (1:0.0) only works with Device
ID of 0x5980 and 0x5a00. Hence, the IDs are swapped.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Konrad Dybcio <konrad.dybcio@linaro.org> # Xperia 1 IV (WCN6855)
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230102105821.28243-4-manivannan.sadhasivam@linaro.org
arch/arm64/boot/dts/qcom/sm8450.dtsi