summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-23 16:09:51 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-05-25 12:51:32 +0000
commiteafcc8e5b1122f30e265f77271a18a9124e4dc9e (patch)
tree238fc97b7c805e38b985bb0e59cf086469689940 /src/soc/intel/common
parente40ca124c6f28733475cdd3e1e5ebbea7c2b45f5 (diff)
arch/x86/acpi_bert_storage.c: Use a common implementation
All targets now use cbmem for the BERT region, so the implementation can be common. This also drops the obsolete comment about the need to have bert in a reserved region (cbmem gets fixed to be in a reserved region). Change-Id: I6f33d9e05a02492a1c91fb7af94aadaa9acd2931 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64602 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/systemagent/Kconfig8
-rw-r--r--src/soc/intel/common/block/systemagent/memmap.c11
2 files changed, 8 insertions, 11 deletions
diff --git a/src/soc/intel/common/block/systemagent/Kconfig b/src/soc/intel/common/block/systemagent/Kconfig
index e9519bc624..e7f6ba49d8 100644
--- a/src/soc/intel/common/block/systemagent/Kconfig
+++ b/src/soc/intel/common/block/systemagent/Kconfig
@@ -23,4 +23,12 @@ config SA_ENABLE_DPR
help
This option allows you to add the DMA Protected Range (DPR).
+config ACPI_BERT_SIZE
+ hex
+ default 0x10000 if ACPI_BERT
+ default 0x0
+ help
+ Specify the amount of DRAM reserved for gathering the data used to
+ generate the ACPI table.
+
endif
diff --git a/src/soc/intel/common/block/systemagent/memmap.c b/src/soc/intel/common/block/systemagent/memmap.c
index a67d050fcc..86ca4e1b84 100644
--- a/src/soc/intel/common/block/systemagent/memmap.c
+++ b/src/soc/intel/common/block/systemagent/memmap.c
@@ -7,7 +7,6 @@
#include <cpu/x86/smm.h>
#include <intelblocks/fast_spi.h>
#include <intelblocks/systemagent.h>
-#include <arch/bert_storage.h>
#include <types.h>
/*
@@ -50,22 +49,12 @@
* +---------------------------+ 0
*/
-#define BERT_REGION_MAX_SIZE 0x10000
-
void smm_region(uintptr_t *start, size_t *size)
{
*start = sa_get_tseg_base();
*size = sa_get_tseg_size();
}
-void bert_reserved_region(void **start, size_t *size)
-{
- *start = cbmem_add(CBMEM_ID_ACPI_BERT, BERT_REGION_MAX_SIZE);
- *size = BERT_REGION_MAX_SIZE;
-
- printk(BIOS_DEBUG, "Reserving BERT start %lx, size %zx\n", (uintptr_t)*start, *size);
-}
-
void fill_postcar_frame(struct postcar_frame *pcf)
{
/* FSP does not seem to bother w.r.t. alignment when asked to place cbmem_top() */