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