]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: dts: qcom: sm8650: set ufs as dma coherent
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 7 Oct 2025 18:53:44 +0000 (20:53 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 Oct 2025 16:30:29 +0000 (11:30 -0500)
commitc2703c90161b45bca5b65f362adbae02ed71fcc1
tree9da4ea49243af6b8cd8f120212e51cf21afbc2dd
parent037f0f59bb0f43bda3d3f0892f9bf65a64c173e2
arm64: dts: qcom: sm8650: set ufs as dma coherent

The UFS device is ovbiously dma coherent like the other IOMMU devices
like usb, mmc, ... let's fix this by adding the flag.

To be sure an extensive test has been performed to be sure it's
safe, as downstream uses this flag for UFS as well.

As an experiment, I checked how the dma-coherent could impact
the UFS bandwidth, and it happens the max bandwidth on cached
write is slighly highter (up to 10%) while using less cpu time
since cache sync/flush is skipped.

Fixes: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes")
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251007-topic-sm8650-upstream-ufs-dma-coherent-v1-1-f3cfeaee04ce@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8650.dtsi