Caveh Jalali has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31211 )
Change subject: mb/google/poppy/variants/atlas: move WiFi wake to GPP_B7
......................................................................
Patch Set 2:
This change is ready for review.
--
To view, visit https://review.coreboot.org/c/coreboot/+/31211
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1816500dd0ab6186fd51aa6945faf73d00c152fe
Gerrit-Change-Number: 31211
Gerrit-PatchSet: 2
Gerrit-Owner: Caveh Jalali <caveh(a)google.com>
Gerrit-Reviewer: Caveh Jalali <caveh(a)google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: caveh jalali <caveh(a)chromium.org>
Gerrit-Comment-Date: Thu, 21 Feb 2019 07:31:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29563 )
Change subject: security/tpm: Fix TCPA log feature
......................................................................
Patch Set 36:
(3 comments)
https://review.coreboot.org/#/c/29563/36/src/commonlib/include/commonlib/tc…
File src/commonlib/include/commonlib/tcpa_log_serialized.h:
https://review.coreboot.org/#/c/29563/36/src/commonlib/include/commonlib/tc…
PS36, Line 25: // Assumption of 2K Eventlog size reserved for CAR/SRAM
nit: TCPA log, not eventlog. (Also, comments please /* C89 */ instead of // C99 )
https://review.coreboot.org/#/c/29563/36/src/security/tpm/tspi/log.c
File src/security/tpm/tspi/log.c:
https://review.coreboot.org/#/c/29563/36/src/security/tpm/tspi/log.c@41
PS36, Line 41: tclt = (struct tcpa_table *)_vboot2_tpm_log;
This looks really messy... can't you just let this fall through to use the same code as the else-case below? Like this:
if (cbmem_possibly_online()) {
tclt = cbmem_find(...)
if (tclt)
return tclt;
}
tclt = (...)_vboot2_tpm_log;
...
I would just do the cbmem_add() and the initialization in recovery_tcpa_log(), then you don't need to work it in here.
(I guess you may have done this to try to fix the symbol linking issues you have? But this doesn't solve that either. We happen to have a similar problem while reworking the vboot handoff in CB:31329 right now, Joel is going to introduce a preram_symbols_accessible() helper that could also help you here.)
https://review.coreboot.org/#/c/29563/36/src/security/tpm/tspi/log.c@59
PS36, Line 59: strncmp(TCPA_LOG_HEADER
Be careful that not all platforms necessarily wipe their SRAM on reset. So if you want this to work on non-x86 systems, you should define some point where it will definitely get overwritten. I think since your measurements always start in verstage anyway, you could just do
tclt = (...)_vboot2_tpm_log;
if (ENV_VERSTAGE || ENV_BOOTBLOCK) {
tclt->max_entries = MAX...;
tclt->num_entries = 0;
}
(I don't think a header is really necessary, CAR/SRAM doesn't just get magically corrupted between stages.)
--
To view, visit https://review.coreboot.org/c/coreboot/+/29563
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic93133531b84318f48940d34bded48cbae739c44
Gerrit-Change-Number: 29563
Gerrit-PatchSet: 36
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Patrick Rudolph
Gerrit-CC: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 21 Feb 2019 00:04:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29547 )
Change subject: security/vboot: Add measured boot mode
......................................................................
Patch Set 63:
(5 comments)
Still a lot of line length issues and whitespace fixes that have nothing to do with this CL, I think those need to be resolved before this can go in.
https://review.coreboot.org/#/c/29547/63/src/lib/prog_loaders.c
File src/lib/prog_loaders.c:
https://review.coreboot.org/#/c/29547/63/src/lib/prog_loaders.c@51
PS63, Line 51: if (vboot_measure_prog_hook(prog))
I still don't understand why we don't just cover progs under vboot_measure_cbfs_hook(). Doesn't that make it way simpler? You can still pick the right PCR based on CBFS type (TYPE_STAGE, TYPE_SELF and TYPE_FIT into one bucket, everything else into the other).
https://review.coreboot.org/#/c/29547/63/src/security/vboot/Kconfig
File src/security/vboot/Kconfig:
https://review.coreboot.org/#/c/29547/63/src/security/vboot/Kconfig@42
PS63, Line 42: list
This doesn't seem like such a great idea to me... everyone will end up measuring different stuff. If anything, I think you might rather want a blacklist instead of a whitelist, and you'd probably want the default supplied in SoC Kconfigs rather than being user configurable.
But it's your feature, so if you want it this way that's fine by me too.
https://review.coreboot.org/#/c/29547/63/src/security/vboot/vboot_crtm.c
File src/security/vboot/vboot_crtm.c:
https://review.coreboot.org/#/c/29547/63/src/security/vboot/vboot_crtm.c@91
PS63, Line 91: static bool is_runtime_data(const char *name)
nit: maybe better to call it runtime_data_should_measure(), because it *is* all runtime data, you just don't want to measure it all.
https://review.coreboot.org/#/c/29547/63/src/security/vboot/vboot_crtm.c@94
PS63, Line 94: size_t whitelist_len = strlen(whitelist);
nit: sizeof(CONFIG_...) - 1 could be evaluated at compile time, strlen() will (I believe) count again on every call.
https://review.coreboot.org/#/c/29547/63/src/security/vboot/vboot_crtm.c@102
PS63, Line 102: if (!strncmp(whitelist + i, name, name_len))
nit: strncmp() kinda unnecesary, since you strlen()ed the name anyway, might as well just be strcmp().
--
To view, visit https://review.coreboot.org/c/coreboot/+/29547
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I339a2f1051e44f36aba9f99828f130592a09355e
Gerrit-Change-Number: 29547
Gerrit-PatchSet: 63
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Krystian Hebel <krystian.hebel(a)3mdeb.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Piotr Król <piotr.krol(a)3mdeb.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: York Yang <york.yang(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 20 Feb 2019 23:45:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Duncan Laurie has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/31101 )
Change subject: src/soc/intel/cannonlake: Add _DSM methods for LPIT table
......................................................................
src/soc/intel/cannonlake: Add _DSM methods for LPIT table
This patch adds the _DSM method 5 and 6 for entering and exiting S0ix.
The _DSM method gets injected into DSDT table and called from kernel.
LPIT table is hardcoded in this patch but the proper way to implement
is to use inject_dsdt to make the _DSM methods available for soc's to
implement.
Calling the LPIT table from mainboard here so that with the current
implementation the platforms which do not have lpit support throw
compilation error.
Signed-off-by: Lijian Zhao <lijian.zhao(a)intel.com>
Change-Id: Ia908969decf7cf12f505becb4f4a4a9caa7ed6db
Reviewed-on: https://review.coreboot.org/c/31101
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Shaunak Saha <shaunak.saha(a)intel.corp-partner.google.com>
Reviewed-by: Duncan Laurie <dlaurie(a)chromium.org>
---
M src/mainboard/google/sarien/dsdt.asl
A src/soc/intel/cannonlake/acpi/lpit.asl
2 files changed, 79 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Duncan Laurie: Looks good to me, approved
Shaunak Saha: Looks good to me, but someone else must approve
diff --git a/src/mainboard/google/sarien/dsdt.asl b/src/mainboard/google/sarien/dsdt.asl
index e5e48bb..547253f 100644
--- a/src/mainboard/google/sarien/dsdt.asl
+++ b/src/mainboard/google/sarien/dsdt.asl
@@ -50,6 +50,9 @@
/* Chipset specific sleep states */
#include <soc/intel/cannonlake/acpi/sleepstates.asl>
+ /* Low power idle table */
+ #include <soc/intel/cannonlake/acpi/lpit.asl>
+
#if IS_ENABLED(CONFIG_EC_GOOGLE_WILCO)
/* Chrome OS Embedded Controller */
Scope (\_SB.PCI0.LPCB)
diff --git a/src/soc/intel/cannonlake/acpi/lpit.asl b/src/soc/intel/cannonlake/acpi/lpit.asl
new file mode 100644
index 0000000..8515806
--- /dev/null
+++ b/src/soc/intel/cannonlake/acpi/lpit.asl
@@ -0,0 +1,76 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2019 Intel Corp.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+scope(\_SB)
+{
+ Device(LPID) {
+ Name(_ADR, 0x00000000)
+ Name(_CID, EISAID("PNP0D80"))
+ Name(UUID,
+ ToUUID("c4eb40a0-6cd2-11e2-bcfd-0800200c9a66"))
+ Method(_DSM, 4) {
+ If(Arg0 == ^UUID) {
+ /*
+ * Enum functions
+ */
+ If(Arg2 == Zero) {
+ Return(Buffer(One) {
+ 0x60}
+ )
+ }
+ /*
+ * Function 1.
+ */
+ If(Arg2 == 1) {
+ Return(Package(5) {
+ 0, Ones, Ones, Ones, Ones}
+ )
+ }
+ /*
+ * Function 2.
+ */
+ If(Arg2 == 2) {
+ Return(Buffer(One) {
+ 0x0}
+ )
+ }
+ /*
+ * Function 3.
+ */
+ If(Arg2 == 3) {
+ }
+ /*
+ * Function 4.
+ */
+ If(Arg2 == 4) {
+ }
+ /*
+ * Function 5.
+ */
+ If(Arg2 == 5) {
+ \_SB.PCI0.LPCB.EC0.S0IX(1)
+ }
+ /*
+ * Function 6.
+ */
+ If(Arg2 == 6) {
+ \_SB.PCI0.LPCB.EC0.S0IX(0)
+ }
+ }
+ Return(Buffer(One) {0x00})
+ } // Method(_DSM)
+ } // device (LPID)
+} // End Scope(\_SB)
--
To view, visit https://review.coreboot.org/c/coreboot/+/31101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia908969decf7cf12f505becb4f4a4a9caa7ed6db
Gerrit-Change-Number: 31101
Gerrit-PatchSet: 16
Gerrit-Owner: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Assignee: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Roy Mingi Park <roy.mingi.park(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Sumeet R Pawnikar <sumeet.r.pawnikar(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Casper Chang <casper_chang(a)wistron.corp-partner.google.com>
Gerrit-CC: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged
Duncan Laurie has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31101 )
Change subject: src/soc/intel/cannonlake: Add _DSM methods for LPIT table
......................................................................
Patch Set 15: Code-Review+2
I think this is actually unrelated to the suspend failure, that has been narrowed down to the keyboard itself and we have a kernel fix in progress. I'm going to submit this now so we can unblock more testing.
--
To view, visit https://review.coreboot.org/c/coreboot/+/31101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia908969decf7cf12f505becb4f4a4a9caa7ed6db
Gerrit-Change-Number: 31101
Gerrit-PatchSet: 15
Gerrit-Owner: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Assignee: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Roy Mingi Park <roy.mingi.park(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Sumeet R Pawnikar <sumeet.r.pawnikar(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Casper Chang <casper_chang(a)wistron.corp-partner.google.com>
Gerrit-CC: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Wed, 20 Feb 2019 23:44:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Hello Patrick Rudolph, Aaron Durbin, Piotr Król, Julius Werner, Krystian Hebel, Patrick Rudolph, Stefan Reinauer, Paul Menzel, build bot (Jenkins), Patrick Georgi, Werner Zeh, Huang Jin, York Yang, David Hendricks, Martin Roth, Michał Żygowski,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/29547
to look at the new patch set (#63).
Change subject: security/vboot: Add measured boot mode
......................................................................
security/vboot: Add measured boot mode
* Introduce a measured boot mode into vboot.
* Add hook for stage measurements in prog_loader and cbfs.
* Implement and hook-up CRTM in vboot and check for suspend.
Change-Id: I339a2f1051e44f36aba9f99828f130592a09355e
Signed-off-by: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Signed-off-by: Werner Zeh <werner.zeh(a)siemens.com>
---
M Documentation/index.md
A Documentation/security.md
A Documentation/security/index.md
A Documentation/security/vboot/measured_boot.md
A Documentation/security/vboot/srtm.png
M src/cpu/intel/haswell/Makefile.inc
M src/cpu/intel/model_2065x/Makefile.inc
M src/cpu/intel/model_206ax/Makefile.inc
M src/lib/cbfs.c
M src/lib/prog_loaders.c
M src/security/tpm/tspi/tspi.c
M src/security/vboot/Kconfig
M src/security/vboot/Makefile.inc
A src/security/vboot/vboot_crtm.c
A src/security/vboot/vboot_crtm.h
M src/security/vboot/vboot_logic.c
M src/soc/amd/stoneyridge/Makefile.inc
M src/soc/intel/baytrail/Makefile.inc
M src/soc/intel/braswell/Makefile.inc
M src/soc/intel/broadwell/Makefile.inc
M src/soc/intel/fsp_baytrail/Makefile.inc
M src/soc/intel/fsp_broadwell_de/Makefile.inc
M src/soc/mediatek/mt8183/include/soc/memlayout.ld
M src/soc/rockchip/rk3288/include/soc/memlayout.ld
M util/abuild/abuild
25 files changed, 366 insertions(+), 52 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/29547/63
--
To view, visit https://review.coreboot.org/c/coreboot/+/29547
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I339a2f1051e44f36aba9f99828f130592a09355e
Gerrit-Change-Number: 29547
Gerrit-PatchSet: 63
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Krystian Hebel <krystian.hebel(a)3mdeb.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Piotr Król <piotr.krol(a)3mdeb.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: York Yang <york.yang(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset