]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ARC: Show fault information passed to show_kernel_fault_diag()
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 29 Aug 2017 09:14:20 +0000 (10:14 +0100)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 1 Sep 2017 18:26:29 +0000 (11:26 -0700)
commitaa7e3a5e8b63628c7fc131effc163ade08ced41b
treea831af6cd0134d6bed0c6a7619a74fb624d6d1a4
parenta518d63777a4e94e4b2dd86501604ec49ffe86b2
ARC: Show fault information passed to show_kernel_fault_diag()

Currently we pass a string argument to show_kernel_fault_diag() which
describes the reason for the fault. This is not being used so just
add a pr_info() which outputs the fault information.

With this change we get from:

|
| Path: /bin/busybox
| CPU: 0 PID: 92 Comm: modprobe Not tainted 4.12.0-rc6 #30
| task: 9a254780 task.stack: 9a212000
|
| [ECR   ]: 0x00200400 => Other Fatal Err
|

to:

|
| Unhandled Machine Check Exception
| Path: /bin/busybox
| CPU: 0 PID: 92 Comm: modprobe Not tainted 4.12.0-rc6 #37
| task: 9a240780 task.stack: 9a226000
|
|[ECR   ]: 0x00200400 => Machine Check (Other Fatal Err)
|

Which can help debugging.

Cc: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/traps.c
arch/arc/kernel/troubleshoot.c