aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2013-04-28 05:37:38 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-04-30 02:00:25 -0400
commit3dc4feca4bf39d12f35a0e8c6997a8e188ab6cb8 (patch)
tree0c9d205f65c61d97a2e98691cbb80b3b704625b0 /arch/powerpc/mm
parentd8139ebf8596a1e56bd98b7a83e8777b5ff5fb2d (diff)
powerpc: Print page size info during boot
This gives hint about different base and actual page size combination supported by the platform. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/hash_utils_64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 5f7a85d40a75..3e4c4ed19335 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -316,7 +316,7 @@ static int __init htab_dt_scan_page_sizes(unsigned long node,
316 prop = (u32 *)of_get_flat_dt_prop(node, 316 prop = (u32 *)of_get_flat_dt_prop(node,
317 "ibm,segment-page-sizes", &size); 317 "ibm,segment-page-sizes", &size);
318 if (prop != NULL) { 318 if (prop != NULL) {
319 DBG("Page sizes from device-tree:\n"); 319 pr_info("Page sizes from device-tree:\n");
320 size /= 4; 320 size /= 4;
321 cur_cpu_spec->mmu_features &= ~(MMU_FTR_16M_PAGE); 321 cur_cpu_spec->mmu_features &= ~(MMU_FTR_16M_PAGE);
322 while(size > 0) { 322 while(size > 0) {
@@ -370,10 +370,10 @@ static int __init htab_dt_scan_page_sizes(unsigned long node,
370 "shift=%d\n", base_shift, shift); 370 "shift=%d\n", base_shift, shift);
371 371
372 def->penc[idx] = penc; 372 def->penc[idx] = penc;
373 DBG(" %d: shift=%02x, sllp=%04lx, " 373 pr_info("base_shift=%d: shift=%d, sllp=0x%04lx,"
374 "avpnm=%08lx, tlbiel=%d, penc=%d\n", 374 " avpnm=0x%08lx, tlbiel=%d, penc=%d\n",
375 idx, shift, def->sllp, def->avpnm, 375 base_shift, shift, def->sllp,
376 def->tlbiel, def->penc[idx]); 376 def->avpnm, def->tlbiel, def->penc[idx]);
377 } 377 }
378 } 378 }
379 return 1; 379 return 1;