Commit 52606df7 authored by Florian Fainelli's avatar Florian Fainelli Committed by Kleber Sacilotto de Souza

MIPS: BMIPS: BMIPS5000 has I cache filing from D cache

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

commit c130d2fd upstream.

BMIPS5000 and BMIPS52000 processors have their I-cache filling from the
D-cache. Since BMIPS_GENERIC does not provide (yet) a
cpu-feature-overrides.h file, this was not set anywhere, so make sure
the R4K cache detection takes care of that.

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/13010/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 a0284949
...@@ -1308,6 +1308,10 @@ static void probe_pcache(void) ...@@ -1308,6 +1308,10 @@ static void probe_pcache(void)
c->icache.flags |= MIPS_CACHE_IC_F_DC; c->icache.flags |= MIPS_CACHE_IC_F_DC;
break; break;
case CPU_BMIPS5000:
c->icache.flags |= MIPS_CACHE_IC_F_DC;
break;
case CPU_LOONGSON2: case CPU_LOONGSON2:
/* /*
* LOONGSON2 has 4 way icache, but when using indexed cache op, * LOONGSON2 has 4 way icache, but when using indexed cache op,
......
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