diff options
author | Lichao Liu <liulichao@loongson.cn> | 2020-05-28 09:10:31 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-05-28 09:36:31 +0200 |
commit | a202bf71f08b3ef15356db30535e30b03cf23aec (patch) | |
tree | 166e17b4b6adb1f856a6215d6a297d6952aad1c3 | |
parent | 9c43783c702fd68c96342e83ed3bb8828484a5e0 (diff) | |
download | linux-a202bf71f08b3ef15356db30535e30b03cf23aec.tar.bz2 |
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>
-rw-r--r-- | arch/mips/mm/dma-noncoherent.c | 1 |
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: /* |