* [PATCH] arm64/dt: add machine name to kernel call stack dump output
@ 2014-10-28 12:24 Ard Biesheuvel
2014-10-28 12:42 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Ard Biesheuvel @ 2014-10-28 12:24 UTC (permalink / raw)
To: linux-arm-kernel
This installs the machine name as recorded by setup_machine_fdt()
as dump stack arch description. This results in the string to be
included in call stack dumps, as is shown here:
...
Bad mode in Synchronous Abort handler detected, code 0x84000005
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc2+ #548
> Hardware name: linux,dummy-virt (DT)
task: ffffffc07c870000 ti: ffffffc07c878000 task.ti: ffffffc07c878000
PC is at 0x0
...
Note that systems that support DMI/SMBIOS may override this later.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
arch/arm64/kernel/setup.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index a6028490a28f..da5dd36e4353 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -312,6 +312,7 @@ static void __init setup_machine_fdt(phys_addr_t dt_phys)
}
machine_name = of_flat_dt_get_machine_name();
+ dump_stack_set_arch_desc("%s (DT)", machine_name);
}
/*
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm64/dt: add machine name to kernel call stack dump output
2014-10-28 12:24 [PATCH] arm64/dt: add machine name to kernel call stack dump output Ard Biesheuvel
@ 2014-10-28 12:42 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2014-10-28 12:42 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Oct 28, 2014 at 01:24:20PM +0100, Ard Biesheuvel wrote:
> This installs the machine name as recorded by setup_machine_fdt()
> as dump stack arch description. This results in the string to be
> included in call stack dumps, as is shown here:
Thanks, I've just added this to ARM as well.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-28 12:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 12:24 [PATCH] arm64/dt: add machine name to kernel call stack dump output Ard Biesheuvel
2014-10-28 12:42 ` Russell King - ARM Linux
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).