Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38393 )
Change subject: drivers/i2c/at24rf08c: Log number of failed writes
......................................................................
drivers/i2c/at24rf08c: Log number of failed writes
Change-Id: I1f786043557b11824d4efbde0689d1feb73de6e1
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
M src/drivers/i2c/at24rf08c/at24rf08c.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/38393/1
diff --git a/src/drivers/i2c/at24rf08c/at24rf08c.c b/src/drivers/i2c/at24rf08c/at24rf08c.c
index 11a6fd2..50501ba 100644
--- a/src/drivers/i2c/at24rf08c/at24rf08c.c
+++ b/src/drivers/i2c/at24rf08c/at24rf08c.c
@@ -35,8 +35,10 @@
/* After a register write AT24RF08C sometimes stops responding.
Retry several times in case of failure. */
for (j = 0; j < 100; j++)
- if (smbus_write_byte(dev, i, 0x0f) >= 0)
+ if (smbus_write_byte(dev, i, 0x0f) >= 0) {
+ printk(BIOS_DEBUG, "j = %d", j);
break;
+ }
}
printk(BIOS_DEBUG, "init EEPROM done\n");
--
To view, visit https://review.coreboot.org/c/coreboot/+/38393
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1f786043557b11824d4efbde0689d1feb73de6e1
Gerrit-Change-Number: 38393
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newchange
Kane Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37865 )
Change subject: [under test]mb/google/hatch: Program gpio clk power gating settings in SPI0 PS3/PS0
......................................................................
[under test]mb/google/hatch: Program gpio clk power gating settings in SPI0 PS3/PS0
With PchPmSlpS0Vm075VSupport FSP UPD set, SoC requires gpio clk to be
power gated.
But when gpio clk is power gated, it requires longer interrupt
assertion from device.
This commit provides a way to set gpio clk power gating settings in
SPIO PS0/PS3 so that cr50 doesn't need longer interrupt assertion
and SoC can still enter runtime s0ix with PchPmSlpS0Vm075VSupport set.
BUG=:141831197
Change-Id: I33a3d5897ec40afee29759160963363c322d5ad0
Signed-off-by: Kane Chen <kane.chen(a)intel.com>
---
M src/mainboard/google/hatch/mainboard.asl
1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/37865/1
diff --git a/src/mainboard/google/hatch/mainboard.asl b/src/mainboard/google/hatch/mainboard.asl
index dff1a75..db3c7ff 100644
--- a/src/mainboard/google/hatch/mainboard.asl
+++ b/src/mainboard/google/hatch/mainboard.asl
@@ -55,3 +55,17 @@
LOCL (0)
}
}
+
+Scope (\_SB.PCI0.SPI0)
+{
+ Method (_PS0, 0)
+ {
+ LOCL (0)
+ }
+
+ Method(_PS3, 0)
+ {
+ LOCL (MISCCFG_ENABLE_GPIO_PM_CONFIG)
+ }
+
+}
--
To view, visit https://review.coreboot.org/c/coreboot/+/37865
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I33a3d5897ec40afee29759160963363c322d5ad0
Gerrit-Change-Number: 37865
Gerrit-PatchSet: 1
Gerrit-Owner: Kane Chen <kane.chen(a)intel.com>
Gerrit-MessageType: newchange
Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38057 )
Change subject: security: Move TS_{START,END}_TPMINIT out of vboot
......................................................................
security: Move TS_{START,END}_TPMINIT out of vboot
These are generic timestamps, and not vboot specific. Therefore, move
them to `tpm_setup()`, so that these timestamps are added in all cases.
(vboot timestamps should be namespaced with VBOOT anyway.)
Change-Id: Ib1048f7b7a5903d186cdd750822b4bc8ea7dc665
Signed-off-by: Paul Menzel <pmenzel(a)molgen.mpg.de>
---
M src/security/tpm/tspi/tspi.c
M src/security/vboot/vboot_logic.c
2 files changed, 5 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/38057/1
diff --git a/src/security/tpm/tspi/tspi.c b/src/security/tpm/tspi/tspi.c
index 5fcf92d..9ca9f98 100644
--- a/src/security/tpm/tspi/tspi.c
+++ b/src/security/tpm/tspi/tspi.c
@@ -19,6 +19,7 @@
#include <console/console.h>
#include <security/tpm/tspi.h>
#include <security/tpm/tss.h>
+#include <timestamp.h>
#if CONFIG(VBOOT)
#include <vb2_api.h>
#include <vb2_sha.h>
@@ -127,6 +128,8 @@
{
uint32_t result;
+ timestamp_add_now(TS_START_TPMINIT);
+
result = tlcl_lib_init();
if (result != TPM_SUCCESS) {
printk(BIOS_ERR, "TPM: Can't initialize.\n");
@@ -174,6 +177,8 @@
result = tpm1_invoke_state_machine();
#endif
+ timestamp_add_now(TS_END_TPMINIT);
+
return tpm_setup_epilogue(result);
}
diff --git a/src/security/vboot/vboot_logic.c b/src/security/vboot/vboot_logic.c
index 1d17a17..c65ea3a 100644
--- a/src/security/vboot/vboot_logic.c
+++ b/src/security/vboot/vboot_logic.c
@@ -320,10 +320,8 @@
/* Read secdata from TPM. Initialize TPM if secdata not found. We don't
* check the return value here because vb2api_fw_phase1 will catch
* invalid secdata and tell us what to do (=reboot). */
- timestamp_add_now(TS_START_TPMINIT);
if (vboot_setup_tpm(ctx) == TPM_SUCCESS)
antirollback_read_space_firmware(ctx);
- timestamp_add_now(TS_END_TPMINIT);
/* Enable measured boot mode */
if (CONFIG(VBOOT_MEASURED_BOOT) &&
--
To view, visit https://review.coreboot.org/c/coreboot/+/38057
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib1048f7b7a5903d186cdd750822b4bc8ea7dc665
Gerrit-Change-Number: 38057
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newchange