Stefan Reinauer | 9d5e36e | 2015-04-27 13:40:16 -0700 | [diff] [blame] | 1 | # TODO These two options look too similar |
Kyösti Mälkki | 5c3f384 | 2014-05-08 15:27:15 +0300 | [diff] [blame] | 2 | config PARALLEL_CPU_INIT |
Sven Schnelle | a2701c6 | 2012-07-29 17:42:52 +0200 | [diff] [blame] | 3 | bool |
Kyösti Mälkki | 5c3f384 | 2014-05-08 15:27:15 +0300 | [diff] [blame] | 4 | default n |
Sven Schnelle | a2701c6 | 2012-07-29 17:42:52 +0200 | [diff] [blame] | 5 | |
Stefan Reinauer | 9d5e36e | 2015-04-27 13:40:16 -0700 | [diff] [blame] | 6 | config PARALLEL_MP |
| 7 | def_bool n |
| 8 | help |
| 9 | This option uses common MP infrastructure for bringing up APs |
| 10 | in parallel. It additionally provides a more flexible mechanism |
| 11 | for sequencing the steps of bringing up the APs. |
| 12 | |
Aaron Durbin | b21e362 | 2016-12-07 00:32:19 -0600 | [diff] [blame] | 13 | config PARALLEL_MP_AP_WORK |
| 14 | def_bool n |
| 15 | depends on PARALLEL_MP |
| 16 | help |
| 17 | Allow APs to do other work after initialization instead of going |
| 18 | to sleep. |
Stefan Reinauer | 9d5e36e | 2015-04-27 13:40:16 -0700 | [diff] [blame] | 19 | |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 20 | config UDELAY_LAPIC |
| 21 | bool |
| 22 | default n |
| 23 | |
Aaron Durbin | fd8291c | 2013-04-29 17:18:49 -0500 | [diff] [blame] | 24 | config LAPIC_MONOTONIC_TIMER |
| 25 | def_bool n |
| 26 | depends on UDELAY_LAPIC |
Aaron Durbin | fd8291c | 2013-04-29 17:18:49 -0500 | [diff] [blame] | 27 | help |
Elyes HAOUAS | d6e9686 | 2016-08-21 10:12:15 +0200 | [diff] [blame] | 28 | Expose monotonic time using the local APIC. |
Aaron Durbin | fd8291c | 2013-04-29 17:18:49 -0500 | [diff] [blame] | 29 | |
Patrick Georgi | e135ac5 | 2012-11-20 11:53:47 +0100 | [diff] [blame] | 30 | config UDELAY_LAPIC_FIXED_FSB |
| 31 | int |
| 32 | |
Ronald G. Minnich | 669c4a9 | 2009-08-29 03:00:51 +0000 | [diff] [blame] | 33 | config UDELAY_TSC |
| 34 | bool |
| 35 | default n |
| 36 | |
Aaron Durbin | 8e73b5d | 2013-05-01 15:27:09 -0500 | [diff] [blame] | 37 | config TSC_CONSTANT_RATE |
| 38 | def_bool n |
| 39 | depends on UDELAY_TSC |
| 40 | help |
| 41 | This option asserts that the TSC ticks at a known constant rate. |
| 42 | Therefore, no TSC calibration is required. |
| 43 | |
Aaron Durbin | e850164 | 2013-04-29 22:22:55 -0500 | [diff] [blame] | 44 | config TSC_MONOTONIC_TIMER |
| 45 | def_bool n |
| 46 | depends on UDELAY_TSC |
Aaron Durbin | e850164 | 2013-04-29 22:22:55 -0500 | [diff] [blame] | 47 | help |
| 48 | Expose monotonic time using the TSC. |
| 49 | |
Stefan Reinauer | 0db6820 | 2012-08-07 14:44:51 -0700 | [diff] [blame] | 50 | config TSC_SYNC_LFENCE |
| 51 | bool |
| 52 | default n |
| 53 | help |
| 54 | The CPU driver should select this if the CPU needs |
| 55 | to execute an lfence instruction in order to synchronize |
| 56 | rdtsc. This is true for all modern AMD CPUs. |
| 57 | |
| 58 | config TSC_SYNC_MFENCE |
| 59 | bool |
| 60 | default n |
| 61 | help |
| 62 | The CPU driver should select this if the CPU needs |
| 63 | to execute an mfence instruction in order to synchronize |
| 64 | rdtsc. This is true for all modern Intel CPUs. |
| 65 | |
Aaron Durbin | ef10529 | 2016-05-05 10:34:22 -0500 | [diff] [blame] | 66 | config NO_FIXED_XIP_ROM_SIZE |
| 67 | bool |
| 68 | default n |
| 69 | help |
| 70 | The XIP_ROM_SIZE Kconfig variable is used globally on x86 |
| 71 | with the assumption that all chipsets utilize this value. |
| 72 | For the chipsets which do not use the variable it can lead |
| 73 | to unnecessary alignment constraints in cbfs for romstage. |
| 74 | Therefore, allow those chipsets a path to not be burdened. |
| 75 | |
Uwe Hermann | f9d4c2b | 2009-08-25 12:19:28 +0000 | [diff] [blame] | 76 | config XIP_ROM_SIZE |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 77 | hex |
Aaron Durbin | ef10529 | 2016-05-05 10:34:22 -0500 | [diff] [blame] | 78 | depends on !NO_FIXED_XIP_ROM_SIZE |
Patrick Georgi | f1ce6f2 | 2010-04-12 09:50:53 +0000 | [diff] [blame] | 79 | default 0x10000 |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 80 | |
| 81 | config CPU_ADDR_BITS |
| 82 | int |
| 83 | default 36 |
| 84 | |
| 85 | config LOGICAL_CPUS |
| 86 | bool |
| 87 | default y |
| 88 | |
Kyösti Mälkki | 4d372c7 | 2019-07-08 13:48:57 +0300 | [diff] [blame] | 89 | config HAVE_SMI_HANDLER |
| 90 | bool |
| 91 | default n |
| 92 | depends on (SMM_ASEG || SMM_TSEG) |
| 93 | |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 94 | config NO_SMM |
Kyösti Mälkki | 4d372c7 | 2019-07-08 13:48:57 +0300 | [diff] [blame] | 95 | bool |
| 96 | default n |
| 97 | |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 98 | config SMM_ASEG |
Duncan Laurie | 8bb7723 | 2012-01-09 22:11:25 -0800 | [diff] [blame] | 99 | bool |
| 100 | default n |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 101 | depends on !NO_SMM |
| 102 | |
| 103 | config SMM_TSEG |
| 104 | bool |
| 105 | default y |
| 106 | depends on !(NO_SMM || SMM_ASEG) |
| 107 | |
| 108 | if SMM_TSEG |
Aaron Durbin | 50a3464 | 2013-01-03 17:38:47 -0600 | [diff] [blame] | 109 | |
| 110 | config SMM_MODULE_HEAP_SIZE |
| 111 | hex |
| 112 | default 0x4000 |
Aaron Durbin | 50a3464 | 2013-01-03 17:38:47 -0600 | [diff] [blame] | 113 | help |
| 114 | This option determines the size of the heap within the SMM handler |
| 115 | modules. |
Aaron Durbin | 57686f8 | 2013-03-20 15:50:59 -0500 | [diff] [blame] | 116 | |
Raul E Rangel | d3b8393 | 2018-06-12 10:43:09 -0600 | [diff] [blame] | 117 | config SMM_MODULE_STACK_SIZE |
| 118 | hex |
| 119 | default 0x400 |
Raul E Rangel | d3b8393 | 2018-06-12 10:43:09 -0600 | [diff] [blame] | 120 | help |
| 121 | This option determines the size of the stack within the SMM handler |
| 122 | modules. |
| 123 | |
Marshall Dawson | 46fc6847 | 2018-10-25 13:01:55 -0600 | [diff] [blame] | 124 | config SMM_STUB_STACK_SIZE |
| 125 | hex |
| 126 | default 0x400 |
Marshall Dawson | 46fc6847 | 2018-10-25 13:01:55 -0600 | [diff] [blame] | 127 | help |
| 128 | This option determines the size of the stack within the SMM handler |
| 129 | modules. |
| 130 | |
Kyösti Mälkki | 8abf66e | 2019-07-08 09:56:00 +0300 | [diff] [blame] | 131 | endif |
| 132 | |
Patrick Georgi | ce2564a | 2015-09-05 20:21:24 +0200 | [diff] [blame] | 133 | config SMM_LAPIC_REMAP_MITIGATION |
| 134 | bool |
| 135 | default y if NORTHBRIDGE_INTEL_I945 |
| 136 | default y if NORTHBRIDGE_INTEL_GM45 |
| 137 | default y if NORTHBRIDGE_INTEL_NEHALEM |
| 138 | default n |
| 139 | |
Damien Zammit | 149c4c5 | 2015-11-28 21:27:05 +1100 | [diff] [blame] | 140 | config SERIALIZED_SMM_INITIALIZATION |
| 141 | bool |
| 142 | default n |
| 143 | help |
| 144 | On some CPUs, there is a race condition in SMM. |
| 145 | This can occur when both hyperthreads change SMM state |
| 146 | variables in parallel without coordination. |
| 147 | Setting this option serializes the SMM initialization |
| 148 | to avoid an ugly hang in the boot process at the cost |
| 149 | of a slightly longer boot time. |
| 150 | |
Aaron Durbin | 57686f8 | 2013-03-20 15:50:59 -0500 | [diff] [blame] | 151 | config X86_AMD_FIXED_MTRRS |
| 152 | bool |
| 153 | default n |
| 154 | help |
| 155 | This option informs the MTRR code to use the RdMem and WrMem fields |
| 156 | in the fixed MTRR MSRs. |
Aaron Durbin | e0785c0 | 2013-10-21 12:15:29 -0500 | [diff] [blame] | 157 | |
Aaron Durbin | c34713d | 2014-02-25 20:36:56 -0600 | [diff] [blame] | 158 | config MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING |
| 159 | def_bool n |
| 160 | help |
| 161 | On certain platforms a boot speed gain can be realized if mirroring |
| 162 | the payload data stored in non-volatile storage. On x86 systems the |
| 163 | payload would typically live in a memory-mapped SPI part. Copying |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 164 | the SPI contents to RAM before performing the load can speed up |
Aaron Durbin | c34713d | 2014-02-25 20:36:56 -0600 | [diff] [blame] | 165 | the boot process. |
David Hendricks | be6f8cb | 2014-03-21 17:09:29 -0700 | [diff] [blame] | 166 | |
Lee Leahy | ae738ac | 2016-07-24 08:03:37 -0700 | [diff] [blame] | 167 | config SOC_SETS_MSRS |
| 168 | bool |
| 169 | default n |
| 170 | help |
| 171 | The SoC requires different access methods for reading and writing |
| 172 | the MSRs. Use SoC specific routines to handle the MSR access. |