Revert "Revert "arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()""
authorWill Deacon <will@kernel.org>
Thu, 30 Mar 2023 15:23:03 +0000 (16:23 +0100)
committerWill Deacon <will@kernel.org>
Thu, 30 Mar 2023 15:23:03 +0000 (16:23 +0100)
commit7bd6680b47fa4cd53ee1047693c09825e212a6f5
tree48a9f5f554b12cf799b863dc181936f6cfc06cbd
parent7cae569e6209af7082171477de06ee0eeeaab11f
Revert "Revert "arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()""

This reverts commit b7d9aae404841d9999b7476170867ae441e948d2.

With the Qualcomm remoteproc driver now modified to use a carveout
memory region in 57f72170a2b2 ("remoteproc: qcom_q6v5_mss: Use a
carveout to authenticate modem headers"), we can reinstate c44094eee32f
("arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()")
which relaxes the arm64 implementation of arch_dma_prep_coherent() to
perform only a data cache clean operation, rather than a
clean-and-invalidate.

Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/dma-mapping.c