diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2016-07-28 17:17:19 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-29 19:22:04 -0700 |
commit | 3d01f46a5b38d5e3ad9fd07a32ff4011523d9c19 (patch) | |
tree | bb03301bfcc4a9d20d3813f44b06e70960429e1e /include/tpm_registers.h | |
parent | 17276a7a7e55329e2c67486094e4a80d85b72950 (diff) | |
download | chrome-ec-3d01f46a5b38d5e3ad9fd07a32ff4011523d9c19.tar.gz |
HACK tpm: reset fallback counter when ready
As a temp measure until a proper solution is implemented, reset the
restart counter when the PCR_Read command is issued by the host.
This is a good indication that Chrome OS is through the boot process,
as PCR value is used to determine the boot mode.
BRANCH=none
BUG=chrome-os-partner:55667
TEST=installed the new image on a Kevin cr50 and rebooted it in normal
and recovery modes, observed on the cr50 console the message like
> system_process_retry_counter:retry counter 1
Change-Id: Ib55e161d5edbf8f6e2d387fd756b94aa53c20ed8
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/364311
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/tpm_registers.h')
-rw-r--r-- | include/tpm_registers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tpm_registers.h b/include/tpm_registers.h index bb08725d43..c7e8dd27a9 100644 --- a/include/tpm_registers.h +++ b/include/tpm_registers.h @@ -40,4 +40,10 @@ struct tpm_cmd_header { uint16_t subcommand_code; /* Not a standard field. */ } __packed; +/* + * The only TPM2 command we care about on the driver level, see + * crosbug.com/p/55667 for detals. + */ +#define TPM2_PCR_Read 0x0000017e + #endif /* __CROS_EC_TPM_REGISTERS_H */ |