Attention is currently required from: Jonathon Hall, Jérémy Compostella, Nico Huber.
Hello Jonathon Hall, Jérémy Compostella, Nico Huber, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/78906?usp=email
to look at the new patch set (#7).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: drivers/pc80/rtc/option.c: Reset only checked CMOS range during resume
......................................................................
drivers/pc80/rtc/option.c: Reset only checked CMOS range during resume
Proposed in the comment of commit 29030d0f3dad
("drivers/pc80/rtc/option.c: Stop resetting CMOS during s3 resume"),
during sanitize_cmos(), only reset CMOS range covered by checksum and
the checksum itself from the file cmos.default in CBFS during s3
resume, in order to prevent other runtime data in CMOS (e.g. the DRAM
training data on GM45 platforms for s3 resume) being erased, while the
whole CMOS after 14 could be reset during normal boot.
Tested: cherry-pick this commit before commit 44a48ce7a46c ("Kconfig:
Bring HEAP_SIZE to a common, large value"), which is already
before my commit 29030d0f3dad , Thinkpad X200 with
CONFIG(STATIC_OPTION_TABLE) can resume from s3 again,
indicating that DRAM training data are no longer erased.
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
Co-authored-by: Jonathon Hall <jonathon.hall(a)puri.sm>
Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
---
M src/drivers/pc80/rtc/option.c
1 file changed, 16 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/78906/7
--
To view, visit https://review.coreboot.org/c/coreboot/+/78906?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
Gerrit-Change-Number: 78906
Gerrit-PatchSet: 7
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Attention: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-MessageType: newpatchset
Attention is currently required from: Varshit Pandya.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78894?usp=email )
Change subject: soc/amd/genoa: Configure HEAP_SIZE
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
do we need the larger heap size?
--
To view, visit https://review.coreboot.org/c/coreboot/+/78894?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Idd707200fe72730849267cd3cafc40e44f1f8c5d
Gerrit-Change-Number: 78894
Gerrit-PatchSet: 1
Gerrit-Owner: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Comment-Date: Fri, 03 Nov 2023 15:03:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Arthur Heymans, Varshit Pandya.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78895?usp=email )
Change subject: soc/amd/genoa: Add mmio.asl
......................................................................
Patch Set 1:
(2 comments)
Patchset:
PS1:
unrelated to this patch, but it seems that the genoa patches are missing the i2c support enablement on the coreboot side
File src/soc/amd/genoa/acpi/mmio.asl:
https://review.coreboot.org/c/coreboot/+/78895/comment/c2ec8903_9f29ca35 :
PS1, Line 282: #if CONFIG(SOC_AMD_COMMON_BLOCK_I2C3_TPM_SHARED_WITH_PSP)
this doesn't apply for genoa, since genoa won't have verstage on psp. same below
--
To view, visit https://review.coreboot.org/c/coreboot/+/78895?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ic5bc2cc0141e9da7e2c6ed7691188d7c94b6b1e3
Gerrit-Change-Number: 78895
Gerrit-PatchSet: 1
Gerrit-Owner: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Fri, 03 Nov 2023 15:00:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Arthur Heymans, Varshit Pandya.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/76523?usp=email )
Change subject: soc/amd/genoa: Hook SMP and SMM init
......................................................................
Patch Set 5:
(7 comments)
File src/soc/amd/genoa/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/76523/comment/d2c7ac0c_9492ceb6 :
PS5, Line 19: ramstage-y += cpu.c
would be good to have this sorted alphabetically
File src/soc/amd/genoa/cpu.c:
https://review.coreboot.org/c/coreboot/+/76523/comment/58316913_fcf943bb :
PS2, Line 42: { X86_VENDOR_AMD, GENOA_A0_CPUID},
: { X86_VENDOR_AMD, GENOA_A1_CPUID},
: { X86_VENDOR_AMD, GENOA_B0_CPUID},
> i'd use CPUID_ALL_STEPPINGS_MASK and only have two entries which then will cover all steppings of th […]
Done
File src/soc/amd/genoa/cpu.c:
https://review.coreboot.org/c/coreboot/+/76523/comment/741220ca_02170602 :
PS4, Line 14: /* MP and SMM loading initialization. */
: void mp_init_cpus(struct bus *cpu_bus)
: {
: extern const struct mp_ops amd_mp_ops_with_smm;
: if (mp_init_with_smm(cpu_bus, &amd_mp_ops_with_smm) != CB_SUCCESS)
: die_with_post_code(POSTCODE_HW_INIT_FAILURE,
: "mp_init_with_smm failed. Halting.\n");
:
: /* pre_mp_init made the flash not cacheable. Reset to WP for performance. */
: mtrr_use_temp_range(FLASH_BELOW_4GB_MAPPING_REGION_BASE,
: FLASH_BELOW_4GB_MAPPING_REGION_SIZE, MTRR_TYPE_WRPROT);
:
: /* SMMINFO only needs to be set up when booting from S5 */
: if (!acpi_is_wakeup_s3())
: apm_control(APM_CNT_SMMINFO);
:
: }
> this is common code since CB:78013 and can be removed
Done
https://review.coreboot.org/c/coreboot/+/76523/comment/e22ab6b7_8e0ed95b :
PS4, Line 45: { 0, 0 },
> replace with CPU_TABLE_END
Done
File src/soc/amd/genoa/include/soc/cpu.h:
https://review.coreboot.org/c/coreboot/+/76523/comment/0523aa05_a99318bf :
PS5, Line 7: #define GENOA_A1_CPUID 0x00a10f01
not sure if we need to keep this one, since it's now unused
File src/soc/amd/genoa/smihandler.c:
PS4:
> if possible, i'd like this to also be factored out into a patch between the smu patch and the rest o […]
Done
File src/soc/amd/genoa/smihandler.c:
https://review.coreboot.org/c/coreboot/+/76523/comment/1c894654_9d8f4f8f :
PS5, Line 3: /* TODO: Update for Phoenix */
was this verified to still be correct for genoa?
--
To view, visit https://review.coreboot.org/c/coreboot/+/76523?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8c2d976addacd5a2ba70eb629510128853b9f847
Gerrit-Change-Number: 76523
Gerrit-PatchSet: 5
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-CC: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Fri, 03 Nov 2023 14:58:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: comment
Attention is currently required from: Arthur Heymans, Varshit Pandya.
Varshit Pandya has uploaded a new patch set (#5) to the change originally created by Arthur Heymans. ( https://review.coreboot.org/c/coreboot/+/76523?usp=email )
The following approvals got outdated and were removed:
Verified-1 by build bot (Jenkins)
Change subject: soc/amd/genoa: Hook SMP and SMM init
......................................................................
soc/amd/genoa: Hook SMP and SMM init
All CPUs properly come out of reset and relocate SMM.
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
Change-Id: I8c2d976addacd5a2ba70eb629510128853b9f847
---
M src/soc/amd/genoa/Kconfig
M src/soc/amd/genoa/Makefile.inc
M src/soc/amd/genoa/chipset.cb
A src/soc/amd/genoa/cpu.c
A src/soc/amd/genoa/include/soc/cpu.h
A src/soc/amd/genoa/smihandler.c
6 files changed, 152 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/76523/5
--
To view, visit https://review.coreboot.org/c/coreboot/+/76523?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8c2d976addacd5a2ba70eb629510128853b9f847
Gerrit-Change-Number: 76523
Gerrit-PatchSet: 5
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-CC: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newpatchset
Attention is currently required from: Jonathon Hall, Jérémy Compostella, Nico Huber.
Bill XIE has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78906?usp=email )
Change subject: drivers/pc80/rtc/option.c: Reset only checked CMOS range during resume
......................................................................
Patch Set 6:
(2 comments)
Patchset:
PS4:
> I agree to the patch, just want to mention that this will most […]
Then we could restore the checked range only during s3 resume, while restore the whole CMOS after 14 during normal boot, as did in the Patchset 6.
File src/drivers/pc80/rtc/option.c:
https://review.coreboot.org/c/coreboot/+/78906/comment/b6cb2f20_3e77fecf :
PS4, Line 217: for (i = LB_CKS_RANGE_START; i < MIN(LB_CKS_RANGE_END, length); i++)
> @Bill It looks like the range end is inclusive, so `LB_CKS_RANGE_END+1` here. […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/78906?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
Gerrit-Change-Number: 78906
Gerrit-PatchSet: 6
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Attention: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-Comment-Date: Fri, 03 Nov 2023 14:34:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-MessageType: comment
Attention is currently required from: Bill XIE, Jérémy Compostella, Nico Huber.
Hello Jonathon Hall, Jérémy Compostella, Nico Huber, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/78906?usp=email
to look at the new patch set (#6).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: drivers/pc80/rtc/option.c: Reset only checked CMOS range during resume
......................................................................
drivers/pc80/rtc/option.c: Reset only checked CMOS range during resume
Proposed in the comment of commit 29030d0f3dad
("drivers/pc80/rtc/option.c: Stop resetting CMOS during s3 resume"),
during sanitize_cmos(), only reset CMOS range covered by checksum and
the checksum itself from the file cmos.default in CBFS during s3
resume, in order to prevent other runtime data in CMOS (e.g. the DRAM
training data on GM45 platforms for s3 resume) being erased, while the
whole CMOS after 14 could be reset during normal boot.
Tested: cherry-pick this commit before commit 44a48ce7a46c ("Kconfig:
Bring HEAP_SIZE to a common, large value"), which is already
before my commit 29030d0f3dad , Thinkpad X200 with
CONFIG(STATIC_OPTION_TABLE) can resume from s3 again,
indicating that DRAM training data are no longer erased.
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
Co-authored-by: Jonathon Hall <jonathon.hall(a)puri.sm>
Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
---
M src/drivers/pc80/rtc/option.c
1 file changed, 12 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/78906/6
--
To view, visit https://review.coreboot.org/c/coreboot/+/78906?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
Gerrit-Change-Number: 78906
Gerrit-PatchSet: 6
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Bill XIE, Jérémy Compostella, Nico Huber.
Hello Jonathon Hall, Jérémy Compostella, Nico Huber, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/78906?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Code-Review+1 by Nico Huber, Verified+1 by build bot (Jenkins)
Change subject: drivers/pc80/rtc/option.c: Reset only CMOS range covered by checksum
......................................................................
drivers/pc80/rtc/option.c: Reset only CMOS range covered by checksum
Proposed in the comment of commit 29030d0f3dad
("drivers/pc80/rtc/option.c: Stop resetting CMOS during s3 resume"),
during sanitize_cmos(), only reset CMOS range covered by checksum and
the checksum itself from the file cmos.default in CBFS, in order to
prevent other runtime data in CMOS (e.g. the DRAM training data on
GM45 platforms for s3 resume) being erased.
Tested: cherry-pick this commit before commit 44a48ce7a46c ("Kconfig:
Bring HEAP_SIZE to a common, large value"), which is already
before my commit 29030d0f3dad , Thinkpad X200 with
CONFIG(STATIC_OPTION_TABLE) can resume from s3 again,
indicating that DRAM training data are no longer erased.
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
Co-authored-by: Jonathon Hall <jonathon.hall(a)puri.sm>
Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
---
M src/drivers/pc80/rtc/option.c
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/78906/5
--
To view, visit https://review.coreboot.org/c/coreboot/+/78906?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I872bf5f41422bc3424cd8631e932aaae2ae82f7a
Gerrit-Change-Number: 78906
Gerrit-PatchSet: 5
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Jonathon Hall <jonathon.hall(a)puri.sm>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-MessageType: newpatchset