2012-12-08 02:18:43 +01:00
|
|
|
# Warning: This file is included whether or not the if is here.
|
|
|
|
# The if controls how the evaluation occurs.
|
|
|
|
# (See also src/Kconfig)
|
|
|
|
|
2015-04-04 01:58:28 +02:00
|
|
|
source "src/cpu/*/Kconfig"
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2014-04-23 00:16:54 +02:00
|
|
|
if ARCH_X86
|
|
|
|
|
2009-08-12 17:00:51 +02:00
|
|
|
config DCACHE_RAM_BASE
|
|
|
|
hex
|
|
|
|
|
|
|
|
config DCACHE_RAM_SIZE
|
|
|
|
hex
|
|
|
|
|
2015-06-02 20:47:36 +02:00
|
|
|
config DCACHE_BSP_STACK_SIZE
|
|
|
|
hex
|
|
|
|
|
arch/x86: Implement RESET_VECTOR_IN_RAM
Add support for devices with the reset vector pointing into DRAM. This
is a specific implementation that assumes a paradigm of AMD Family 17h
(a.k.a. "Zen"). Until the first ljmpl for protected mode, the core's
state appears to software like other designs, and then the actual
physical addressing becomes recognizable.
These systems cannot implement cache-as-RAM as in more traditional
x86 products. Therefore instead of reusing CAR names and variables,
a substitute called "earlyram" is introduced. This change makes
adjustments to CAR-aware files accordingly.
Enable NO_XIP_EARLY_STAGES. The first stage is already in DRAM, and
running subsequent stages as XIP in the boot device would reduce
performance.
Finally, add a new early_ram.ld linker file. Because all stages run in
DRAM, they can be linked with their .data and .bss as normal, i.e. they
don't need to rely on storage available only at a fixed location like
CAR systems. The primary purpose of the early_ram.ld is to provide
consistent locations for PRERAM_CBMEM_CONSOLE, TIMESTAMP regions, etc.
across stages until cbmem is brought online.
BUG=b:147042464
TEST=Build for trembyle, and boot to ramstage.
$ objdump -h cbfs/fallback/bootblock.debug
Idx ,Name ,Size ,VMA ,LMA ,File off Algn
0 ,.text ,000074d0 ,08076000 ,08076000 ,00001000 2**12
1 ,.data ,00000038 ,0807d4d0 ,0807d4d0 ,000084d0 2**2
2 ,.bss ,00000048 ,0807d508 ,0807d508 ,00008508 2**2
3 ,.stack ,00000800 ,0807daf0 ,0807daf0 ,00000000 2**0
4 ,.persistent ,00001cfa ,0807e2f0 ,0807e2f0 ,00000000 2**0
5 ,.reset ,00000010 ,0807fff0 ,0807fff0 ,0000aff0 2**0
6 ,.debug_info ,0002659c ,00000000 ,00000000 ,0000b000 2**0
7 ,.debug_abbrev ,000074a2 ,00000000 ,00000000 ,0003159c 2**0
8 ,.debug_aranges,00000dd0 ,00000000 ,00000000 ,00038a40 2**3
9 ,.debug_line ,0000ad65 ,00000000 ,00000000 ,00039810 2**0
10 ,.debug_str ,00009655 ,00000000 ,00000000 ,00044575 2**0
11 ,.debug_loc ,0000b7ce ,00000000 ,00000000 ,0004dbca 2**0
12 ,.debug_ranges ,000029c0 ,00000000 ,00000000 ,00059398 2**3
Change-Id: I9c084ff6fdcf7e9154436f038705e8679daea780
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35035
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-04-04 01:47:37 +02:00
|
|
|
config EARLYRAM_BSP_STACK_SIZE
|
|
|
|
depends on RESET_VECTOR_IN_RAM
|
|
|
|
hex
|
|
|
|
|
2009-08-12 17:00:51 +02:00
|
|
|
config SMP
|
|
|
|
bool
|
2009-09-22 20:49:08 +02:00
|
|
|
default y if MAX_CPUS != 1
|
2009-09-24 11:03:06 +02:00
|
|
|
default n
|
2009-10-18 20:35:50 +02:00
|
|
|
help
|
|
|
|
This option is used to enable certain functions to make coreboot
|
|
|
|
work correctly on symmetric multi processor (SMP) systems.
|
2009-10-02 01:22:50 +02:00
|
|
|
|
|
|
|
config MMX
|
|
|
|
bool
|
2010-02-25 14:40:49 +01:00
|
|
|
help
|
|
|
|
Select MMX in your socket or model Kconfig if your CPU has MMX
|
2020-02-22 10:15:33 +01:00
|
|
|
streaming SIMD instructions.
|
2009-10-02 01:22:50 +02:00
|
|
|
|
|
|
|
config SSE
|
|
|
|
bool
|
2010-02-25 14:40:49 +01:00
|
|
|
help
|
|
|
|
Select SSE in your socket or model Kconfig if your CPU has SSE
|
2020-02-22 10:15:33 +01:00
|
|
|
streaming SIMD instructions.
|
2010-02-25 14:40:49 +01:00
|
|
|
|
|
|
|
config SSE2
|
|
|
|
bool
|
2010-03-19 03:33:40 +01:00
|
|
|
default n
|
2017-06-16 22:20:57 +02:00
|
|
|
select SSE
|
2010-02-25 14:40:49 +01:00
|
|
|
help
|
|
|
|
Select SSE2 in your socket or model Kconfig if your CPU has SSE2
|
|
|
|
streaming SIMD instructions. Some parts of coreboot can be built
|
|
|
|
with more efficient code if SSE2 instructions are available.
|
2009-10-06 22:48:07 +02:00
|
|
|
|
2012-07-20 07:11:21 +02:00
|
|
|
endif # ARCH_X86
|
|
|
|
|
2013-12-05 05:21:15 +01:00
|
|
|
config SUPPORT_CPU_UCODE_IN_CBFS
|
2012-07-20 07:11:21 +02:00
|
|
|
bool
|
2012-07-11 02:02:21 +02:00
|
|
|
default n
|
2012-07-20 07:11:21 +02:00
|
|
|
|
2015-11-05 16:03:45 +01:00
|
|
|
config USES_MICROCODE_HEADER_FILES
|
|
|
|
def_bool n
|
|
|
|
select SUPPORT_CPU_UCODE_IN_CBFS
|
|
|
|
help
|
|
|
|
This is selected by a board or chipset to set the default for the
|
|
|
|
microcode source choice to a list of external microcode headers
|
|
|
|
|
2018-11-29 17:05:32 +01:00
|
|
|
config MICROCODE_BLOB_NOT_IN_BLOB_REPO
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Selected by platforms that don't maintain microcode updates in the
|
|
|
|
blobs repo yet.
|
|
|
|
|
|
|
|
config MICROCODE_BLOB_NOT_HOOKED_UP
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Selected by platforms that haven't hooked microcode updates up yet.
|
|
|
|
|
|
|
|
config MICROCODE_BLOB_UNDISCLOSED
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Selected by work-in-progress platforms that don't have microcode
|
|
|
|
updates available yet.
|
|
|
|
|
|
|
|
config USE_CPU_MICROCODE_CBFS_BINS
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Automatically selected below to add binary microcode files
|
|
|
|
(`cpu_microcode_bins` in the makefiles) to CBFS.
|
|
|
|
|
2012-07-20 07:11:21 +02:00
|
|
|
choice
|
2013-02-27 20:24:11 +01:00
|
|
|
prompt "Include CPU microcode in CBFS" if ARCH_X86
|
2015-11-05 16:03:45 +01:00
|
|
|
default CPU_MICROCODE_CBFS_EXTERNAL_HEADER if USES_MICROCODE_HEADER_FILES
|
2018-11-29 17:05:32 +01:00
|
|
|
default CPU_MICROCODE_CBFS_NONE if MICROCODE_BLOB_NOT_IN_BLOB_REPO || \
|
|
|
|
MICROCODE_BLOB_NOT_HOOKED_UP || \
|
|
|
|
MICROCODE_BLOB_UNDISCLOSED
|
|
|
|
depends on SUPPORT_CPU_UCODE_IN_CBFS
|
2012-07-20 07:11:21 +02:00
|
|
|
|
2018-11-29 17:05:32 +01:00
|
|
|
config CPU_MICROCODE_CBFS_DEFAULT_BINS
|
2012-07-20 07:11:21 +02:00
|
|
|
bool "Generate from tree"
|
2018-11-29 17:05:32 +01:00
|
|
|
select USE_CPU_MICROCODE_CBFS_BINS
|
|
|
|
depends on !(MICROCODE_BLOB_NOT_IN_BLOB_REPO || \
|
|
|
|
MICROCODE_BLOB_NOT_HOOKED_UP || \
|
|
|
|
MICROCODE_BLOB_UNDISCLOSED)
|
2012-06-19 06:20:20 +02:00
|
|
|
help
|
2012-07-20 07:11:21 +02:00
|
|
|
Select this option if you want microcode updates to be assembled when
|
|
|
|
building coreboot and included in the final image as a separate CBFS
|
|
|
|
file. Microcode will not be hard-coded into ramstage.
|
2012-06-19 06:20:20 +02:00
|
|
|
|
2013-04-01 13:45:44 +02:00
|
|
|
The microcode file may be removed from the ROM image at a later
|
2012-07-20 07:11:21 +02:00
|
|
|
time with cbfstool, if desired.
|
|
|
|
|
|
|
|
If unsure, select this option.
|
|
|
|
|
2018-11-29 17:05:32 +01:00
|
|
|
config CPU_MICROCODE_CBFS_EXTERNAL_BINS
|
|
|
|
bool "Include external microcode binary"
|
|
|
|
select USE_CPU_MICROCODE_CBFS_BINS
|
|
|
|
depends on !CPU_MICROCODE_MULTIPLE_FILES
|
|
|
|
help
|
|
|
|
Select this option if you want to include external binary files
|
|
|
|
in the CPUs native format. They will be included as a separate
|
|
|
|
file in CBFS.
|
|
|
|
|
|
|
|
A word of caution: only select this option if you are sure the
|
|
|
|
microcode that you have is newer than the microcode shipping with
|
|
|
|
coreboot.
|
|
|
|
|
|
|
|
The microcode file may be removed from the ROM image at a later
|
|
|
|
time with cbfstool, if desired.
|
|
|
|
|
|
|
|
If unsure, and applicable, select "Generate from tree"
|
|
|
|
|
2015-11-05 16:03:45 +01:00
|
|
|
config CPU_MICROCODE_CBFS_EXTERNAL_HEADER
|
|
|
|
bool "Include external microcode header files"
|
2018-11-29 17:05:32 +01:00
|
|
|
depends on !CPU_MICROCODE_MULTIPLE_FILES
|
2015-11-05 16:03:45 +01:00
|
|
|
help
|
|
|
|
Select this option if you want to include external c header files
|
|
|
|
containing the CPU microcode. This will be included as a separate
|
|
|
|
file in CBFS.
|
|
|
|
|
|
|
|
A word of caution: only select this option if you are sure the
|
|
|
|
microcode that you have is newer than the microcode shipping with
|
|
|
|
coreboot.
|
|
|
|
|
|
|
|
The microcode file may be removed from the ROM image at a later
|
|
|
|
time with cbfstool, if desired.
|
|
|
|
|
2018-11-29 17:05:32 +01:00
|
|
|
If unsure, and applicable, select "Generate from tree"
|
2015-11-05 16:03:45 +01:00
|
|
|
|
2012-07-20 07:11:21 +02:00
|
|
|
config CPU_MICROCODE_CBFS_NONE
|
|
|
|
bool "Do not include microcode updates"
|
|
|
|
help
|
|
|
|
Select this option if you do not want CPU microcode included in CBFS.
|
|
|
|
|
|
|
|
Microcode may be added to the ROM image at a later time with cbfstool,
|
|
|
|
if desired.
|
|
|
|
|
2018-11-29 17:05:32 +01:00
|
|
|
If unsure, and applicable, select "Generate from tree"
|
2012-07-20 07:11:21 +02:00
|
|
|
|
|
|
|
The GOOD:
|
|
|
|
Microcode updates intend to solve issues that have been discovered
|
|
|
|
after CPU production. The expected effect is that systems work as
|
|
|
|
intended with the updated microcode, but we have also seen cases where
|
|
|
|
issues were solved by not applying microcode updates.
|
|
|
|
|
|
|
|
The BAD:
|
|
|
|
Note that some operating system include these same microcode patches,
|
|
|
|
so you may need to also disable microcode updates in your operating
|
|
|
|
system for this option to have an effect.
|
|
|
|
|
|
|
|
The UGLY:
|
|
|
|
A word of CAUTION: some CPUs depend on microcode updates to function
|
|
|
|
correctly. Not updating the microcode may leave the CPU operating at
|
|
|
|
less than optimal performance, or may cause outright hangups.
|
|
|
|
There are CPUs where coreboot cannot properly initialize the CPU
|
|
|
|
without microcode updates
|
|
|
|
For example, if running with the factory microcode, some Intel
|
|
|
|
SandyBridge CPUs may hang when enabling CAR, or some VIA Nano CPUs
|
|
|
|
will hang when changing the frequency.
|
|
|
|
|
|
|
|
Make sure you have a way of flashing the ROM externally before
|
|
|
|
selecting this option.
|
|
|
|
|
|
|
|
endchoice
|
2013-02-18 17:26:01 +01:00
|
|
|
|
2015-10-08 23:58:58 +02:00
|
|
|
config CPU_MICROCODE_MULTIPLE_FILES
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Select this option to install separate microcode container files into
|
|
|
|
CBFS instead of using the traditional monolithic microcode file format.
|
2015-11-05 16:03:45 +01:00
|
|
|
|
|
|
|
config CPU_MICROCODE_HEADER_FILES
|
|
|
|
string "List of space separated microcode header files with the path"
|
|
|
|
depends on CPU_MICROCODE_CBFS_EXTERNAL_HEADER
|
|
|
|
help
|
|
|
|
A list of one or more microcode header files with path from the
|
|
|
|
coreboot directory. These should be separated by spaces.
|
2016-08-31 00:21:53 +02:00
|
|
|
|
|
|
|
config CPU_UCODE_BINARIES
|
|
|
|
string "Microcode binary path and filename"
|
2018-11-29 17:05:32 +01:00
|
|
|
depends on CPU_MICROCODE_CBFS_EXTERNAL_BINS
|
2016-08-31 00:21:53 +02:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Some platforms have microcode in the blobs directory, and these can
|
|
|
|
be hardcoded in the makefiles. For platforms with microcode
|
|
|
|
binaries that aren't in the makefile, set this option to pull
|
|
|
|
in the microcode.
|
|
|
|
|
|
|
|
This should contain the full path of the file for one or more
|
|
|
|
microcode binary files to include, separated by spaces.
|
|
|
|
|
|
|
|
If unsure, leave this blank.
|