Stefan Reinauer | 9fe20cb | 2012-12-07 17:18:43 -0800 | [diff] [blame] | 1 | # Warning: This file is included whether or not the if is here. |
| 2 | # The if controls how the evaluation occurs. |
| 3 | # (See also src/Kconfig) |
Stefan Reinauer | 9fe20cb | 2012-12-07 17:18:43 -0800 | [diff] [blame] | 4 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 5 | source "src/cpu/*/Kconfig" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 6 | |
Furquan Shaikh | fd33781 | 2014-04-22 15:16:54 -0700 | [diff] [blame] | 7 | if ARCH_X86 |
| 8 | |
Kyösti Mälkki | 0f5e01a | 2019-08-09 07:11:07 +0300 | [diff] [blame] | 9 | config CAR_GLOBAL_MIGRATION |
Aaron Durbin | bc17cde | 2017-04-07 15:20:14 -0500 | [diff] [blame] | 10 | bool |
| 11 | default n |
Aaron Durbin | bc17cde | 2017-04-07 15:20:14 -0500 | [diff] [blame] | 12 | help |
Kyösti Mälkki | 0f5e01a | 2019-08-09 07:11:07 +0300 | [diff] [blame] | 13 | This option is selected if there is need to migrate CAR globals. |
Aaron Durbin | bc17cde | 2017-04-07 15:20:14 -0500 | [diff] [blame] | 14 | All stages which use CAR globals can directly access the variables |
| 15 | from their linked addresses. |
| 16 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 17 | config DCACHE_RAM_BASE |
| 18 | hex |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 19 | |
| 20 | config DCACHE_RAM_SIZE |
| 21 | hex |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 22 | |
Timothy Pearson | b5e4655 | 2015-06-02 13:47:36 -0500 | [diff] [blame] | 23 | config DCACHE_BSP_STACK_SIZE |
| 24 | hex |
| 25 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 26 | config SMP |
| 27 | bool |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 28 | default y if MAX_CPUS != 1 |
Patrick Georgi | 892b091 | 2009-09-24 09:03:06 +0000 | [diff] [blame] | 29 | default n |
Uwe Hermann | a29ad5c | 2009-10-18 18:35:50 +0000 | [diff] [blame] | 30 | help |
| 31 | This option is used to enable certain functions to make coreboot |
| 32 | work correctly on symmetric multi processor (SMP) systems. |
Ronald G. Minnich | 149d675 | 2009-10-01 23:22:50 +0000 | [diff] [blame] | 33 | |
| 34 | config MMX |
| 35 | bool |
Stefan Reinauer | a7acc51 | 2010-02-25 13:40:49 +0000 | [diff] [blame] | 36 | help |
| 37 | Select MMX in your socket or model Kconfig if your CPU has MMX |
| 38 | streaming SIMD instructions. ROMCC can build more efficient |
| 39 | code if it can spill to MMX registers. |
Ronald G. Minnich | 149d675 | 2009-10-01 23:22:50 +0000 | [diff] [blame] | 40 | |
| 41 | config SSE |
| 42 | bool |
Stefan Reinauer | a7acc51 | 2010-02-25 13:40:49 +0000 | [diff] [blame] | 43 | help |
| 44 | Select SSE in your socket or model Kconfig if your CPU has SSE |
| 45 | streaming SIMD instructions. ROMCC can build more efficient |
| 46 | code if it can spill to SSE (aka XMM) registers. |
| 47 | |
| 48 | config SSE2 |
| 49 | bool |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 50 | default n |
Aaron Durbin | b1aa611 | 2017-06-16 15:20:57 -0500 | [diff] [blame] | 51 | select SSE |
Stefan Reinauer | a7acc51 | 2010-02-25 13:40:49 +0000 | [diff] [blame] | 52 | help |
| 53 | Select SSE2 in your socket or model Kconfig if your CPU has SSE2 |
| 54 | streaming SIMD instructions. Some parts of coreboot can be built |
| 55 | with more efficient code if SSE2 instructions are available. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 56 | |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 57 | endif # ARCH_X86 |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 58 | |
Alexandru Gagniuc | 66e0c4c | 2013-12-04 22:21:15 -0600 | [diff] [blame] | 59 | config SUPPORT_CPU_UCODE_IN_CBFS |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 60 | bool |
| 61 | default n |
| 62 | |
Martin Roth | 4c50269 | 2015-11-05 08:03:45 -0700 | [diff] [blame] | 63 | config USES_MICROCODE_HEADER_FILES |
| 64 | def_bool n |
| 65 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 66 | help |
| 67 | This is selected by a board or chipset to set the default for the |
| 68 | microcode source choice to a list of external microcode headers |
| 69 | |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 70 | config MICROCODE_BLOB_NOT_IN_BLOB_REPO |
| 71 | bool |
| 72 | help |
| 73 | Selected by platforms that don't maintain microcode updates in the |
| 74 | blobs repo yet. |
| 75 | |
| 76 | config MICROCODE_BLOB_NOT_HOOKED_UP |
| 77 | bool |
| 78 | help |
| 79 | Selected by platforms that haven't hooked microcode updates up yet. |
| 80 | |
| 81 | config MICROCODE_BLOB_UNDISCLOSED |
| 82 | bool |
| 83 | help |
| 84 | Selected by work-in-progress platforms that don't have microcode |
| 85 | updates available yet. |
| 86 | |
| 87 | config USE_CPU_MICROCODE_CBFS_BINS |
| 88 | bool |
| 89 | help |
| 90 | Automatically selected below to add binary microcode files |
| 91 | (`cpu_microcode_bins` in the makefiles) to CBFS. |
| 92 | |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 93 | choice |
Stefan Reinauer | 9c29cfa | 2013-02-27 20:24:11 +0100 | [diff] [blame] | 94 | prompt "Include CPU microcode in CBFS" if ARCH_X86 |
Martin Roth | 4c50269 | 2015-11-05 08:03:45 -0700 | [diff] [blame] | 95 | default CPU_MICROCODE_CBFS_EXTERNAL_HEADER if USES_MICROCODE_HEADER_FILES |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 96 | default CPU_MICROCODE_CBFS_NONE if MICROCODE_BLOB_NOT_IN_BLOB_REPO || \ |
| 97 | MICROCODE_BLOB_NOT_HOOKED_UP || \ |
| 98 | MICROCODE_BLOB_UNDISCLOSED |
| 99 | depends on SUPPORT_CPU_UCODE_IN_CBFS |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 100 | |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 101 | config CPU_MICROCODE_CBFS_DEFAULT_BINS |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 102 | bool "Generate from tree" |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 103 | select USE_CPU_MICROCODE_CBFS_BINS |
| 104 | depends on !(MICROCODE_BLOB_NOT_IN_BLOB_REPO || \ |
| 105 | MICROCODE_BLOB_NOT_HOOKED_UP || \ |
| 106 | MICROCODE_BLOB_UNDISCLOSED) |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 107 | help |
| 108 | Select this option if you want microcode updates to be assembled when |
| 109 | building coreboot and included in the final image as a separate CBFS |
| 110 | file. Microcode will not be hard-coded into ramstage. |
| 111 | |
Stefan Tauner | 0ce2b43 | 2013-04-01 13:45:44 +0200 | [diff] [blame] | 112 | The microcode file may be removed from the ROM image at a later |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 113 | time with cbfstool, if desired. |
| 114 | |
| 115 | If unsure, select this option. |
| 116 | |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 117 | config CPU_MICROCODE_CBFS_EXTERNAL_BINS |
| 118 | bool "Include external microcode binary" |
| 119 | select USE_CPU_MICROCODE_CBFS_BINS |
| 120 | depends on !CPU_MICROCODE_MULTIPLE_FILES |
| 121 | help |
| 122 | Select this option if you want to include external binary files |
| 123 | in the CPUs native format. They will be included as a separate |
| 124 | file in CBFS. |
| 125 | |
| 126 | A word of caution: only select this option if you are sure the |
| 127 | microcode that you have is newer than the microcode shipping with |
| 128 | coreboot. |
| 129 | |
| 130 | The microcode file may be removed from the ROM image at a later |
| 131 | time with cbfstool, if desired. |
| 132 | |
| 133 | If unsure, and applicable, select "Generate from tree" |
| 134 | |
Martin Roth | 4c50269 | 2015-11-05 08:03:45 -0700 | [diff] [blame] | 135 | config CPU_MICROCODE_CBFS_EXTERNAL_HEADER |
| 136 | bool "Include external microcode header files" |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 137 | depends on !CPU_MICROCODE_MULTIPLE_FILES |
Martin Roth | 4c50269 | 2015-11-05 08:03:45 -0700 | [diff] [blame] | 138 | help |
| 139 | Select this option if you want to include external c header files |
| 140 | containing the CPU microcode. This will be included as a separate |
| 141 | file in CBFS. |
| 142 | |
| 143 | A word of caution: only select this option if you are sure the |
| 144 | microcode that you have is newer than the microcode shipping with |
| 145 | coreboot. |
| 146 | |
| 147 | The microcode file may be removed from the ROM image at a later |
| 148 | time with cbfstool, if desired. |
| 149 | |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 150 | If unsure, and applicable, select "Generate from tree" |
Martin Roth | 4c50269 | 2015-11-05 08:03:45 -0700 | [diff] [blame] | 151 | |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 152 | config CPU_MICROCODE_CBFS_NONE |
| 153 | bool "Do not include microcode updates" |
| 154 | help |
| 155 | Select this option if you do not want CPU microcode included in CBFS. |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 156 | |
| 157 | Microcode may be added to the ROM image at a later time with cbfstool, |
| 158 | if desired. |
| 159 | |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 160 | If unsure, and applicable, select "Generate from tree" |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 161 | |
| 162 | The GOOD: |
| 163 | Microcode updates intend to solve issues that have been discovered |
| 164 | after CPU production. The expected effect is that systems work as |
| 165 | intended with the updated microcode, but we have also seen cases where |
| 166 | issues were solved by not applying microcode updates. |
| 167 | |
| 168 | The BAD: |
| 169 | Note that some operating system include these same microcode patches, |
| 170 | so you may need to also disable microcode updates in your operating |
| 171 | system for this option to have an effect. |
| 172 | |
| 173 | The UGLY: |
| 174 | A word of CAUTION: some CPUs depend on microcode updates to function |
| 175 | correctly. Not updating the microcode may leave the CPU operating at |
| 176 | less than optimal performance, or may cause outright hangups. |
| 177 | There are CPUs where coreboot cannot properly initialize the CPU |
| 178 | without microcode updates |
| 179 | For example, if running with the factory microcode, some Intel |
| 180 | SandyBridge CPUs may hang when enabling CAR, or some VIA Nano CPUs |
| 181 | will hang when changing the frequency. |
| 182 | |
| 183 | Make sure you have a way of flashing the ROM externally before |
| 184 | selecting this option. |
| 185 | |
| 186 | endchoice |
Jens Rottmann | 686dc0d | 2013-02-18 17:26:01 +0100 | [diff] [blame] | 187 | |
Timothy Pearson | 24e6d04 | 2015-10-08 16:58:58 -0500 | [diff] [blame] | 188 | config CPU_MICROCODE_MULTIPLE_FILES |
| 189 | bool |
Timothy Pearson | 24e6d04 | 2015-10-08 16:58:58 -0500 | [diff] [blame] | 190 | help |
| 191 | Select this option to install separate microcode container files into |
| 192 | CBFS instead of using the traditional monolithic microcode file format. |
Martin Roth | 4c50269 | 2015-11-05 08:03:45 -0700 | [diff] [blame] | 193 | |
| 194 | config CPU_MICROCODE_HEADER_FILES |
| 195 | string "List of space separated microcode header files with the path" |
| 196 | depends on CPU_MICROCODE_CBFS_EXTERNAL_HEADER |
| 197 | help |
| 198 | A list of one or more microcode header files with path from the |
| 199 | coreboot directory. These should be separated by spaces. |
Martin Roth | 3eb65ec | 2016-08-30 16:21:53 -0600 | [diff] [blame] | 200 | |
| 201 | config CPU_UCODE_BINARIES |
| 202 | string "Microcode binary path and filename" |
Nico Huber | f5ca922 | 2018-11-29 17:05:32 +0100 | [diff] [blame] | 203 | depends on CPU_MICROCODE_CBFS_EXTERNAL_BINS |
Martin Roth | 3eb65ec | 2016-08-30 16:21:53 -0600 | [diff] [blame] | 204 | default "" |
| 205 | help |
| 206 | Some platforms have microcode in the blobs directory, and these can |
| 207 | be hardcoded in the makefiles. For platforms with microcode |
| 208 | binaries that aren't in the makefile, set this option to pull |
| 209 | in the microcode. |
| 210 | |
| 211 | This should contain the full path of the file for one or more |
| 212 | microcode binary files to include, separated by spaces. |
| 213 | |
| 214 | If unsure, leave this blank. |