diff options
author | Patrick Georgi <patrick@coreboot.org> | 2023-11-06 17:22:34 +0000 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2023-11-07 17:35:39 +0000 |
commit | acbc4912375085a099c2427def464d6e481f2a90 (patch) | |
tree | 15f07f8fceb2642c5a8b80cb591e2d3cfe26190f | |
parent | ab5a9f937818cbfd1fc686a77c2de818e15d1cfc (diff) |
Revert "Kconfig: Bring HEAP_SIZE to a common, large value"
This reverts commit 44a48ce7a46c36df69f7b2cf3552bf10fa5f61b6.
Reason for revert: It breaks wakeup from suspend on a bunch of boards.
While this approach of eyeballing "correct" values by chipset _should_
be fixed, it should also be accompanied by compile time verification
that the memory map works out.
Since nobody seems to care enough, let's just revert this, instead of
keeping the tree broken for a bunch of configurations.
Change-Id: I3cd73b6ce8b15f06d3480a03ab472dcd444d7ccc
Signed-off-by: Patrick Georgi <patrick@coreboot.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78850
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Subrata Banik <subratabanik@google.com>
-rw-r--r-- | src/Kconfig | 3 | ||||
-rw-r--r-- | src/cpu/qemu-x86/Kconfig | 3 | ||||
-rw-r--r-- | src/mainboard/sifive/hifive-unleashed/Kconfig | 3 | ||||
-rw-r--r-- | src/northbridge/amd/pi/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/amd/picasso/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/amd/stoneyridge/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/cavium/cn81xx/Kconfig | 3 | ||||
-rw-r--r-- | src/soc/intel/alderlake/Kconfig | 5 | ||||
-rw-r--r-- | src/soc/intel/apollolake/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/cannonlake/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/jasperlake/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/meteorlake/Kconfig | 5 | ||||
-rw-r--r-- | src/soc/intel/skylake/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/tigerlake/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/cpx/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/skx/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/spr/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/qualcomm/ipq40xx/Kconfig | 4 |
20 files changed, 77 insertions, 1 deletions
diff --git a/src/Kconfig b/src/Kconfig index 4b60c4beed..02d5d77da5 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -751,7 +751,8 @@ config RTC config HEAP_SIZE hex - default 0x100000 + default 0x100000 if FLATTENED_DEVICE_TREE + default 0x4000 config STACK_SIZE hex diff --git a/src/cpu/qemu-x86/Kconfig b/src/cpu/qemu-x86/Kconfig index 0fa999e1ac..f3e2c4cea9 100644 --- a/src/cpu/qemu-x86/Kconfig +++ b/src/cpu/qemu-x86/Kconfig @@ -35,4 +35,7 @@ config MAX_CPUS default 32 if SMM_TSEG default 4 +config HEAP_SIZE + default 0x8000 + endif diff --git a/src/mainboard/sifive/hifive-unleashed/Kconfig b/src/mainboard/sifive/hifive-unleashed/Kconfig index 7bc3b0bcbb..7f9300f2a7 100644 --- a/src/mainboard/sifive/hifive-unleashed/Kconfig +++ b/src/mainboard/sifive/hifive-unleashed/Kconfig @@ -10,6 +10,9 @@ config BOARD_SPECIFIC_OPTIONS select FLATTENED_DEVICE_TREE select SPI_SDCARD +config HEAP_SIZE + default 0x10000 + config MAINBOARD_DIR default "sifive/hifive-unleashed" diff --git a/src/northbridge/amd/pi/Kconfig b/src/northbridge/amd/pi/Kconfig index 4ffe82a15f..4518db149b 100644 --- a/src/northbridge/amd/pi/Kconfig +++ b/src/northbridge/amd/pi/Kconfig @@ -29,4 +29,8 @@ config HW_MEM_HOLE_SIZEK hex default 0x200000 +config HEAP_SIZE + hex + default 0xc0000 + endif # NORTHBRIDGE_AMD_PI diff --git a/src/soc/amd/picasso/Kconfig b/src/soc/amd/picasso/Kconfig index c33f287067..796fe4eb13 100644 --- a/src/soc/amd/picasso/Kconfig +++ b/src/soc/amd/picasso/Kconfig @@ -264,6 +264,10 @@ config S3_VGA_ROM_RUN bool default n +config HEAP_SIZE + hex + default 0xc0000 + config SERIRQ_CONTINUOUS_MODE bool default n diff --git a/src/soc/amd/stoneyridge/Kconfig b/src/soc/amd/stoneyridge/Kconfig index 0cc8ecd162..dadda8d7d5 100644 --- a/src/soc/amd/stoneyridge/Kconfig +++ b/src/soc/amd/stoneyridge/Kconfig @@ -157,6 +157,10 @@ config S3_VGA_ROM_RUN bool default n +config HEAP_SIZE + hex + default 0xc0000 + config EHCI_BAR hex default 0xfef00000 diff --git a/src/soc/cavium/cn81xx/Kconfig b/src/soc/cavium/cn81xx/Kconfig index 77ca97202b..368581f8f1 100644 --- a/src/soc/cavium/cn81xx/Kconfig +++ b/src/soc/cavium/cn81xx/Kconfig @@ -30,6 +30,9 @@ config ARCH_ARMV8_EXTENSION int default 1 +config HEAP_SIZE + default 0x10000 + config STACK_SIZE default 0x2000 diff --git a/src/soc/intel/alderlake/Kconfig b/src/soc/intel/alderlake/Kconfig index eea27fcb6c..890296d7eb 100644 --- a/src/soc/intel/alderlake/Kconfig +++ b/src/soc/intel/alderlake/Kconfig @@ -216,6 +216,11 @@ config IED_REGION_SIZE hex default 0x400000 +config HEAP_SIZE + hex + default 0x80000 if BMP_LOGO + default 0x10000 + config GFX_GMA_DEFAULT_MMIO default 0xaf000000 if MAINBOARD_HAS_EARLY_LIBGFXINIT diff --git a/src/soc/intel/apollolake/Kconfig b/src/soc/intel/apollolake/Kconfig index d9e24ce3aa..f8de381a87 100644 --- a/src/soc/intel/apollolake/Kconfig +++ b/src/soc/intel/apollolake/Kconfig @@ -255,6 +255,10 @@ config IFWI_FILE_NAME help Name of file to store in the IFWI region. +config HEAP_SIZE + hex + default 0x8000 + config MAX_ROOT_PORTS int default 6 diff --git a/src/soc/intel/cannonlake/Kconfig b/src/soc/intel/cannonlake/Kconfig index 92a99c43a3..a506b1ba59 100644 --- a/src/soc/intel/cannonlake/Kconfig +++ b/src/soc/intel/cannonlake/Kconfig @@ -177,6 +177,10 @@ config IED_REGION_SIZE hex default 0x400000 +config HEAP_SIZE + hex + default 0x8000 + config NHLT_DMIC_1CH_16B bool depends on ACPI_NHLT diff --git a/src/soc/intel/elkhartlake/Kconfig b/src/soc/intel/elkhartlake/Kconfig index 3361c0ddb9..7f1c767379 100644 --- a/src/soc/intel/elkhartlake/Kconfig +++ b/src/soc/intel/elkhartlake/Kconfig @@ -104,6 +104,10 @@ config IED_REGION_SIZE hex default 0x0 +config HEAP_SIZE + hex + default 0x8000 + config MAX_ROOT_PORTS int default 7 diff --git a/src/soc/intel/jasperlake/Kconfig b/src/soc/intel/jasperlake/Kconfig index 9f70177ce6..624e362954 100644 --- a/src/soc/intel/jasperlake/Kconfig +++ b/src/soc/intel/jasperlake/Kconfig @@ -106,6 +106,10 @@ config IED_REGION_SIZE hex default 0x400000 +config HEAP_SIZE + hex + default 0x8000 + config MAX_ROOT_PORTS int default 8 diff --git a/src/soc/intel/meteorlake/Kconfig b/src/soc/intel/meteorlake/Kconfig index a2f2706145..923a2b4283 100644 --- a/src/soc/intel/meteorlake/Kconfig +++ b/src/soc/intel/meteorlake/Kconfig @@ -198,6 +198,11 @@ config IED_REGION_SIZE hex default 0x400000 +config HEAP_SIZE + hex + default 0x80000 if BMP_LOGO + default 0x10000 + # Intel recommends reserving the PCIe TBT root port resources as below: # - 42 buses # - 194 MiB Non-prefetchable memory diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig index e0df501460..d6a11363ee 100644 --- a/src/soc/intel/skylake/Kconfig +++ b/src/soc/intel/skylake/Kconfig @@ -151,6 +151,10 @@ config EXCLUDE_NATIVE_SD_INTERFACE help If you set this option to n, will not use native SD controller. +config HEAP_SIZE + hex + default 0x80000 + config IED_REGION_SIZE hex default 0x400000 diff --git a/src/soc/intel/tigerlake/Kconfig b/src/soc/intel/tigerlake/Kconfig index 2d5cf08a48..2c4715a113 100644 --- a/src/soc/intel/tigerlake/Kconfig +++ b/src/soc/intel/tigerlake/Kconfig @@ -152,6 +152,10 @@ config IED_REGION_SIZE config INTEL_TME default n +config HEAP_SIZE + hex + default 0x10000 + config MAX_ROOT_PORTS int default 24 if SOC_INTEL_TIGERLAKE_PCH_H diff --git a/src/soc/intel/xeon_sp/Kconfig b/src/soc/intel/xeon_sp/Kconfig index e63bee5451..63ced01067 100644 --- a/src/soc/intel/xeon_sp/Kconfig +++ b/src/soc/intel/xeon_sp/Kconfig @@ -91,6 +91,10 @@ config ECAM_MMCONF_BASE_ADDRESS config ECAM_MMCONF_BUS_NUMBER default 256 +config HEAP_SIZE + hex + default 0x80000 + config HPET_MIN_TICKS hex default 0x80 diff --git a/src/soc/intel/xeon_sp/cpx/Kconfig b/src/soc/intel/xeon_sp/cpx/Kconfig index ac166c3038..f54f7716b6 100644 --- a/src/soc/intel/xeon_sp/cpx/Kconfig +++ b/src/soc/intel/xeon_sp/cpx/Kconfig @@ -71,6 +71,10 @@ config CPU_MICROCODE_CBFS_LEN hex default 0x7C00 +config HEAP_SIZE + hex + default 0x80000 + config STACK_SIZE hex default 0x4000 diff --git a/src/soc/intel/xeon_sp/skx/Kconfig b/src/soc/intel/xeon_sp/skx/Kconfig index 5d843878e1..c2c3d4e2e8 100644 --- a/src/soc/intel/xeon_sp/skx/Kconfig +++ b/src/soc/intel/xeon_sp/skx/Kconfig @@ -55,6 +55,10 @@ config CPU_MICROCODE_CBFS_LEN hex default 0x7C00 +config HEAP_SIZE + hex + default 0x80000 + config IED_REGION_SIZE hex default 0x400000 diff --git a/src/soc/intel/xeon_sp/spr/Kconfig b/src/soc/intel/xeon_sp/spr/Kconfig index 43b87ade14..b1c4c783b7 100644 --- a/src/soc/intel/xeon_sp/spr/Kconfig +++ b/src/soc/intel/xeon_sp/spr/Kconfig @@ -79,6 +79,10 @@ config CPU_MICROCODE_CBFS_LEN hex default 0x8c00 +config HEAP_SIZE + hex + default 0x80000 + config STACK_SIZE hex default 0x4000 diff --git a/src/soc/qualcomm/ipq40xx/Kconfig b/src/soc/qualcomm/ipq40xx/Kconfig index 0ce92731c0..0eabb00752 100644 --- a/src/soc/qualcomm/ipq40xx/Kconfig +++ b/src/soc/qualcomm/ipq40xx/Kconfig @@ -57,4 +57,8 @@ config SBL_UTIL_PATH help Path for utils to combine SBL_ELF and bootblock +config HEAP_SIZE + hex + default 0x8000 + endif |