linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent
@ 2023-05-15 12:19 Bartosz Golaszewski
  2023-05-17  5:41 ` Manivannan Sadhasivam
  2023-05-20  2:01 ` Bjorn Andersson
  0 siblings, 2 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2023-05-15 12:19 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Vinod Koul,
	Kishon Vijay Abraham I, Rob Herring, Krzysztof Kozlowski,
	Manivannan Sadhasivam, Alim Akhtar, Avri Altman, Bart Van Assche
  Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel, linux-scsi,
	Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

The UFS is cache coherent, so mark it as such in the dtsi.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index c5e2e3256bc4..c0717dac100c 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -605,6 +605,7 @@ ufs_mem_hc: ufs@1d84000 {
 			power-domains = <&gcc UFS_PHY_GDSC>;
 			required-opps = <&rpmhpd_opp_nom>;
 			iommus = <&apps_smmu 0x100 0x0>;
+			dma-coherent;
 			clocks = <&gcc GCC_UFS_PHY_AXI_CLK>,
 				 <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
 				 <&gcc GCC_UFS_PHY_AHB_CLK>,
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent
  2023-05-15 12:19 [PATCH] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent Bartosz Golaszewski
@ 2023-05-17  5:41 ` Manivannan Sadhasivam
  2023-05-20  2:01 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17  5:41 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Vinod Koul,
	Kishon Vijay Abraham I, Rob Herring, Krzysztof Kozlowski,
	Manivannan Sadhasivam, Alim Akhtar, Avri Altman, Bart Van Assche,
	linux-arm-msm, linux-phy, devicetree, linux-kernel, linux-scsi,
	Bartosz Golaszewski

On Mon, May 15, 2023 at 02:19:08PM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> The UFS is cache coherent, so mark it as such in the dtsi.

UFS controller

> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Suggested-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>

- Mani

> ---
>  arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> index c5e2e3256bc4..c0717dac100c 100644
> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> @@ -605,6 +605,7 @@ ufs_mem_hc: ufs@1d84000 {
>  			power-domains = <&gcc UFS_PHY_GDSC>;
>  			required-opps = <&rpmhpd_opp_nom>;
>  			iommus = <&apps_smmu 0x100 0x0>;
> +			dma-coherent;
>  			clocks = <&gcc GCC_UFS_PHY_AXI_CLK>,
>  				 <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
>  				 <&gcc GCC_UFS_PHY_AHB_CLK>,
> -- 
> 2.39.2
> 

-- 
மணிவண்ணன் சதாசிவம்

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent
  2023-05-15 12:19 [PATCH] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent Bartosz Golaszewski
  2023-05-17  5:41 ` Manivannan Sadhasivam
@ 2023-05-20  2:01 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2023-05-20  2:01 UTC (permalink / raw)
  To: Andy Gross, Alim Akhtar, Rob Herring, Manivannan Sadhasivam,
	Vinod Koul, Kishon Vijay Abraham I, Bart Van Assche,
	Bartosz Golaszewski, Krzysztof Kozlowski, Konrad Dybcio,
	Avri Altman
  Cc: devicetree, linux-kernel, Bartosz Golaszewski, linux-scsi,
	linux-phy, linux-arm-msm

On Mon, 15 May 2023 14:19:08 +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> The UFS is cache coherent, so mark it as such in the dtsi.
> 
> 

Applied, thanks!

[1/1] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent
      commit: 2b967894f80aac2c7421eb545c32ed995f8d9877

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-20  1:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-15 12:19 [PATCH] arm64: dts: qcom: sa8775p: mark the UFS controller as dma-coherent Bartosz Golaszewski
2023-05-17  5:41 ` Manivannan Sadhasivam
2023-05-20  2:01 ` 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).