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)
commit9baf68cc4544056f33797b78ec09388f54ecc8f0
tree76084587c14268ba99ae23bed5f7e8b73d1cf8fe
parent4a568ce29d3f48df95919f82a80e4b9be7ea0dc1
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