Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 2 | # |
| 3 | # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
| 4 | # |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 5 | |
| 6 | config ARC |
| 7 | def_bool y |
Vineet Gupta | c4c9a04 | 2016-10-31 13:46:38 -0700 | [diff] [blame] | 8 | select ARC_TIMERS |
Anshuman Khandual | 399145f | 2020-06-04 16:47:15 -0700 | [diff] [blame] | 9 | select ARCH_HAS_DEBUG_VM_PGTABLE |
Christoph Hellwig | f73c904 | 2019-06-14 16:26:41 +0200 | [diff] [blame] | 10 | select ARCH_HAS_DMA_PREP_COHERENT |
Vineet Gupta | c27d0e9 | 2018-08-16 10:20:33 -0700 | [diff] [blame] | 11 | select ARCH_HAS_PTE_SPECIAL |
Christoph Hellwig | 347cb6a | 2019-01-07 13:36:20 -0500 | [diff] [blame] | 12 | select ARCH_HAS_SETUP_DMA_OPS |
Christoph Hellwig | 6c3e71d | 2018-05-18 15:41:32 +0200 | [diff] [blame] | 13 | select ARCH_HAS_SYNC_DMA_FOR_CPU |
| 14 | select ARCH_HAS_SYNC_DMA_FOR_DEVICE |
Vineet Gupta | 2a44016 | 2015-08-08 17:51:58 +0530 | [diff] [blame] | 15 | select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC |
Yury Norov | 942fa98 | 2018-05-16 11:18:49 +0300 | [diff] [blame] | 16 | select ARCH_32BIT_OFF_T |
Shile Zhang | 1091670 | 2019-12-04 08:46:31 +0800 | [diff] [blame] | 17 | select BUILDTIME_TABLE_SORT |
Vineet Gupta | 4adeefe | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 18 | select CLONE_BACKWARDS |
Noam Camus | 69fbd09 | 2016-01-14 12:20:08 +0530 | [diff] [blame] | 19 | select COMMON_CLK |
Christoph Hellwig | f73c904 | 2019-06-14 16:26:41 +0200 | [diff] [blame] | 20 | select DMA_DIRECT_REMAP |
Vineet Gupta | ce63652 | 2015-07-27 17:23:28 +0530 | [diff] [blame] | 21 | select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC) |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 22 | select GENERIC_FIND_FIRST_BIT |
| 23 | # for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP |
| 24 | select GENERIC_IRQ_SHOW |
Joao Pinto | c1678ff | 2016-03-10 14:44:13 -0600 | [diff] [blame] | 25 | select GENERIC_PCI_IOMAP |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 26 | select GENERIC_PENDING_IRQ if SMP |
Alexey Brodkin | bf28760 | 2018-11-19 14:29:17 +0300 | [diff] [blame] | 27 | select GENERIC_SCHED_CLOCK |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 28 | select GENERIC_SMP_IDLE_THREAD |
Mischa Jonker | f46121b | 2013-01-18 15:12:24 +0530 | [diff] [blame] | 29 | select HAVE_ARCH_KGDB |
Vineet Gupta | 547f112 | 2013-01-18 15:12:22 +0530 | [diff] [blame] | 30 | select HAVE_ARCH_TRACEHOOK |
Vineet Gupta | c27d0e9 | 2018-08-16 10:20:33 -0700 | [diff] [blame] | 31 | select HAVE_DEBUG_STACKOVERFLOW |
Eugeniy Paltsev | 9fbea0b | 2019-11-19 18:26:15 +0300 | [diff] [blame] | 32 | select HAVE_DEBUG_KMEMLEAK |
Vineet Gupta | 5464d03 | 2017-09-29 14:46:50 -0700 | [diff] [blame] | 33 | select HAVE_FUTEX_CMPXCHG if FUTEX |
Gilad Ben-Yossef | 4368902 | 2013-01-22 16:48:45 +0530 | [diff] [blame] | 34 | select HAVE_IOREMAP_PROT |
Vineet Gupta | c27d0e9 | 2018-08-16 10:20:33 -0700 | [diff] [blame] | 35 | select HAVE_KERNEL_GZIP |
| 36 | select HAVE_KERNEL_LZMA |
Vineet Gupta | 4d86dfb | 2013-01-22 17:03:59 +0530 | [diff] [blame] | 37 | select HAVE_KPROBES |
| 38 | select HAVE_KRETPROBES |
Vineet Gupta | eb1357d | 2017-01-16 10:48:09 -0800 | [diff] [blame] | 39 | select HAVE_MOD_ARCH_SPECIFIC |
Vineet Gupta | 9c57564 | 2013-01-18 15:12:24 +0530 | [diff] [blame] | 40 | select HAVE_PERF_EVENTS |
Vineet Gupta | 1b0ccb8 | 2016-01-01 15:12:54 +0530 | [diff] [blame] | 41 | select HANDLE_DOMAIN_IRQ |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 42 | select IRQ_DOMAIN |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 43 | select MODULES_USE_ELF_RELA |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 44 | select OF |
| 45 | select OF_EARLY_FLATTREE |
Christoph Hellwig | 20f1b79 | 2018-11-15 20:05:34 +0100 | [diff] [blame] | 46 | select PCI_SYSCALL if PCI |
Vineet Gupta | 8238573 | 2016-09-28 11:53:17 -0700 | [diff] [blame] | 47 | select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING |
Eugeniy Paltsev | f091d5a | 2019-11-08 19:20:22 +0300 | [diff] [blame] | 48 | select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32 |
Christoph Hellwig | 5e6e985 | 2020-09-03 16:22:35 +0200 | [diff] [blame] | 49 | select SET_FS |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 50 | |
Eugeniy Paltsev | eb27773 | 2018-07-26 16:15:43 +0300 | [diff] [blame] | 51 | config ARCH_HAS_CACHE_LINE_SIZE |
| 52 | def_bool y |
| 53 | |
Vineet Gupta | 0dafafc | 2013-09-06 14:18:17 +0530 | [diff] [blame] | 54 | config TRACE_IRQFLAGS_SUPPORT |
| 55 | def_bool y |
| 56 | |
| 57 | config LOCKDEP_SUPPORT |
| 58 | def_bool y |
| 59 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 60 | config SCHED_OMIT_FRAME_POINTER |
| 61 | def_bool y |
| 62 | |
| 63 | config GENERIC_CSUM |
| 64 | def_bool y |
| 65 | |
Vineet Gupta | 26f9d5f | 2016-04-18 10:49:56 +0530 | [diff] [blame] | 66 | config ARCH_DISCONTIGMEM_ENABLE |
Vineet Gupta | d140b9b | 2016-05-31 11:46:47 +0530 | [diff] [blame] | 67 | def_bool n |
Mike Rapoport | 050b2da | 2020-12-14 19:10:04 -0800 | [diff] [blame] | 68 | depends on BROKEN |
Vineet Gupta | 26f9d5f | 2016-04-18 10:49:56 +0530 | [diff] [blame] | 69 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 70 | config ARCH_FLATMEM_ENABLE |
| 71 | def_bool y |
| 72 | |
| 73 | config MMU |
| 74 | def_bool y |
| 75 | |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 76 | config NO_IOPORT_MAP |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 77 | def_bool y |
| 78 | |
| 79 | config GENERIC_CALIBRATE_DELAY |
| 80 | def_bool y |
| 81 | |
| 82 | config GENERIC_HWEIGHT |
| 83 | def_bool y |
| 84 | |
Vineet Gupta | 44c8bb9 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 85 | config STACKTRACE_SUPPORT |
| 86 | def_bool y |
| 87 | select STACKTRACE |
| 88 | |
Vineet Gupta | fe6c1b8 | 2014-07-08 18:43:47 +0530 | [diff] [blame] | 89 | config HAVE_ARCH_TRANSPARENT_HUGEPAGE |
| 90 | def_bool y |
| 91 | depends on ARC_MMU_V4 |
| 92 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 93 | menu "ARC Architecture Configuration" |
| 94 | |
Vineet Gupta | 93ad700 | 2013-01-22 16:51:50 +0530 | [diff] [blame] | 95 | menu "ARC Platform/SoC/Board" |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 96 | |
Christian Ruppert | 072eb69 | 2013-04-12 08:40:59 +0200 | [diff] [blame] | 97 | source "arch/arc/plat-tb10x/Kconfig" |
Alexey Brodkin | 556cc1c | 2014-01-27 14:51:34 +0100 | [diff] [blame] | 98 | source "arch/arc/plat-axs10x/Kconfig" |
Alexey Brodkin | a518d63 | 2017-08-15 21:13:55 +0300 | [diff] [blame] | 99 | source "arch/arc/plat-hsdk/Kconfig" |
Vineet Gupta | 93ad700 | 2013-01-22 16:51:50 +0530 | [diff] [blame] | 100 | |
Vineet Gupta | 53d9895 | 2013-01-18 15:12:25 +0530 | [diff] [blame] | 101 | endmenu |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 102 | |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 103 | choice |
| 104 | prompt "ARC Instruction Set" |
Kevin Hilman | b7cc40c | 2018-11-30 15:51:56 +0300 | [diff] [blame] | 105 | default ISA_ARCV2 |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 106 | |
| 107 | config ISA_ARCOMPACT |
| 108 | bool "ARCompact ISA" |
Zhaoxiu Zeng | fff7fb0 | 2016-05-20 17:03:57 -0700 | [diff] [blame] | 109 | select CPU_NO_EFFICIENT_FFS |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 110 | help |
| 111 | The original ARC ISA of ARC600/700 cores |
| 112 | |
Vineet Gupta | 65bfbcd | 2015-03-09 14:01:08 +0530 | [diff] [blame] | 113 | config ISA_ARCV2 |
| 114 | bool "ARC ISA v2" |
Vineet Gupta | c4c9a04 | 2016-10-31 13:46:38 -0700 | [diff] [blame] | 115 | select ARC_TIMERS_64BIT |
Vineet Gupta | 65bfbcd | 2015-03-09 14:01:08 +0530 | [diff] [blame] | 116 | help |
| 117 | ISA for the Next Generation ARC-HS cores |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 118 | |
| 119 | endchoice |
| 120 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 121 | menu "ARC CPU Configuration" |
| 122 | |
| 123 | choice |
| 124 | prompt "ARC Core" |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 125 | default ARC_CPU_770 if ISA_ARCOMPACT |
| 126 | default ARC_CPU_HS if ISA_ARCV2 |
| 127 | |
| 128 | if ISA_ARCOMPACT |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 129 | |
| 130 | config ARC_CPU_750D |
| 131 | bool "ARC750D" |
Vineet Gupta | 14a0abf | 2015-06-26 12:42:53 +0530 | [diff] [blame] | 132 | select ARC_CANT_LLSC |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 133 | help |
| 134 | Support for ARC750 core |
| 135 | |
| 136 | config ARC_CPU_770 |
| 137 | bool "ARC770" |
Vineet Gupta | 742f8af | 2013-11-07 14:47:16 +0530 | [diff] [blame] | 138 | select ARC_HAS_SWAPE |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 139 | help |
| 140 | Support for ARC770 core introduced with Rel 4.10 (Summer 2011) |
| 141 | This core has a bunch of cool new features: |
| 142 | -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4) |
Enrico Weigelt, metux IT consult | 9a18b5a | 2019-03-11 14:57:59 +0100 | [diff] [blame] | 143 | Shared Address Spaces (for sharing TLB entries in MMU) |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 144 | -Caches: New Prog Model, Region Flush |
| 145 | -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr |
| 146 | |
Enrico Weigelt, metux IT consult | 9a18b5a | 2019-03-11 14:57:59 +0100 | [diff] [blame] | 147 | endif #ISA_ARCOMPACT |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 148 | |
| 149 | config ARC_CPU_HS |
| 150 | bool "ARC-HS" |
| 151 | depends on ISA_ARCV2 |
| 152 | help |
| 153 | Support for ARC HS38x Cores based on ARCv2 ISA |
| 154 | The notable features are: |
Randy Dunlap | a5760db | 2020-01-31 17:49:33 -0800 | [diff] [blame] | 155 | - SMP configurations of up to 4 cores with coherency |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 156 | - Optional L2 Cache and IO-Coherency |
| 157 | - Revised Interrupt Architecture (multiple priorites, reg banks, |
| 158 | auto stack switch, auto regfile save/restore) |
| 159 | - MMUv4 (PIPT dcache, Huge Pages) |
| 160 | - Instructions for |
| 161 | * 64bit load/store: LDD, STD |
| 162 | * Hardware assisted divide/remainder: DIV, REM |
| 163 | * Function prologue/epilogue: ENTER_S, LEAVE_S |
| 164 | * IRQ enable/disable: CLRI, SETI |
| 165 | * pop count: FFS, FLS |
| 166 | * SETcc, BMSKN, XBFU... |
| 167 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 168 | endchoice |
| 169 | |
Eugeniy Paltsev | 0bdd6e7 | 2020-06-04 20:39:24 +0300 | [diff] [blame] | 170 | config ARC_TUNE_MCPU |
| 171 | string "Override default -mcpu compiler flag" |
| 172 | default "" |
| 173 | help |
| 174 | Override default -mcpu=xxx compiler flag (which is set depending on |
| 175 | the ISA version) with the specified value. |
| 176 | NOTE: If specified flag isn't supported by current compiler the |
| 177 | ISA default value will be used as a fallback. |
| 178 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 179 | config CPU_BIG_ENDIAN |
| 180 | bool "Enable Big Endian Mode" |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 181 | help |
| 182 | Build kernel for Big Endian Mode of ARC CPU |
| 183 | |
Vineet Gupta | 41195d2 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 184 | config SMP |
Vineet Gupta | 82fea5a | 2014-09-10 19:05:38 +0530 | [diff] [blame] | 185 | bool "Symmetric Multi-Processing" |
Vineet Gupta | 82fea5a | 2014-09-10 19:05:38 +0530 | [diff] [blame] | 186 | select ARC_MCIP if ISA_ARCV2 |
Vineet Gupta | 41195d2 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 187 | help |
Vineet Gupta | 82fea5a | 2014-09-10 19:05:38 +0530 | [diff] [blame] | 188 | This enables support for systems with more than one CPU. |
Vineet Gupta | 41195d2 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 189 | |
| 190 | if SMP |
| 191 | |
Vineet Gupta | 41195d2 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 192 | config NR_CPUS |
Noam Camus | 3aa4f80 | 2013-06-03 15:19:59 +0300 | [diff] [blame] | 193 | int "Maximum number of CPUs (2-4096)" |
| 194 | range 2 4096 |
Vineet Gupta | 82fea5a | 2014-09-10 19:05:38 +0530 | [diff] [blame] | 195 | default "4" |
| 196 | |
Vineet Gupta | 3971cdc | 2015-10-09 11:26:12 +0530 | [diff] [blame] | 197 | config ARC_SMP_HALT_ON_RESET |
| 198 | bool "Enable Halt-on-reset boot mode" |
Vineet Gupta | 3971cdc | 2015-10-09 11:26:12 +0530 | [diff] [blame] | 199 | help |
| 200 | In SMP configuration cores can be configured as Halt-on-reset |
| 201 | or they could all start at same time. For Halt-on-reset, non |
Randy Dunlap | a5760db | 2020-01-31 17:49:33 -0800 | [diff] [blame] | 202 | masters are parked until Master kicks them so they can start off |
Vineet Gupta | 3971cdc | 2015-10-09 11:26:12 +0530 | [diff] [blame] | 203 | at designated entry point. For other case, all jump to common |
| 204 | entry point and spin wait for Master's signal. |
| 205 | |
Enrico Weigelt, metux IT consult | 9a18b5a | 2019-03-11 14:57:59 +0100 | [diff] [blame] | 206 | endif #SMP |
Vineet Gupta | 41195d2 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 207 | |
Vineet Gupta | 3ce0fef | 2016-09-29 10:00:14 -0700 | [diff] [blame] | 208 | config ARC_MCIP |
| 209 | bool "ARConnect Multicore IP (MCIP) Support " |
| 210 | depends on ISA_ARCV2 |
| 211 | default y if SMP |
| 212 | help |
| 213 | This IP block enables SMP in ARC-HS38 cores. |
| 214 | It provides for cross-core interrupts, multi-core debug |
| 215 | hardware semaphores, shared memory,.... |
| 216 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 217 | menuconfig ARC_CACHE |
| 218 | bool "Enable Cache Support" |
| 219 | default y |
| 220 | |
| 221 | if ARC_CACHE |
| 222 | |
| 223 | config ARC_CACHE_LINE_SHIFT |
| 224 | int "Cache Line Length (as power of 2)" |
| 225 | range 5 7 |
| 226 | default "6" |
| 227 | help |
| 228 | Starting with ARC700 4.9, Cache line length is configurable, |
| 229 | This option specifies "N", with Line-len = 2 power N |
| 230 | So line lengths of 32, 64, 128 are specified by 5,6,7, respectively |
| 231 | Linux only supports same line lengths for I and D caches. |
| 232 | |
| 233 | config ARC_HAS_ICACHE |
| 234 | bool "Use Instruction Cache" |
| 235 | default y |
| 236 | |
| 237 | config ARC_HAS_DCACHE |
| 238 | bool "Use Data Cache" |
| 239 | default y |
| 240 | |
| 241 | config ARC_CACHE_PAGES |
| 242 | bool "Per Page Cache Control" |
| 243 | default y |
| 244 | depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE |
| 245 | help |
| 246 | This can be used to over-ride the global I/D Cache Enable on a |
| 247 | per-page basis (but only for pages accessed via MMU such as |
| 248 | Kernel Virtual address or User Virtual Address) |
| 249 | TLB entries have a per-page Cache Enable Bit. |
| 250 | Note that Global I/D ENABLE + Per Page DISABLE works but corollary |
| 251 | Global DISABLE + Per Page ENABLE won't work |
| 252 | |
Vineet Gupta | 4102b53 | 2013-05-09 21:54:51 +0530 | [diff] [blame] | 253 | config ARC_CACHE_VIPT_ALIASING |
| 254 | bool "Support VIPT Aliasing D$" |
Vineet Gupta | d1f317d | 2015-04-06 17:23:57 +0530 | [diff] [blame] | 255 | depends on ARC_HAS_DCACHE && ISA_ARCOMPACT |
Vineet Gupta | 4102b53 | 2013-05-09 21:54:51 +0530 | [diff] [blame] | 256 | |
Enrico Weigelt, metux IT consult | 9a18b5a | 2019-03-11 14:57:59 +0100 | [diff] [blame] | 257 | endif #ARC_CACHE |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 258 | |
Vineet Gupta | 8b5850f | 2013-01-18 15:12:25 +0530 | [diff] [blame] | 259 | config ARC_HAS_ICCM |
| 260 | bool "Use ICCM" |
| 261 | help |
| 262 | Single Cycle RAMS to store Fast Path Code |
Vineet Gupta | 8b5850f | 2013-01-18 15:12:25 +0530 | [diff] [blame] | 263 | |
| 264 | config ARC_ICCM_SZ |
| 265 | int "ICCM Size in KB" |
| 266 | default "64" |
| 267 | depends on ARC_HAS_ICCM |
| 268 | |
| 269 | config ARC_HAS_DCCM |
| 270 | bool "Use DCCM" |
| 271 | help |
| 272 | Single Cycle RAMS to store Fast Path Data |
Vineet Gupta | 8b5850f | 2013-01-18 15:12:25 +0530 | [diff] [blame] | 273 | |
| 274 | config ARC_DCCM_SZ |
| 275 | int "DCCM Size in KB" |
| 276 | default "64" |
| 277 | depends on ARC_HAS_DCCM |
| 278 | |
| 279 | config ARC_DCCM_BASE |
| 280 | hex "DCCM map address" |
| 281 | default "0xA0000000" |
| 282 | depends on ARC_HAS_DCCM |
| 283 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 284 | choice |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 285 | prompt "MMU Version" |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 286 | default ARC_MMU_V3 if ARC_CPU_770 |
| 287 | default ARC_MMU_V2 if ARC_CPU_750D |
Vineet Gupta | d7a512b | 2015-04-06 17:22:39 +0530 | [diff] [blame] | 288 | default ARC_MMU_V4 if ARC_CPU_HS |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 289 | |
Vineet Gupta | c583ee4f | 2015-09-29 16:01:13 +0530 | [diff] [blame] | 290 | if ISA_ARCOMPACT |
| 291 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 292 | config ARC_MMU_V1 |
| 293 | bool "MMU v1" |
| 294 | help |
| 295 | Orig ARC700 MMU |
| 296 | |
| 297 | config ARC_MMU_V2 |
| 298 | bool "MMU v2" |
| 299 | help |
Masanari Iida | 83fc61a | 2017-09-26 12:47:59 +0900 | [diff] [blame] | 300 | Fixed the deficiency of v1 - possible thrashing in memcpy scenario |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 301 | when 2 D-TLB and 1 I-TLB entries index into same 2way set. |
| 302 | |
| 303 | config ARC_MMU_V3 |
| 304 | bool "MMU v3" |
| 305 | depends on ARC_CPU_770 |
| 306 | help |
| 307 | Introduced with ARC700 4.10: New Features |
| 308 | Variable Page size (1k-16k), var JTLB size 128 x (2 or 4) |
| 309 | Shared Address Spaces (SASID) |
| 310 | |
Vineet Gupta | c583ee4f | 2015-09-29 16:01:13 +0530 | [diff] [blame] | 311 | endif |
| 312 | |
Vineet Gupta | d7a512b | 2015-04-06 17:22:39 +0530 | [diff] [blame] | 313 | config ARC_MMU_V4 |
| 314 | bool "MMU v4" |
| 315 | depends on ISA_ARCV2 |
| 316 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 317 | endchoice |
| 318 | |
| 319 | |
| 320 | choice |
| 321 | prompt "MMU Page Size" |
| 322 | default ARC_PAGE_SIZE_8K |
| 323 | |
| 324 | config ARC_PAGE_SIZE_8K |
| 325 | bool "8KB" |
| 326 | help |
| 327 | Choose between 8k vs 16k |
| 328 | |
| 329 | config ARC_PAGE_SIZE_16K |
| 330 | bool "16KB" |
Alexey Brodkin | 450ed0d | 2015-07-16 21:45:17 +0300 | [diff] [blame] | 331 | depends on ARC_MMU_V3 || ARC_MMU_V4 |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 332 | |
| 333 | config ARC_PAGE_SIZE_4K |
| 334 | bool "4KB" |
Alexey Brodkin | 450ed0d | 2015-07-16 21:45:17 +0300 | [diff] [blame] | 335 | depends on ARC_MMU_V3 || ARC_MMU_V4 |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 336 | |
| 337 | endchoice |
| 338 | |
Vineet Gupta | 37eda9d | 2016-02-10 06:52:07 +0530 | [diff] [blame] | 339 | choice |
| 340 | prompt "MMU Super Page Size" |
| 341 | depends on ISA_ARCV2 && TRANSPARENT_HUGEPAGE |
| 342 | default ARC_HUGEPAGE_2M |
| 343 | |
| 344 | config ARC_HUGEPAGE_2M |
| 345 | bool "2MB" |
| 346 | |
| 347 | config ARC_HUGEPAGE_16M |
| 348 | bool "16MB" |
| 349 | |
| 350 | endchoice |
| 351 | |
Vineet Gupta | 26f9d5f | 2016-04-18 10:49:56 +0530 | [diff] [blame] | 352 | config NODES_SHIFT |
| 353 | int "Maximum NUMA Nodes (as a power of 2)" |
Noam Camus | 3528f84 | 2016-09-21 13:51:48 +0300 | [diff] [blame] | 354 | default "0" if !DISCONTIGMEM |
| 355 | default "1" if DISCONTIGMEM |
Vineet Gupta | 26f9d5f | 2016-04-18 10:49:56 +0530 | [diff] [blame] | 356 | depends on NEED_MULTIPLE_NODES |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 357 | help |
Vineet Gupta | 26f9d5f | 2016-04-18 10:49:56 +0530 | [diff] [blame] | 358 | Accessing memory beyond 1GB (with or w/o PAE) requires 2 memory |
| 359 | zones. |
| 360 | |
Vineet Gupta | 4788a59 | 2013-01-18 15:12:22 +0530 | [diff] [blame] | 361 | config ARC_COMPACT_IRQ_LEVELS |
Vineet Gupta | f45ba2b | 2020-01-17 15:04:03 -0800 | [diff] [blame] | 362 | depends on ISA_ARCOMPACT |
Vineet Gupta | 60f2b4b | 2016-05-30 19:21:22 +0530 | [diff] [blame] | 363 | bool "Setup Timer IRQ as high Priority" |
Vineet Gupta | 41195d2 | 2013-01-18 15:12:23 +0530 | [diff] [blame] | 364 | # if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy |
Vineet Gupta | 60f2b4b | 2016-05-30 19:21:22 +0530 | [diff] [blame] | 365 | depends on !SMP |
Vineet Gupta | 4788a59 | 2013-01-18 15:12:22 +0530 | [diff] [blame] | 366 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 367 | config ARC_FPU_SAVE_RESTORE |
| 368 | bool "Enable FPU state persistence across context switch" |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 369 | help |
Vineet Gupta | f45ba2b | 2020-01-17 15:04:03 -0800 | [diff] [blame] | 370 | ARCompact FPU has internal registers to assist with Double precision |
| 371 | Floating Point operations. There are control and stauts registers |
| 372 | for floating point exceptions and rounding modes. These are |
| 373 | preserved across task context switch when enabled. |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 374 | |
Vineet Gupta | fbf8e13 | 2013-03-30 15:07:47 +0530 | [diff] [blame] | 375 | config ARC_CANT_LLSC |
| 376 | def_bool n |
| 377 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 378 | config ARC_HAS_LLSC |
| 379 | bool "Insn: LLOCK/SCOND (efficient atomic ops)" |
| 380 | default y |
Vineet Gupta | 14a0abf | 2015-06-26 12:42:53 +0530 | [diff] [blame] | 381 | depends on !ARC_CANT_LLSC |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 382 | |
| 383 | config ARC_HAS_SWAPE |
| 384 | bool "Insn: SWAPE (endian-swap)" |
| 385 | default y |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 386 | |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 387 | if ISA_ARCV2 |
| 388 | |
Eugeniy Paltsev | 7655146 | 2019-01-30 19:32:41 +0300 | [diff] [blame] | 389 | config ARC_USE_UNALIGNED_MEM_ACCESS |
| 390 | bool "Enable unaligned access in HW" |
| 391 | default y |
| 392 | select HAVE_EFFICIENT_UNALIGNED_ACCESS |
| 393 | help |
| 394 | The ARC HS architecture supports unaligned memory access |
| 395 | which is disabled by default. Enable unaligned access in |
| 396 | hardware and use software to use it |
| 397 | |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 398 | config ARC_HAS_LL64 |
| 399 | bool "Insn: 64bit LDD/STD" |
| 400 | help |
| 401 | Enable gcc to generate 64-bit load/store instructions |
| 402 | ISA mandates even/odd registers to allow encoding of two |
| 403 | dest operands with 2 possible source operands. |
| 404 | default y |
| 405 | |
Alexey Brodkin | d05a76a | 2015-07-16 21:45:38 +0300 | [diff] [blame] | 406 | config ARC_HAS_DIV_REM |
| 407 | bool "Insn: div, divu, rem, remu" |
| 408 | default y |
| 409 | |
Vineet Gupta | 3d5e801 | 2017-04-20 15:36:51 -0700 | [diff] [blame] | 410 | config ARC_HAS_ACCL_REGS |
Eugeniy Paltsev | 4827d0c | 2020-03-05 23:02:50 +0300 | [diff] [blame] | 411 | bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6 and/or DSP)" |
Vineet Gupta | af1fc5b | 2018-07-17 15:21:56 -0700 | [diff] [blame] | 412 | default y |
Vineet Gupta | 3d5e801 | 2017-04-20 15:36:51 -0700 | [diff] [blame] | 413 | help |
| 414 | Depending on the configuration, CPU can contain accumulator reg-pair |
| 415 | (also referred to as r58:r59). These can also be used by gcc as GPR so |
| 416 | kernel needs to save/restore per process |
| 417 | |
Eugeniy Paltsev | 4827d0c | 2020-03-05 23:02:50 +0300 | [diff] [blame] | 418 | config ARC_DSP_HANDLED |
| 419 | def_bool n |
| 420 | |
Eugeniy Paltsev | 7321e2e | 2020-03-05 23:02:51 +0300 | [diff] [blame] | 421 | config ARC_DSP_SAVE_RESTORE_REGS |
| 422 | def_bool n |
| 423 | |
Eugeniy Paltsev | 4827d0c | 2020-03-05 23:02:50 +0300 | [diff] [blame] | 424 | choice |
| 425 | prompt "DSP support" |
| 426 | default ARC_DSP_NONE |
| 427 | help |
| 428 | Depending on the configuration, CPU can contain DSP registers |
| 429 | (ACC0_GLO, ACC0_GHI, DSP_BFLY0, DSP_CTRL, DSP_FFT_CTRL). |
| 430 | Bellow is options describing how to handle these registers in |
| 431 | interrupt entry / exit and in context switch. |
| 432 | |
| 433 | config ARC_DSP_NONE |
| 434 | bool "No DSP extension presence in HW" |
| 435 | help |
| 436 | No DSP extension presence in HW |
| 437 | |
| 438 | config ARC_DSP_KERNEL |
| 439 | bool "DSP extension in HW, no support for userspace" |
| 440 | select ARC_HAS_ACCL_REGS |
| 441 | select ARC_DSP_HANDLED |
| 442 | help |
| 443 | DSP extension presence in HW, no support for DSP-enabled userspace |
| 444 | applications. We don't save / restore DSP registers and only do |
| 445 | some minimal preparations so userspace won't be able to break kernel |
Eugeniy Paltsev | 7321e2e | 2020-03-05 23:02:51 +0300 | [diff] [blame] | 446 | |
| 447 | config ARC_DSP_USERSPACE |
| 448 | bool "Support DSP for userspace apps" |
| 449 | select ARC_HAS_ACCL_REGS |
| 450 | select ARC_DSP_HANDLED |
| 451 | select ARC_DSP_SAVE_RESTORE_REGS |
| 452 | help |
| 453 | DSP extension presence in HW, support save / restore DSP registers to |
| 454 | run DSP-enabled userspace applications |
Eugeniy Paltsev | f09d317 | 2020-03-05 23:02:52 +0300 | [diff] [blame] | 455 | |
| 456 | config ARC_DSP_AGU_USERSPACE |
| 457 | bool "Support DSP with AGU for userspace apps" |
| 458 | select ARC_HAS_ACCL_REGS |
| 459 | select ARC_DSP_HANDLED |
| 460 | select ARC_DSP_SAVE_RESTORE_REGS |
| 461 | help |
| 462 | DSP and AGU extensions presence in HW, support save / restore DSP |
| 463 | and AGU registers to run DSP-enabled userspace applications |
Eugeniy Paltsev | 4827d0c | 2020-03-05 23:02:50 +0300 | [diff] [blame] | 464 | endchoice |
| 465 | |
Vineet Gupta | e494239 | 2018-06-06 10:20:37 -0700 | [diff] [blame] | 466 | config ARC_IRQ_NO_AUTOSAVE |
| 467 | bool "Disable hardware autosave regfile on interrupts" |
| 468 | default n |
| 469 | help |
| 470 | On HS cores, taken interrupt auto saves the regfile on stack. |
| 471 | This is programmable and can be optionally disabled in which case |
| 472 | software INTERRUPT_PROLOGUE/EPILGUE do the needed work |
| 473 | |
Eugeniy Paltsev | 10011f7 | 2020-06-04 20:39:25 +0300 | [diff] [blame] | 474 | config ARC_LPB_DISABLE |
| 475 | bool "Disable loop buffer (LPB)" |
| 476 | help |
| 477 | On HS cores, loop buffer (LPB) is programmable in runtime and can |
| 478 | be optionally disabled. |
| 479 | |
Enrico Weigelt, metux IT consult | 9a18b5a | 2019-03-11 14:57:59 +0100 | [diff] [blame] | 480 | endif # ISA_ARCV2 |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 481 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 482 | endmenu # "ARC CPU Configuration" |
| 483 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 484 | config LINUX_LINK_BASE |
Eugeniy Paltsev | 9ed6878 | 2017-08-15 21:13:54 +0300 | [diff] [blame] | 485 | hex "Kernel link address" |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 486 | default "0x80000000" |
| 487 | help |
| 488 | ARC700 divides the 32 bit phy address space into two equal halves |
| 489 | -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU |
| 490 | -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel |
| 491 | Typically Linux kernel is linked at the start of untransalted addr, |
| 492 | hence the default value of 0x8zs. |
| 493 | However some customers have peripherals mapped at this addr, so |
| 494 | Linux needs to be scooted a bit. |
| 495 | If you don't know what the above means, leave this setting alone. |
Vineet Gupta | ff1c0b6 | 2015-12-15 13:57:16 +0530 | [diff] [blame] | 496 | This needs to match memory start address specified in Device Tree |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 497 | |
Eugeniy Paltsev | 9ed6878 | 2017-08-15 21:13:54 +0300 | [diff] [blame] | 498 | config LINUX_RAM_BASE |
| 499 | hex "RAM base address" |
| 500 | default LINUX_LINK_BASE |
| 501 | help |
| 502 | By default Linux is linked at base of RAM. However in some special |
| 503 | cases (such as HSDK), Linux can't be linked at start of DDR, hence |
| 504 | this option. |
| 505 | |
Vineet Gupta | 45890f6 | 2015-03-09 18:53:49 +0530 | [diff] [blame] | 506 | config HIGHMEM |
| 507 | bool "High Memory Support" |
Mike Rapoport | 050b2da | 2020-12-14 19:10:04 -0800 | [diff] [blame] | 508 | select HAVE_ARCH_PFN_VALID |
Thomas Gleixner | 39cac19 | 2020-11-03 10:27:21 +0100 | [diff] [blame] | 509 | select KMAP_LOCAL |
Vineet Gupta | 45890f6 | 2015-03-09 18:53:49 +0530 | [diff] [blame] | 510 | help |
| 511 | With ARC 2G:2G address split, only upper 2G is directly addressable by |
| 512 | kernel. Enable this to potentially allow access to rest of 2G and PAE |
| 513 | in future |
| 514 | |
Vineet Gupta | 5a364c2 | 2015-02-06 18:44:57 +0300 | [diff] [blame] | 515 | config ARC_HAS_PAE40 |
| 516 | bool "Support for the 40-bit Physical Address Extension" |
Vineet Gupta | 5a364c2 | 2015-02-06 18:44:57 +0300 | [diff] [blame] | 517 | depends on ISA_ARCV2 |
Alexey Brodkin | cf4100d | 2017-05-05 23:20:29 +0300 | [diff] [blame] | 518 | select HIGHMEM |
Christoph Hellwig | d4a451d | 2018-04-03 16:24:20 +0200 | [diff] [blame] | 519 | select PHYS_ADDR_T_64BIT |
Vineet Gupta | 5a364c2 | 2015-02-06 18:44:57 +0300 | [diff] [blame] | 520 | help |
| 521 | Enable access to physical memory beyond 4G, only supported on |
| 522 | ARC cores with 40 bit Physical Addressing support |
| 523 | |
Noam Camus | 15ca68a | 2014-09-07 22:52:33 +0300 | [diff] [blame] | 524 | config ARC_KVADDR_SIZE |
Masanari Iida | 83fc61a | 2017-09-26 12:47:59 +0900 | [diff] [blame] | 525 | int "Kernel Virtual Address Space size (MB)" |
Noam Camus | 15ca68a | 2014-09-07 22:52:33 +0300 | [diff] [blame] | 526 | range 0 512 |
| 527 | default "256" |
| 528 | help |
| 529 | The kernel address space is carved out of 256MB of translated address |
| 530 | space for catering to vmalloc, modules, pkmap, fixmap. This however may |
| 531 | not suffice vmalloc requirements of a 4K CPU EZChip system. So allow |
| 532 | this to be stretched to 512 MB (by extending into the reserved |
| 533 | kernel-user gutter) |
| 534 | |
Vineet Gupta | 080c374 | 2013-02-11 19:52:57 +0530 | [diff] [blame] | 535 | config ARC_CURR_IN_REG |
| 536 | bool "Dedicate Register r25 for current_task pointer" |
| 537 | default y |
| 538 | help |
| 539 | This reserved Register R25 to point to Current Task in |
| 540 | kernel mode. This saves memory access for each such access |
| 541 | |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 542 | |
Vineet Gupta | 1736a56 | 2014-09-08 11:18:15 +0530 | [diff] [blame] | 543 | config ARC_EMUL_UNALIGNED |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 544 | bool "Emulate unaligned memory access (userspace only)" |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 545 | select SYSCTL_ARCH_UNALIGN_NO_WARN |
| 546 | select SYSCTL_ARCH_UNALIGN_ALLOW |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 547 | depends on ISA_ARCOMPACT |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 548 | help |
| 549 | This enables misaligned 16 & 32 bit memory access from user space. |
| 550 | Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide |
| 551 | potential bugs in code |
| 552 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 553 | config HZ |
| 554 | int "Timer Frequency" |
| 555 | default 100 |
| 556 | |
Vineet Gupta | cbe056f | 2013-01-18 15:12:25 +0530 | [diff] [blame] | 557 | config ARC_METAWARE_HLINK |
| 558 | bool "Support for Metaware debugger assisted Host access" |
Vineet Gupta | cbe056f | 2013-01-18 15:12:25 +0530 | [diff] [blame] | 559 | help |
| 560 | This options allows a Linux userland apps to directly access |
| 561 | host file system (open/creat/read/write etc) with help from |
| 562 | Metaware Debugger. This can come in handy for Linux-host communication |
| 563 | when there is no real usable peripheral such as EMAC. |
| 564 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 565 | menuconfig ARC_DBG |
| 566 | bool "ARC debugging" |
| 567 | default y |
| 568 | |
Vineet Gupta | aa6083e | 2014-11-07 10:45:28 +0530 | [diff] [blame] | 569 | if ARC_DBG |
| 570 | |
Vineet Gupta | 854a0d9 | 2013-01-22 17:03:19 +0530 | [diff] [blame] | 571 | config ARC_DW2_UNWIND |
| 572 | bool "Enable DWARF specific kernel stack unwind" |
Vineet Gupta | 854a0d9 | 2013-01-22 17:03:19 +0530 | [diff] [blame] | 573 | default y |
| 574 | select KALLSYMS |
| 575 | help |
| 576 | Compiles the kernel with DWARF unwind information and can be used |
| 577 | to get stack backtraces. |
| 578 | |
| 579 | If you say Y here the resulting kernel image will be slightly larger |
| 580 | but not slower, and it will give very useful debugging information. |
| 581 | If you don't debug the kernel, you can say N, but we may not be able |
| 582 | to solve problems without frame unwind information |
| 583 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 584 | config ARC_DBG_TLB_PARANOIA |
| 585 | bool "Paranoia Checks in Low Level TLB Handlers" |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 586 | |
Eugeniy Paltsev | f091d5a | 2019-11-08 19:20:22 +0300 | [diff] [blame] | 587 | config ARC_DBG_JUMP_LABEL |
| 588 | bool "Paranoid checks in Static Keys (jump labels) code" |
| 589 | depends on JUMP_LABEL |
| 590 | default y if STATIC_KEYS_SELFTEST |
| 591 | help |
| 592 | Enable paranoid checks and self-test of both ARC-specific and generic |
| 593 | part of static keys (jump labels) related code. |
Vineet Gupta | aa6083e | 2014-11-07 10:45:28 +0530 | [diff] [blame] | 594 | endif |
| 595 | |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 596 | config ARC_BUILTIN_DTB_NAME |
| 597 | string "Built in DTB" |
| 598 | help |
| 599 | Set the name of the DTB to embed in the vmlinux binary |
| 600 | Leaving it blank selects the minimal "skeleton" dtb |
| 601 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 602 | endmenu # "ARC Architecture Configuration" |
| 603 | |
Vineet Gupta | 37eda9d | 2016-02-10 06:52:07 +0530 | [diff] [blame] | 604 | config FORCE_MAX_ZONEORDER |
| 605 | int "Maximum zone order" |
| 606 | default "12" if ARC_HUGEPAGE_16M |
| 607 | default "11" |
| 608 | |
Alexey Brodkin | 996bad6 | 2014-10-29 15:26:25 +0300 | [diff] [blame] | 609 | source "kernel/power/Kconfig" |