Michał Żygowski has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/85453?usp=email )
Change subject: superio/ite: Add missing pnp_set_logical_device in ite_kill_watchdog
......................................................................
superio/ite: Add missing pnp_set_logical_device in ite_kill_watchdog
The watchdog registers are available in the GPIO LDN. Global LDN may not
be sufficient to access the watchdog registers. Switch to GPIO LDN
before disabling watchdog.
Change-Id: Id88472d474e947987dd6a63873057551cdcc2e31
Signed-off-by: Michał Żygowski <michal.zygowski(a)3mdeb.com>
---
M src/superio/ite/common/early_serial.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/85453/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/85453?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Id88472d474e947987dd6a63873057551cdcc2e31
Gerrit-Change-Number: 85453
Gerrit-PatchSet: 2
Gerrit-Owner: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85453?usp=email )
Change subject: superio/ite/common: Add missing pnp_set_logical_device in ite_kill_watchdog
......................................................................
superio/ite/common: Add missing pnp_set_logical_device in ite_kill_watchdog
The watchdog registers are available in the GPIO LDN. Global LDN may not be
sufficient to access the watchdog registers. Switch to GPIO LDN before
disabling watchdog.
Change-Id: Id88472d474e947987dd6a63873057551cdcc2e31
Signed-off-by: Michał Żygowski <michal.zygowski(a)3mdeb.com>
---
M src/superio/ite/common/early_serial.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/85453/1
diff --git a/src/superio/ite/common/early_serial.c b/src/superio/ite/common/early_serial.c
index ec218a6..66c4de9 100644
--- a/src/superio/ite/common/early_serial.c
+++ b/src/superio/ite/common/early_serial.c
@@ -137,6 +137,7 @@
void ite_kill_watchdog(pnp_devfn_t dev)
{
pnp_enter_conf_state(dev);
+ pnp_set_logical_device(dev);
ite_sio_write(dev, ITE_CONFIG_REG_WATCHDOG, 0x00);
ite_sio_write(dev, ITE_CONFIG_REG_WDT_TIMEOUT_LSB, 0x00);
ite_sio_write(dev, ITE_CONFIG_REG_WDT_TIMEOUT_MSB, 0x00);
--
To view, visit https://review.coreboot.org/c/coreboot/+/85453?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Id88472d474e947987dd6a63873057551cdcc2e31
Gerrit-Change-Number: 85453
Gerrit-PatchSet: 1
Gerrit-Owner: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Jérémy Compostella has posted comments on this change by Jérémy Compostella. ( https://review.coreboot.org/c/coreboot/+/85131?usp=email )
Change subject: soc/intel/pantherlake: Bind SoC config VR settings to respective UPD
......................................................................
Set Ready For Review
--
To view, visit https://review.coreboot.org/c/coreboot/+/85131?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ie72e4725cb97b4af7843a43eeaedd687d28b6752
Gerrit-Change-Number: 85131
Gerrit-PatchSet: 4
Gerrit-Owner: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 03 Dec 2024 17:51:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Jérémy Compostella has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85452?usp=email )
Change subject: soc/intel/pantherlake: Remove unnecessary cep_enable SoC chip field
......................................................................
soc/intel/pantherlake: Remove unnecessary cep_enable SoC chip field
The cep_enable was used on previous platforms to fill the CepEnable
UPD, which is not available on Panther Lake because the Current
Excursion Protection no longer exists.
BUG=b:357011633
TEST=fatcat board build successfully
Change-Id: I42d8c793ac3f33eca212320605b16f3b92c60b9c
Signed-off-by: Jeremy Compostella <jeremy.compostella(a)intel.com>
---
M src/soc/intel/pantherlake/chip.h
1 file changed, 0 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/85452/1
diff --git a/src/soc/intel/pantherlake/chip.h b/src/soc/intel/pantherlake/chip.h
index 5846037..59653bd 100644
--- a/src/soc/intel/pantherlake/chip.h
+++ b/src/soc/intel/pantherlake/chip.h
@@ -295,12 +295,6 @@
bool enable_fast_vmode[NUM_VR_DOMAINS];
/*
- * Current Excursion Protection needs to be set for each VR domain
- * in order to be able to enable fast Vmode.
- */
- bool cep_enable[NUM_VR_DOMAINS];
-
- /*
* VR Fast Vmode I_TRIP threshold.
* 0-255A in 1/4 A units. Example: 400 = 100A
* This setting overrides the default value set by FSPs when Fast VMode
--
To view, visit https://review.coreboot.org/c/coreboot/+/85452?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I42d8c793ac3f33eca212320605b16f3b92c60b9c
Gerrit-Change-Number: 85452
Gerrit-PatchSet: 1
Gerrit-Owner: Jérémy Compostella <jeremy.compostella(a)intel.com>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85357?usp=email )
(
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: soc/amd/common/psp/psp_def.h: increase P2C_BUFFER_MAXSIZE
......................................................................
soc/amd/common/psp/psp_def.h: increase P2C_BUFFER_MAXSIZE
This matches the size used in the reference code and required by the
corresponding document #55758 Rev. 2.04. This doesn't seem to make any
difference in runtime behavior, but I'd rather waste a kilobyte of SMM
RAM, than debugging possible problems caused from not following the
corresponding specification.
Change-Id: I2ee30d6d1255317efcd3960016069dfe50885aa7
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85357
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
M src/soc/amd/common/block/psp/psp_def.h
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Marshall Dawson: Looks good to me, approved
diff --git a/src/soc/amd/common/block/psp/psp_def.h b/src/soc/amd/common/block/psp/psp_def.h
index d11199d..369ef08 100644
--- a/src/soc/amd/common/block/psp/psp_def.h
+++ b/src/soc/amd/common/block/psp/psp_def.h
@@ -133,7 +133,7 @@
#define PSP_CMD_TIMEOUT 1000 /* 1 second */
#define C2P_BUFFER_MAXSIZE 0xc00 /* Core-to-PSP buffer */
-#define P2C_BUFFER_MAXSIZE 0xc00 /* PSP-to-core buffer */
+#define P2C_BUFFER_MAXSIZE 0x1000 /* PSP-to-core buffer */
/* PSP to x86 status */
enum mbox_p2c_status {
--
To view, visit https://review.coreboot.org/c/coreboot/+/85357?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I2ee30d6d1255317efcd3960016069dfe50885aa7
Gerrit-Change-Number: 85357
Gerrit-PatchSet: 5
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85251?usp=email )
Change subject: soc/amd/common/psp/rpmc: fix printk format string
......................................................................
soc/amd/common/psp/rpmc: fix printk format string
While gcc didn't seem to care about that mismatch, clang didn't like
that '%ld' was used in the printk format string to print a size_t
variable. Replace the correct '%zu' instead of '%ld' to fix that.
Change-Id: I32bc584abe835c9c1d732c12311881345b8f0cdf
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85251
Reviewed-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/soc/amd/common/block/psp/rpmc.c
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
build bot (Jenkins): Verified
Marshall Dawson: Looks good to me, approved
diff --git a/src/soc/amd/common/block/psp/rpmc.c b/src/soc/amd/common/block/psp/rpmc.c
index dd097c5..99e166a 100644
--- a/src/soc/amd/common/block/psp/rpmc.c
+++ b/src/soc/amd/common/block/psp/rpmc.c
@@ -78,12 +78,12 @@
static void print_spi_rpmc_usage(uint8_t available, uint8_t used)
{
for (size_t i = 0; i < SPI_RPMC_COUNTER_COUNT; i++) {
- printk(BIOS_SPEW, "SPI flash RPMC counter %ld %s provisioned\n", i,
+ printk(BIOS_SPEW, "SPI flash RPMC counter %zu %s provisioned\n", i,
available & BIT(i) ? "can still be" : "has already been");
}
for (size_t i = 0; i < SPI_RPMC_COUNTER_COUNT; i++) {
- printk(BIOS_SPEW, "SPI flash RPMC counter %ld is%s in use\n", i,
+ printk(BIOS_SPEW, "SPI flash RPMC counter %zu is%s in use\n", i,
used & BIT(i) ? "" : " not");
}
}
@@ -97,7 +97,7 @@
print_spi_rpmc_usage(psp_caps.r0.spi_rpmc_slots_available,
psp_caps.r0.spi_rpmc_slot_used);
for (size_t i = 0; i < PSP_RPMC_R0_SLOT_COUNT; i++) {
- printk(BIOS_SPEW, "SoC RPMC slot %ld %s provisioned\n", i,
+ printk(BIOS_SPEW, "SoC RPMC slot %zu %s provisioned\n", i,
psp_caps.r0.psp_rpmc_slot_available & BIT(i) ? "can still be" :
"has already been");
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/85251?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I32bc584abe835c9c1d732c12311881345b8f0cdf
Gerrit-Change-Number: 85251
Gerrit-PatchSet: 6
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85238?usp=email )
(
5 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: soc/amd/common/psp/psp_smi: report errors in 'handle_psp_command'
......................................................................
soc/amd/common/psp/psp_smi: report errors in 'handle_psp_command'
To see if things went wrong in the 'handle_psp_command' function, print
the status code in case it's not MBOX_PSP_SUCCESS.
Change-Id: I8c02e8e29ab5619282e5b864a8cea6f0703f6ef2
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85238
Reviewed-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier(a)gmail.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/soc/amd/common/block/psp/psp_smi.c
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Marshall Dawson: Looks good to me, approved
build bot (Jenkins): Verified
Matt DeVillier: Looks good to me, approved
diff --git a/src/soc/amd/common/block/psp/psp_smi.c b/src/soc/amd/common/block/psp/psp_smi.c
index 5a1a4b9..762c8ee 100644
--- a/src/soc/amd/common/block/psp/psp_smi.c
+++ b/src/soc/amd/common/block/psp/psp_smi.c
@@ -173,6 +173,9 @@
if (status == MBOX_PSP_SUCCESS && rd_bios_mbox_checksum_en())
wr_bios_mbox_checksum(calc_psp_buffer_checksum8());
+
+ if (status != MBOX_PSP_SUCCESS)
+ printk(BIOS_ERR, "PSP: SMI processing error. staus code %#x\n", status);
}
/* TODO: check if all wbinvd() calls are necessary */
--
To view, visit https://review.coreboot.org/c/coreboot/+/85238?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8c02e8e29ab5619282e5b864a8cea6f0703f6ef2
Gerrit-Change-Number: 85238
Gerrit-PatchSet: 7
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85236?usp=email )
(
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: soc/amd/common/block/psp/psp_smi_flash.h: fix struct element types
......................................................................
soc/amd/common/block/psp/psp_smi_flash.h: fix struct element types
Commit ee93b35bc3dd ("soc/amd/common/psp_smi_flash: add RPMC command-
specific data structures") added the 'psp_spi_rpmc_inc_mc' and
'psp_smi_rpmc_req_mc' structs, but added the counter data as uint32_t
while it should have been an array of 4 uint8_t, since the bytes in that
buffer are already in the order in which they need to be sent over to
the SPI flash which is different than the byte order of a uint32_t. This
was only noticed after getting the code that uses these structs was
tested.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I6c290535a1896c080b74d892cb289e6e122d4525
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85236
Reviewed-by: Matt DeVillier <matt.devillier(a)gmail.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/soc/amd/common/block/psp/psp_smi_flash.h
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
build bot (Jenkins): Verified
Marshall Dawson: Looks good to me, approved
Matt DeVillier: Looks good to me, approved
diff --git a/src/soc/amd/common/block/psp/psp_smi_flash.h b/src/soc/amd/common/block/psp/psp_smi_flash.h
index 79593b5..789e28d 100644
--- a/src/soc/amd/common/block/psp/psp_smi_flash.h
+++ b/src/soc/amd/common/block/psp/psp_smi_flash.h
@@ -53,7 +53,7 @@
struct psp_spi_rpmc_inc_mc {
uint32_t counter_address;
- uint32_t counter_data;
+ uint8_t counter_data[SPI_RPMC_COUNTER_DATA_LEN];
uint8_t signature[SPI_RPMC_SIG_LEN];
} __packed;
@@ -66,7 +66,7 @@
uint32_t counter_address;
uint8_t tag[SPI_RPMC_TAG_LEN];
uint8_t signature[SPI_RPMC_SIG_LEN];
- uint32_t output_counter_data;
+ uint8_t output_counter_data[SPI_RPMC_COUNTER_DATA_LEN];
uint8_t output_signature[SPI_RPMC_SIG_LEN];
} __packed;
--
To view, visit https://review.coreboot.org/c/coreboot/+/85236?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I6c290535a1896c080b74d892cb289e6e122d4525
Gerrit-Change-Number: 85236
Gerrit-PatchSet: 4
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>