MIPS: CPU_LOONGSON2EF need software to maintain cache consistency
authorLichao Liu <liulichao@loongson.cn>
Thu, 28 May 2020 01:10:31 +0000 (09:10 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 28 May 2020 07:36:31 +0000 (09:36 +0200)
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>
arch/mips/mm/dma-noncoherent.c

index fcea92d..563c2c0 100644 (file)
@@ -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:
                /*