amd/model_fxx: set CPU_ADDR_BITS to 40 on all K8 machines

Moves the K8 CPU_ADDR_BITS definition from socket to model.
Previously socket_F was not setting CPU_ADDR_BITS correctly.

Tested on Sun Ultra 40 M2 with two 2nd-gen Opterons w/ 2x4x2GiB DIMMs.

Most if not all K8-based chips support 40-bit physical addresses, with
possible exception of IA32-only K8-based Athlon XP-M chips.

Probably irrelevant, unless your machine has enough memory (at least 60 to
64GiB before MMIO hoisting) to exceed the CPU_ADDR_BITS default of 36 from
src/cpu/x86/Kconfig.

Change-Id: I01a2a59fa902280171840c36ca2e631476d3d603
Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Reviewed-on: http://review.coreboot.org/10963
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
Jonathan A. Kollasch 2015-07-17 07:47:41 -05:00
parent 3332f33009
commit df5446196c
4 changed files with 4 additions and 12 deletions

View File

@ -12,6 +12,10 @@ config CPU_AMD_MODEL_FXX
select SUPPORT_CPU_UCODE_IN_CBFS select SUPPORT_CPU_UCODE_IN_CBFS
if CPU_AMD_MODEL_FXX if CPU_AMD_MODEL_FXX
config CPU_ADDR_BITS
int
default 40
config UDELAY_IO config UDELAY_IO
bool bool
default n default n

View File

@ -8,10 +8,6 @@ config SOCKET_SPECIFIC_OPTIONS
select CPU_AMD_MODEL_FXX select CPU_AMD_MODEL_FXX
select X86_AMD_FIXED_MTRRS select X86_AMD_FIXED_MTRRS
config CPU_ADDR_BITS
int
default 40
config DCACHE_RAM_BASE config DCACHE_RAM_BASE
hex hex
default 0xc8000 default 0xc8000

View File

@ -9,10 +9,6 @@ config SOCKET_SPECIFIC_OPTIONS
select CPU_AMD_MODEL_FXX select CPU_AMD_MODEL_FXX
select X86_AMD_FIXED_MTRRS select X86_AMD_FIXED_MTRRS
config CPU_ADDR_BITS
int
default 40
config DCACHE_RAM_BASE config DCACHE_RAM_BASE
hex hex
default 0xc8000 default 0xc8000

View File

@ -19,10 +19,6 @@ config DIMM_SUPPORT
hex hex
default 0x0204 default 0x0204
config CPU_ADDR_BITS
int
default 40
config DCACHE_RAM_BASE config DCACHE_RAM_BASE
hex hex
default 0xc8000 default 0xc8000