| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config SOC_INTEL_COMMON_BLOCK_CPU |
| 4 |
bool |
| 5 |
default n |
| 6 |
help |
| 7 |
This option selects Intel Common CPU Model support code |
| 8 |
which provides various CPU related APIs which are common |
| 9 |
between all Intel Processor families. Common CPU code is supported |
| 10 |
for SOCs starting from SKL,KBL,APL, and future. |
| 11 |
|
| 12 |
config SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 13 |
bool |
| 14 |
default n |
| 15 |
help |
| 16 |
This option selects Intel Common CPU MP Init code. In |
| 17 |
this common MP Init mechanism, the MP Init is occurring before |
| 18 |
calling FSP Silicon Init. Hence, MP Init will be pulled to |
| 19 |
BS_DEV_INIT_CHIPS Entry. And on Exit of BS_DEV_INIT, it is |
| 20 |
ensured that all MTRRs are re-programmed based on the DRAM |
| 21 |
resource settings. |
| 22 |
|
| 23 |
choice |
| 24 |
prompt "Application Processors (AP) Feature Programming Configuration to use" |
| 25 |
default USE_FSP_FEATURE_PROGRAM_ON_APS if MP_SERVICES_PPI_V1 || MP_SERVICES_PPI_V2 |
| 26 |
default USE_COREBOOT_MP_INIT if MP_SERVICES_PPI_V2_NOOP |
| 27 |
|
| 28 |
config USE_FSP_FEATURE_PROGRAM_ON_APS |
| 29 |
bool "Allow FSP running CPU feature programming on MP init" |
| 30 |
help |
| 31 |
Upon selection, coreboot brings APs from reset and the FSP runs feature programming. |
| 32 |
|
| 33 |
config USE_COREBOOT_MP_INIT |
| 34 |
bool "Use coreboot MP init" |
| 35 |
# FSP assumes ownership of the APs (Application Processors) |
| 36 |
# upon passing `NULL` pointer to the CpuMpPpi FSP-S UPD. |
| 37 |
# Hence, select `MP_SERVICES_PPI_V2_NOOP` config to pass a valid |
| 38 |
# pointer to the CpuMpPpi UPD with FSP_UNSUPPORTED type APIs. |
| 39 |
# This will protect APs from getting hijacked by FSP while coreboot |
| 40 |
# decides to set SkipMpInit UPD. |
| 41 |
select RELOAD_MICROCODE_PATCH |
| 42 |
help |
| 43 |
Upon selection, coreboot performs MP Init. |
| 44 |
|
| 45 |
endchoice |
| 46 |
|
| 47 |
config SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE |
| 48 |
bool |
| 49 |
depends on SOC_INTEL_COMMON_BLOCK_CPU |
| 50 |
|
| 51 |
config SOC_INTEL_COMMON_BLOCK_CAR |
| 52 |
bool |
| 53 |
default n |
| 54 |
help |
| 55 |
This option allows you to select how cache-as-ram (CAR) is set up. |
| 56 |
|
| 57 |
config INTEL_CAR_NEM |
| 58 |
bool |
| 59 |
default n |
| 60 |
help |
| 61 |
Traditionally, CAR is set up by using Non-Evict mode. This method |
| 62 |
does not allow CAR and cache to co-exist, because cache fills are |
| 63 |
blocked in NEM. |
| 64 |
|
| 65 |
config INTEL_CAR_CQOS |
| 66 |
bool |
| 67 |
default n |
| 68 |
help |
| 69 |
Cache Quality of Service allows more fine-grained control of cache |
| 70 |
usage. As result, it is possible to set up a portion of L2 cache for |
| 71 |
CAR and use the remainder for actual caching. |
| 72 |
|
| 73 |
config INTEL_CAR_NEM_ENHANCED |
| 74 |
bool |
| 75 |
default n |
| 76 |
help |
| 77 |
A current limitation of NEM (Non-Evict mode) is that code and data sizes |
| 78 |
are derived from the requirement to not write out any modified cache line. |
| 79 |
With NEM, if there is no physical memory behind the cached area, |
| 80 |
the modified data will be lost and NEM results will be inconsistent. |
| 81 |
ENHANCED NEM guarantees that modified data is always |
| 82 |
kept in cache while clean data is replaced. |
| 83 |
|
| 84 |
config INTEL_CAR_ENEM_USE_EFFECTIVE_WAY_SIZE |
| 85 |
bool |
| 86 |
depends on INTEL_CAR_NEM_ENHANCED |
| 87 |
help |
| 88 |
On Alder Lake, Meteor Lake and Panther Lake platforms, the |
| 89 |
way size to consider for NEM+ computation is the effective |
| 90 |
way size. The effective way size is the biggest power of |
| 91 |
two of the way size. |
| 92 |
|
| 93 |
config CAR_HAS_SF_MASKS |
| 94 |
bool |
| 95 |
depends on INTEL_CAR_NEM_ENHANCED |
| 96 |
help |
| 97 |
In the case of non-inclusive cache architecture Snoop Filter MSR |
| 98 |
IA32_L3_SF_MASK_x programming is required along with the data ways. |
| 99 |
This is applicable for TGL and beyond. |
| 100 |
|
| 101 |
config SF_MASK_2WAYS_PER_BIT |
| 102 |
bool |
| 103 |
depends on INTEL_CAR_NEM_ENHANCED |
| 104 |
help |
| 105 |
In the case of non-inclusive cache architecture when two ways in |
| 106 |
the SF mask are controlled by one bit of the SF QoS register. |
| 107 |
This is applicable for TGL alone. |
| 108 |
|
| 109 |
config COS_MAPPED_TO_MSB |
| 110 |
bool |
| 111 |
depends on INTEL_CAR_NEM_ENHANCED |
| 112 |
help |
| 113 |
On TGL and JSL platform the class of service configuration |
| 114 |
is mapped to MSB of MSR IA32_PQR_ASSOC. |
| 115 |
|
| 116 |
config CAR_HAS_L3_PROTECTED_WAYS |
| 117 |
bool |
| 118 |
depends on INTEL_CAR_NEM_ENHANCED |
| 119 |
help |
| 120 |
On ADL and onwards platform has a newer requirement to protect |
| 121 |
L3 ways in Non-Inclusive eNEM mode. Hence, MSR 0xc85 is to program |
| 122 |
the data ways. |
| 123 |
|
| 124 |
config USE_INTEL_FSP_MP_INIT |
| 125 |
bool "Perform MP Initialization by FSP" |
| 126 |
default n |
| 127 |
help |
| 128 |
This option allows FSP to perform multiprocessor initialization. |
| 129 |
|
| 130 |
config USE_INTEL_FSP_TO_CALL_COREBOOT_PUBLISH_MP_PPI |
| 131 |
bool "Perform MP Initialization by FSP using coreboot MP PPI service" |
| 132 |
default y if !USE_INTEL_FSP_MP_INIT |
| 133 |
depends on MP_SERVICES_PPI |
| 134 |
help |
| 135 |
This option allows FSP to make use of MP services PPI published by |
| 136 |
coreboot to perform multiprocessor initialization. |
| 137 |
|
| 138 |
config CPU_SUPPORTS_INTEL_TME |
| 139 |
bool |
| 140 |
default n |
| 141 |
help |
| 142 |
Select this if the SoC supports Intel Total Memory Encryption (TME). |
| 143 |
|
| 144 |
config INTEL_TME |
| 145 |
bool "Total Memory Encryption (TME)/Multi-key TME (MKTME)" |
| 146 |
depends on CPU_SUPPORTS_INTEL_TME |
| 147 |
default y |
| 148 |
help |
| 149 |
Enable Total Memory Encryption (TME)/Multi-key TME (MKTME). The spec is |
| 150 |
available at "https://software.intel.com/sites/default/files/managed/a5 |
| 151 |
/16/Multi-Key-Total-Memory-Encryption-Spec.pdf". If CPU supports TME, |
| 152 |
it would get enabled. If CPU supports MKTME, this same config option |
| 153 |
enables MKTME. |
| 154 |
|
| 155 |
config TME_KEY_REGENERATION_ON_WARM_BOOT |
| 156 |
bool "Generate new TME key on each warm boot" |
| 157 |
depends on INTEL_TME |
| 158 |
default n |
| 159 |
help |
| 160 |
Program Intel TME to generate a new key for each warm boot. TME always |
| 161 |
generates a new key on each cold boot. With this option enabled TME |
| 162 |
generates a new key even in warm boot. Without this option TME reuses |
| 163 |
the key for warm boot. |
| 164 |
|
| 165 |
If a new key is generated on warm boot, DRAM contents from previous |
| 166 |
warm boot will not get decrypted. This creates issue in accessing |
| 167 |
CBMEM region from previous warm boot. To mitigate the issue coreboot |
| 168 |
also programs exclusion range. Intel TME does not encrypt physical |
| 169 |
memory range set in exclusion range. Current coreboot implementation |
| 170 |
programs TME to exclude CBMEM region. When this config option is |
| 171 |
enabled, coreboot instructs Intel FSP to program TME to generate |
| 172 |
a new key on every warm boot and also exclude CBMEM region from being |
| 173 |
encrypted by TME. |
| 174 |
|
| 175 |
config CPU_XTAL_HZ |
| 176 |
int |
| 177 |
help |
| 178 |
Base clock which virtually everything runs on. |
| 179 |
|
| 180 |
config CPU_SUPPORTS_PM_TIMER_EMULATION |
| 181 |
bool |
| 182 |
default n |
| 183 |
help |
| 184 |
Select this if the SoC's ucode supports PM ACPI timer emulation (Common |
| 185 |
timer Copy), which is required to be able to disable the TCO PM ACPI |
| 186 |
timer for power saving. |
| 187 |
|
| 188 |
config SOC_INTEL_NO_BOOTGUARD_MSR |
| 189 |
bool |
| 190 |
help |
| 191 |
Select this on platforms that do not support Bootguard related MSRs |
| 192 |
0x139, MSR_BC_PBEC and 0x13A, MSR_BOOT_GUARD_SACM_INFO. |
| 193 |
|
| 194 |
config SOC_INTEL_DISABLE_POWER_LIMITS |
| 195 |
bool |
| 196 |
default n |
| 197 |
help |
| 198 |
Select this if the Running Average Power Limits (RAPL) algorithm |
| 199 |
for constant power management is not needed. |
| 200 |
|
| 201 |
config SOC_INTEL_SET_MIN_CLOCK_RATIO |
| 202 |
bool |
| 203 |
depends on !SOC_INTEL_DISABLE_POWER_LIMITS |
| 204 |
default n |
| 205 |
help |
| 206 |
If the power budget of the mainboard is limited, it can be useful to |
| 207 |
limit the CPU power dissipation at the cost of performance by setting |
| 208 |
the lowest possible CPU clock. Enable this option if you need smallest |
| 209 |
possible CPU clock. This setting can be overruled by the OS if it has an |
| 210 |
p-state driver which can adjust the clock to its need. |
| 211 |
|
| 212 |
config HAVE_HYPERTHREADING |
| 213 |
def_bool n |
| 214 |
|
| 215 |
config FSP_HYPERTHREADING |
| 216 |
bool "Enable Hyper-Threading" |
| 217 |
depends on HAVE_HYPERTHREADING |
| 218 |
default y |
| 219 |
|
| 220 |
config INTEL_KEYLOCKER |
| 221 |
bool "Intel Key Locker" |
| 222 |
default n |
| 223 |
help |
| 224 |
Enable Intel Key Locker if supported by the CPU. Intel Key Locker provides a |
| 225 |
mechanism to encrypt and decrypt data with an AES key without having access |
| 226 |
to the raw key value by converting AES keys into "handles". The specification |
| 227 |
of Key Locker can be found via document #343965 on Intel's site. |
| 228 |
|
| 229 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE |
| 230 |
int |
| 231 |
depends on INTEL_KEYLOCKER || SOC_INTEL_COMMON_BLOCK_SGX_ENABLE |
| 232 |
default 256 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_256MB || SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_MAX |
| 233 |
default 128 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_128MB |
| 234 |
default 64 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_64MB |
| 235 |
default 32 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_32MB |
| 236 |
default 16 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_16MB |
| 237 |
default 8 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_8MB |
| 238 |
default 4 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_4MB |
| 239 |
default 2 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_2MB |
| 240 |
default 0 if SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_0MB |
| 241 |
default 0 |
| 242 |
|
| 243 |
choice |
| 244 |
prompt "PRMRR size" |
| 245 |
depends on INTEL_KEYLOCKER || SOC_INTEL_COMMON_BLOCK_SGX |
| 246 |
default SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_MAX if SOC_INTEL_COMMON_BLOCK_SGX_ENABLE |
| 247 |
default SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_2MB if !SOC_INTEL_COMMON_BLOCK_SGX_ENABLE && INTEL_KEYLOCKER |
| 248 |
default SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_0MB if !SOC_INTEL_COMMON_BLOCK_SGX_ENABLE && !INTEL_KEYLOCKER |
| 249 |
help |
| 250 |
PRMRR (Protected Memory Range) is the space in RAM that is used to provide a |
| 251 |
protected memory area (e.g. for the Intel SGX Secure Enclaves and Intel |
| 252 |
Key Locker). The memory region is accessible only by the processor itself to |
| 253 |
protect the data from unauthorized access. |
| 254 |
|
| 255 |
This option allows to select PRMRR size for the intended feature. Depending on |
| 256 |
the SoC a lower, compatible value may be chosen at runtime as not all values |
| 257 |
are supported on all families. |
| 258 |
|
| 259 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_MAX |
| 260 |
bool "Maximum" |
| 261 |
|
| 262 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_256MB |
| 263 |
bool "256 MiB" |
| 264 |
|
| 265 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_128MB |
| 266 |
bool "128 MiB" |
| 267 |
|
| 268 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_64MB |
| 269 |
bool "64 MiB" |
| 270 |
|
| 271 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_32MB |
| 272 |
bool "32 MiB" |
| 273 |
|
| 274 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_16MB |
| 275 |
bool "16 MiB" |
| 276 |
|
| 277 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_8MB |
| 278 |
bool "8 MiB" |
| 279 |
|
| 280 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_4MB |
| 281 |
bool "4 MiB" |
| 282 |
|
| 283 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_2MB |
| 284 |
bool "2 MiB" |
| 285 |
|
| 286 |
config SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE_0MB |
| 287 |
bool "0 MiB" |
| 288 |
|
| 289 |
endchoice |