CPU_LOONGSON2EF need software to maintain cache consistency, so modify the 'cpu_needs_post_dma_flush' function to return true when the cpu type is CPU_LOONGSON2EF.
Cc: stable@vger.kernel.org Signed-off-by: Lichao Liu liulichao@loongson.cn --- arch/mips/mm/dma-noncoherent.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c index fcea92d95d86..563c2c0d0c81 100644 --- a/arch/mips/mm/dma-noncoherent.c +++ b/arch/mips/mm/dma-noncoherent.c @@ -33,6 +33,7 @@ static inline bool cpu_needs_post_dma_flush(void) case CPU_R10000: case CPU_R12000: case CPU_BMIPS5000: + case CPU_LOONGSON2EF: return true; default: /*
On Thu, 28 May 2020 09:10:31 +0800 Lichao Liu liulichao@loongson.cn wrote:
CPU_LOONGSON2EF need software to maintain cache consistency, so modify the 'cpu_needs_post_dma_flush' function to return true when the cpu type is CPU_LOONGSON2EF.
Cc: stable@vger.kernel.org Signed-off-by: Lichao Liu liulichao@loongson.cn
Reviewed-by: Jiaxun Yang jiaxun.yang@flygoat.com
Thanks!
[...]
On Thu, May 28, 2020 at 09:10:31AM +0800, Lichao Liu wrote:
CPU_LOONGSON2EF need software to maintain cache consistency, so modify the 'cpu_needs_post_dma_flush' function to return true when the cpu type is CPU_LOONGSON2EF.
Cc: stable@vger.kernel.org Signed-off-by: Lichao Liu liulichao@loongson.cn
arch/mips/mm/dma-noncoherent.c | 1 + 1 file changed, 1 insertion(+)
applied to mips-next.
Thomas.
linux-stable-mirror@lists.linaro.org