tegra132: never recover cbmem from romstage
Tegra132 has 2 different paths for booting and resuming from
sleep. The boot path uses the typical bootblock, romstage,
and ramstage. However, the resume path is completely orthogonal.
cbmem_initialize() attempts to recover the cbmem area, but
that functionality should not be used from romstage because
tegra132 is by definition in a fresh boot if it is executing
romstage. Therefore, use cbmem_initialize_empty() so that cbmem
is always initialized from scratch on each boot.
BUG=chrome-os-partner:31239
BRANCH=None
TEST=Built and ran on ryu. Was able to enter recovery and stay in
recovery without entering a reboot loop.
Change-Id: I2016146fdc3aea493a78bab31ea8c8cbd78935c5
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/211424
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
c0e22ba043
commit
28ebc092e6
1 changed files with 6 additions and 1 deletions
|
|
@ -81,7 +81,12 @@ void romstage(void)
|
|||
*/
|
||||
trustzone_region_init();
|
||||
|
||||
cbmem_initialize();
|
||||
/*
|
||||
* When romstage is running it's always on the reboot path -- never a
|
||||
* resume path where cbmem recovery is required. Therefore, always
|
||||
* initialize the cbmem area to be empty.
|
||||
*/
|
||||
cbmem_initialize_empty();
|
||||
|
||||
ccplex_cpu_prepare();
|
||||
printk(BIOS_INFO, "T132 romstage: cpu prepare done\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue