diff options
author | Punit Agrawal <punit1.agrawal@toshiba.co.jp> | 2020-05-12 13:55:02 +0900 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-05-14 11:11:20 +0200 |
commit | 3d8c11efd528d56972d44ed0de51c4e11a9a4fa9 (patch) | |
tree | 7f5053e726d434f9fe33263b14afd0eed9d1053a /include/linux/cper.h | |
parent | fd62619598069c974739476d1851a00d665041d7 (diff) | |
download | kernel_replicant_linux-3d8c11efd528d56972d44ed0de51c4e11a9a4fa9.tar.gz kernel_replicant_linux-3d8c11efd528d56972d44ed0de51c4e11a9a4fa9.tar.bz2 kernel_replicant_linux-3d8c11efd528d56972d44ed0de51c4e11a9a4fa9.zip |
efi: cper: Add support for printing Firmware Error Record Reference
While debugging a boot failure, the following unknown error record was
seen in the boot logs.
<...>
BERT: Error records from previous boot:
[Hardware Error]: event severity: fatal
[Hardware Error]: Error 0, type: fatal
[Hardware Error]: section type: unknown, 81212a96-09ed-4996-9471-8d729c8e69ed
[Hardware Error]: section length: 0x290
[Hardware Error]: 00000000: 00000001 00000000 00000000 00020002 ................
[Hardware Error]: 00000010: 00020002 0000001f 00000320 00000000 ........ .......
[Hardware Error]: 00000020: 00000000 00000000 00000000 00000000 ................
[Hardware Error]: 00000030: 00000000 00000000 00000000 00000000 ................
<...>
On further investigation, it was found that the error record with
UUID (81212a96-09ed-4996-9471-8d729c8e69ed) has been defined in the
UEFI Specification at least since v2.4 and has recently had additional
fields defined in v2.7 Section N.2.10 Firmware Error Record Reference.
Add support for parsing and printing the defined fields to give users
a chance to figure out what went wrong.
Signed-off-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: James Morse <james.morse@arm.com>
Cc: linux-acpi@vger.kernel.org
Cc: linux-efi@vger.kernel.org
Link: https://lore.kernel.org/r/20200512045502.3810339-1-punit1.agrawal@toshiba.co.jp
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/linux/cper.h')
-rw-r--r-- | include/linux/cper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/cper.h b/include/linux/cper.h index 4f005d95ce88..8537e9282a65 100644 --- a/include/linux/cper.h +++ b/include/linux/cper.h @@ -521,6 +521,15 @@ struct cper_sec_pcie { u8 aer_info[96]; }; +/* Firmware Error Record Reference, UEFI v2.7 sec N.2.10 */ +struct cper_sec_fw_err_rec_ref { + u8 record_type; + u8 revision; + u8 reserved[6]; + u64 record_identifier; + guid_t record_identifier_guid; +}; + /* Reset to default packing */ #pragma pack() |