Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Aneesh Kumar K.V and committed by
Michael Ellerman
56547411 accfad7d

+4 -2
+2 -1
arch/powerpc/mm/hash_utils_64.c
··· 739 739 * For now UPRT is 0 for us. 740 740 */ 741 741 partition_tb->patb1 = 0; 742 - DBG("Partition table %p\n", partition_tb); 742 + pr_info("Partition table %p\n", partition_tb); 743 743 /* 744 744 * update partition table control register, 745 745 * 64 K size. ··· 947 947 */ 948 948 htab_initialize(); 949 949 950 + pr_info("Initializing hash mmu with SLB\n"); 950 951 /* Initialize SLB management */ 951 952 slb_initialize(); 952 953 }
+2 -1
arch/powerpc/mm/pgtable-radix.c
··· 182 182 partition_tb = early_alloc_pgtable(1UL << PATB_SIZE_SHIFT); 183 183 partition_tb->patb0 = cpu_to_be64(rts_field | __pa(init_mm.pgd) | 184 184 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); 186 187 187 188 memblock_set_current_limit(MEMBLOCK_ALLOC_ANYWHERE); 188 189 /*