AMD: Move RAMBASE and RAMTOP

There are no reasons to not load ramstage @ 0x100000.

Boards with HAVE_ACPI_RESUME enabled have performance penalty in using
excessive RAMTOP. For these boards, this change releases 11 MiB of RAM from CBMEM allocation to OS.

Change-Id: Ib71995aba5e9332d0ec1626b3eb3b4ef6a506d1c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/7094
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Kyösti Mälkki 2014-04-30 01:35:29 +03:00
parent abc083e06b
commit eaee6e2d95
54 changed files with 28 additions and 536 deletions

View File

@ -316,6 +316,11 @@ config TPM
If unsure, say N. If unsure, say N.
config RAMTOP
hex
default 0x200000
depends on ARCH_X86
config HEAP_SIZE config HEAP_SIZE
hex hex
default 0x4000 default 0x4000

View File

@ -30,10 +30,6 @@ config RAMBASE
hex hex
default 0x100000 default 0x100000
config RAMTOP
hex
default 0x200000
config STACK_SIZE config STACK_SIZE
hex hex
default 0x1000 default 0x1000

View File

@ -73,18 +73,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config VGA_BIOS_ID config VGA_BIOS_ID
string string
default "1002,9712" default "1002,9712"

View File

@ -73,16 +73,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif #BOARD_AMD_BIMINI_FAM10 endif #BOARD_AMD_BIMINI_FAM10

View File

@ -61,18 +61,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config DRIVERS_PS2_KEYBOARD config DRIVERS_PS2_KEYBOARD
bool bool
default y default y

View File

@ -57,18 +57,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config DRIVERS_PS2_KEYBOARD config DRIVERS_PS2_KEYBOARD
bool bool
default y default y

View File

@ -61,18 +61,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000095.h" default "mc_patch_01000095.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config VGA_BIOS_ID config VGA_BIOS_ID
string string
default "1002,9615" default "1002,9615"

View File

@ -56,22 +56,10 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config ACPI_SSDTX_NUM config ACPI_SSDTX_NUM
int int
default 0 default 0
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -56,22 +56,10 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config ACPI_SSDTX_NUM config ACPI_SSDTX_NUM
int int
default 0 default 0
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -57,18 +57,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -57,18 +57,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -62,20 +62,8 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000095.h" default "mc_patch_01000095.h"
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config ACPI_SSDTX_NUM config ACPI_SSDTX_NUM
int int
default 5 default 5
config RAMBASE
hex
default 0x200000
endif # BOARD_AMD_SERENGETI_CHEETAH_FAM10 endif # BOARD_AMD_SERENGETI_CHEETAH_FAM10

View File

@ -57,18 +57,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -57,18 +57,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -61,18 +61,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config VGA_BIOS config VGA_BIOS
bool bool
default n default n

View File

@ -67,18 +67,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -56,18 +56,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -57,18 +57,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -57,22 +57,10 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config ACPI_SSDTX_NUM config ACPI_SSDTX_NUM
int int
default 0 default 0
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -53,10 +53,6 @@ config MAX_PHYSICAL_CPUS
int int
default 1 default 1
config HEAP_SIZE
hex
default 0x40000
config HT_CHAIN_END_UNITID_BASE config HT_CHAIN_END_UNITID_BASE
hex hex
default 0x20 default 0x20

View File

@ -53,10 +53,6 @@ config MAX_PHYSICAL_CPUS
int int
default 1 default 1
config HEAP_SIZE
hex
default 0x40000
config HT_CHAIN_END_UNITID_BASE config HT_CHAIN_END_UNITID_BASE
hex hex
default 0x20 default 0x20

View File

@ -82,18 +82,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -56,10 +56,6 @@ config MAX_PHYSICAL_CPUS
int int
default 1 default 1
config HEAP_SIZE
hex
default 0x40000
config HT_CHAIN_END_UNITID_BASE config HT_CHAIN_END_UNITID_BASE
hex hex
default 0x20 default 0x20

View File

@ -63,10 +63,6 @@ config MAX_PHYSICAL_CPUS
int int
default 1 default 1
config HEAP_SIZE
hex
default 0x40000
config HT_CHAIN_UNITID_BASE config HT_CHAIN_UNITID_BASE
hex hex
default 0x0 default 0x0

View File

@ -56,10 +56,6 @@ config MAX_PHYSICAL_CPUS
int int
default 1 default 1
config HEAP_SIZE
hex
default 0x40000
config HT_CHAIN_END_UNITID_BASE config HT_CHAIN_END_UNITID_BASE
hex hex
default 0x20 default 0x20

View File

@ -60,16 +60,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif endif

View File

@ -61,16 +61,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif endif

View File

@ -63,16 +63,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_0100009f.h" default "mc_patch_0100009f.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif endif

View File

@ -71,18 +71,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000bf.h" default "mc_patch_010000bf.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config VGA_BIOS_ID config VGA_BIOS_ID
string string
default "1002,9715" default "1002,9715"

View File

@ -73,18 +73,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config VGA_BIOS_ID config VGA_BIOS_ID
string string
default "1002,9712" default "1002,9712"

View File

@ -61,16 +61,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif # BOARD_GIGABYTE_MA785GM endif # BOARD_GIGABYTE_MA785GM

View File

@ -61,16 +61,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif # BOARD_GIGABYTE_MA785GMT endif # BOARD_GIGABYTE_MA785GMT

View File

@ -61,16 +61,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000095.h" default "mc_patch_01000095.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif # BOARD_GIGABYTE_MA78GM endif # BOARD_GIGABYTE_MA78GM

View File

@ -58,18 +58,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -68,18 +68,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000095.h" default "mc_patch_01000095.h"
config RAMBASE
hex
default 0x200000
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config BOOTBLOCK_MAINBOARD_INIT config BOOTBLOCK_MAINBOARD_INIT
string string
default "mainboard/hp/dl165_g6_fam10/bootblock.c" default "mainboard/hp/dl165_g6_fam10/bootblock.c"

View File

@ -61,18 +61,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -61,18 +61,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000086.h" default "mc_patch_01000086.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config VGA_BIOS_ID config VGA_BIOS_ID
string string
default "1002,9615" default "1002,9615"

View File

@ -58,18 +58,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -61,16 +61,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000b6.h" default "mc_patch_010000b6.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif # BOARD_JETWAY_PA78VM5 endif # BOARD_JETWAY_PA78VM5

View File

@ -29,10 +29,6 @@ config MAINBOARD_PART_NUMBER
string string
default "KT690/mITX" default "KT690/mITX"
config HEAP_SIZE
hex
default 0x8000
config MAX_CPUS config MAX_CPUS
int int
default 2 default 2

View File

@ -59,18 +59,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -61,18 +61,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config ONBOARD_VGA_IS_PRIMARY config ONBOARD_VGA_IS_PRIMARY
bool bool
default y default y

View File

@ -49,10 +49,6 @@ config MAX_PHYSICAL_CPUS
int int
default 2 default 2
config HEAP_SIZE
hex
default 0x20000
config USE_OPTION_TABLE config USE_OPTION_TABLE
bool bool
default n default n
@ -61,10 +57,6 @@ config MAINBOARD_PART_NUMBER
string string
default "MS-9652" default "MS-9652"
config RAMBASE
hex
default 0x200000
config DEFAULT_CONSOLE_LOGLEVEL config DEFAULT_CONSOLE_LOGLEVEL
int int
default 9 default 9
@ -97,10 +89,6 @@ config APIC_ID_OFFSET
hex hex
default 0x00 default 0x00
config RAMTOP
hex
default 0x1000000
config AMD_UCODE_PATCH_FILE config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000096.h" default "mc_patch_01000096.h"

View File

@ -32,18 +32,6 @@ config DCACHE_RAM_SIZE
hex hex
default 0x0c000 default 0x0c000
config RAMBASE
hex
default 0x200000
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config APIC_ID_OFFSET config APIC_ID_OFFSET
hex hex
default 0x0 default 0x0

View File

@ -60,18 +60,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config DRIVERS_PS2_KEYBOARD config DRIVERS_PS2_KEYBOARD
bool bool
default y default y

View File

@ -30,18 +30,6 @@ config DCACHE_RAM_SIZE
hex hex
default 0x0c000 default 0x0c000
config RAMBASE
hex
default 0x200000
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xff000
config APIC_ID_OFFSET config APIC_ID_OFFSET
hex hex
default 0x0 default 0x0

View File

@ -63,18 +63,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config DRIVERS_PS2_KEYBOARD config DRIVERS_PS2_KEYBOARD
bool bool
default y default y

View File

@ -61,16 +61,4 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_010000c4.h" default "mc_patch_010000c4.h"
config RAMTOP
hex
default 0x2000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
endif # BOARD_AMD_H8SCM_FAM10 endif # BOARD_AMD_H8SCM_FAM10

View File

@ -53,8 +53,4 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config HEAP_SIZE
hex
default 0x4000
endif # BOARD_TECHNEXION_TIM5690 endif # BOARD_TECHNEXION_TIM5690

View File

@ -72,18 +72,6 @@ config AMD_UCODE_PATCH_FILE
string string
default "mc_patch_01000095.h" default "mc_patch_01000095.h"
config RAMBASE
hex
default 0x200000
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config MCP55_PCI_E_X_0 config MCP55_PCI_E_X_0
int int
default 1 default 1

View File

@ -60,18 +60,6 @@ config IRQ_SLOT_COUNT
int int
default 11 default 11
config RAMTOP
hex
default 0x1000000
config HEAP_SIZE
hex
default 0xc0000
config RAMBASE
hex
default 0x200000
config DRIVERS_PS2_KEYBOARD config DRIVERS_PS2_KEYBOARD
bool bool
default y default y

View File

@ -39,4 +39,13 @@ source src/northbridge/amd/agesa/family15tn/Kconfig
source src/northbridge/amd/agesa/family16kb/Kconfig source src/northbridge/amd/agesa/family16kb/Kconfig
source src/northbridge/amd/agesa/00730F01/Kconfig source src/northbridge/amd/agesa/00730F01/Kconfig
# TODO: Reservation for heap seems excessive
config HEAP_SIZE
hex
default 0xc0000
config RAMTOP
hex
default 0x400000
endif # NORTHBRIDGE_AMD_AGESA endif # NORTHBRIDGE_AMD_AGESA

View File

@ -54,6 +54,15 @@ config MMCONF_BUS_NUMBER
int int
default 256 default 256
# TODO: Reservation for heap seems excessive
config HEAP_SIZE
hex
default 0xc0000
config RAMTOP
hex
default 0x400000
config BOOTBLOCK_NORTHBRIDGE_INIT config BOOTBLOCK_NORTHBRIDGE_INIT
string string
default "northbridge/amd/amdfam10/bootblock.c" default "northbridge/amd/amdfam10/bootblock.c"

View File

@ -107,6 +107,11 @@ config MEM_TRAIN_SEQ
endif #K8_REV_F_SUPPORT endif #K8_REV_F_SUPPORT
# TODO: Reservation for heap seems excessive
config HEAP_SIZE
hex
default 0x40000
config IOMMU config IOMMU
bool bool
default y default y