Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/29652 )
Change subject: tss/tcg-2.0: remove unnecessary break from marshaling code
......................................................................
tss/tcg-2.0: remove unnecessary break from marshaling code
BUG=None
TEST=None
Change-Id: I054e0799469bf39499666342a5c639b1f766cd85
Signed-off-by: Joel Kitching <kitching(a)google.com>
Reviewed-on: https://review.coreboot.org/c/29652
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/security/tpm/tss/tcg-2.0/tss_marshaling.c
1 file changed, 0 insertions(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Patrick Georgi: Looks good to me, approved
diff --git a/src/security/tpm/tss/tcg-2.0/tss_marshaling.c b/src/security/tpm/tss/tcg-2.0/tss_marshaling.c
index d8b3097..f1c5a37 100644
--- a/src/security/tpm/tss/tcg-2.0/tss_marshaling.c
+++ b/src/security/tpm/tss/tcg-2.0/tss_marshaling.c
@@ -475,7 +475,6 @@
break;
case TPM2_CR50_SUB_CMD_TURN_UPDATE_ON:
return ibuf_read_be8(ib, &vcr->num_restored_headers);
- break;
case TPM2_CR50_SUB_CMD_GET_REC_BTN:
return ibuf_read_be8(ib, &vcr->recovery_button_state);
default:
--
To view, visit https://review.coreboot.org/c/coreboot/+/29652
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I054e0799469bf39499666342a5c639b1f766cd85
Gerrit-Change-Number: 29652
Gerrit-PatchSet: 9
Gerrit-Owner: Joel Kitching <kitching(a)google.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Joel Kitching <kitching(a)google.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: Vadim Bendebury <vbendeb(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29652 )
Change subject: tss/tcg-2.0: remove unnecessary break from marshaling code
......................................................................
Patch Set 8: Code-Review+2
inherit CR+2 after manual rebase
--
To view, visit https://review.coreboot.org/c/coreboot/+/29652
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I054e0799469bf39499666342a5c639b1f766cd85
Gerrit-Change-Number: 29652
Gerrit-PatchSet: 8
Gerrit-Owner: Joel Kitching <kitching(a)google.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Joel Kitching <kitching(a)google.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: Vadim Bendebury <vbendeb(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Thu, 17 Jan 2019 13:08:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Patrick Georgi has uploaded a new patch set (#8) to the change originally created by Joel Kitching. ( https://review.coreboot.org/c/coreboot/+/29652 )
Change subject: tss/tcg-2.0: remove unnecessary break from marshaling code
......................................................................
tss/tcg-2.0: remove unnecessary break from marshaling code
BUG=None
TEST=None
Change-Id: I054e0799469bf39499666342a5c639b1f766cd85
Signed-off-by: Joel Kitching <kitching(a)google.com>
---
M src/security/tpm/tss/tcg-2.0/tss_marshaling.c
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/29652/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/29652
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I054e0799469bf39499666342a5c639b1f766cd85
Gerrit-Change-Number: 29652
Gerrit-PatchSet: 8
Gerrit-Owner: Joel Kitching <kitching(a)google.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Joel Kitching <kitching(a)google.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: Vadim Bendebury <vbendeb(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/23361 )
Change subject: lib/libgcc.c: Fix shift warnings
......................................................................
lib/libgcc.c: Fix shift warnings
```
if (!(a & (0xffff << 16))) {
^~
src/lib/libgcc.c:40:18: error: result of '255 << 24' requires 33 bits to represent, but 'int' only has 32 bits [-Werror=shift-overflow=]
if (!(a & (0xff << 24))) {
^~
src/lib/libgcc.c:45:17: error: result of '15 << 28' requires 33 bits to represent, but 'int' only has 32 bits [-Werror=shift-overflow=]
if (!(a & (0xf << 28))) {
^~
```
Change-Id: I7bdd75c20a76b303743d7e7e0d3a6503760284fd
Signed-off-by: Paul Menzel <pmenzel(a)molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/23361
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Patrick Rudolph <siro(a)das-labor.org>
Reviewed-by: Julius Werner <jwerner(a)chromium.org>
Reviewed-by: HAOUAS Elyes <ehaouas(a)noos.fr>
---
M src/lib/libgcc.c
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
build bot (Jenkins): Verified
HAOUAS Elyes: Looks good to me, but someone else must approve
Julius Werner: Looks good to me, approved
Patrick Rudolph: Looks good to me, but someone else must approve
diff --git a/src/lib/libgcc.c b/src/lib/libgcc.c
index 369346c..99a0749 100644
--- a/src/lib/libgcc.c
+++ b/src/lib/libgcc.c
@@ -32,17 +32,17 @@
};
int r = 0;
- if (!(a & (0xffff << 16))) {
+ if (!(a & (0xffffU << 16))) {
r += 16;
a <<= 16;
}
- if (!(a & (0xff << 24))) {
+ if (!(a & (0xffU << 24))) {
r += 8;
a <<= 8;
}
- if (!(a & (0xf << 28))) {
+ if (!(a & (0xfU << 28))) {
r += 4;
a <<= 4;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/23361
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7bdd75c20a76b303743d7e7e0d3a6503760284fd
Gerrit-Change-Number: 23361
Gerrit-PatchSet: 3
Gerrit-Owner: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Keith Short has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30937
Change subject: src/mainboard/google/sarien: query recovery mode from Cr50
......................................................................
src/mainboard/google/sarien: query recovery mode from Cr50
On the Sarien/Arcada platforms, the EC is not trusted to provide
the state of the ESC+REFRESH+PWR recovery combination. On these
platforms the Cr50 latches the state of REFRESH+PWR for use as the
recovery mode key combination.
BUG=b:122715254
BRANCH=none
TEST=Verify recovery mode screen shown after pressing REFRESH+PWR
Change-Id: If336e9d7016987be151ab30d5c037ead3a998fe0
Signed-off-by: Keith Short <keithshort(a)chromium.org>
---
M src/mainboard/google/sarien/chromeos.c
1 file changed, 12 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/30937/1
diff --git a/src/mainboard/google/sarien/chromeos.c b/src/mainboard/google/sarien/chromeos.c
index 33647df..f1da3bb 100644
--- a/src/mainboard/google/sarien/chromeos.c
+++ b/src/mainboard/google/sarien/chromeos.c
@@ -20,6 +20,8 @@
#include <soc/gpio.h>
#include <variant/gpio.h>
#include <vendorcode/google/chromeos/chromeos.h>
+#include <security/tpm/tss.h>
+
void fill_lb_gpios(struct lb_gpios *gpios)
{
@@ -71,7 +73,16 @@
int get_recovery_mode_switch(void)
{
- return cros_get_gpio_value(CROS_GPIO_REC);
+ uint8_t recovery_button_state;
+ int recovery_mode_switch = 0;
+
+ if (cros_get_gpio_value(CROS_GPIO_REC))
+ recovery_mode_switch = 1;
+ else if (tlcl_cr50_get_recovery_button(&recovery_button_state)
+ == TPM_SUCCESS)
+ recovery_mode_switch = recovery_button_state;
+
+ return recovery_mode_switch;
}
int get_lid_switch(void)
--
To view, visit https://review.coreboot.org/c/coreboot/+/30937
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If336e9d7016987be151ab30d5c037ead3a998fe0
Gerrit-Change-Number: 30937
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Short <keithshort(a)chromium.org>
Gerrit-MessageType: newchange