Skip to content

Commit 64bfca5

Browse files
committed
[MIPS] Cache: Provide more information on cache policy on bootup.
This should help making bug reports for the gadzillion of cores with all their configuration and synthesis options more useful. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 985c30e commit 64bfca5

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎arch/mips/mm/c-r4k.c‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,11 +983,15 @@ static void __init probe_pcache(void)
983983

984984
printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
985985
icache_size >> 10,
986-
cpu_has_vtag_icache ? "virtually tagged" : "physically tagged",
986+
cpu_has_vtag_icache ? "VIVT" : "VIPT",
987987
way_string[c->icache.ways], c->icache.linesz);
988988

989-
printk("Primary data cache %ldkB, %s, linesize %d bytes.\n",
990-
dcache_size >> 10, way_string[c->dcache.ways], c->dcache.linesz);
989+
printk("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n",
990+
dcache_size >> 10, way_string[c->dcache.ways],
991+
(c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT",
992+
(c->dcache.flags & MIPS_CACHE_ALIASES) ?
993+
"cache aliases" : "no aliases",
994+
c->dcache.linesz);
991995
}
992996

993997
/*

0 commit comments

Comments
 (0)