Skip to content

Commit 5654741

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm: Print formation regarding the the MMU mode
This helps in easily identifying the MMU mode with which the kernel is operating. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent accfad7 commit 5654741

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

arch/powerpc/mm/hash_utils_64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ static void __init hash_init_partition_table(phys_addr_t hash_table,
739739
* For now UPRT is 0 for us.
740740
*/
741741
partition_tb->patb1 = 0;
742-
DBG("Partition table %p\n", partition_tb);
742+
pr_info("Partition table %p\n", partition_tb);
743743
/*
744744
* update partition table control register,
745745
* 64 K size.
@@ -947,6 +947,7 @@ void __init hash__early_init_mmu(void)
947947
*/
948948
htab_initialize();
949949

950+
pr_info("Initializing hash mmu with SLB\n");
950951
/* Initialize SLB management */
951952
slb_initialize();
952953
}

arch/powerpc/mm/pgtable-radix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ static void __init radix_init_partition_table(void)
182182
partition_tb = early_alloc_pgtable(1UL << PATB_SIZE_SHIFT);
183183
partition_tb->patb0 = cpu_to_be64(rts_field | __pa(init_mm.pgd) |
184184
RADIX_PGD_INDEX_SIZE | PATB_HR);
185-
printk("Partition table %p\n", partition_tb);
185+
pr_info("Initializing Radix MMU\n");
186+
pr_info("Partition table %p\n", partition_tb);
186187

187188
memblock_set_current_limit(MEMBLOCK_ALLOC_ANYWHERE);
188189
/*

0 commit comments

Comments
 (0)