Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37197 )
Change subject: drivers/amd/agesa/romstage: Only mark cbmem as UC if needed
......................................................................
drivers/amd/agesa/romstage: Only mark cbmem as UC if needed
Now cbmem is flushed to dram before calling postcar stage.
UNTESTED.
Change-Id: Iaa0d154e2c5b2052027d07ad26e31f3ff63ae9f3
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/drivers/amd/agesa/mtrr_fixme.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/37197/1
diff --git a/src/drivers/amd/agesa/mtrr_fixme.c b/src/drivers/amd/agesa/mtrr_fixme.c
index bbb9eb0..9e63425 100644
--- a/src/drivers/amd/agesa/mtrr_fixme.c
+++ b/src/drivers/amd/agesa/mtrr_fixme.c
@@ -51,6 +51,10 @@
if (s3resume)
return;
+ /* We worry about cbmem hitting dram later */
+ if (clflush_supported())
+ return;
+
/* For normal path, INIT_POST has returned with all
* memory set WB cacheable. But we need CBMEM as UC
* to make CAR teardown with invalidation without
--
To view, visit https://review.coreboot.org/c/coreboot/+/37197
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaa0d154e2c5b2052027d07ad26e31f3ff63ae9f3
Gerrit-Change-Number: 37197
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48207 )
Change subject: [WIP]soc/intel/apl: Cache CBMEM and compress postcar
......................................................................
[WIP]soc/intel/apl: Cache CBMEM and compress postcar
Copying WP to WB seems to slow things down but OTOH reducing the size
speeds things up. There seems to be no speedup, only a size reduction.
Change-Id: I0f0b3f54a489a584c3e28fcc1650e6e1bbae2801
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/cpu/x86/mtrr/cbmem_cache.c
M src/soc/intel/apollolake/Kconfig
2 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/48207/1
diff --git a/src/cpu/x86/mtrr/cbmem_cache.c b/src/cpu/x86/mtrr/cbmem_cache.c
index de5ed8b..8e63315 100644
--- a/src/cpu/x86/mtrr/cbmem_cache.c
+++ b/src/cpu/x86/mtrr/cbmem_cache.c
@@ -21,7 +21,7 @@
while (1) {
/* Do some sanity check before it gets absurdly big. */
- if (mtrr_size > 64 * MiB) {
+ if (mtrr_size > 256 * MiB) {
printk(BIOS_WARNING, "Not caching cbmem, too large region requested!\n");
return -1;
}
diff --git a/src/soc/intel/apollolake/Kconfig b/src/soc/intel/apollolake/Kconfig
index 4f762a9..0fdd708 100644
--- a/src/soc/intel/apollolake/Kconfig
+++ b/src/soc/intel/apollolake/Kconfig
@@ -109,6 +109,8 @@
select INTEL_GMA_ACPI
select INTEL_GMA_SWSMISCI
select HAVE_ASAN_IN_ROMSTAGE
+ select X86_CLFLUSH_CAR
+ select ROMSTAGE_CBMEM_CACHED
config MAX_CPUS
int
--
To view, visit https://review.coreboot.org/c/coreboot/+/48207
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0f0b3f54a489a584c3e28fcc1650e6e1bbae2801
Gerrit-Change-Number: 48207
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange