Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42208 )
Change subject: soc/amd/picasso/bootblock: Clear BSS
......................................................................
soc/amd/picasso/bootblock: Clear BSS
The PSP does not currently reload bootblock on S3 resume. This means the
memory retains the previous values from the run. We need to clear bss to
avoid sharing state from the last run.
BUG=b:147042464
TEST=Verified staic variables are 0 on S3 resume.
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: I6071600b14e9edb7b09510b595e9380ae8957d9f
---
M src/soc/amd/picasso/bootblock/pre_c.S
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/42208/1
diff --git a/src/soc/amd/picasso/bootblock/pre_c.S b/src/soc/amd/picasso/bootblock/pre_c.S
index 5c186f1..da9ecb9 100644
--- a/src/soc/amd/picasso/bootblock/pre_c.S
+++ b/src/soc/amd/picasso/bootblock/pre_c.S
@@ -18,6 +18,15 @@
and $0xfffffff0, %esp
sub $8, %esp
+ /* clear .bss section since it is not cleared on S3 resume. */
+ cld
+ xor %eax, %eax
+ movl $(_ebss), %ecx
+ movl $(_bss), %edi
+ sub %edi, %ecx
+ shrl $2, %ecx
+ rep stosl
+
movd %mm2, %eax
pushl %eax /* tsc[63:32] */
movd %mm1, %eax
--
To view, visit https://review.coreboot.org/c/coreboot/+/42208
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6071600b14e9edb7b09510b595e9380ae8957d9f
Gerrit-Change-Number: 42208
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-MessageType: newchange
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42211 )
Change subject: soc/intel/tigerlake: Increase heap size
......................................................................
soc/intel/tigerlake: Increase heap size
With SoundWire and USB4 enabled some boards are running out of
memory with all of the ACPI devices and properties. Increase
the heap size to accommodate.
BUG=b:147462631
TEST=Successfully boot on volteer SKU5 board with SoundWire enabled,
before boot was failing with "Error! memalign: Out of memory"
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
Change-Id: I0245bdfad93b381871514578e66640e7fe6fa5c4
---
M src/soc/intel/tigerlake/Kconfig
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/42211/1
diff --git a/src/soc/intel/tigerlake/Kconfig b/src/soc/intel/tigerlake/Kconfig
index fbf56b4..92bba250 100644
--- a/src/soc/intel/tigerlake/Kconfig
+++ b/src/soc/intel/tigerlake/Kconfig
@@ -97,7 +97,7 @@
config HEAP_SIZE
hex
- default 0x8000
+ default 0x10000
config MAX_ROOT_PORTS
int
--
To view, visit https://review.coreboot.org/c/coreboot/+/42211
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0245bdfad93b381871514578e66640e7fe6fa5c4
Gerrit-Change-Number: 42211
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: newchange
Aaron Durbin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30872 )
Change subject: arch/x86: Add symbols for CAR MTRRs in linker script
......................................................................
Patch Set 7:
(2 comments)
https://review.coreboot.org/c/coreboot/+/30872/7/src/arch/x86/car.ld
File src/arch/x86/car.ld:
https://review.coreboot.org/c/coreboot/+/30872/7/src/arch/x86/car.ld@3
PS7, Line 3: #include <cpu/x86/mtrr.h>
What did we need this #include for again? LOG2CEIL is a linker thing.
https://review.coreboot.org/c/coreboot/+/30872/7/src/arch/x86/car.ld@7
PS7, Line 7: _car_mtrr_start
Why wouldn't you just set this symbol to _car_region_start and group the newly added symbols in one hunk with the guard?
--
To view, visit https://review.coreboot.org/c/coreboot/+/30872
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2fef3546d2bfea2d4d8f87aaf8376e5566fd6aaa
Gerrit-Change-Number: 30872
Gerrit-PatchSet: 7
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 09 Jun 2020 16:22:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Aaron Durbin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30872 )
Change subject: arch/x86: Add symbols for CAR MTRRs in linker script
......................................................................
Patch Set 7:
(1 comment)
https://review.coreboot.org/c/coreboot/+/30872/5/src/arch/x86/car.ld
File src/arch/x86/car.ld:
https://review.coreboot.org/c/coreboot/+/30872/5/src/arch/x86/car.ld@90
PS5, Line 90: _xip_mtrr_mask = ~(MAX(4096, _xip_program_sz_log2) - 1);
> The references are in couple cache_as_ram.S files and I don't have a single good guard ready at hand. It would be either new Kconfig or logical or of selected CPU_INTEL_SLOT_x and CPU_INTEL_SOCKET_x.
>
> Would you accept _booblock_mtrr_mask exposed unconditionally?
The xip symbols are conditional on !CONFIG(NO_XIP_EARLY_STAGES). They shouldn't be unconditionally exposed.
I wouldn't be opposed to a Kconfig indicating 'expose symbols for MTRR init' because it'd be easy for auditing purposes, and it'd be explicit about intention of relying on these symbols.
--
To view, visit https://review.coreboot.org/c/coreboot/+/30872
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2fef3546d2bfea2d4d8f87aaf8376e5566fd6aaa
Gerrit-Change-Number: 30872
Gerrit-PatchSet: 7
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 09 Jun 2020 16:18:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Comment-In-Reply-To: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: comment
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41620 )
Change subject: acpi: Add support for call method
......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/41620/11/src/acpi/acpigen.c
File src/acpi/acpigen.c:
https://review.coreboot.org/c/coreboot/+/41620/11/src/acpi/acpigen.c@1970
PS11, Line 1970: int
> unsigned int
only if params_len is unsigned, otherwise you've got signed/unsigned comparisons
--
To view, visit https://review.coreboot.org/c/coreboot/+/41620
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibcb67bd756dc8ae1dfd2d40020c273325583df0f
Gerrit-Change-Number: 41620
Gerrit-PatchSet: 11
Gerrit-Owner: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
Gerrit-Reviewer: Daniel Kang <daniel.h.kang(a)intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)google.com>
Gerrit-Reviewer: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-Reviewer: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Kiran2 Kumar <kiran2.kumar(a)intel.corp-partner.google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 09 Jun 2020 15:57:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: comment
Rocky Phagura has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41829 )
Change subject: [WIP] cpu/x86/smm: Enable SMM support for Xeon-SP
......................................................................
Patch Set 3:
(2 comments)
https://review.coreboot.org/c/coreboot/+/41829/3/src/cpu/x86/smm/smm_module…
File src/cpu/x86/smm/smm_module_loader.c:
https://review.coreboot.org/c/coreboot/+/41829/3/src/cpu/x86/smm/smm_module…
PS3, Line 96:
> When building these segments the algorithm needs to account for the SMM save state size and location […]
Yes, that's exactly what I have done is tiled the CPU threads. AS for the txt smm descriptor it is included in params->params->per_cpu_save_state_size. So if STM config option is enabled then that params->per_cpu_save_state_size will be updated in mp_init.c, fill_mp_state(). Then this value will get passed eventually to smm_load_module and then to this method smm_create_map. So overall the cpu state save area here should be properly reflected and assigned. Are you seeing any boot/runtime issues with state save after porting to these changes? Line 113 below is the where the calculation is done to include state save area (ss_size).
https://review.coreboot.org/c/coreboot/+/41829/3/src/cpu/x86/smm/smm_module…
PS3, Line 573: fxsave_area -= total_stack_size + fxsave_size;
> This calculation can place the location of the fxsave_area below the bottom of the TSEG. […]
This is a bug in my code. Good catch. I will fix the issue and resubmit.
--
To view, visit https://review.coreboot.org/c/coreboot/+/41829
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I78bd74c11ca42fb430f63711b5ec87d4bfe6ca2a
Gerrit-Change-Number: 41829
Gerrit-PatchSet: 3
Gerrit-Owner: Rocky Phagura
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-Reviewer: Eugene Myers <cedarhouse(a)comcast.net>
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Naresh Solanki <naresh.solanki.2011(a)gmail.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Ron Minnich <rminnich(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 09 Jun 2020 14:50:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Eugene Myers <cedarhouse1(a)comcast.net>
Gerrit-MessageType: comment