Commit 797e12e6 authored by Florian Fainelli's avatar Florian Fainelli Committed by Kleber Sacilotto de Souza

MIPS: BMIPS: local_r4k___flush_cache_all needs to blast S-cache

BugLink: https://bugs.launchpad.net/bugs/1878232

commit f675843d upstream.

local_r4k___flush_cache_all() is missing a special check for BMIPS5000
processors, we need to blast the S-cache, just like other MTI processors
since we have an inclusive cache. We also need an additional __sync() to
make sure this is completed.

Fixes: d74b0172 ("MIPS: BMIPS: Add special cache handling in c-r4k.c")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13012/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 07b5a646
...@@ -447,6 +447,11 @@ static inline void local_r4k___flush_cache_all(void * args) ...@@ -447,6 +447,11 @@ static inline void local_r4k___flush_cache_all(void * args)
r4k_blast_scache(); r4k_blast_scache();
break; break;
case CPU_BMIPS5000:
r4k_blast_scache();
__sync();
break;
default: default:
r4k_blast_dcache(); r4k_blast_dcache();
r4k_blast_icache(); r4k_blast_icache();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment