From e0d934828ef95a702a2a491a9219a1a55cc997cc Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 14 Mar 2019 11:17:21 -0700 Subject: cr50: move to use flash event log With upcoming Cr50 changes which might trigger occasional reboots, it is better to keep the Cr50 log in the newly introduced flash log space as opposed to the circular log in SRAM. There is no need to log TPM resent events, as this is not something worth tracking in a flash log. Enabling flash log facility adds 624 bytes to the prod Cr50 image and 1420 bytes to the DBG Cr50 image. BRANCH=cr50, cr50-mp BUG=b:63760920 TEST=with modified code observed saving of FE_TPM_I2C_ERROR event. Change-Id: Id6779de887dac20ce6c1091c8b1571ae900623fd Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/1525145 Reviewed-by: Namyoon Woo --- common/tpm_registers.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'common') diff --git a/common/tpm_registers.c b/common/tpm_registers.c index fe6ffffc75..8a7a4c5360 100644 --- a/common/tpm_registers.c +++ b/common/tpm_registers.c @@ -20,7 +20,6 @@ #include "system.h" #include "system_chip.h" #include "task.h" -#include "tpm_log.h" #include "tpm_manufacture.h" #include "tpm_registers.h" #include "util.h" @@ -764,12 +763,6 @@ int tpm_reset_request(int wait_until_done, int wipe_nvmem_first) return EC_ERROR_BUSY; } -#ifdef CONFIG_TPM_LOGGING - /* Record input parameters as two bits in the data field. */ - tpm_log_event(TPM_EVENT_INIT, - (!!wait_until_done << 1) | !!wipe_nvmem_first); -#endif - reset_in_progress = 1; wipe_result = EC_SUCCESS; -- cgit v1.2.1