Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41857 )
Change subject: util/board-status: Reject logs with unknown timestamps
......................................................................
util/board-status: Reject logs with unknown timestamps
Check the output of `cbmem -t` for unknown timestamps. If present, ask
the user to rebuild `cbmem`.
Change-Id: Ief7aa1a698f10d9721964ad1bee057fcd9f4aa40
Signed-off-by: Paul Menzel <pmenzel(a)molgen.mpg.de>
---
M util/board_status/board_status.sh
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/41857/1
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 2e93fe2..e772238 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -431,6 +431,11 @@
echo "Getting timestamp data"
cmd_nonfatal $LOCAL "$cbmem_cmd -t" "${tmpdir}/${results}/coreboot_timestamps.txt"
+ if [ $(grep -- unknown "${tmpdir}/${results}/coreboot_timestamps.txt") ]; then
+ echo "Unknown timestamps found in 'coreboot_timestamps.txt'." \
+ "Please rebuild the utility 'cbmem'."
+ exit $EXIT_FAILURE
+ fi
if [ "$cmos_enabled" -eq 1 ]; then
echo "Verifying that nvramtool is available"
--
To view, visit https://review.coreboot.org/c/coreboot/+/41857
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief7aa1a698f10d9721964ad1bee057fcd9f4aa40
Gerrit-Change-Number: 41857
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newchange
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/43407 )
Change subject: payloads/depthcharge: Makefile: resolve fail of concurrent build
......................................................................
payloads/depthcharge: Makefile: resolve fail of concurrent build
Resolve missing dependency to fix concurrent building.
Resolves: https://ticket.coreboot.org/issues/271
Change-Id: Idbd9155e01fcc4571a61f1bba5b2b4a446036da0
Signed-off-by: Michael Niewöhner <foss(a)mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43407
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
---
M payloads/external/depthcharge/Makefile
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
build bot (Jenkins): Verified
Patrick Georgi: Looks good to me, approved
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index c4dd1bf..60aa92d5 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -50,8 +50,7 @@
# Check out the requested version of the tree
# Don't write a file for master branch so the latest remote version is always used
-$(project_dir)/.version_$(TAG-y):
- $(MAKE) fetch
+$(project_dir)/.version_$(TAG-y): fetch
echo " Checking out $(project_name) revision $(TAG-y)"
rm -f $(project_dir)/.version_*
cd $(project_dir); \
--
To view, visit https://review.coreboot.org/c/coreboot/+/43407
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idbd9155e01fcc4571a61f1bba5b2b4a446036da0
Gerrit-Change-Number: 43407
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43407 )
Change subject: payloads/depthcharge: Makefile: resolve fail of concurrent build
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/43407
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idbd9155e01fcc4571a61f1bba5b2b4a446036da0
Gerrit-Change-Number: 43407
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 15 Jul 2020 10:33:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Jett Rink has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43414 )
Change subject: security/vboot: ensure that NVMEN is save before potential brownout
......................................................................
security/vboot: ensure that NVMEN is save before potential brownout
Before we ask the EC to perform a cold reboot, we need to ensure that
the TPM has actually saved its NVMEN, since it batches up all of the
writes until a later time.
BRANCH=none
BUG=b:160913048
TEST=Verify that puff will no longer reboot loop when coreboot writes a
new Hmir (Hash mirror) in the TPM
Change-Id: I9597a55891d11bdf040d70f38b4c5a59c7888b8a
Signed-off-by: Jett Rink <jettrink(a)chromium.org>
---
M src/security/vboot/ec_sync.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/43414/1
diff --git a/src/security/vboot/ec_sync.c b/src/security/vboot/ec_sync.c
index 97b8ed9..f5816f3 100644
--- a/src/security/vboot/ec_sync.c
+++ b/src/security/vboot/ec_sync.c
@@ -6,6 +6,7 @@
#include <delay.h>
#include <ec/google/chromeec/ec.h>
#include <halt.h>
+#include <security/tpm/tss.h>
#include <security/vboot/misc.h>
#include <security/vboot/vbnv.h>
#include <security/vboot/vboot_common.h>
@@ -57,6 +58,10 @@
case VB2_REQUEST_REBOOT_EC_TO_RO:
printk(BIOS_INFO, "EC Reboot requested. Doing cold reboot\n");
+
+ /* Since cold reboots may brown out, ensure TPM data is saved */
+ tlcl_cr50_enable_nvcommits();
+
if (google_chromeec_reboot(0, EC_REBOOT_COLD, 0))
printk(BIOS_EMERG, "Failed to get EC to cold reboot\n");
--
To view, visit https://review.coreboot.org/c/coreboot/+/43414
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9597a55891d11bdf040d70f38b4c5a59c7888b8a
Gerrit-Change-Number: 43414
Gerrit-PatchSet: 1
Gerrit-Owner: Jett Rink <jettrink(a)chromium.org>
Gerrit-MessageType: newchange
Shaunak Saha has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42214 )
Change subject: soc/intel/tigerlake: SATA Port Enable Dito Config
......................................................................
soc/intel/tigerlake: SATA Port Enable Dito Config
SataPortsEnableDitoConfig Enable DEVSLP Idle Timeout settings DmVal and
DitoVal. SataPortsDmVal and SataPortsDitoVal helps to determine when to
enter Device Sleep. Device Sleep enables the host bus adapter (HBA) to
assert the DEVSLP signal as soon as there are no commands outstanding
to the device and the port specific Device Sleep idle timer has expired.
And the Device Sleep Idle Timeout value (PxDEVSLP.DITO and PxDEVSLP.DM) is a
port specific timeout value used by the HBA for determining when to assert the
DEVSLP signal. It provides a mechanism for the HBA to apply a programmable
amount of hysteresis so as to prevent the HBA from asserting the DEVSLP signal
too quickly which may result in undesirable latencies.
*PxDEVSLP.DM -> SataPortsDmVal: Enable SATA Port DmVal DITO multiplier.
Default is 15.
*PxDEVSLP.DITO -> SataPortsDitoVal: Enable SATA Port DmVal DEVSLP Idle Timeout
(DITO), Default is 625.
BUG=b:151163106
BRANCH=None
TEST=Build and boot volteer and TGL RVP.
Signed-off-by: Shaunak Saha <shaunak.saha(a)intel.com>
Change-Id: I6a824524738a9e0609f54bea9d892b4a42a1d3db
---
M src/soc/intel/tigerlake/chip.h
M src/soc/intel/tigerlake/fsp_params.c
2 files changed, 24 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/42214/1
diff --git a/src/soc/intel/tigerlake/chip.h b/src/soc/intel/tigerlake/chip.h
index ed09aaa..d920fc9 100644
--- a/src/soc/intel/tigerlake/chip.h
+++ b/src/soc/intel/tigerlake/chip.h
@@ -98,6 +98,18 @@
uint8_t SataPortsEnable[8];
uint8_t SataPortsDevSlp[8];
+ /*
+ * Enable(0)/Disable(1) SATA Power Optimizer on PCH side.
+ * Default 0. Setting this to 1 disables the SATA Power Optimizer.
+ */
+ uint8_t SataPwrOptimizeDisable;
+
+ /*
+ * SATA Port Enable Dito Config.
+ * Enable DEVSLP Idle Timeout settings (DmVal, DitoVal).
+ */
+ uint8_t SataPortsEnableDitoConfig[8];
+
/* Audio related */
uint8_t PchHdaDspEnable;
uint8_t PchHdaAudioLinkHdaEnable;
@@ -308,11 +320,6 @@
*/
uint8_t DmiPwrOptimizeDisable;
- /*
- * Enable(0)/Disable(1) SATA Power Optimizer on PCH side.
- * Default 0. Setting this to 1 disables the SATA Power Optimizer.
- */
- uint8_t SataPwrOptimizeDisable;
};
typedef struct soc_intel_tigerlake_config config_t;
diff --git a/src/soc/intel/tigerlake/fsp_params.c b/src/soc/intel/tigerlake/fsp_params.c
index bdcd357..c2c963f 100644
--- a/src/soc/intel/tigerlake/fsp_params.c
+++ b/src/soc/intel/tigerlake/fsp_params.c
@@ -202,6 +202,18 @@
params->PchPwrOptEnable = !(config->DmiPwrOptimizeDisable);
params->SataPwrOptEnable = !(config->SataPwrOptimizeDisable);
+ /*
+ * Enable DEVSLP Idle Timeout settings DmVal and DitoVal.
+ * SataPortsDmVal is the DITO multiplier. Default is 15.
+ * SataPortsDitoVal is the DEVSLP Idle Timeout (DITO), Default is 625.
+ */
+ for (i = 0; i < ARRAY_SIZE(config->SataPortsEnableDitoConfig); i++) {
+ if (config->SataPortsEnableDitoConfig[i]) {
+ params->SataPortsDmVal[i] = 15;
+ params->SataPortsDitoVal[1] = 625;
+ }
+ }
+
/* Enable TCPU for processor thermal control */
params->Device4Enable = config->Device4Enable;
--
To view, visit https://review.coreboot.org/c/coreboot/+/42214
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6a824524738a9e0609f54bea9d892b4a42a1d3db
Gerrit-Change-Number: 42214
Gerrit-PatchSet: 1
Gerrit-Owner: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-MessageType: newchange