efi/arm: Show SMBIOS bank/device location in CPER and GHES error logs
authorMarcin Benka <mbenka@marvell.com>
Thu, 28 Mar 2019 19:34:27 +0000 (20:34 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Mar 2019 06:35:00 +0000 (07:35 +0100)
commit5e83cfe947444c7f201f8c39ce0189922ec9f578
treea8c3d3a4df17db2d012b1446c931f29b18d11b29
parentc2999c281ea2d2ebbdfce96cecc7b52e2ae7c406
efi/arm: Show SMBIOS bank/device location in CPER and GHES error logs

Run dmi_memdev_walk() for arch arm* as other architectures do.
This improves error logging as the memory device handle is
translated now to the DIMM entry's name provided by the DMI handle.

Before:

 {1}[Hardware Error]:   DIMM location: not present. DMI handle: 0x0038

After:

 {1}[Hardware Error]:   DIMM location: N0 DIMM_A0

Signed-off-by: Marcin Benka <mbenka@marvell.com>
Signed-off-by: Robert Richter <rrichter@marvell.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20190328193429.21373-4-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/arm-runtime.c