Skip to content

Commit

Permalink
arm64/dt: add machine name to kernel call stack dump output
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Ard Biesheuvel authored and Will Deacon committed Nov 6, 2014
1 parent 5284e1b commit d8c6d8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit d8c6d8b

Please sign in to comment.