arm64: dts: qcom: sc8280xp: fix UFS DMA coherency
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 5 Dec 2022 10:08:37 +0000 (11:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:36 +0000 (11:11 +0100)
commit 0953777640354dc459a22369eea488603d225dd9 upstream.

The SC8280XP UFS controllers are cache coherent and must be marked as
such in the devicetree to avoid potential data corruption.

Fixes: 152d1faf1e2f ("arm64: dts: qcom: add SC8280XP platform")
Cc: stable@vger.kernel.org # 6.0
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221205100837.29212-3-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/qcom/sc8280xp.dtsi

index 212d63d5cbf28a94ff7d4d7a2cd3491bc1e3d678..510f6d60b45b84eaa50b1d8ed831e88a1acc9f6b 100644 (file)
                        required-opps = <&rpmhpd_opp_nom>;
 
                        iommus = <&apps_smmu 0xe0 0x0>;
+                       dma-coherent;
 
                        clocks = <&gcc GCC_UFS_PHY_AXI_CLK>,
                                 <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
                        power-domains = <&gcc UFS_CARD_GDSC>;
 
                        iommus = <&apps_smmu 0x4a0 0x0>;
+                       dma-coherent;
 
                        clocks = <&gcc GCC_UFS_CARD_AXI_CLK>,
                                 <&gcc GCC_AGGRE_UFS_CARD_AXI_CLK>,