Skip to content

Commit bea176f

Browse files
oleremtsbogend
authored andcommitted
MIPS: reduce print level for cache information
Default printk log level is KERN_WARNING. This makes automatic log parsing problematic, since we get false positive alarms on not critical information. Set all not critical cache related information to KERN_INFO, the same level as used on most kernel drivers. Signed-off-by: Oleksij Rempel <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent e509662 commit bea176f

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

arch/mips/mm/c-octeon.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,17 +237,17 @@ static void probe_octeon(void)
237237
c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways);
238238

239239
if (smp_processor_id() == 0) {
240-
pr_notice("Primary instruction cache %ldkB, %s, %d way, "
241-
"%d sets, linesize %d bytes.\n",
242-
icache_size >> 10,
243-
cpu_has_vtag_icache ?
240+
pr_info("Primary instruction cache %ldkB, %s, %d way, "
241+
"%d sets, linesize %d bytes.\n",
242+
icache_size >> 10,
243+
cpu_has_vtag_icache ?
244244
"virtually tagged" : "physically tagged",
245-
c->icache.ways, c->icache.sets, c->icache.linesz);
245+
c->icache.ways, c->icache.sets, c->icache.linesz);
246246

247-
pr_notice("Primary data cache %ldkB, %d-way, %d sets, "
248-
"linesize %d bytes.\n",
249-
dcache_size >> 10, c->dcache.ways,
250-
c->dcache.sets, c->dcache.linesz);
247+
pr_info("Primary data cache %ldkB, %d-way, %d sets, "
248+
"linesize %d bytes.\n",
249+
dcache_size >> 10, c->dcache.ways,
250+
c->dcache.sets, c->dcache.linesz);
251251
}
252252
}
253253

arch/mips/mm/c-r3k.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ void r3k_cache_init(void)
316316
_dma_cache_wback = r3k_dma_cache_wback_inv;
317317
_dma_cache_inv = r3k_dma_cache_wback_inv;
318318

319-
printk("Primary instruction cache %ldkB, linesize %ld bytes.\n",
319+
pr_info("Primary instruction cache %ldkB, linesize %ld bytes.\n",
320320
icache_size >> 10, icache_lsize);
321-
printk("Primary data cache %ldkB, linesize %ld bytes.\n",
321+
pr_info("Primary data cache %ldkB, linesize %ld bytes.\n",
322322
dcache_size >> 10, dcache_lsize);
323323

324324
build_clear_page();

arch/mips/mm/c-r4k.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,17 +1467,17 @@ static void probe_pcache(void)
14671467
c->icache.ways = 1;
14681468
}
14691469

1470-
printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
1471-
icache_size >> 10,
1472-
c->icache.flags & MIPS_CACHE_VTAG ? "VIVT" : "VIPT",
1473-
way_string[c->icache.ways], c->icache.linesz);
1474-
1475-
printk("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n",
1476-
dcache_size >> 10, way_string[c->dcache.ways],
1477-
(c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT",
1478-
(c->dcache.flags & MIPS_CACHE_ALIASES) ?
1470+
pr_info("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
1471+
icache_size >> 10,
1472+
c->icache.flags & MIPS_CACHE_VTAG ? "VIVT" : "VIPT",
1473+
way_string[c->icache.ways], c->icache.linesz);
1474+
1475+
pr_info("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n",
1476+
dcache_size >> 10, way_string[c->dcache.ways],
1477+
(c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT",
1478+
(c->dcache.flags & MIPS_CACHE_ALIASES) ?
14791479
"cache aliases" : "no aliases",
1480-
c->dcache.linesz);
1480+
c->dcache.linesz);
14811481
}
14821482

14831483
static void probe_vcache(void)

arch/mips/mm/c-tx39.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ void tx39_cache_init(void)
410410
current_cpu_data.icache.waybit = 0;
411411
current_cpu_data.dcache.waybit = 0;
412412

413-
printk("Primary instruction cache %ldkB, linesize %d bytes\n",
413+
pr_info("Primary instruction cache %ldkB, linesize %d bytes\n",
414414
icache_size >> 10, current_cpu_data.icache.linesz);
415-
printk("Primary data cache %ldkB, linesize %d bytes\n",
415+
pr_info("Primary data cache %ldkB, linesize %d bytes\n",
416416
dcache_size >> 10, current_cpu_data.dcache.linesz);
417417

418418
build_clear_page();

0 commit comments

Comments
 (0)