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>
This commit is contained in:
parent
d8139ebf85
commit
3dc4feca4b
@ -316,7 +316,7 @@ static int __init htab_dt_scan_page_sizes(unsigned long node,
|
|||||||
prop = (u32 *)of_get_flat_dt_prop(node,
|
prop = (u32 *)of_get_flat_dt_prop(node,
|
||||||
"ibm,segment-page-sizes", &size);
|
"ibm,segment-page-sizes", &size);
|
||||||
if (prop != NULL) {
|
if (prop != NULL) {
|
||||||
DBG("Page sizes from device-tree:\n");
|
pr_info("Page sizes from device-tree:\n");
|
||||||
size /= 4;
|
size /= 4;
|
||||||
cur_cpu_spec->mmu_features &= ~(MMU_FTR_16M_PAGE);
|
cur_cpu_spec->mmu_features &= ~(MMU_FTR_16M_PAGE);
|
||||||
while(size > 0) {
|
while(size > 0) {
|
||||||
@ -370,10 +370,10 @@ static int __init htab_dt_scan_page_sizes(unsigned long node,
|
|||||||
"shift=%d\n", base_shift, shift);
|
"shift=%d\n", base_shift, shift);
|
||||||
|
|
||||||
def->penc[idx] = penc;
|
def->penc[idx] = penc;
|
||||||
DBG(" %d: shift=%02x, sllp=%04lx, "
|
pr_info("base_shift=%d: shift=%d, sllp=0x%04lx,"
|
||||||
"avpnm=%08lx, tlbiel=%d, penc=%d\n",
|
" avpnm=0x%08lx, tlbiel=%d, penc=%d\n",
|
||||||
idx, shift, def->sllp, def->avpnm,
|
base_shift, shift, def->sllp,
|
||||||
def->tlbiel, def->penc[idx]);
|
def->avpnm, def->tlbiel, def->penc[idx]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user