diff options
author | Furquan Shaikh <furquan@chromium.org> | 2016-11-03 16:05:07 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-08 02:52:45 -0800 |
commit | 95b2d6ca2bea2a81ceeea58bc4660dfb3fa13a07 (patch) | |
tree | add29853a6a58dd85f92c4b08d7222cfc13fc7ed /tests/vboot_api_kernel4_tests.c | |
parent | 6e3931d1f609fc23b3ca8c7f6e563926e4f38b69 (diff) | |
download | vboot-95b2d6ca2bea2a81ceeea58bc4660dfb3fa13a07.tar.gz |
recovery: Add new recovery reason to train memory and reboot
This new recovery reason will instruct the calling firmware in
vboot_select_and_load_kernel to reboot the device (under the assumption
that training of memory has already been performed by the firmware). On
seeing the return code VBERROR_REBOOT_REQUESTED, calling firmware should
perform a reboot.
BUG=chrome-os-partner:59352
BRANCH=None
TEST=make -j runtests successful
Change-Id: I110a735e612665cb2378bd71ca01a111edaf58e3
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/407656
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/vboot_api_kernel4_tests.c')
-rw-r--r-- | tests/vboot_api_kernel4_tests.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/vboot_api_kernel4_tests.c b/tests/vboot_api_kernel4_tests.c index 2672c4e7..401c61d5 100644 --- a/tests/vboot_api_kernel4_tests.c +++ b/tests/vboot_api_kernel4_tests.c @@ -244,7 +244,9 @@ static void VbSlkTest(void) rkr_retval = rkw_retval = rkl_retval = VBERROR_SIMULATED; test_slk(0, 0, "Recovery ignore TPM errors"); - + ResetMocks(); + shared->recovery_reason = VBNV_RECOVERY_TRAIN_AND_REBOOT; + test_slk(VBERROR_REBOOT_REQUIRED, 0, "Recovery train and reboot"); // todo: rkr/w/l fail ignored if recovery |