DORMANTno replies

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

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2014-08-06 04:31:22
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

Helps debug funky firmware issues

Signed-off-by: Benjamin Herrenschmidt <benh@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);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help