cpu/amd/fam10h-15h: Fix BSP stack corruption on 32-core Fam10 systems

On some multi-socket AMD platforms there are too many cores for all
APs to start up without stack collisions with either each other or
the BSP.  On such platforms a larger amount of CAR memory is also
available.

Allow the maximum DCACHE size to be increased via a mainboard-
specific Kconfig flag.

Change-Id: I72ae8f7abeb9a83b57505469922818f9ec5bdf3f
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: http://review.coreboot.org/12015
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
This commit is contained in:
Timothy Pearson 2015-07-24 17:34:29 -05:00 committed by Martin Roth
parent 3ca41166d7
commit 323a2af8e2

View file

@ -15,6 +15,12 @@ config CPU_AMD_MODEL_10XXX
if CPU_AMD_MODEL_10XXX
config USE_LARGE_DCACHE
bool
default y if CPU_AMD_SOCKET_G34_NON_AGESA
default y if CPU_AMD_SOCKET_C32_NON_AGESA
default n
config NUM_IPI_STARTS
int
default 1
@ -37,6 +43,7 @@ config DCACHE_BSP_STACK_SIZE
config DCACHE_BSP_STACK_SLUSH
hex
default 0x4000 if USE_LARGE_DCACHE
default 0x1000
config DCACHE_AP_STACK_SIZE