Helps debug funky firmware issues

Signed-off-by: Benjamin Herrenschmidt <b...@kernel.crashing.org>
---
 arch/powerpc/kernel/setup_64.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 93991ed..a06edf6 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -451,6 +451,11 @@ void __init setup_system(void)
        if (ppc64_caches.iline_size != 0x80)
                printk("ppc64_caches.icache_line_size = 0x%x\n",
                       ppc64_caches.iline_size);
+       printk("cpu_features                  = 0x%016lx\n", 
cur_cpu_spec->cpu_features);
+       printk("cpu_user_features             = 0x%08x 0x%08x\n",
+              cur_cpu_spec->cpu_user_features, 
cur_cpu_spec->cpu_user_features2);
+       printk("mmu_features                  = 0x%08x\n", 
cur_cpu_spec->mmu_features);
+       printk("fw_features                   = 0x%016lx\n", 
powerpc_firmware_features);
 #ifdef CONFIG_PPC_STD_MMU_64
        if (htab_address)
                printk("htab_address                  = 0x%p\n", htab_address);


_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to