linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/ppc64: Print CPU/MMU/FW features at boot
@ 2014-08-06  4:31 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2014-08-06  4:31 UTC (permalink / raw)
  To: linuxppc-dev

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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-06  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06  4:31 [PATCH] powerpc/ppc64: Print CPU/MMU/FW features at boot Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).