aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-05 01:04:07 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-21 05:08:05 -0400
commitbf1b61fb574bfe13ab71347389a2ab16f673d24f (patch)
tree3075f54ddfb12a5fa9c2f6c77c795e61e2302649 /arch/powerpc
parentf2d576948d6cec16e4aae201d738c4f22039a551 (diff)
powerpc/64: Move the boot time info banner to a separate function
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/setup_64.c64
1 files changed, 33 insertions, 31 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 8b9768a97387..2395a88b1142 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -476,6 +476,37 @@ static void __init initialize_cache_info(void)
476 DBG(" <- initialize_cache_info()\n"); 476 DBG(" <- initialize_cache_info()\n");
477} 477}
478 478
479static __init void print_system_info(void)
480{
481 pr_info("-----------------------------------------------------\n");
482 pr_info("ppc64_pft_size = 0x%llx\n", ppc64_pft_size);
483 pr_info("phys_mem_size = 0x%llx\n", memblock_phys_mem_size());
484
485 if (ppc64_caches.dline_size != 0x80)
486 pr_info("dcache_line_size = 0x%x\n", ppc64_caches.dline_size);
487 if (ppc64_caches.iline_size != 0x80)
488 pr_info("icache_line_size = 0x%x\n", ppc64_caches.iline_size);
489
490 pr_info("cpu_features = 0x%016lx\n", cur_cpu_spec->cpu_features);
491 pr_info(" possible = 0x%016lx\n", CPU_FTRS_POSSIBLE);
492 pr_info(" always = 0x%016lx\n", CPU_FTRS_ALWAYS);
493 pr_info("cpu_user_features = 0x%08x 0x%08x\n", cur_cpu_spec->cpu_user_features,
494 cur_cpu_spec->cpu_user_features2);
495 pr_info("mmu_features = 0x%08x\n", cur_cpu_spec->mmu_features);
496 pr_info("firmware_features = 0x%016lx\n", powerpc_firmware_features);
497
498#ifdef CONFIG_PPC_STD_MMU_64
499 if (htab_address)
500 pr_info("htab_address = 0x%p\n", htab_address);
501
502 pr_info("htab_hash_mask = 0x%lx\n", htab_hash_mask);
503#endif
504
505 if (PHYSICAL_START > 0)
506 pr_info("physical_start = 0x%llx\n",
507 (unsigned long long)PHYSICAL_START);
508 pr_info("-----------------------------------------------------\n");
509}
479 510
480/* 511/*
481 * Do some initial setup of the system. The parameters are those which 512 * Do some initial setup of the system. The parameters are those which
@@ -543,37 +574,8 @@ void __init setup_system(void)
543 smp_release_cpus(); 574 smp_release_cpus();
544#endif 575#endif
545 576
546 pr_info("Starting Linux %s %s\n", init_utsname()->machine, 577 /* Print various info about the machine that has been gathered so far. */
547 init_utsname()->version); 578 print_system_info();
548
549 pr_info("-----------------------------------------------------\n");
550 pr_info("ppc64_pft_size = 0x%llx\n", ppc64_pft_size);
551 pr_info("phys_mem_size = 0x%llx\n", memblock_phys_mem_size());
552
553 if (ppc64_caches.dline_size != 0x80)
554 pr_info("dcache_line_size = 0x%x\n", ppc64_caches.dline_size);
555 if (ppc64_caches.iline_size != 0x80)
556 pr_info("icache_line_size = 0x%x\n", ppc64_caches.iline_size);
557
558 pr_info("cpu_features = 0x%016lx\n", cur_cpu_spec->cpu_features);
559 pr_info(" possible = 0x%016lx\n", CPU_FTRS_POSSIBLE);
560 pr_info(" always = 0x%016lx\n", CPU_FTRS_ALWAYS);
561 pr_info("cpu_user_features = 0x%08x 0x%08x\n", cur_cpu_spec->cpu_user_features,
562 cur_cpu_spec->cpu_user_features2);
563 pr_info("mmu_features = 0x%08x\n", cur_cpu_spec->mmu_features);
564 pr_info("firmware_features = 0x%016lx\n", powerpc_firmware_features);
565
566#ifdef CONFIG_PPC_STD_MMU_64
567 if (htab_address)
568 pr_info("htab_address = 0x%p\n", htab_address);
569
570 pr_info("htab_hash_mask = 0x%lx\n", htab_hash_mask);
571#endif
572
573 if (PHYSICAL_START > 0)
574 pr_info("physical_start = 0x%llx\n",
575 (unsigned long long)PHYSICAL_START);
576 pr_info("-----------------------------------------------------\n");
577 579
578 DBG(" <- setup_system()\n"); 580 DBG(" <- setup_system()\n");
579} 581}