* [PATCH 2/2] arm64: dts: qcom: sc8280xp: fix UFS DMA coherency
[not found] <20221205100837.29212-1-johan+linaro@kernel.org>
@ 2022-12-05 10:08 ` Johan Hovold
2022-12-05 11:37 ` Konrad Dybcio
2022-12-05 12:01 ` Manivannan Sadhasivam
0 siblings, 2 replies; 3+ messages in thread
From: Johan Hovold @ 2022-12-05 10:08 UTC (permalink / raw)
To: Bjorn Andersson, Alim Akhtar, Avri Altman
Cc: Andy Gross, Konrad Dybcio, Bart Van Assche, Rob Herring,
Krzysztof Kozlowski, Manivannan Sadhasivam, linux-arm-msm,
linux-scsi, devicetree, linux-kernel, Johan Hovold, stable
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>
---
arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
index c4947c563099..23d1f51527aa 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -1430,6 +1430,7 @@ ufs_mem_hc: ufs@1d84000 {
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>,
@@ -1491,6 +1492,7 @@ ufs_card_hc: ufs@1da4000 {
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>,
--
2.37.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: sc8280xp: fix UFS DMA coherency
2022-12-05 10:08 ` [PATCH 2/2] arm64: dts: qcom: sc8280xp: fix UFS DMA coherency Johan Hovold
@ 2022-12-05 11:37 ` Konrad Dybcio
2022-12-05 12:01 ` Manivannan Sadhasivam
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2022-12-05 11:37 UTC (permalink / raw)
To: Johan Hovold, Bjorn Andersson, Alim Akhtar, Avri Altman
Cc: Andy Gross, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
Manivannan Sadhasivam, linux-arm-msm, linux-scsi, devicetree,
linux-kernel, stable
On 05/12/2022 11:08, Johan Hovold wrote:
> 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: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
> arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> index c4947c563099..23d1f51527aa 100644
> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> @@ -1430,6 +1430,7 @@ ufs_mem_hc: ufs@1d84000 {
> 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>,
> @@ -1491,6 +1492,7 @@ ufs_card_hc: ufs@1da4000 {
> 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>,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: sc8280xp: fix UFS DMA coherency
2022-12-05 10:08 ` [PATCH 2/2] arm64: dts: qcom: sc8280xp: fix UFS DMA coherency Johan Hovold
2022-12-05 11:37 ` Konrad Dybcio
@ 2022-12-05 12:01 ` Manivannan Sadhasivam
1 sibling, 0 replies; 3+ messages in thread
From: Manivannan Sadhasivam @ 2022-12-05 12:01 UTC (permalink / raw)
To: Johan Hovold
Cc: Bjorn Andersson, Alim Akhtar, Avri Altman, Andy Gross,
Konrad Dybcio, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, linux-scsi, devicetree, linux-kernel, stable
On Mon, Dec 05, 2022 at 11:08:37AM +0100, Johan Hovold wrote:
> 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>
Thanks,
Mani
> ---
> arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> index c4947c563099..23d1f51527aa 100644
> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> @@ -1430,6 +1430,7 @@ ufs_mem_hc: ufs@1d84000 {
> 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>,
> @@ -1491,6 +1492,7 @@ ufs_card_hc: ufs@1da4000 {
> 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>,
> --
> 2.37.4
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-05 12:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20221205100837.29212-1-johan+linaro@kernel.org>
2022-12-05 10:08 ` [PATCH 2/2] arm64: dts: qcom: sc8280xp: fix UFS DMA coherency Johan Hovold
2022-12-05 11:37 ` Konrad Dybcio
2022-12-05 12:01 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox