From 71e3932c0b21307f6136628547df5c524bcb9eb7 Mon Sep 17 00:00:00 2001 From: Pratikkumar Prajapati Date: Wed, 30 Aug 2023 10:18:51 -0700 Subject: [PATCH] soc/intel/common: Add more fields for CPU crashlog header Add more details in CPU crashlog header structure, such as storage off status and support, re-arm status etc. These fields are used to check of particular feature is supported or not and if supported what is the status of the feature. BUG=b:262501347 TEST=Able to build google/rex. Change-Id: I4242b6043b8f8ad9212780f44ca0448cd2b6b9f8 Signed-off-by: Pratikkumar Prajapati Reviewed-on: https://review.coreboot.org/c/coreboot/+/77562 Reviewed-by: Kapil Porwal Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- .../common/block/include/intelblocks/crashlog.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/soc/intel/common/block/include/intelblocks/crashlog.h b/src/soc/intel/common/block/include/intelblocks/crashlog.h index e63a8cb506..38d1a09de6 100644 --- a/src/soc/intel/common/block/include/intelblocks/crashlog.h +++ b/src/soc/intel/common/block/include/intelblocks/crashlog.h @@ -129,11 +129,17 @@ typedef struct { typedef union { struct { - u64 access_type :4; - u64 crash_type :4; - u64 count :8; - u64 reserved :16; - u64 guid :32; + u64 access_type :4; + u64 crash_type :4; + u64 count :8; + u64 reserved1 :4; + u64 clr_support :1; + u64 storage_off_support :1; + u64 reserved2 :2; + u64 storage_off_status :1; + u64 re_arm_status :1; + u64 reserved3 :6; + u64 guid :32; } fields; u64 data; } __packed cpu_crashlog_header_t;