lkml.org 
[lkml]   [2020]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 171/261] MIPS: CPU_LOONGSON2EF need software to maintain cache consistency
    Date
    From: Lichao Liu <liulichao@loongson.cn>

    commit a202bf71f08b3ef15356db30535e30b03cf23aec upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/mips/mm/dma-noncoherent.c | 1 +
    1 file changed, 1 insertion(+)

    --- 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_fl
    case CPU_R10000:
    case CPU_R12000:
    case CPU_BMIPS5000:
    + case CPU_LOONGSON2EF:
    return true;
    default:
    /*

    \
     
     \ /
      Last update: 2020-06-19 18:03    [W:2.560 / U:2.696 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site