mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
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>
This commit is contained in:
parent
0acad8dfee
commit
9ba3c24f10
1 changed files with 23 additions and 0 deletions
|
@ -1080,6 +1080,29 @@ void show_regs(struct pt_regs *fp)
|
||||||
unsigned int cpu = smp_processor_id();
|
unsigned int cpu = smp_processor_id();
|
||||||
unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();
|
unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();
|
||||||
|
|
||||||
|
verbose_printk(KERN_NOTICE "\n");
|
||||||
|
if (CPUID != bfin_cpuid())
|
||||||
|
verbose_printk(KERN_NOTICE "Compiled for cpu family 0x%04x (Rev %d), "
|
||||||
|
"but running on:0x%04x (Rev %d)\n",
|
||||||
|
CPUID, bfin_compiled_revid(), bfin_cpuid(), bfin_revid());
|
||||||
|
|
||||||
|
verbose_printk(KERN_NOTICE "ADSP-%s-0.%d",
|
||||||
|
CPU, bfin_compiled_revid());
|
||||||
|
|
||||||
|
if (bfin_compiled_revid() != bfin_revid())
|
||||||
|
verbose_printk("(Detected 0.%d)", bfin_revid());
|
||||||
|
|
||||||
|
verbose_printk(" %lu(MHz CCLK) %lu(MHz SCLK) (%s)\n",
|
||||||
|
get_cclk()/1000000, get_sclk()/1000000,
|
||||||
|
#ifdef CONFIG_MPU
|
||||||
|
"mpu on"
|
||||||
|
#else
|
||||||
|
"mpu off"
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
|
verbose_printk(KERN_NOTICE "%s", linux_banner);
|
||||||
|
|
||||||
verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted());
|
verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted());
|
||||||
verbose_printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n",
|
verbose_printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n",
|
||||||
(long)fp->seqstat, fp->ipend, fp->syscfg);
|
(long)fp->seqstat, fp->ipend, fp->syscfg);
|
||||||
|
|
Loading…
Reference in a new issue