]> git.baikalelectronics.ru Git - kernel.git/commit
edac,ghes,cper: Add Row Extension to Memory Error Record
authorAlex Kluver <alex.kluver@hpe.com>
Wed, 19 Aug 2020 14:35:43 +0000 (09:35 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 17 Sep 2020 07:19:52 +0000 (10:19 +0300)
commit84c4b1fb7fa625cc65e07769a3b07189076f6fea
tree76084587c14268ba99ae23bed5f7e8b73d1cf8fe
parentbdfd3beabdb94c2781a5e0124ba6c4a6410b51d6
edac,ghes,cper: Add Row Extension to Memory Error Record

Memory errors could be printed with incorrect row values since the DIMM
size has outgrown the 16 bit row field in the CPER structure. UEFI
Specification Version 2.8 has increased the size of row by allowing it to
use the first 2 bits from a previously reserved space within the structure.

When needed, add the extension bits to the row value printed.

Based on UEFI 2.8 Table 299. Memory Error Record

Signed-off-by: Alex Kluver <alex.kluver@hpe.com>
Tested-by: Russ Anderson <russ.anderson@hpe.com>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
Reviewed-by: Kyle Meyer <kyle.meyer@hpe.com>
Acked-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20200819143544.155096-2-alex.kluver@hpe.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/edac/ghes_edac.c
drivers/firmware/efi/cper.c
include/linux/cper.h