Hello SANTHOSH JANARDHANA HASSAN,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/32272
to review the following change.
Change subject: mb/google/mistral: Ignore REC switch if TPM isn't ready
......................................................................
mb/google/mistral: Ignore REC switch if TPM isn't ready
The recovery button's state is cached in the TPM, but on first boot Cr50
isn't ready yet for this task, which leads to a reboot further down the
road (to get TPM up).
To not confuse matters further, only act on the recovery button if the
TPM is in fact able to cache the state.
BUG=b:129878075
BRANCH=none
TEST=recovery button is only read on second boot
Change-Id: I1ad2c148be4cbdbb2afa05c46c483d89855e1959
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
M src/mainboard/google/mistral/chromeos.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/32272/1
diff --git a/src/mainboard/google/mistral/chromeos.c b/src/mainboard/google/mistral/chromeos.c
index 9b69a4f..e0306b16 100644
--- a/src/mainboard/google/mistral/chromeos.c
+++ b/src/mainboard/google/mistral/chromeos.c
@@ -72,6 +72,9 @@
gpio_t rec_sw;
static enum switch_state saved_state = not_probed;
+ if (is_tpm_detected() == 0)
+ return saved_state;
+
if (saved_state != not_probed)
return saved_state;
--
To view, visit https://review.coreboot.org/c/coreboot/+/32272
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1ad2c148be4cbdbb2afa05c46c483d89855e1959
Gerrit-Change-Number: 32272
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: SANTHOSH JANARDHANA HASSAN <sahassan(a)google.com>
Gerrit-MessageType: newchange
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30965
Change subject: google/mistral: move bootblock and fmap to their previous location
......................................................................
google/mistral: move bootblock and fmap to their previous location
Helps with the current boot hack that requires them to be at certain
locations.
Also make GBB smaller. We don't store graphics in there anymore.
Change-Id: I09c3a6d4221990cd51d4793693a7c7ae2df85105
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
M src/mainboard/google/mistral/chromeos.fmd
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/30965/1
diff --git a/src/mainboard/google/mistral/chromeos.fmd b/src/mainboard/google/mistral/chromeos.fmd
index a9bdd7b..ffeec16 100644
--- a/src/mainboard/google/mistral/chromeos.fmd
+++ b/src/mainboard/google/mistral/chromeos.fmd
@@ -2,9 +2,9 @@
WP_RO@0x0 0x400000 {
RO_SECTION@0x0 0x3e0000 {
BOOTBLOCK@0 128K
- COREBOOT(CBFS)@0x20000 0x2e0000
- FMAP@0x300000 0x1000
- GBB@0x301000 0xdef00
+ COREBOOT(CBFS)@0x3e000 0x1e0000
+ FMAP@0x21e000 0x1000
+ GBB@0x3dd000 0x2f00
RO_FRID@0x3dff00 0x100
}
RO_VPD@0x3e0000 0x20000
--
To view, visit https://review.coreboot.org/c/coreboot/+/30965
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I09c3a6d4221990cd51d4793693a7c7ae2df85105
Gerrit-Change-Number: 30965
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange