aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/dma-noncoherent.c
diff options
context:
space:
mode:
authorLichao Liu <liulichao@loongson.cn>2020-05-28 09:10:31 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-05-28 09:36:31 +0200
commita202bf71f08b3ef15356db30535e30b03cf23aec (patch)
tree166e17b4b6adb1f856a6215d6a297d6952aad1c3 /arch/mips/mm/dma-noncoherent.c
parentMIPS: DTS: Fix build errors used with various configs (diff)
downloadlinux-dev-a202bf71f08b3ef15356db30535e30b03cf23aec.tar.xz
linux-dev-a202bf71f08b3ef15356db30535e30b03cf23aec.zip
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 <liulichao@loongson.cn> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/mm/dma-noncoherent.c')
-rw-r--r--arch/mips/mm/dma-noncoherent.c1
1 files changed, 1 insertions, 0 deletions
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:
/*