mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-20 12:30:13 +07:00
MIPS: Fix decoding of c0_config1 for MIPSxx caches with 32 ways per set.
This affects certain 4Kc cores. Signed-off-by: Douglas Leung <douglas@mips.com> Signed-off-by: Steven J. Hill <sjhill@mips.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3855/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
c022630633
commit
dc34b05fea
@ -977,7 +977,7 @@ static void __cpuinit probe_pcache(void)
|
||||
c->icache.linesz = 2 << lsize;
|
||||
else
|
||||
c->icache.linesz = lsize;
|
||||
c->icache.sets = 64 << ((config1 >> 22) & 7);
|
||||
c->icache.sets = 32 << (((config1 >> 22) + 1) & 7);
|
||||
c->icache.ways = 1 + ((config1 >> 16) & 7);
|
||||
|
||||
icache_size = c->icache.sets *
|
||||
@ -997,7 +997,7 @@ static void __cpuinit probe_pcache(void)
|
||||
c->dcache.linesz = 2 << lsize;
|
||||
else
|
||||
c->dcache.linesz= lsize;
|
||||
c->dcache.sets = 64 << ((config1 >> 13) & 7);
|
||||
c->dcache.sets = 32 << (((config1 >> 13) + 1) & 7);
|
||||
c->dcache.ways = 1 + ((config1 >> 7) & 7);
|
||||
|
||||
dcache_size = c->dcache.sets *
|
||||
|
Loading…
Reference in New Issue
Block a user