From 522e0dbdaa46dde5363ad4c50a11938ae2f17a0d Mon Sep 17 00:00:00 2001 From: Francois Toguo Date: Thu, 21 Jan 2021 09:55:19 -0800 Subject: acpi: Add support for reporting CrashLog in BERT table Crash Data are collected and sent to the OS via the ACPI BERT. BUG=None TEST=Built, and BERT successfully generated in the crashLog flow. Signed-off-by: Francois Toguo Change-Id: I00e390d735d61beac2e89a726e39119d9b06b3df Signed-off-by: Nikunj A. Dadhania Reviewed-on: https://review.coreboot.org/c/coreboot/+/49799 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/arch/x86/include/arch/bert_storage.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch/x86/include') diff --git a/src/arch/x86/include/arch/bert_storage.h b/src/arch/x86/include/arch/bert_storage.h index 060e1a43f2..0d373e10b4 100644 --- a/src/arch/x86/include/arch/bert_storage.h +++ b/src/arch/x86/include/arch/bert_storage.h @@ -41,6 +41,9 @@ * +--------------------------------------------------------------------+ */ +#define CRASHLOG_RECORD_TYPE 0x2 +#define CRASHLOG_FW_ERR_REV 0x2 + /* Get implementation-specific reserved area for generating BERT info */ void bert_reserved_region(void **start, size_t *size); @@ -120,6 +123,9 @@ acpi_hest_generic_data_v300_t *bert_append_genproc( acpi_hest_generic_data_v300_t *bert_append_ia32x64( acpi_generic_error_status_t *status); +void *new_cper_fw_error_crashlog(acpi_generic_error_status_t *status, size_t cl_size); +acpi_hest_generic_data_v300_t *bert_append_fw_err(acpi_generic_error_status_t *status); + /* Add a new event to the BERT region. An event consists of an ACPI Error * Status Block, a Generic Error Data Entry, and an associated CPER Error * Section. -- cgit v1.2.3