aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2009-05-20 17:19:21 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-12 06:11:47 -0400
commit9ba3c24f10c948dadac2ca91ed714dfbcedd61ca (patch)
tree7cbe8b68c5fb925c1e5de1c6902b0617ebb5bfb9 /arch/blackfin
parent0acad8dfee6bde7e246a95a52f864a8eee777ed8 (diff)
Blackfin: include system/processor info in dump messages
People often copy & paste crash messages without surrounding context, so include common useful information like system/processor stats in the crash summary. This should smooth over the report/test cycle a bit more. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/kernel/traps.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index 778a75655a0c..35f675f5ca16 100644
--- a/arch/blackfin/kernel/traps.c
+++ b/arch/blackfin/kernel/traps.c
@@ -1080,6 +1080,29 @@ void show_regs(struct pt_regs *fp)
1080 unsigned int cpu = smp_processor_id(); 1080 unsigned int cpu = smp_processor_id();
1081 unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic(); 1081 unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();
1082 1082
1083 verbose_printk(KERN_NOTICE "\n");
1084 if (CPUID != bfin_cpuid())
1085 verbose_printk(KERN_NOTICE "Compiled for cpu family 0x%04x (Rev %d), "
1086 "but running on:0x%04x (Rev %d)\n",
1087 CPUID, bfin_compiled_revid(), bfin_cpuid(), bfin_revid());
1088
1089 verbose_printk(KERN_NOTICE "ADSP-%s-0.%d",
1090 CPU, bfin_compiled_revid());
1091
1092 if (bfin_compiled_revid() != bfin_revid())
1093 verbose_printk("(Detected 0.%d)", bfin_revid());
1094
1095 verbose_printk(" %lu(MHz CCLK) %lu(MHz SCLK) (%s)\n",
1096 get_cclk()/1000000, get_sclk()/1000000,
1097#ifdef CONFIG_MPU
1098 "mpu on"
1099#else
1100 "mpu off"
1101#endif
1102 );
1103
1104 verbose_printk(KERN_NOTICE "%s", linux_banner);
1105
1083 verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted()); 1106 verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted());
1084 verbose_printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n", 1107 verbose_printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n",
1085 (long)fp->seqstat, fp->ipend, fp->syscfg); 1108 (long)fp->seqstat, fp->ipend, fp->syscfg);