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