powerpc/mm/radix: remove useless kernel messages
authorQian Cai <cai@lca.pw>
Fri, 23 Aug 2019 14:22:00 +0000 (10:22 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:46 +0000 (00:04 +1000)
Booting a POWER9 PowerNV system generates a few messages below with
"____ptrval____" due to the pointers printed without a specifier
extension (i.e unadorned %p) are hashed to prevent leaking information
about the kernel memory layout.

radix-mmu: Initializing Radix MMU
radix-mmu: Partition table (____ptrval____)
radix-mmu: Mapped 0x0000000000000000-0x0000000040000000 with 1.00 GiB
pages (exec)
radix-mmu: Mapped 0x0000000040000000-0x0000002000000000 with 1.00 GiB
pages
radix-mmu: Mapped 0x0000200000000000-0x0000202000000000 with 1.00 GiB
pages
radix-mmu: Process table (____ptrval____) and radix root for kernel:
(____ptrval____)

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1566570120-16529-1-git-send-email-cai@lca.pw
arch/powerpc/mm/book3s64/radix_pgtable.c

index 0d1107f..3a1fbf9 100644 (file)
@@ -369,8 +369,6 @@ static void __init radix_init_pgtable(void)
        rts_field = radix__get_tree_size();
        process_tb->prtb0 = cpu_to_be64(rts_field | __pa(init_mm.pgd) | RADIX_PGD_INDEX_SIZE);
 
-       pr_info("Process table %p and radix root for kernel: %p\n", process_tb, init_mm.pgd);
-
        /*
         * The init_mm context is given the first available (non-zero) PID,
         * which is the "guard PID" and contains no page table. PIDR should
@@ -399,7 +397,6 @@ static void __init radix_init_partition_table(void)
        mmu_partition_table_set_entry(0, dw0, dw1, false);
 
        pr_info("Initializing Radix MMU\n");
-       pr_info("Partition table %p\n", partition_tb);
 }
 
 static int __init get_idx_from_shift(unsigned int shift)