summaryrefslogtreecommitdiffstats
path: root/src/include/elog.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-02-05 16:15:10 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-02-13 13:03:33 +0000
commite0f340054761086e4c329a2f66bb8f5b6e13d7c9 (patch)
tree977ba95155edd474d6d67c4bf61f58ee869c094f /src/include/elog.h
parent91be00ef1be29e6670599aa5e9c297854a928d07 (diff)
downloadcoreboot-e0f340054761086e4c329a2f66bb8f5b6e13d7c9.tar.gz
coreboot-e0f340054761086e4c329a2f66bb8f5b6e13d7c9.tar.bz2
coreboot-e0f340054761086e4c329a2f66bb8f5b6e13d7c9.zip
coreboot: check Cr50 PM mode on normal boot
Under some scenarios the key ladder on the Cr50 can get disabled. If this state is detected, trigger a reboot of the Cr50 to restore full TPM functionality. BUG=b:121463033 BRANCH=none TEST=Built coreboot on sarien and grunt platforms. TEST=Ran 'gsctool -a -m disable' and reboot. Verified coreboot sends VENDOR_CC_IMMEDIATE_RESET command to Cr50 and that the Cr50 resets and then the platform boots normally. TEST=Performed Cr50 rollback to 0.0.22 which does not support the VENDOR_CC_TPM_MODE command, confirmed that platform boots normally and the coreboot log captures the unsupported command. Tested-by: Keith Short <keithshort@chromium.org> Change-Id: I70e012efaf1079d43890e909bc6b5015bef6835a Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://review.coreboot.org/c/31260 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/include/elog.h')
-rw-r--r--src/include/elog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/elog.h b/src/include/elog.h
index 31891e01ec20..f1d5314ff351 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -223,6 +223,9 @@ struct elog_event_mem_cache_update {
#define ELOG_SLEEP_PENDING_PM1_WAKE 0x01
#define ELOG_SLEEP_PENDING_GPE0_WAKE 0x02
+/* Cr50 reset to enable TPM */
+#define ELOG_TYPE_CR50_NEED_RESET 0xb2
+
struct elog_event_extended_event {
u8 event_type;
u32 event_complement;