elog: add extended management engine event
We are seeing ME disabled and ME error events on some devices and this extended info can help with debug. Also fix a potential issue where if the log does manage to get completely full it will never try to shrink it because the only call to shrink the log happens after a successful event write. Add a check at elog init time to shrink the log size. Change-Id: Ib81dc231f6a004b341900374e6c07962cc292031 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/1739 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
3beb6db6dd
commit
5c88c6f2d7
@@ -108,6 +108,16 @@ struct elog_event_data_wake {
|
||||
|
||||
/* Management Engine Events */
|
||||
#define ELOG_TYPE_MANAGEMENT_ENGINE 0xa2
|
||||
#define ELOG_TYPE_MANAGEMENT_ENGINE_EXT 0xa4
|
||||
struct elog_event_data_me_extended {
|
||||
u8 current_working_state;
|
||||
u8 operation_state;
|
||||
u8 operation_mode;
|
||||
u8 error_code;
|
||||
u8 progress_code;
|
||||
u8 current_pmevent;
|
||||
u8 current_state;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/* Last post code from previous boot */
|
||||
#define ELOG_TYPE_LAST_POST_CODE 0xa3
|
||||
|
Reference in New Issue
Block a user