From: Lichao Liu Date: Thu, 28 May 2020 01:10:31 +0000 (+0800) Subject: MIPS: CPU_LOONGSON2EF need software to maintain cache consistency X-Git-Tag: v5.8-rc1~173^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a202bf71f08b3ef15356db30535e30b03cf23aec;p=thirdparty%2Fkernel%2Flinux.git MIPS: CPU_LOONGSON2EF need software to maintain cache consistency 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 Reviewed-by: Jiaxun Yang Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c index fcea92d95d860..563c2c0d0c819 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: /*