arm64: dmi: set DMI string as dump stack arch description
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 15 Oct 2014 07:36:50 +0000 (09:36 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 5 Nov 2014 08:03:32 +0000 (09:03 +0100)
This sets the DMI string, containing system type, serial number,
firmware version etc. as dump stack arch description, so that oopses
and other kernel stack dumps automatically have this information
included, if available.

Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
arch/arm64/kernel/efi.c

index 9ae5e7918b8f883f3ed7b3b0a642439ac7895ede..6fac253bc783a44066630643c0b57153825d0be9 100644 (file)
@@ -479,6 +479,8 @@ static int __init arm64_dmi_init(void)
         * itself, depends on dmi_scan_machine() having been called already.
         */
        dmi_scan_machine();
+       if (dmi_available)
+               dmi_set_dump_stack_arch_desc();
        return 0;
 }
 core_initcall(arm64_dmi_init);