--- tools/bfapei/bfapei.c | 2 +- tools/common/include/acpi.h | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/tools/bfapei/bfapei.c b/tools/bfapei/bfapei.c index b27d0e1..2bf104d 100644 --- a/tools/bfapei/bfapei.c +++ b/tools/bfapei/bfapei.c @@ -195,7 +195,7 @@ static int bfapei_hest(char **buf, int *size, uint64_t paddr, int status) block_ptr = (struct acpi_hest_generic_status *) (++add_ptr); block_ptr->block_status = status; block_ptr->data_length = sizeof(struct acpi_hest_generic_data); - block_ptr->error_severity = GHES_SEV_CORRECTED; + block_ptr->error_severity = CPER_SEV_CORRECTED;
/* Fill in generic error data entry */ gdata = (struct acpi_hest_generic_data *) (block_ptr + 1); diff --git a/tools/common/include/acpi.h b/tools/common/include/acpi.h index 2b46c9b..01dad20 100644 --- a/tools/common/include/acpi.h +++ b/tools/common/include/acpi.h @@ -127,10 +127,10 @@ struct acpi_hest_generic { };
enum { - GHES_SEV_NO = 0x0, - GHES_SEV_CORRECTED = 0x1, - GHES_SEV_RECOVERABLE = 0x2, - GHES_SEV_PANIC = 0x3, + CPER_SEV_RECOVERABLE, + CPER_SEV_FATAL, + CPER_SEV_CORRECTED, + CPER_SEV_INFORMATIONAL, };
/* Generic Error Status block */ @@ -213,7 +213,11 @@ struct cper_sec_mem_err { uint64_t responder_id; uint64_t target_id; uint8_t error_type; -} __attribute__ ((packed)); + uint8_t reserved; + uint16_t rank; + uint16_t mem_array_handle; /* card handle in UEFI 2.4 */ + uint16_t mem_dev_handle; /* module handle in UEFI 2.4 */ +};
/* ERST Error Log Address Range atrributes */ #define ERST_RANGE_RESERVED 0x0001