Stefan Reinauer has submitted this change. ( https://review.coreboot.org/c/coreboot/+/55627?usp=email )
Change subject: security/intel/stm: Reset BIOS resource list on every stm_setup call
......................................................................
security/intel/stm: Reset BIOS resource list on every stm_setup call
Some platforms run the smm_relocation function twice during initialization.
This results in the BIOS resource list becoming twice as long. Also,
testing has shown that elements of the list created in the first interation
may have invalid data included in the resource list.
This patch resolves these issues by reseting the list every time stm_setup
is involked.
This patch has been tested on the Purism L1UM-1X8C
Change-Id: I874871ff01bdf0d00a3e6b48bc885e7abaa25112
Signed-off-by: Eugene Myers <edmyers(a)tycho.nsa.gov>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55627
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
---
M src/security/intel/stm/StmPlatformResource.c
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Stefan Reinauer: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/src/security/intel/stm/StmPlatformResource.c b/src/security/intel/stm/StmPlatformResource.c
index 6fef515..7aa432d 100644
--- a/src/security/intel/stm/StmPlatformResource.c
+++ b/src/security/intel/stm/StmPlatformResource.c
@@ -179,8 +179,12 @@
/*
* Add resources to BIOS resource database.
*/
+
+extern uint8_t *m_stm_resources_ptr;
+
void add_resources_cmd(void)
{
+ m_stm_resources_ptr = NULL;
add_simple_resources();
--
To view, visit https://review.coreboot.org/c/coreboot/+/55627?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I874871ff01bdf0d00a3e6b48bc885e7abaa25112
Gerrit-Change-Number: 55627
Gerrit-PatchSet: 3
Gerrit-Owner: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: merged
Attention is currently required from: Eugene Myers.
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55627?usp=email )
Change subject: security/intel/stm: Reset BIOS resource list on every stm_setup call
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/55627?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I874871ff01bdf0d00a3e6b48bc885e7abaa25112
Gerrit-Change-Number: 55627
Gerrit-PatchSet: 2
Gerrit-Owner: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Comment-Date: Sat, 10 Jun 2023 03:20:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Eugene Myers, Patrick Rudolph.
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55626?usp=email )
Change subject: soc/intel/fsp_broadwell_de: Enable STM for broadwell_de
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/55626?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I8292bb4eec516556ad1ba658c80ad8a0b541139f
Gerrit-Change-Number: 55626
Gerrit-PatchSet: 2
Gerrit-Owner: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Sat, 10 Jun 2023 03:20:39 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Stefan Reinauer has submitted this change. ( https://review.coreboot.org/c/coreboot/+/55625?usp=email )
Change subject: 3rdparty: Add STM as a submodule
......................................................................
3rdparty: Add STM as a submodule
The patch incorporates the STM build as a part of the coreboot
build. A separate patch lists and documents the options that
the developer can use. In most cases the default options will
suffice.
Original-Change-Id: I8c6e0c85edd4e2b0658791553bd9947656e8c796
Original-Signed-off-by: Eugene D Myers <cedarhouse(a)comcast.net>
Original-Reviewed-on: https://review.coreboot.org/c/coreboot/+/44687
Original-Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Original-Reviewed-by: ron minnich <rminnich(a)gmail.com>
Change-Id: I901cb429d8050fb2a7c839e8ef29ac3359239d2c
Signed-off-by: Eugene Myers <edmyers(a)tycho.nsa.gov>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55625
Reviewed-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M .gitmodules
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Stefan Reinauer: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/.gitmodules b/.gitmodules
index 1b47275..14782d4 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -43,3 +43,7 @@
url = ../amd_blobs
update = none
ignore = dirty
+[submodule "3rdparty/stm"]
+ path = 3rdparty/stm
+ url = ../STM
+ branch = stmpe
--
To view, visit https://review.coreboot.org/c/coreboot/+/55625?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I901cb429d8050fb2a7c839e8ef29ac3359239d2c
Gerrit-Change-Number: 55625
Gerrit-PatchSet: 3
Gerrit-Owner: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: merged
Attention is currently required from: Eugene Myers.
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55625?usp=email )
Change subject: 3rdparty: Add STM as a submodule
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/55625?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I901cb429d8050fb2a7c839e8ef29ac3359239d2c
Gerrit-Change-Number: 55625
Gerrit-PatchSet: 2
Gerrit-Owner: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Comment-Date: Sat, 10 Jun 2023 03:20:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Eugene Myers.
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55623?usp=email )
Change subject: security/intel/stm/SmmStm.c: Fix size_t printf format error
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/55623?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I696b615b4dd3bacda7151c91fff17f9b01b17821
Gerrit-Change-Number: 55623
Gerrit-PatchSet: 1
Gerrit-Owner: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Comment-Date: Sat, 10 Jun 2023 03:20:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment