summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/alderlake/Kconfig26
-rw-r--r--src/soc/intel/alderlake/fsp_params.c2
-rw-r--r--src/soc/intel/common/block/cpu/Kconfig24
-rw-r--r--src/soc/intel/meteorlake/Kconfig26
-rw-r--r--src/soc/intel/meteorlake/fsp_params.c2
5 files changed, 28 insertions, 52 deletions
diff --git a/src/soc/intel/alderlake/Kconfig b/src/soc/intel/alderlake/Kconfig
index 27176ec9c9..dd6bb22952 100644
--- a/src/soc/intel/alderlake/Kconfig
+++ b/src/soc/intel/alderlake/Kconfig
@@ -75,6 +75,7 @@ config CPU_SPECIFIC_OPTIONS
select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
select INTEL_GMA_OPREGION_2_1
select INTEL_TXT_LIB
+ select MP_SERVICES_PPI_V2
select MRC_SETTINGS_PROTECT
select PARALLEL_MP_AP_WORK
select PLATFORM_USES_FSP2_2
@@ -476,31 +477,6 @@ config USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS
Note: selection of this config would introduce an additional warm reset in
cold-reset scenarios due to function disabling of the UFS controller.
-choice
- prompt "Multiprocessor (MP) Initialization configuration to use"
- default USE_FSP_MP_INIT
-
-config USE_FSP_MP_INIT
- bool "Use FSP MP init"
- select MP_SERVICES_PPI_V2
- help
- Upon selection, coreboot brings APs from reset and the FSP runs feature programming.
-
-config USE_COREBOOT_MP_INIT
- bool "Use coreboot MP init"
- # FSP assumes ownership of the APs (Application Processors)
- # upon passing `NULL` pointer to the CpuMpPpi FSP-S UPD.
- # Hence, select `MP_SERVICES_PPI_V2_NOOP` config to pass a valid
- # pointer to the CpuMpPpi UPD with FSP_UNSUPPORTED type APIs.
- # This will protect APs from getting hijacked by FSP while coreboot
- # decides to set SkipMpInit UPD.
- select MP_SERVICES_PPI_V2_NOOP
- select RELOAD_MICROCODE_PATCH
- help
- Upon selection, coreboot performs MP Init.
-
-endchoice
-
if STITCH_ME_BIN
config CSE_BPDT_VERSION
diff --git a/src/soc/intel/alderlake/fsp_params.c b/src/soc/intel/alderlake/fsp_params.c
index aa8de99391..704f910a69 100644
--- a/src/soc/intel/alderlake/fsp_params.c
+++ b/src/soc/intel/alderlake/fsp_params.c
@@ -597,7 +597,7 @@ static void fill_fsps_cpu_params(FSP_S_CONFIG *s_cfg,
*/
s_cfg->CpuMpPpi = (uintptr_t)mp_fill_ppi_services_data();
- if (CONFIG(USE_FSP_MP_INIT))
+ if (CONFIG(USE_FSP_FEATURE_PROGRAM_ON_APS))
/*
* Fill `2nd microcode loading FSP UPD` if FSP is running CPU feature
* programming.
diff --git a/src/soc/intel/common/block/cpu/Kconfig b/src/soc/intel/common/block/cpu/Kconfig
index 132480482a..8b30dcf12c 100644
--- a/src/soc/intel/common/block/cpu/Kconfig
+++ b/src/soc/intel/common/block/cpu/Kconfig
@@ -18,6 +18,30 @@ config SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
ensured that all MTRRs are re-programmed based on the DRAM
resource settings.
+choice
+ prompt "Application Processors (AP) Feature Programming Configuration to use"
+ default USE_FSP_FEATURE_PROGRAM_ON_APS if MP_SERVICES_PPI_V1 || MP_SERVICES_PPI_V2
+ default USE_COREBOOT_MP_INIT if MP_SERVICES_PPI_V2_NOOP
+
+config USE_FSP_FEATURE_PROGRAM_ON_APS
+ bool "Allow FSP running CPU feature programming on MP init"
+ help
+ Upon selection, coreboot brings APs from reset and the FSP runs feature programming.
+
+config USE_COREBOOT_MP_INIT
+ bool "Use coreboot MP init"
+ # FSP assumes ownership of the APs (Application Processors)
+ # upon passing `NULL` pointer to the CpuMpPpi FSP-S UPD.
+ # Hence, select `MP_SERVICES_PPI_V2_NOOP` config to pass a valid
+ # pointer to the CpuMpPpi UPD with FSP_UNSUPPORTED type APIs.
+ # This will protect APs from getting hijacked by FSP while coreboot
+ # decides to set SkipMpInit UPD.
+ select RELOAD_MICROCODE_PATCH
+ help
+ Upon selection, coreboot performs MP Init.
+
+endchoice
+
config SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
bool
depends on SOC_INTEL_COMMON_BLOCK_CPU
diff --git a/src/soc/intel/meteorlake/Kconfig b/src/soc/intel/meteorlake/Kconfig
index 03782ddaaa..27d154b754 100644
--- a/src/soc/intel/meteorlake/Kconfig
+++ b/src/soc/intel/meteorlake/Kconfig
@@ -39,6 +39,7 @@ config CPU_SPECIFIC_OPTIONS
select INTEL_GMA_OPREGION_2_1
select IOAPIC
select MICROCODE_BLOB_UNDISCLOSED
+ select MP_SERVICES_PPI_V2
select MRC_SETTINGS_PROTECT
select PARALLEL_MP_AP_WORK
select PLATFORM_USES_FSP2_3
@@ -345,31 +346,6 @@ config SOC_INTEL_GFX_FRAMEBUFFER_OFFSET
hex
default 0x800000
-choice
- prompt "Multiprocessor (MP) Initialization configuration to use"
- default MTL_USE_FSP_MP_INIT
-
-config MTL_USE_FSP_MP_INIT
- bool "Use FSP MP init"
- select MP_SERVICES_PPI_V2
- help
- Upon selection, coreboot brings APs from reset and the FSP runs feature programming.
-
-config MTL_USE_COREBOOT_MP_INIT
- bool "Use coreboot MP init"
- # FSP assumes ownership of the APs (Application Processors)
- # upon passing `NULL` pointer to the CpuMpPpi FSP-S UPD.
- # Hence, select `MP_SERVICES_PPI_V2_NOOP` config to pass a valid
- # pointer to the CpuMpPpi UPD with FSP_UNSUPPORTED type APIs.
- # This will protect APs from getting hijacked by FSP while coreboot
- # decides to set SkipMpInit UPD.
- select MP_SERVICES_PPI_V2_NOOP
- select RELOAD_MICROCODE_PATCH
- help
- Upon selection, coreboot performs MP Initialization that includes feature programming.
-
-endchoice
-
config FSP_PUBLISH_MBP_HOB
bool
default n if CHROMEOS
diff --git a/src/soc/intel/meteorlake/fsp_params.c b/src/soc/intel/meteorlake/fsp_params.c
index fae9cbb1b1..041429dcc4 100644
--- a/src/soc/intel/meteorlake/fsp_params.c
+++ b/src/soc/intel/meteorlake/fsp_params.c
@@ -389,7 +389,7 @@ static void fill_fsps_cpu_params(FSP_S_CONFIG *s_cfg,
* Fill `2nd microcode loading FSP UPD` if FSP is running CPU feature
* programming.
*/
- if (CONFIG(MTL_USE_FSP_MP_INIT))
+ if (CONFIG(USE_FSP_FEATURE_PROGRAM_ON_APS))
fill_fsps_microcode_params(s_cfg, config);
}