diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2019-04-29 17:09:19 -0700 |
---|---|---|
committer | Vadim Bendebury <vbendeb@chromium.org> | 2019-09-21 19:11:22 -0700 |
commit | 43cf22fe90b22b4e29c02eb196b2db0f7e567d80 (patch) | |
tree | 8079bc6f31c874334ec50cd1d710eaf9fe0eaf1a /include | |
parent | 34b3adc0d9adc38d0ed15b3424b48cae864b27ff (diff) | |
download | chrome-ec-43cf22fe90b22b4e29c02eb196b2db0f7e567d80.tar.gz |
nvmem: add logging and restart on app_cipher failures (take two)
Just in case there is a failure when encrypting or decrypting NVMEM
objects, add code which detects problems, reports them in the flash
log and reboots.
BRANCH=cr50, cr50-mp
BUG=b:69907320, b:129710256
TEST=none
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1590042
Reviewed-by: Andrey Pronin <apronin@chromium.org>
(cherry picked from commit 262ded1e01a374537e56160811bdad5763b311a5)
Change-Id: I554f0526ae315e95f5f30f8374da35651d452d68
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1644285
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
(cherry picked from commit af5afacd5aea2c08449fe909fb8acd47ec4b1989)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1705706
(cherry picked from commit e9942fa069bb846d09a9afb2588701a6d7204b6d)
Diffstat (limited to 'include')
-rw-r--r-- | include/flash_log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/flash_log.h b/include/flash_log.h index cfdaf46ce8..bbdd8bb0b3 100644 --- a/include/flash_log.h +++ b/include/flash_log.h @@ -61,7 +61,8 @@ enum nvmem_failure_type { NVMEMF_MISSING_OBJECT = 8, NVMEMF_SECTION_VERIFY = 9, NVMEMF_PRE_ERASE_MISMATCH = 10, - NVMEMF_PAGE_LIST_OVERFLOW = 11 + NVMEMF_PAGE_LIST_OVERFLOW = 11, + NVMEMF_CIPHER_ERROR = 12 }; /* Not all nvmem failures require payload. */ |