Skip to contentSkip to conversation

powerpc/ppc64: Print CPU/MMU/FW features at boot

PATCH New Benjamin Herrenschmidt 1 participant 1 message Aug 6, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/ppc64: Print CPU/MMU/FW features at boot

Helps debug funky firmware issues

---
 arch/powerpc/kernel/setup_64.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/kernel/setup_64.c +5 -0
index 93991ed..a06edf6 100644
@@ -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);