Stefan Reinauer | 9d5e36e | 2015-04-27 13:40:16 -0700 | [diff] [blame] | 1 | config PARALLEL_MP |
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 2 | def_bool y |
| 3 | depends on !LEGACY_SMP_INIT |
| 4 | depends on SMP |
Raul E Rangel | 99c8478 | 2021-10-08 13:10:38 -0600 | [diff] [blame^] | 5 | select CPU_INFO_V2 |
Stefan Reinauer | 9d5e36e | 2015-04-27 13:40:16 -0700 | [diff] [blame] | 6 | help |
| 7 | This option uses common MP infrastructure for bringing up APs |
| 8 | in parallel. It additionally provides a more flexible mechanism |
| 9 | for sequencing the steps of bringing up the APs. |
| 10 | |
Aaron Durbin | b21e362 | 2016-12-07 00:32:19 -0600 | [diff] [blame] | 11 | config PARALLEL_MP_AP_WORK |
| 12 | def_bool n |
| 13 | depends on PARALLEL_MP |
| 14 | help |
| 15 | Allow APs to do other work after initialization instead of going |
| 16 | to sleep. |
Stefan Reinauer | 9d5e36e | 2015-04-27 13:40:16 -0700 | [diff] [blame] | 17 | |
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 18 | config LEGACY_SMP_INIT |
| 19 | bool |
| 20 | |
Kyösti Mälkki | 176c887 | 2021-05-29 20:33:22 +0300 | [diff] [blame] | 21 | choice LAPIC_ACCESS_MODE |
| 22 | prompt "APIC operation mode" |
| 23 | default XAPIC_ONLY |
| 24 | |
| 25 | config XAPIC_ONLY |
| 26 | prompt "Set XAPIC mode" |
| 27 | bool |
| 28 | |
| 29 | config X2APIC_ONLY |
| 30 | prompt "Set X2APIC mode" |
| 31 | bool |
| 32 | depends on PARALLEL_MP |
Kyösti Mälkki | 176c887 | 2021-05-29 20:33:22 +0300 | [diff] [blame] | 33 | |
| 34 | config X2APIC_RUNTIME |
| 35 | prompt "Support both XAPIC and X2APIC" |
| 36 | bool |
| 37 | depends on PARALLEL_MP |
Kyösti Mälkki | 176c887 | 2021-05-29 20:33:22 +0300 | [diff] [blame] | 38 | |
| 39 | endchoice |
| 40 | |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 41 | config UDELAY_LAPIC |
| 42 | bool |
| 43 | default n |
| 44 | |
Aaron Durbin | fd8291c | 2013-04-29 17:18:49 -0500 | [diff] [blame] | 45 | config LAPIC_MONOTONIC_TIMER |
| 46 | def_bool n |
| 47 | depends on UDELAY_LAPIC |
Aaron Durbin | fd8291c | 2013-04-29 17:18:49 -0500 | [diff] [blame] | 48 | help |
Elyes HAOUAS | d6e9686 | 2016-08-21 10:12:15 +0200 | [diff] [blame] | 49 | Expose monotonic time using the local APIC. |
Aaron Durbin | fd8291c | 2013-04-29 17:18:49 -0500 | [diff] [blame] | 50 | |
Patrick Georgi | e135ac5 | 2012-11-20 11:53:47 +0100 | [diff] [blame] | 51 | config UDELAY_LAPIC_FIXED_FSB |
| 52 | int |
| 53 | |
Ronald G. Minnich | 669c4a9 | 2009-08-29 03:00:51 +0000 | [diff] [blame] | 54 | config UDELAY_TSC |
| 55 | bool |
| 56 | default n |
| 57 | |
Kyösti Mälkki | 0d6ddf8 | 2019-10-31 14:52:20 +0200 | [diff] [blame] | 58 | config UNKNOWN_TSC_RATE |
| 59 | bool |
| 60 | default y if LAPIC_MONOTONIC_TIMER |
Aaron Durbin | 8e73b5d | 2013-05-01 15:27:09 -0500 | [diff] [blame] | 61 | |
Aaron Durbin | e850164 | 2013-04-29 22:22:55 -0500 | [diff] [blame] | 62 | config TSC_MONOTONIC_TIMER |
| 63 | def_bool n |
| 64 | depends on UDELAY_TSC |
Aaron Durbin | e850164 | 2013-04-29 22:22:55 -0500 | [diff] [blame] | 65 | help |
| 66 | Expose monotonic time using the TSC. |
| 67 | |
Stefan Reinauer | 0db6820 | 2012-08-07 14:44:51 -0700 | [diff] [blame] | 68 | config TSC_SYNC_LFENCE |
| 69 | bool |
| 70 | default n |
| 71 | help |
| 72 | The CPU driver should select this if the CPU needs |
| 73 | to execute an lfence instruction in order to synchronize |
| 74 | rdtsc. This is true for all modern AMD CPUs. |
| 75 | |
| 76 | config TSC_SYNC_MFENCE |
| 77 | bool |
| 78 | default n |
| 79 | help |
| 80 | The CPU driver should select this if the CPU needs |
| 81 | to execute an mfence instruction in order to synchronize |
| 82 | rdtsc. This is true for all modern Intel CPUs. |
| 83 | |
Arthur Heymans | 47be2d9 | 2019-10-12 17:32:09 +0200 | [diff] [blame] | 84 | config SETUP_XIP_CACHE |
| 85 | bool |
Arthur Heymans | 47be2d9 | 2019-10-12 17:32:09 +0200 | [diff] [blame] | 86 | depends on !NO_XIP_EARLY_STAGES |
| 87 | help |
| 88 | Select this option to set up an MTRR to cache XIP stages loaded |
| 89 | from the bootblock. This is useful on platforms lacking a |
| 90 | non-eviction mode and therefore need to be careful to avoid |
| 91 | eviction. |
| 92 | |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 93 | config CPU_ADDR_BITS |
| 94 | int |
| 95 | default 36 |
| 96 | |
| 97 | config LOGICAL_CPUS |
| 98 | bool |
| 99 | default y |
| 100 | |
Kyösti Mälkki | 4d372c7 | 2019-07-08 13:48:57 +0300 | [diff] [blame] | 101 | config HAVE_SMI_HANDLER |
| 102 | bool |
| 103 | default n |
| 104 | depends on (SMM_ASEG || SMM_TSEG) |
| 105 | |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 106 | config NO_SMM |
Kyösti Mälkki | 4d372c7 | 2019-07-08 13:48:57 +0300 | [diff] [blame] | 107 | bool |
| 108 | default n |
| 109 | |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 110 | config SMM_ASEG |
Duncan Laurie | 8bb7723 | 2012-01-09 22:11:25 -0800 | [diff] [blame] | 111 | bool |
| 112 | default n |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 113 | depends on !NO_SMM |
| 114 | |
| 115 | config SMM_TSEG |
| 116 | bool |
| 117 | default y |
| 118 | depends on !(NO_SMM || SMM_ASEG) |
| 119 | |
| 120 | if SMM_TSEG |
Aaron Durbin | 50a3464 | 2013-01-03 17:38:47 -0600 | [diff] [blame] | 121 | |
| 122 | config SMM_MODULE_HEAP_SIZE |
| 123 | hex |
| 124 | default 0x4000 |
Aaron Durbin | 50a3464 | 2013-01-03 17:38:47 -0600 | [diff] [blame] | 125 | help |
| 126 | This option determines the size of the heap within the SMM handler |
| 127 | modules. |
Aaron Durbin | 57686f8 | 2013-03-20 15:50:59 -0500 | [diff] [blame] | 128 | |
Raul E Rangel | d3b8393 | 2018-06-12 10:43:09 -0600 | [diff] [blame] | 129 | config SMM_MODULE_STACK_SIZE |
| 130 | hex |
Patrick Rudolph | ed8d777 | 2021-06-12 06:21:27 +0200 | [diff] [blame] | 131 | default 0x800 if ARCH_RAMSTAGE_X86_64 |
Raul E Rangel | d3b8393 | 2018-06-12 10:43:09 -0600 | [diff] [blame] | 132 | default 0x400 |
Raul E Rangel | d3b8393 | 2018-06-12 10:43:09 -0600 | [diff] [blame] | 133 | help |
| 134 | This option determines the size of the stack within the SMM handler |
| 135 | modules. |
| 136 | |
Marshall Dawson | 46fc6847 | 2018-10-25 13:01:55 -0600 | [diff] [blame] | 137 | config SMM_STUB_STACK_SIZE |
| 138 | hex |
| 139 | default 0x400 |
Marshall Dawson | 46fc6847 | 2018-10-25 13:01:55 -0600 | [diff] [blame] | 140 | help |
| 141 | This option determines the size of the stack within the SMM handler |
| 142 | modules. |
| 143 | |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 144 | endif |
| 145 | |
Patrick Georgi | ce2564a | 2015-09-05 20:21:24 +0200 | [diff] [blame] | 146 | config SMM_LAPIC_REMAP_MITIGATION |
| 147 | bool |
| 148 | default y if NORTHBRIDGE_INTEL_I945 |
| 149 | default y if NORTHBRIDGE_INTEL_GM45 |
Angel Pons | 95de231 | 2020-02-17 13:08:53 +0100 | [diff] [blame] | 150 | default y if NORTHBRIDGE_INTEL_IRONLAKE |
Patrick Georgi | ce2564a | 2015-09-05 20:21:24 +0200 | [diff] [blame] | 151 | default n |
| 152 | |
Damien Zammit | 149c4c5 | 2015-11-28 21:27:05 +1100 | [diff] [blame] | 153 | config SERIALIZED_SMM_INITIALIZATION |
| 154 | bool |
| 155 | default n |
| 156 | help |
| 157 | On some CPUs, there is a race condition in SMM. |
| 158 | This can occur when both hyperthreads change SMM state |
| 159 | variables in parallel without coordination. |
| 160 | Setting this option serializes the SMM initialization |
| 161 | to avoid an ugly hang in the boot process at the cost |
| 162 | of a slightly longer boot time. |
| 163 | |
Aaron Durbin | 57686f8 | 2013-03-20 15:50:59 -0500 | [diff] [blame] | 164 | config X86_AMD_FIXED_MTRRS |
| 165 | bool |
| 166 | default n |
| 167 | help |
| 168 | This option informs the MTRR code to use the RdMem and WrMem fields |
| 169 | in the fixed MTRR MSRs. |
Aaron Durbin | e0785c0 | 2013-10-21 12:15:29 -0500 | [diff] [blame] | 170 | |
Marshall Dawson | 98f43a1 | 2019-08-05 16:18:56 -0600 | [diff] [blame] | 171 | config X86_AMD_INIT_SIPI |
| 172 | bool |
| 173 | default n |
| 174 | help |
| 175 | This option limits the number of SIPI signals sent during during the |
| 176 | common AP setup. Intel documentation specifies an INIT SIPI SIPI |
Felix Held | 98fb72f | 2021-07-21 16:50:10 +0200 | [diff] [blame] | 177 | sequence, however this doesn't work on some AMD platforms. These |
| 178 | newer AMD platforms don't need the 10ms wait between INIT and SIPI, |
| 179 | so skip that too to save some time. |
Marshall Dawson | 98f43a1 | 2019-08-05 16:18:56 -0600 | [diff] [blame] | 180 | |
Lee Leahy | ae738ac | 2016-07-24 08:03:37 -0700 | [diff] [blame] | 181 | config SOC_SETS_MSRS |
| 182 | bool |
| 183 | default n |
| 184 | help |
| 185 | The SoC requires different access methods for reading and writing |
| 186 | the MSRs. Use SoC specific routines to handle the MSR access. |
Tim Wawrzynczak | 6fcc46d | 2021-04-19 13:47:36 -0600 | [diff] [blame] | 187 | |
| 188 | config RESERVE_MTRRS_FOR_OS |
| 189 | bool |
| 190 | default n |
| 191 | help |
| 192 | This option allows a platform to reserve 2 MTRRs for the OS usage. |
| 193 | The Intel SDM documents that the the first 6 MTRRs are intended for |
| 194 | the system BIOS and the last 2 are to be reserved for OS usage. |
| 195 | However, modern OSes use PAT to control cacheability instead of |
| 196 | using MTRRs. |
Raul E Rangel | b2346a5 | 2021-09-22 14:56:51 -0600 | [diff] [blame] | 197 | |
| 198 | config CPU_INFO_V2 |
| 199 | bool |
| 200 | depends on PARALLEL_MP |
| 201 | help |
| 202 | Enables the new method of locating struct cpu_info. This new method |
| 203 | uses the %gs segment to locate the cpu_info pointer. The old method |
| 204 | relied on the stack being CONFIG_STACK_SIZE aligned. |