Kconfig 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750
  1. # SPDX-License-Identifier: GPL-2.0
  2. config ARM
  3. bool
  4. default y
  5. select ARCH_32BIT_OFF_T
  6. select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_POINTER && !ARM_UNWIND
  7. select ARCH_HAS_BINFMT_FLAT
  8. select ARCH_HAS_CACHE_LINE_SIZE if OF
  9. select ARCH_HAS_CC_CAN_LINK
  10. select ARCH_HAS_CPU_CACHE_ALIASING
  11. select ARCH_HAS_CPU_FINALIZE_INIT if MMU
  12. select ARCH_HAS_CURRENT_STACK_POINTER
  13. select ARCH_HAS_DEBUG_VIRTUAL if MMU
  14. select ARCH_HAS_DMA_ALLOC if MMU
  15. select ARCH_HAS_DMA_OPS
  16. select ARCH_HAS_DMA_WRITE_COMBINE if !ARM_DMA_MEM_BUFFERABLE
  17. select ARCH_HAS_ELF_RANDOMIZE
  18. select ARCH_HAS_FORTIFY_SOURCE
  19. select ARCH_HAS_KEEPINITRD
  20. select ARCH_HAS_KCOV
  21. select ARCH_HAS_MEMBARRIER_SYNC_CORE
  22. select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
  23. select ARCH_HAS_PTE_SPECIAL if ARM_LPAE
  24. select ARCH_HAS_SETUP_DMA_OPS
  25. select ARCH_HAS_SET_MEMORY
  26. select ARCH_STACKWALK
  27. select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL
  28. select ARCH_HAS_STRICT_MODULE_RWX if MMU
  29. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  30. select ARCH_HAS_SYNC_DMA_FOR_CPU
  31. select ARCH_HAS_TEARDOWN_DMA_OPS if MMU
  32. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  33. select ARCH_HAVE_NMI_SAFE_CMPXCHG if CPU_V7 || CPU_V7M || CPU_V6K
  34. select ARCH_HAS_GCOV_PROFILE_ALL
  35. select ARCH_KEEP_MEMBLOCK
  36. select ARCH_HAS_UBSAN
  37. select ARCH_MIGHT_HAVE_PC_PARPORT
  38. select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
  39. select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT if CPU_V7
  40. select ARCH_NEED_CMPXCHG_1_EMU if CPU_V6
  41. select ARCH_SUPPORTS_ATOMIC_RMW
  42. select ARCH_SUPPORTS_CFI
  43. select ARCH_SUPPORTS_HUGETLBFS if ARM_LPAE
  44. select ARCH_SUPPORTS_PER_VMA_LOCK
  45. select ARCH_USE_BUILTIN_BSWAP
  46. select ARCH_USE_CMPXCHG_LOCKREF
  47. select ARCH_USE_MEMTEST
  48. # https://github.com/llvm/llvm-project/commit/d130f402642fba3d065aacb506cb061c899558de
  49. select ARCH_USES_CFI_GENERIC_LLVM_PASS if CLANG_VERSION < 220000
  50. select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
  51. select ARCH_WANT_GENERAL_HUGETLB
  52. select ARCH_WANT_IPC_PARSE_VERSION
  53. select ARCH_WANT_LD_ORPHAN_WARN
  54. select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
  55. select BUILDTIME_TABLE_SORT if MMU
  56. select COMMON_CLK if !(ARCH_RPC || ARCH_FOOTBRIDGE)
  57. select CLONE_BACKWARDS
  58. select CPU_PM if SUSPEND || CPU_IDLE
  59. select DCACHE_WORD_ACCESS if HAVE_EFFICIENT_UNALIGNED_ACCESS
  60. select DMA_DECLARE_COHERENT
  61. select DMA_GLOBAL_POOL if !MMU
  62. select DMA_NONCOHERENT_MMAP if MMU
  63. select EDAC_SUPPORT
  64. select EDAC_ATOMIC_SCRUB
  65. select GENERIC_ALLOCATOR
  66. select GENERIC_ARCH_TOPOLOGY if ARM_CPU_TOPOLOGY
  67. select GENERIC_ATOMIC64 if CPU_V7M || CPU_V6 || !CPU_32v6K || !AEABI
  68. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  69. select GENERIC_IRQ_IPI if SMP
  70. select GENERIC_CPU_AUTOPROBE
  71. select GENERIC_CPU_DEVICES
  72. select GENERIC_EARLY_IOREMAP
  73. select GENERIC_IDLE_POLL_SETUP
  74. select GENERIC_IRQ_MULTI_HANDLER
  75. select GENERIC_IRQ_PROBE
  76. select GENERIC_IRQ_SHOW
  77. select GENERIC_IRQ_SHOW_LEVEL
  78. select GENERIC_LIB_DEVMEM_IS_ALLOWED
  79. select GENERIC_PCI_IOMAP
  80. select GENERIC_SCHED_CLOCK
  81. select GENERIC_SMP_IDLE_THREAD
  82. select HARDIRQS_SW_RESEND
  83. select HAS_IOPORT
  84. select HAVE_ARCH_AUDITSYSCALL if AEABI && !OABI_COMPAT
  85. select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6
  86. select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU && (!PREEMPT_RT || !SMP)
  87. select HAVE_ARCH_KFENCE if MMU && !XIP_KERNEL
  88. select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU
  89. select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
  90. select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
  91. select HAVE_ARCH_KSTACK_ERASE
  92. select HAVE_ARCH_MMAP_RND_BITS if MMU
  93. select HAVE_ARCH_PFN_VALID
  94. select HAVE_ARCH_SECCOMP
  95. select HAVE_ARCH_SECCOMP_FILTER if AEABI && !OABI_COMPAT
  96. select HAVE_ARCH_THREAD_STRUCT_WHITELIST
  97. select HAVE_ARCH_TRACEHOOK
  98. select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARM_LPAE
  99. select HAVE_ARM_SMCCC if CPU_V7
  100. select HAVE_EBPF_JIT if !CPU_ENDIAN_BE32
  101. select HAVE_CONTEXT_TRACKING_USER
  102. select HAVE_C_RECORDMCOUNT
  103. select HAVE_BUILDTIME_MCOUNT_SORT
  104. select HAVE_DEBUG_KMEMLEAK if !XIP_KERNEL
  105. select HAVE_DMA_CONTIGUOUS if MMU
  106. select HAVE_EXTRA_IPI_TRACEPOINTS
  107. select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU
  108. select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
  109. select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
  110. select HAVE_EXIT_THREAD
  111. select HAVE_GUP_FAST if ARM_LPAE
  112. select HAVE_FUNCTION_ERROR_INJECTION
  113. select HAVE_FUNCTION_GRAPH_TRACER
  114. select HAVE_FUNCTION_GRAPH_FREGS
  115. select HAVE_FUNCTION_TRACER if !XIP_KERNEL
  116. select HAVE_GCC_PLUGINS
  117. select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7)
  118. select HAVE_IRQ_TIME_ACCOUNTING
  119. select HAVE_KERNEL_GZIP
  120. select HAVE_KERNEL_LZ4
  121. select HAVE_KERNEL_LZMA
  122. select HAVE_KERNEL_LZO
  123. select HAVE_KERNEL_XZ
  124. select HAVE_KPROBES if !XIP_KERNEL && !CPU_ENDIAN_BE32 && !CPU_V7M
  125. select HAVE_KRETPROBES if HAVE_KPROBES
  126. select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if (LD_VERSION >= 23600 || LD_IS_LLD) && LD_CAN_USE_KEEP_IN_OVERLAY
  127. select HAVE_MOD_ARCH_SPECIFIC
  128. select HAVE_NMI
  129. select HAVE_OPTPROBES if !THUMB2_KERNEL
  130. select HAVE_PAGE_SIZE_4KB
  131. select HAVE_PCI if MMU
  132. select HAVE_PERF_EVENTS
  133. select HAVE_PERF_REGS
  134. select HAVE_PERF_USER_STACK_DUMP
  135. select MMU_GATHER_RCU_TABLE_FREE if SMP && ARM_LPAE
  136. select HAVE_REGS_AND_STACK_ACCESS_API
  137. select HAVE_RSEQ
  138. select HAVE_RUST if CPU_LITTLE_ENDIAN && CPU_32v7
  139. select HAVE_STACKPROTECTOR
  140. select HAVE_SYSCALL_TRACEPOINTS
  141. select HAVE_UID16
  142. select HAVE_VIRT_CPU_ACCOUNTING_GEN
  143. select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
  144. select IRQ_FORCED_THREADING
  145. select LOCK_MM_AND_FIND_VMA
  146. select MODULES_USE_ELF_REL
  147. select NEED_DMA_MAP_STATE
  148. select OF_EARLY_FLATTREE if OF
  149. select OLD_SIGACTION
  150. select OLD_SIGSUSPEND3
  151. select PCI_DOMAINS_GENERIC if PCI
  152. select PCI_SYSCALL if PCI
  153. select PERF_USE_VMALLOC
  154. select RTC_LIB
  155. select SPARSE_IRQ if !(ARCH_FOOTBRIDGE || ARCH_RPC)
  156. select SYS_SUPPORTS_APM_EMULATION
  157. select THREAD_INFO_IN_TASK
  158. select TIMER_OF if OF
  159. select HAVE_ARCH_VMAP_STACK if MMU && ARM_HAS_GROUP_RELOCS
  160. select TRACE_IRQFLAGS_SUPPORT if !CPU_V7M
  161. select USE_OF if !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
  162. # Above selects are sorted alphabetically; please add new ones
  163. # according to that. Thanks.
  164. help
  165. The ARM series is a line of low-power-consumption RISC chip designs
  166. licensed by ARM Ltd and targeted at embedded applications and
  167. handhelds such as the Compaq IPAQ. ARM-based PCs are no longer
  168. manufactured, but legacy ARM-based PC hardware remains popular in
  169. Europe. There is an ARM Linux project with a web page at
  170. <http://www.arm.linux.org.uk/>.
  171. config ARM_HAS_GROUP_RELOCS
  172. def_bool !COMPILE_TEST
  173. help
  174. Whether or not to use R_ARM_ALU_PC_Gn or R_ARM_LDR_PC_Gn group
  175. relocations. The combined range is -/+ 256 MiB, which is usually
  176. sufficient, but not for allyesconfig, so we disable this feature
  177. when doing compile testing.
  178. config ARM_DMA_USE_IOMMU
  179. bool
  180. select NEED_SG_DMA_LENGTH
  181. if ARM_DMA_USE_IOMMU
  182. config ARM_DMA_IOMMU_ALIGNMENT
  183. int "Maximum PAGE_SIZE order of alignment for DMA IOMMU buffers"
  184. range 4 9
  185. default 8
  186. help
  187. DMA mapping framework by default aligns all buffers to the smallest
  188. PAGE_SIZE order which is greater than or equal to the requested buffer
  189. size. This works well for buffers up to a few hundreds kilobytes, but
  190. for larger buffers it just a waste of address space. Drivers which has
  191. relatively small addressing window (like 64Mib) might run out of
  192. virtual space with just a few allocations.
  193. With this parameter you can specify the maximum PAGE_SIZE order for
  194. DMA IOMMU buffers. Larger buffers will be aligned only to this
  195. specified order. The order is expressed as a power of two multiplied
  196. by the PAGE_SIZE.
  197. endif
  198. config SYS_SUPPORTS_APM_EMULATION
  199. bool
  200. config HAVE_TCM
  201. bool
  202. select GENERIC_ALLOCATOR
  203. config HAVE_PROC_CPU
  204. bool
  205. config NO_IOPORT_MAP
  206. bool
  207. config SBUS
  208. bool
  209. config STACKTRACE_SUPPORT
  210. bool
  211. default y
  212. config LOCKDEP_SUPPORT
  213. bool
  214. default y
  215. config ARCH_HAS_ILOG2_U32
  216. bool
  217. config ARCH_HAS_ILOG2_U64
  218. bool
  219. config ARCH_HAS_BANDGAP
  220. bool
  221. config FIX_EARLYCON_MEM
  222. def_bool y if MMU
  223. config GENERIC_HWEIGHT
  224. bool
  225. default y
  226. config GENERIC_CALIBRATE_DELAY
  227. bool
  228. default y
  229. config ARCH_MAY_HAVE_PC_FDC
  230. bool
  231. config ARCH_SUPPORTS_UPROBES
  232. def_bool y
  233. config GENERIC_ISA_DMA
  234. bool
  235. config FIQ
  236. bool
  237. config ARCH_MTD_XIP
  238. bool
  239. config ARM_PATCH_PHYS_VIRT
  240. bool "Patch physical to virtual translations at runtime" if !ARCH_MULTIPLATFORM
  241. default y
  242. depends on MMU
  243. help
  244. Patch phys-to-virt and virt-to-phys translation functions at
  245. boot and module load time according to the position of the
  246. kernel in system memory.
  247. This can only be used with non-XIP MMU kernels where the base
  248. of physical memory is at a 2 MiB boundary.
  249. Only disable this option if you know that you do not require
  250. this feature (eg, building a kernel for a single machine) and
  251. you need to shrink the kernel to the minimal size.
  252. config NEED_MACH_IO_H
  253. bool
  254. help
  255. Select this when mach/io.h is required to provide special
  256. definitions for this platform. The need for mach/io.h should
  257. be avoided when possible.
  258. config NEED_MACH_MEMORY_H
  259. bool
  260. help
  261. Select this when mach/memory.h is required to provide special
  262. definitions for this platform. The need for mach/memory.h should
  263. be avoided when possible.
  264. config PHYS_OFFSET
  265. hex "Physical address of main memory" if MMU
  266. depends on !ARM_PATCH_PHYS_VIRT || !AUTO_ZRELADDR
  267. default DRAM_BASE if !MMU
  268. default 0x00000000 if ARCH_FOOTBRIDGE
  269. default 0x10000000 if ARCH_OMAP1 || ARCH_RPC
  270. default 0xa0000000 if ARCH_PXA
  271. default 0xc0000000 if ARCH_EP93XX || ARCH_SA1100
  272. default 0
  273. help
  274. Please provide the physical address corresponding to the
  275. location of main memory in your system.
  276. config GENERIC_BUG
  277. def_bool y
  278. depends on BUG
  279. config PGTABLE_LEVELS
  280. int
  281. default 3 if ARM_LPAE
  282. default 2
  283. menu "System Type"
  284. config MMU
  285. bool "MMU-based Paged Memory Management Support"
  286. default y
  287. help
  288. Select if you want MMU-based virtualised addressing space
  289. support by paged memory management. If unsure, say 'Y'.
  290. config ARM_SINGLE_ARMV7M
  291. def_bool !MMU
  292. select ARM_NVIC
  293. select CPU_V7M
  294. select NO_IOPORT_MAP
  295. config ARCH_MMAP_RND_BITS_MIN
  296. default 8
  297. config ARCH_MMAP_RND_BITS_MAX
  298. default 14 if PAGE_OFFSET=0x40000000
  299. default 15 if PAGE_OFFSET=0x80000000
  300. default 16
  301. config ARCH_MULTIPLATFORM
  302. bool "Require kernel to be portable to multiple machines" if EXPERT
  303. depends on MMU && !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
  304. default y
  305. help
  306. In general, all Arm machines can be supported in a single
  307. kernel image, covering either Armv4/v5 or Armv6/v7.
  308. However, some configuration options require hardcoding machine
  309. specific physical addresses or enable errata workarounds that may
  310. break other machines.
  311. Selecting N here allows using those options, including
  312. DEBUG_UNCOMPRESS, XIP_KERNEL and ZBOOT_ROM. If unsure, say Y.
  313. source "arch/arm/Kconfig.platforms"
  314. #
  315. # This is sorted alphabetically by mach-* pathname. However, plat-*
  316. # Kconfigs may be included either alphabetically (according to the
  317. # plat- suffix) or along side the corresponding mach-* source.
  318. #
  319. source "arch/arm/mach-actions/Kconfig"
  320. source "arch/arm/mach-alpine/Kconfig"
  321. source "arch/arm/mach-artpec/Kconfig"
  322. source "arch/arm/mach-aspeed/Kconfig"
  323. source "arch/arm/mach-at91/Kconfig"
  324. source "arch/arm/mach-axxia/Kconfig"
  325. source "arch/arm/mach-bcm/Kconfig"
  326. source "arch/arm/mach-berlin/Kconfig"
  327. source "arch/arm/mach-clps711x/Kconfig"
  328. source "arch/arm/mach-davinci/Kconfig"
  329. source "arch/arm/mach-digicolor/Kconfig"
  330. source "arch/arm/mach-dove/Kconfig"
  331. source "arch/arm/mach-ep93xx/Kconfig"
  332. source "arch/arm/mach-exynos/Kconfig"
  333. source "arch/arm/mach-footbridge/Kconfig"
  334. source "arch/arm/mach-gemini/Kconfig"
  335. source "arch/arm/mach-highbank/Kconfig"
  336. source "arch/arm/mach-hisi/Kconfig"
  337. source "arch/arm/mach-imx/Kconfig"
  338. source "arch/arm/mach-ixp4xx/Kconfig"
  339. source "arch/arm/mach-keystone/Kconfig"
  340. source "arch/arm/mach-lpc32xx/Kconfig"
  341. source "arch/arm/mach-mediatek/Kconfig"
  342. source "arch/arm/mach-meson/Kconfig"
  343. source "arch/arm/mach-milbeaut/Kconfig"
  344. source "arch/arm/mach-mmp/Kconfig"
  345. source "arch/arm/mach-mstar/Kconfig"
  346. source "arch/arm/mach-mv78xx0/Kconfig"
  347. source "arch/arm/mach-mvebu/Kconfig"
  348. source "arch/arm/mach-mxs/Kconfig"
  349. source "arch/arm/mach-nomadik/Kconfig"
  350. source "arch/arm/mach-npcm/Kconfig"
  351. source "arch/arm/mach-omap1/Kconfig"
  352. source "arch/arm/mach-omap2/Kconfig"
  353. source "arch/arm/mach-orion5x/Kconfig"
  354. source "arch/arm/mach-pxa/Kconfig"
  355. source "arch/arm/mach-qcom/Kconfig"
  356. source "arch/arm/mach-realtek/Kconfig"
  357. source "arch/arm/mach-rpc/Kconfig"
  358. source "arch/arm/mach-rockchip/Kconfig"
  359. source "arch/arm/mach-s3c/Kconfig"
  360. source "arch/arm/mach-s5pv210/Kconfig"
  361. source "arch/arm/mach-sa1100/Kconfig"
  362. source "arch/arm/mach-shmobile/Kconfig"
  363. source "arch/arm/mach-socfpga/Kconfig"
  364. source "arch/arm/mach-spear/Kconfig"
  365. source "arch/arm/mach-sti/Kconfig"
  366. source "arch/arm/mach-stm32/Kconfig"
  367. source "arch/arm/mach-sunxi/Kconfig"
  368. source "arch/arm/mach-tegra/Kconfig"
  369. source "arch/arm/mach-ux500/Kconfig"
  370. source "arch/arm/mach-versatile/Kconfig"
  371. source "arch/arm/mach-vt8500/Kconfig"
  372. source "arch/arm/mach-zynq/Kconfig"
  373. # ARMv7-M architecture
  374. config ARCH_LPC18XX
  375. bool "NXP LPC18xx/LPC43xx"
  376. depends on ARM_SINGLE_ARMV7M
  377. select ARCH_HAS_RESET_CONTROLLER
  378. select ARM_AMBA
  379. select CLKSRC_LPC32XX
  380. select PINCTRL
  381. help
  382. Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4
  383. high performance microcontrollers.
  384. config ARCH_MPS2
  385. bool "ARM MPS2 platform"
  386. depends on ARM_SINGLE_ARMV7M
  387. select ARM_AMBA
  388. select CLKSRC_MPS2
  389. help
  390. Support for Cortex-M Prototyping System (or V2M-MPS2) which comes
  391. with a range of available cores like Cortex-M3/M4/M7.
  392. Please, note that depends which Application Note is used memory map
  393. for the platform may vary, so adjustment of RAM base might be needed.
  394. # Definitions to make life easier
  395. config ARCH_ACORN
  396. bool
  397. config PLAT_ORION
  398. bool
  399. select CLKSRC_MMIO
  400. select GENERIC_IRQ_CHIP
  401. select IRQ_DOMAIN
  402. config PLAT_ORION_LEGACY
  403. bool
  404. select PLAT_ORION
  405. config PLAT_VERSATILE
  406. bool
  407. source "arch/arm/mm/Kconfig"
  408. config IWMMXT
  409. bool "Enable iWMMXt support"
  410. depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK
  411. default y if PXA27x || PXA3xx || ARCH_MMP
  412. help
  413. Enable support for iWMMXt context switching at run time if
  414. running on a CPU that supports it.
  415. if !MMU
  416. source "arch/arm/Kconfig-nommu"
  417. endif
  418. config PJ4B_ERRATA_4742
  419. bool "PJ4B Errata 4742: IDLE Wake Up Commands can Cause the CPU Core to Cease Operation"
  420. depends on CPU_PJ4B && MACH_ARMADA_370
  421. default y
  422. help
  423. When coming out of either a Wait for Interrupt (WFI) or a Wait for
  424. Event (WFE) IDLE states, a specific timing sensitivity exists between
  425. the retiring WFI/WFE instructions and the newly issued subsequent
  426. instructions. This sensitivity can result in a CPU hang scenario.
  427. Workaround:
  428. The software must insert either a Data Synchronization Barrier (DSB)
  429. or Data Memory Barrier (DMB) command immediately after the WFI/WFE
  430. instruction
  431. config ARM_ERRATA_326103
  432. bool "ARM errata: FSR write bit incorrect on a SWP to read-only memory"
  433. depends on CPU_V6
  434. help
  435. Executing a SWP instruction to read-only memory does not set bit 11
  436. of the FSR on the ARM 1136 prior to r1p0. This causes the kernel to
  437. treat the access as a read, preventing a COW from occurring and
  438. causing the faulting task to livelock.
  439. config ARM_ERRATA_411920
  440. bool "ARM errata: Invalidation of the Instruction Cache operation can fail"
  441. depends on CPU_V6 || CPU_V6K
  442. help
  443. Invalidation of the Instruction Cache operation can
  444. fail. This erratum is present in 1136 (before r1p4), 1156 and 1176.
  445. It does not affect the MPCore. This option enables the ARM Ltd.
  446. recommended workaround.
  447. config ARM_ERRATA_430973
  448. bool "ARM errata: Stale prediction on replaced interworking branch"
  449. depends on CPU_V7
  450. help
  451. This option enables the workaround for the 430973 Cortex-A8
  452. r1p* erratum. If a code sequence containing an ARM/Thumb
  453. interworking branch is replaced with another code sequence at the
  454. same virtual address, whether due to self-modifying code or virtual
  455. to physical address re-mapping, Cortex-A8 does not recover from the
  456. stale interworking branch prediction. This results in Cortex-A8
  457. executing the new code sequence in the incorrect ARM or Thumb state.
  458. The workaround enables the BTB/BTAC operations by setting ACTLR.IBE
  459. and also flushes the branch target cache at every context switch.
  460. Note that setting specific bits in the ACTLR register may not be
  461. available in non-secure mode.
  462. config ARM_ERRATA_458693
  463. bool "ARM errata: Processor deadlock when a false hazard is created"
  464. depends on CPU_V7
  465. depends on !ARCH_MULTIPLATFORM
  466. help
  467. This option enables the workaround for the 458693 Cortex-A8 (r2p0)
  468. erratum. For very specific sequences of memory operations, it is
  469. possible for a hazard condition intended for a cache line to instead
  470. be incorrectly associated with a different cache line. This false
  471. hazard might then cause a processor deadlock. The workaround enables
  472. the L1 caching of the NEON accesses and disables the PLD instruction
  473. in the ACTLR register. Note that setting specific bits in the ACTLR
  474. register may not be available in non-secure mode and thus is not
  475. available on a multiplatform kernel. This should be applied by the
  476. bootloader instead.
  477. config ARM_ERRATA_460075
  478. bool "ARM errata: Data written to the L2 cache can be overwritten with stale data"
  479. depends on CPU_V7
  480. depends on !ARCH_MULTIPLATFORM
  481. help
  482. This option enables the workaround for the 460075 Cortex-A8 (r2p0)
  483. erratum. Any asynchronous access to the L2 cache may encounter a
  484. situation in which recent store transactions to the L2 cache are lost
  485. and overwritten with stale memory contents from external memory. The
  486. workaround disables the write-allocate mode for the L2 cache via the
  487. ACTLR register. Note that setting specific bits in the ACTLR register
  488. may not be available in non-secure mode and thus is not available on
  489. a multiplatform kernel. This should be applied by the bootloader
  490. instead.
  491. config ARM_ERRATA_742230
  492. bool "ARM errata: DMB operation may be faulty"
  493. depends on CPU_V7 && SMP
  494. depends on !ARCH_MULTIPLATFORM
  495. help
  496. This option enables the workaround for the 742230 Cortex-A9
  497. (r1p0..r2p2) erratum. Under rare circumstances, a DMB instruction
  498. between two write operations may not ensure the correct visibility
  499. ordering of the two writes. This workaround sets a specific bit in
  500. the diagnostic register of the Cortex-A9 which causes the DMB
  501. instruction to behave as a DSB, ensuring the correct behaviour of
  502. the two writes. Note that setting specific bits in the diagnostics
  503. register may not be available in non-secure mode and thus is not
  504. available on a multiplatform kernel. This should be applied by the
  505. bootloader instead.
  506. config ARM_ERRATA_742231
  507. bool "ARM errata: Incorrect hazard handling in the SCU may lead to data corruption"
  508. depends on CPU_V7 && SMP
  509. depends on !ARCH_MULTIPLATFORM
  510. help
  511. This option enables the workaround for the 742231 Cortex-A9
  512. (r2p0..r2p2) erratum. Under certain conditions, specific to the
  513. Cortex-A9 MPCore micro-architecture, two CPUs working in SMP mode,
  514. accessing some data located in the same cache line, may get corrupted
  515. data due to bad handling of the address hazard when the line gets
  516. replaced from one of the CPUs at the same time as another CPU is
  517. accessing it. This workaround sets specific bits in the diagnostic
  518. register of the Cortex-A9 which reduces the linefill issuing
  519. capabilities of the processor. Note that setting specific bits in the
  520. diagnostics register may not be available in non-secure mode and thus
  521. is not available on a multiplatform kernel. This should be applied by
  522. the bootloader instead.
  523. config ARM_ERRATA_643719
  524. bool "ARM errata: LoUIS bit field in CLIDR register is incorrect"
  525. depends on CPU_V7 && SMP
  526. default y
  527. help
  528. This option enables the workaround for the 643719 Cortex-A9 (prior to
  529. r1p0) erratum. On affected cores the LoUIS bit field of the CLIDR
  530. register returns zero when it should return one. The workaround
  531. corrects this value, ensuring cache maintenance operations which use
  532. it behave as intended and avoiding data corruption.
  533. config ARM_ERRATA_720789
  534. bool "ARM errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID"
  535. depends on CPU_V7
  536. help
  537. This option enables the workaround for the 720789 Cortex-A9 (prior to
  538. r2p0) erratum. A faulty ASID can be sent to the other CPUs for the
  539. broadcasted CP15 TLB maintenance operations TLBIASIDIS and TLBIMVAIS.
  540. As a consequence of this erratum, some TLB entries which should be
  541. invalidated are not, resulting in an incoherency in the system page
  542. tables. The workaround changes the TLB flushing routines to invalidate
  543. entries regardless of the ASID.
  544. config ARM_ERRATA_743622
  545. bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption"
  546. depends on CPU_V7
  547. depends on !ARCH_MULTIPLATFORM
  548. help
  549. This option enables the workaround for the 743622 Cortex-A9
  550. (r2p*) erratum. Under very rare conditions, a faulty
  551. optimisation in the Cortex-A9 Store Buffer may lead to data
  552. corruption. This workaround sets a specific bit in the diagnostic
  553. register of the Cortex-A9 which disables the Store Buffer
  554. optimisation, preventing the defect from occurring. This has no
  555. visible impact on the overall performance or power consumption of the
  556. processor. Note that setting specific bits in the diagnostics register
  557. may not be available in non-secure mode and thus is not available on a
  558. multiplatform kernel. This should be applied by the bootloader instead.
  559. config ARM_ERRATA_751472
  560. bool "ARM errata: Interrupted ICIALLUIS may prevent completion of broadcasted operation"
  561. depends on CPU_V7
  562. depends on !ARCH_MULTIPLATFORM
  563. help
  564. This option enables the workaround for the 751472 Cortex-A9 (prior
  565. to r3p0) erratum. An interrupted ICIALLUIS operation may prevent the
  566. completion of a following broadcasted operation if the second
  567. operation is received by a CPU before the ICIALLUIS has completed,
  568. potentially leading to corrupted entries in the cache or TLB.
  569. Note that setting specific bits in the diagnostics register may
  570. not be available in non-secure mode and thus is not available on
  571. a multiplatform kernel. This should be applied by the bootloader
  572. instead.
  573. config ARM_ERRATA_754322
  574. bool "ARM errata: possible faulty MMU translations following an ASID switch"
  575. depends on CPU_V7
  576. help
  577. This option enables the workaround for the 754322 Cortex-A9 (r2p*,
  578. r3p*) erratum. A speculative memory access may cause a page table walk
  579. which starts prior to an ASID switch but completes afterwards. This
  580. can populate the micro-TLB with a stale entry which may be hit with
  581. the new ASID. This workaround places two dsb instructions in the mm
  582. switching code so that no page table walks can cross the ASID switch.
  583. config ARM_ERRATA_754327
  584. bool "ARM errata: no automatic Store Buffer drain"
  585. depends on CPU_V7 && SMP
  586. help
  587. This option enables the workaround for the 754327 Cortex-A9 (prior to
  588. r2p0) erratum. The Store Buffer does not have any automatic draining
  589. mechanism and therefore a livelock may occur if an external agent
  590. continuously polls a memory location waiting to observe an update.
  591. This workaround defines cpu_relax() as smp_mb(), preventing correctly
  592. written polling loops from denying visibility of updates to memory.
  593. config ARM_ERRATA_364296
  594. bool "ARM errata: Possible cache data corruption with hit-under-miss enabled"
  595. depends on CPU_V6
  596. help
  597. This options enables the workaround for the 364296 ARM1136
  598. r0p2 erratum (possible cache data corruption with
  599. hit-under-miss enabled). It sets the undocumented bit 31 in
  600. the auxiliary control register and the FI bit in the control
  601. register, thus disabling hit-under-miss without putting the
  602. processor into full low interrupt latency mode. ARM11MPCore
  603. is not affected.
  604. config ARM_ERRATA_764369
  605. bool "ARM errata: Data cache line maintenance operation by MVA may not succeed"
  606. depends on CPU_V7 && SMP
  607. help
  608. This option enables the workaround for erratum 764369
  609. affecting Cortex-A9 MPCore with two or more processors (all
  610. current revisions). Under certain timing circumstances, a data
  611. cache line maintenance operation by MVA targeting an Inner
  612. Shareable memory region may fail to proceed up to either the
  613. Point of Coherency or to the Point of Unification of the
  614. system. This workaround adds a DSB instruction before the
  615. relevant cache maintenance functions and sets a specific bit
  616. in the diagnostic control register of the SCU.
  617. config ARM_ERRATA_764319
  618. bool "ARM errata: Read to DBGPRSR and DBGOSLSR may generate Undefined instruction"
  619. depends on CPU_V7
  620. help
  621. This option enables the workaround for the 764319 Cortex-A9 erratum.
  622. CP14 read accesses to the DBGPRSR and DBGOSLSR registers generate an
  623. unexpected Undefined Instruction exception when the DBGSWENABLE
  624. external pin is set to 0, even when the CP14 accesses are performed
  625. from a privileged mode. This work around catches the exception in a
  626. way the kernel does not stop execution.
  627. config ARM_ERRATA_775420
  628. bool "ARM errata: A data cache maintenance operation which aborts, might lead to deadlock"
  629. depends on CPU_V7
  630. help
  631. This option enables the workaround for the 775420 Cortex-A9 (r2p2,
  632. r2p6,r2p8,r2p10,r3p0) erratum. In case a data cache maintenance
  633. operation aborts with MMU exception, it might cause the processor
  634. to deadlock. This workaround puts DSB before executing ISB if
  635. an abort may occur on cache maintenance.
  636. config ARM_ERRATA_798181
  637. bool "ARM errata: TLBI/DSB failure on Cortex-A15"
  638. depends on CPU_V7 && SMP
  639. help
  640. On Cortex-A15 (r0p0..r3p2) the TLBI*IS/DSB operations are not
  641. adequately shooting down all use of the old entries. This
  642. option enables the Linux kernel workaround for this erratum
  643. which sends an IPI to the CPUs that are running the same ASID
  644. as the one being invalidated.
  645. config ARM_ERRATA_773022
  646. bool "ARM errata: incorrect instructions may be executed from loop buffer"
  647. depends on CPU_V7
  648. help
  649. This option enables the workaround for the 773022 Cortex-A15
  650. (up to r0p4) erratum. In certain rare sequences of code, the
  651. loop buffer may deliver incorrect instructions. This
  652. workaround disables the loop buffer to avoid the erratum.
  653. config ARM_ERRATA_818325_852422
  654. bool "ARM errata: A12: some seqs of opposed cond code instrs => deadlock or corruption"
  655. depends on CPU_V7
  656. help
  657. This option enables the workaround for:
  658. - Cortex-A12 818325: Execution of an UNPREDICTABLE STR or STM
  659. instruction might deadlock. Fixed in r0p1.
  660. - Cortex-A12 852422: Execution of a sequence of instructions might
  661. lead to either a data corruption or a CPU deadlock. Not fixed in
  662. any Cortex-A12 cores yet.
  663. This workaround for all both errata involves setting bit[12] of the
  664. Feature Register. This bit disables an optimisation applied to a
  665. sequence of 2 instructions that use opposing condition codes.
  666. config ARM_ERRATA_821420
  667. bool "ARM errata: A12: sequence of VMOV to core registers might lead to a dead lock"
  668. depends on CPU_V7
  669. help
  670. This option enables the workaround for the 821420 Cortex-A12
  671. (all revs) erratum. In very rare timing conditions, a sequence
  672. of VMOV to Core registers instructions, for which the second
  673. one is in the shadow of a branch or abort, can lead to a
  674. deadlock when the VMOV instructions are issued out-of-order.
  675. config ARM_ERRATA_825619
  676. bool "ARM errata: A12: DMB NSHST/ISHST mixed ... might cause deadlock"
  677. depends on CPU_V7
  678. help
  679. This option enables the workaround for the 825619 Cortex-A12
  680. (all revs) erratum. Within rare timing constraints, executing a
  681. DMB NSHST or DMB ISHST instruction followed by a mix of Cacheable
  682. and Device/Strongly-Ordered loads and stores might cause deadlock
  683. config ARM_ERRATA_857271
  684. bool "ARM errata: A12: CPU might deadlock under some very rare internal conditions"
  685. depends on CPU_V7
  686. help
  687. This option enables the workaround for the 857271 Cortex-A12
  688. (all revs) erratum. Under very rare timing conditions, the CPU might
  689. hang. The workaround is expected to have a < 1% performance impact.
  690. config ARM_ERRATA_852421
  691. bool "ARM errata: A17: DMB ST might fail to create order between stores"
  692. depends on CPU_V7
  693. help
  694. This option enables the workaround for the 852421 Cortex-A17
  695. (r1p0, r1p1, r1p2) erratum. Under very rare timing conditions,
  696. execution of a DMB ST instruction might fail to properly order
  697. stores from GroupA and stores from GroupB.
  698. config ARM_ERRATA_852423
  699. bool "ARM errata: A17: some seqs of opposed cond code instrs => deadlock or corruption"
  700. depends on CPU_V7
  701. help
  702. This option enables the workaround for:
  703. - Cortex-A17 852423: Execution of a sequence of instructions might
  704. lead to either a data corruption or a CPU deadlock. Not fixed in
  705. any Cortex-A17 cores yet.
  706. This is identical to Cortex-A12 erratum 852422. It is a separate
  707. config option from the A12 erratum due to the way errata are checked
  708. for and handled.
  709. config ARM_ERRATA_857272
  710. bool "ARM errata: A17: CPU might deadlock under some very rare internal conditions"
  711. depends on CPU_V7
  712. help
  713. This option enables the workaround for the 857272 Cortex-A17 erratum.
  714. This erratum is not known to be fixed in any A17 revision.
  715. This is identical to Cortex-A12 erratum 857271. It is a separate
  716. config option from the A12 erratum due to the way errata are checked
  717. for and handled.
  718. endmenu
  719. source "arch/arm/common/Kconfig"
  720. menu "Bus support"
  721. config ISA
  722. bool
  723. help
  724. Find out whether you have ISA slots on your motherboard. ISA is the
  725. name of a bus system, i.e. the way the CPU talks to the other stuff
  726. inside your box. Other bus systems are PCI, EISA, MicroChannel
  727. (MCA) or VESA. ISA is an older system, now being displaced by PCI;
  728. newer boards don't support it. If you have ISA, say Y, otherwise N.
  729. # Select ISA DMA interface
  730. config ISA_DMA_API
  731. bool
  732. config ARM_ERRATA_814220
  733. bool "ARM errata: Cache maintenance by set/way operations can execute out of order"
  734. depends on CPU_V7
  735. help
  736. The v7 ARM states that all cache and branch predictor maintenance
  737. operations that do not specify an address execute, relative to
  738. each other, in program order.
  739. However, because of this erratum, an L2 set/way cache maintenance
  740. operation can overtake an L1 set/way cache maintenance operation.
  741. This ERRATA only affected the Cortex-A7 and present in r0p2, r0p3,
  742. r0p4, r0p5.
  743. endmenu
  744. menu "Kernel Features"
  745. config HAVE_SMP
  746. bool
  747. help
  748. This option should be selected by machines which have an SMP-
  749. capable CPU.
  750. The only effect of this option is to make the SMP-related
  751. options available to the user for configuration.
  752. config SMP
  753. bool "Symmetric Multi-Processing"
  754. depends on CPU_V6K || CPU_V7
  755. depends on HAVE_SMP
  756. depends on MMU || ARM_MPU
  757. select IRQ_WORK
  758. help
  759. This enables support for systems with more than one CPU. If you have
  760. a system with only one CPU, say N. If you have a system with more
  761. than one CPU, say Y.
  762. If you say N here, the kernel will run on uni- and multiprocessor
  763. machines, but will use only one CPU of a multiprocessor machine. If
  764. you say Y here, the kernel will run on many, but not all,
  765. uniprocessor machines. On a uniprocessor machine, the kernel
  766. will run faster if you say N here.
  767. See also <file:Documentation/arch/x86/i386/IO-APIC.rst>,
  768. <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO available at
  769. <http://tldp.org/HOWTO/SMP-HOWTO.html>.
  770. If you don't know what to do here, say N.
  771. config SMP_ON_UP
  772. bool "Allow booting SMP kernel on uniprocessor systems"
  773. depends on SMP && MMU
  774. default y
  775. help
  776. SMP kernels contain instructions which fail on non-SMP processors.
  777. Enabling this option allows the kernel to modify itself to make
  778. these instructions safe. Disabling it allows about 1K of space
  779. savings.
  780. If you don't know what to do here, say Y.
  781. config CURRENT_POINTER_IN_TPIDRURO
  782. def_bool y
  783. depends on CPU_32v6K && !CPU_V6
  784. config IRQSTACKS
  785. def_bool y
  786. select HAVE_IRQ_EXIT_ON_IRQ_STACK
  787. select HAVE_SOFTIRQ_ON_OWN_STACK
  788. config ARM_CPU_TOPOLOGY
  789. bool "Support cpu topology definition"
  790. depends on SMP && CPU_V7
  791. select ARCH_SUPPORTS_SCHED_MC
  792. select ARCH_SUPPORTS_SCHED_SMT
  793. default y
  794. help
  795. Support ARM cpu topology definition. The MPIDR register defines
  796. affinity between processors which is then used to describe the cpu
  797. topology of an ARM System.
  798. config HAVE_ARM_SCU
  799. bool
  800. help
  801. This option enables support for the ARM snoop control unit
  802. config HAVE_ARM_ARCH_TIMER
  803. bool "Architected timer support"
  804. depends on CPU_V7
  805. select ARM_ARCH_TIMER
  806. help
  807. This option enables support for the ARM architected timer
  808. config HAVE_ARM_TWD
  809. bool
  810. help
  811. This options enables support for the ARM timer and watchdog unit
  812. config MCPM
  813. bool "Multi-Cluster Power Management"
  814. depends on CPU_V7 && SMP
  815. help
  816. This option provides the common power management infrastructure
  817. for (multi-)cluster based systems, such as big.LITTLE based
  818. systems.
  819. config MCPM_QUAD_CLUSTER
  820. bool
  821. depends on MCPM
  822. help
  823. To avoid wasting resources unnecessarily, MCPM only supports up
  824. to 2 clusters by default.
  825. Platforms with 3 or 4 clusters that use MCPM must select this
  826. option to allow the additional clusters to be managed.
  827. config BIG_LITTLE
  828. bool "big.LITTLE support (Experimental)"
  829. depends on CPU_V7 && SMP
  830. select MCPM
  831. help
  832. This option enables support selections for the big.LITTLE
  833. system architecture.
  834. config BL_SWITCHER
  835. bool "big.LITTLE switcher support"
  836. depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC
  837. select CPU_PM
  838. help
  839. The big.LITTLE "switcher" provides the core functionality to
  840. transparently handle transition between a cluster of A15's
  841. and a cluster of A7's in a big.LITTLE system.
  842. config BL_SWITCHER_DUMMY_IF
  843. tristate "Simple big.LITTLE switcher user interface"
  844. depends on BL_SWITCHER && DEBUG_KERNEL
  845. help
  846. This is a simple and dummy char dev interface to control
  847. the big.LITTLE switcher core code. It is meant for
  848. debugging purposes only.
  849. choice
  850. prompt "Memory split"
  851. depends on MMU
  852. default VMSPLIT_3G
  853. help
  854. Select the desired split between kernel and user memory.
  855. If you are not absolutely sure what you are doing, leave this
  856. option alone!
  857. config VMSPLIT_3G
  858. bool "3G/1G user/kernel split"
  859. config VMSPLIT_3G_OPT
  860. depends on !ARM_LPAE
  861. bool "3G/1G user/kernel split (for full 1G low memory)"
  862. config VMSPLIT_2G
  863. bool "2G/2G user/kernel split"
  864. config VMSPLIT_1G
  865. bool "1G/3G user/kernel split"
  866. endchoice
  867. config PAGE_OFFSET
  868. hex
  869. default PHYS_OFFSET if !MMU
  870. default 0x40000000 if VMSPLIT_1G
  871. default 0x80000000 if VMSPLIT_2G
  872. default 0xB0000000 if VMSPLIT_3G_OPT
  873. default 0xC0000000
  874. config KASAN_SHADOW_OFFSET
  875. hex
  876. depends on KASAN
  877. default 0x1f000000 if PAGE_OFFSET=0x40000000
  878. default 0x5f000000 if PAGE_OFFSET=0x80000000
  879. default 0x9f000000 if PAGE_OFFSET=0xC0000000
  880. default 0x8f000000 if PAGE_OFFSET=0xB0000000
  881. default 0xffffffff
  882. config NR_CPUS
  883. int "Maximum number of CPUs (2-32)"
  884. range 2 16 if DEBUG_KMAP_LOCAL
  885. range 2 32 if !DEBUG_KMAP_LOCAL
  886. depends on SMP
  887. default "4"
  888. help
  889. The maximum number of CPUs that the kernel can support.
  890. Up to 32 CPUs can be supported, or up to 16 if kmap_local()
  891. debugging is enabled, which uses half of the per-CPU fixmap
  892. slots as guard regions.
  893. config HOTPLUG_CPU
  894. bool "Support for hot-pluggable CPUs"
  895. depends on SMP
  896. select GENERIC_IRQ_MIGRATION
  897. help
  898. Say Y here to experiment with turning CPUs off and on. CPUs
  899. can be controlled through /sys/devices/system/cpu.
  900. config ARM_PSCI
  901. bool "Support for the ARM Power State Coordination Interface (PSCI)"
  902. depends on HAVE_ARM_SMCCC
  903. select ARM_PSCI_FW
  904. help
  905. Say Y here if you want Linux to communicate with system firmware
  906. implementing the PSCI specification for CPU-centric power
  907. management operations described in ARM document number ARM DEN
  908. 0022A ("Power State Coordination Interface System Software on
  909. ARM processors").
  910. config HZ_FIXED
  911. int
  912. default 128 if SOC_AT91RM9200
  913. default 0
  914. choice
  915. depends on HZ_FIXED = 0
  916. prompt "Timer frequency"
  917. config HZ_100
  918. bool "100 Hz"
  919. config HZ_200
  920. bool "200 Hz"
  921. config HZ_250
  922. bool "250 Hz"
  923. config HZ_300
  924. bool "300 Hz"
  925. config HZ_500
  926. bool "500 Hz"
  927. config HZ_1000
  928. bool "1000 Hz"
  929. endchoice
  930. config HZ
  931. int
  932. default HZ_FIXED if HZ_FIXED != 0
  933. default 100 if HZ_100
  934. default 200 if HZ_200
  935. default 250 if HZ_250
  936. default 300 if HZ_300
  937. default 500 if HZ_500
  938. default 1000
  939. config SCHED_HRTICK
  940. def_bool HIGH_RES_TIMERS
  941. config THUMB2_KERNEL
  942. bool "Compile the kernel in Thumb-2 mode" if !CPU_THUMBONLY
  943. depends on (CPU_V7 || CPU_V7M) && !CPU_V6 && !CPU_V6K
  944. default y if CPU_THUMBONLY
  945. select ARM_UNWIND
  946. help
  947. By enabling this option, the kernel will be compiled in
  948. Thumb-2 mode.
  949. If unsure, say N.
  950. config ARM_PATCH_IDIV
  951. bool "Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()"
  952. depends on CPU_32v7
  953. default y
  954. help
  955. The ARM compiler inserts calls to __aeabi_idiv() and
  956. __aeabi_uidiv() when it needs to perform division on signed
  957. and unsigned integers. Some v7 CPUs have support for the sdiv
  958. and udiv instructions that can be used to implement those
  959. functions.
  960. Enabling this option allows the kernel to modify itself to
  961. replace the first two instructions of these library functions
  962. with the sdiv or udiv plus "bx lr" instructions when the CPU
  963. it is running on supports them. Typically this will be faster
  964. and less power intensive than running the original library
  965. code to do integer division.
  966. config AEABI
  967. bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \
  968. !CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG
  969. default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K || CC_IS_CLANG
  970. help
  971. This option allows for the kernel to be compiled using the latest
  972. ARM ABI (aka EABI). This is only useful if you are using a user
  973. space environment that is also compiled with EABI.
  974. Since there are major incompatibilities between the legacy ABI and
  975. EABI, especially with regard to structure member alignment, this
  976. option also changes the kernel syscall calling convention to
  977. disambiguate both ABIs and allow for backward compatibility support
  978. (selected with CONFIG_OABI_COMPAT).
  979. config OABI_COMPAT
  980. bool "Allow old ABI binaries to run with this kernel (EXPERIMENTAL)"
  981. depends on AEABI && !THUMB2_KERNEL
  982. help
  983. This option preserves the old syscall interface along with the
  984. new (ARM EABI) one. It also provides a compatibility layer to
  985. intercept syscalls that have structure arguments which layout
  986. in memory differs between the legacy ABI and the new ARM EABI
  987. (only for non "thumb" binaries). This option adds a tiny
  988. overhead to all syscalls and produces a slightly larger kernel.
  989. The seccomp filter system will not be available when this is
  990. selected, since there is no way yet to sensibly distinguish
  991. between calling conventions during filtering.
  992. If you know you'll be using only pure EABI user space then you
  993. can say N here. If this option is not selected and you attempt
  994. to execute a legacy ABI binary then the result will be
  995. UNPREDICTABLE (in fact it can be predicted that it won't work
  996. at all). If in doubt say N.
  997. config ARCH_SELECT_MEMORY_MODEL
  998. def_bool y
  999. config ARCH_FLATMEM_ENABLE
  1000. def_bool !(ARCH_RPC || ARCH_SA1100)
  1001. config ARCH_SPARSEMEM_ENABLE
  1002. def_bool !ARCH_FOOTBRIDGE
  1003. select SPARSEMEM_STATIC if SPARSEMEM
  1004. config HIGHMEM
  1005. bool "High Memory Support"
  1006. depends on MMU
  1007. select KMAP_LOCAL
  1008. select KMAP_LOCAL_NON_LINEAR_PTE_ARRAY
  1009. help
  1010. The address space of ARM processors is only 4 Gigabytes large
  1011. and it has to accommodate user address space, kernel address
  1012. space as well as some memory mapped IO. That means that, if you
  1013. have a large amount of physical memory and/or IO, not all of the
  1014. memory can be "permanently mapped" by the kernel. The physical
  1015. memory that is not permanently mapped is called "high memory".
  1016. Depending on the selected kernel/user memory split, minimum
  1017. vmalloc space and actual amount of RAM, you may not need this
  1018. option which should result in a slightly faster kernel.
  1019. If unsure, say n.
  1020. config HIGHPTE
  1021. bool "Allocate 2nd-level pagetables from highmem" if EXPERT
  1022. depends on HIGHMEM && !PREEMPT_RT
  1023. default y
  1024. help
  1025. The VM uses one page of physical memory for each page table.
  1026. For systems with a lot of processes, this can use a lot of
  1027. precious low memory, eventually leading to low memory being
  1028. consumed by page tables. Setting this option will allow
  1029. user-space 2nd level page tables to reside in high memory.
  1030. config ARM_PAN
  1031. bool "Enable privileged no-access"
  1032. depends on MMU
  1033. default y
  1034. help
  1035. Increase kernel security by ensuring that normal kernel accesses
  1036. are unable to access userspace addresses. This can help prevent
  1037. use-after-free bugs becoming an exploitable privilege escalation
  1038. by ensuring that magic values (such as LIST_POISON) will always
  1039. fault when dereferenced.
  1040. The implementation uses CPU domains when !CONFIG_ARM_LPAE and
  1041. disabling of TTBR0 page table walks with CONFIG_ARM_LPAE.
  1042. config CPU_SW_DOMAIN_PAN
  1043. def_bool y
  1044. depends on ARM_PAN && !ARM_LPAE
  1045. help
  1046. Enable use of CPU domains to implement privileged no-access.
  1047. CPUs with low-vector mappings use a best-efforts implementation.
  1048. Their lower 1MB needs to remain accessible for the vectors, but
  1049. the remainder of userspace will become appropriately inaccessible.
  1050. config CPU_TTBR0_PAN
  1051. def_bool y
  1052. depends on ARM_PAN && ARM_LPAE
  1053. help
  1054. Enable privileged no-access by disabling TTBR0 page table walks when
  1055. running in kernel mode.
  1056. config HW_PERF_EVENTS
  1057. def_bool y
  1058. depends on ARM_PMU
  1059. config ARM_MODULE_PLTS
  1060. bool "Use PLTs to allow module memory to spill over into vmalloc area"
  1061. depends on MODULES
  1062. select KASAN_VMALLOC if KASAN
  1063. default y
  1064. help
  1065. Allocate PLTs when loading modules so that jumps and calls whose
  1066. targets are too far away for their relative offsets to be encoded
  1067. in the instructions themselves can be bounced via veneers in the
  1068. module's PLT. This allows modules to be allocated in the generic
  1069. vmalloc area after the dedicated module memory area has been
  1070. exhausted. The modules will use slightly more memory, but after
  1071. rounding up to page size, the actual memory footprint is usually
  1072. the same.
  1073. Disabling this is usually safe for small single-platform
  1074. configurations. If unsure, say y.
  1075. config ARCH_FORCE_MAX_ORDER
  1076. int "Order of maximal physically contiguous allocations"
  1077. default "11" if SOC_AM33XX
  1078. default "8" if SA1111
  1079. default "10"
  1080. help
  1081. The kernel page allocator limits the size of maximal physically
  1082. contiguous allocations. The limit is called MAX_PAGE_ORDER and it
  1083. defines the maximal power of two of number of pages that can be
  1084. allocated as a single contiguous block. This option allows
  1085. overriding the default setting when ability to allocate very
  1086. large blocks of physically contiguous memory is required.
  1087. Don't change if unsure.
  1088. config ALIGNMENT_TRAP
  1089. def_bool CPU_CP15_MMU
  1090. select HAVE_PROC_CPU if PROC_FS
  1091. help
  1092. ARM processors cannot fetch/store information which is not
  1093. naturally aligned on the bus, i.e., a 4 byte fetch must start at an
  1094. address divisible by 4. On 32-bit ARM processors, these non-aligned
  1095. fetch/store instructions will be emulated in software if you say
  1096. here, which has a severe performance impact. This is necessary for
  1097. correct operation of some network protocols. With an IP-only
  1098. configuration it is safe to say N, otherwise say Y.
  1099. config UACCESS_WITH_MEMCPY
  1100. bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"
  1101. depends on MMU
  1102. default y if CPU_FEROCEON
  1103. help
  1104. Implement faster copy_to_user and clear_user methods for CPU
  1105. cores where a 8-word STM instruction give significantly higher
  1106. memory write throughput than a sequence of individual 32bit stores.
  1107. A possible side effect is a slight increase in scheduling latency
  1108. between threads sharing the same address space if they invoke
  1109. such copy operations with large buffers.
  1110. However, if the CPU data cache is using a write-allocate mode,
  1111. this option is unlikely to provide any performance gain.
  1112. config PARAVIRT
  1113. bool "Enable paravirtualization code"
  1114. select HAVE_PV_STEAL_CLOCK_GEN
  1115. help
  1116. This changes the kernel so it can modify itself when it is run
  1117. under a hypervisor, potentially improving performance significantly
  1118. over full virtualization.
  1119. config PARAVIRT_TIME_ACCOUNTING
  1120. bool "Paravirtual steal time accounting"
  1121. select PARAVIRT
  1122. help
  1123. Select this option to enable fine granularity task steal time
  1124. accounting. Time spent executing other tasks in parallel with
  1125. the current vCPU is discounted from the vCPU power. To account for
  1126. that, there can be a small performance impact.
  1127. If in doubt, say N here.
  1128. config XEN_DOM0
  1129. def_bool y
  1130. depends on XEN
  1131. config XEN
  1132. bool "Xen guest support on ARM"
  1133. depends on ARM && AEABI && OF
  1134. depends on CPU_V7 && !CPU_V6
  1135. depends on !GENERIC_ATOMIC64
  1136. depends on MMU
  1137. select ARCH_DMA_ADDR_T_64BIT
  1138. select ARM_PSCI
  1139. select SWIOTLB
  1140. select SWIOTLB_XEN
  1141. select PARAVIRT
  1142. help
  1143. Say Y if you want to run Linux in a Virtual Machine on Xen on ARM.
  1144. config CC_HAVE_STACKPROTECTOR_TLS
  1145. def_bool $(cc-option,-mtp=cp15 -mstack-protector-guard=tls -mstack-protector-guard-offset=0)
  1146. config STACKPROTECTOR_PER_TASK
  1147. bool "Use a unique stack canary value for each task"
  1148. depends on STACKPROTECTOR && CURRENT_POINTER_IN_TPIDRURO && !XIP_DEFLATED_DATA
  1149. depends on CC_HAVE_STACKPROTECTOR_TLS
  1150. default y
  1151. help
  1152. Due to the fact that GCC uses an ordinary symbol reference from
  1153. which to load the value of the stack canary, this value can only
  1154. change at reboot time on SMP systems, and all tasks running in the
  1155. kernel's address space are forced to use the same canary value for
  1156. the entire duration that the system is up.
  1157. Enable this option to switch to a different method that uses a
  1158. different canary value for each task.
  1159. endmenu
  1160. menu "Boot options"
  1161. config USE_OF
  1162. bool "Flattened Device Tree support"
  1163. select IRQ_DOMAIN
  1164. select OF
  1165. help
  1166. Include support for flattened device tree machine descriptions.
  1167. config ARCH_WANT_FLAT_DTB_INSTALL
  1168. def_bool y
  1169. config ATAGS
  1170. bool "Support for the traditional ATAGS boot data passing"
  1171. default y
  1172. help
  1173. This is the traditional way of passing data to the kernel at boot
  1174. time. If you are solely relying on the flattened device tree (or
  1175. the ARM_ATAG_DTB_COMPAT option) then you may unselect this option
  1176. to remove ATAGS support from your kernel binary.
  1177. config DEPRECATED_PARAM_STRUCT
  1178. bool "Provide old way to pass kernel parameters"
  1179. depends on ATAGS
  1180. help
  1181. This was deprecated in 2001 and announced to live on for 5 years.
  1182. Some old boot loaders still use this way.
  1183. # Compressed boot loader in ROM. Yes, we really want to ask about
  1184. # TEXT and BSS so we preserve their values in the config files.
  1185. config ZBOOT_ROM_TEXT
  1186. hex "Compressed ROM boot loader base address"
  1187. default 0x0
  1188. help
  1189. The physical address at which the ROM-able zImage is to be
  1190. placed in the target. Platforms which normally make use of
  1191. ROM-able zImage formats normally set this to a suitable
  1192. value in their defconfig file.
  1193. If ZBOOT_ROM is not enabled, this has no effect.
  1194. config ZBOOT_ROM_BSS
  1195. hex "Compressed ROM boot loader BSS address"
  1196. default 0x0
  1197. help
  1198. The base address of an area of read/write memory in the target
  1199. for the ROM-able zImage which must be available while the
  1200. decompressor is running. It must be large enough to hold the
  1201. entire decompressed kernel plus an additional 128 KiB.
  1202. Platforms which normally make use of ROM-able zImage formats
  1203. normally set this to a suitable value in their defconfig file.
  1204. If ZBOOT_ROM is not enabled, this has no effect.
  1205. config ZBOOT_ROM
  1206. bool "Compressed boot loader in ROM/flash"
  1207. depends on ZBOOT_ROM_TEXT != ZBOOT_ROM_BSS
  1208. depends on !ARM_APPENDED_DTB && !XIP_KERNEL && !AUTO_ZRELADDR
  1209. help
  1210. Say Y here if you intend to execute your compressed kernel image
  1211. (zImage) directly from ROM or flash. If unsure, say N.
  1212. config ARM_APPENDED_DTB
  1213. bool "Use appended device tree blob to zImage (EXPERIMENTAL)"
  1214. depends on OF
  1215. help
  1216. With this option, the boot code will look for a device tree binary
  1217. (DTB) appended to zImage
  1218. (e.g. cat zImage <filename>.dtb > zImage_w_dtb).
  1219. This is meant as a backward compatibility convenience for those
  1220. systems with a bootloader that can't be upgraded to accommodate
  1221. the documented boot protocol using a device tree.
  1222. Beware that there is very little in terms of protection against
  1223. this option being confused by leftover garbage in memory that might
  1224. look like a DTB header after a reboot if no actual DTB is appended
  1225. to zImage. Do not leave this option active in a production kernel
  1226. if you don't intend to always append a DTB. Proper passing of the
  1227. location into r2 of a bootloader provided DTB is always preferable
  1228. to this option.
  1229. config ARM_ATAG_DTB_COMPAT
  1230. bool "Supplement the appended DTB with traditional ATAG information"
  1231. depends on ARM_APPENDED_DTB
  1232. help
  1233. Some old bootloaders can't be updated to a DTB capable one, yet
  1234. they provide ATAGs with memory configuration, the ramdisk address,
  1235. the kernel cmdline string, etc. Such information is dynamically
  1236. provided by the bootloader and can't always be stored in a static
  1237. DTB. To allow a device tree enabled kernel to be used with such
  1238. bootloaders, this option allows zImage to extract the information
  1239. from the ATAG list and store it at run time into the appended DTB.
  1240. choice
  1241. prompt "Kernel command line type"
  1242. depends on ARM_ATAG_DTB_COMPAT
  1243. default ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
  1244. config ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
  1245. bool "Use bootloader kernel arguments if available"
  1246. help
  1247. Uses the command-line options passed by the boot loader instead of
  1248. the device tree bootargs property. If the boot loader doesn't provide
  1249. any, the device tree bootargs property will be used.
  1250. config ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND
  1251. bool "Extend with bootloader kernel arguments"
  1252. help
  1253. The command-line arguments provided by the boot loader will be
  1254. appended to the the device tree bootargs property.
  1255. endchoice
  1256. config CMDLINE
  1257. string "Default kernel command string"
  1258. default ""
  1259. help
  1260. On some architectures (e.g. CATS), there is currently no way
  1261. for the boot loader to pass arguments to the kernel. For these
  1262. architectures, you should supply some command-line options at build
  1263. time by entering them here. As a minimum, you should specify the
  1264. memory size and the root device (e.g., mem=64M root=/dev/nfs).
  1265. choice
  1266. prompt "Kernel command line type"
  1267. depends on CMDLINE != ""
  1268. default CMDLINE_FROM_BOOTLOADER
  1269. config CMDLINE_FROM_BOOTLOADER
  1270. bool "Use bootloader kernel arguments if available"
  1271. help
  1272. Uses the command-line options passed by the boot loader. If
  1273. the boot loader doesn't provide any, the default kernel command
  1274. string provided in CMDLINE will be used.
  1275. config CMDLINE_EXTEND
  1276. bool "Extend bootloader kernel arguments"
  1277. help
  1278. The command-line arguments provided by the boot loader will be
  1279. appended to the default kernel command string.
  1280. config CMDLINE_FORCE
  1281. bool "Always use the default kernel command string"
  1282. help
  1283. Always use the default kernel command string, even if the boot
  1284. loader passes other arguments to the kernel.
  1285. This is useful if you cannot or don't want to change the
  1286. command-line options your boot loader passes to the kernel.
  1287. endchoice
  1288. config XIP_KERNEL
  1289. bool "Kernel Execute-In-Place from ROM"
  1290. depends on !ARM_LPAE && !ARCH_MULTIPLATFORM
  1291. depends on !ARM_PATCH_IDIV && !ARM_PATCH_PHYS_VIRT && !SMP_ON_UP
  1292. help
  1293. Execute-In-Place allows the kernel to run from non-volatile storage
  1294. directly addressable by the CPU, such as NOR flash. This saves RAM
  1295. space since the text section of the kernel is not loaded from flash
  1296. to RAM. Read-write sections, such as the data section and stack,
  1297. are still copied to RAM. The XIP kernel is not compressed since
  1298. it has to run directly from flash, so it will take more space to
  1299. store it. The flash address used to link the kernel object files,
  1300. and for storing it, is configuration dependent. Therefore, if you
  1301. say Y here, you must know the proper physical address where to
  1302. store the kernel image depending on your own flash memory usage.
  1303. Also note that the make target becomes "make xipImage" rather than
  1304. "make zImage" or "make Image". The final kernel binary to put in
  1305. ROM memory will be arch/arm/boot/xipImage.
  1306. If unsure, say N.
  1307. config XIP_PHYS_ADDR
  1308. hex "XIP Kernel Physical Location"
  1309. depends on XIP_KERNEL
  1310. default "0x00080000"
  1311. help
  1312. This is the physical address in your flash memory the kernel will
  1313. be linked for and stored to. This address is dependent on your
  1314. own flash usage.
  1315. config XIP_DEFLATED_DATA
  1316. bool "Store kernel .data section compressed in ROM"
  1317. depends on XIP_KERNEL
  1318. select ZLIB_INFLATE
  1319. help
  1320. Before the kernel is actually executed, its .data section has to be
  1321. copied to RAM from ROM. This option allows for storing that data
  1322. in compressed form and decompressed to RAM rather than merely being
  1323. copied, saving some precious ROM space. A possible drawback is a
  1324. slightly longer boot delay.
  1325. config ARCH_SUPPORTS_KEXEC
  1326. def_bool (!SMP || PM_SLEEP_SMP) && MMU
  1327. config ATAGS_PROC
  1328. bool "Export atags in procfs"
  1329. depends on ATAGS && KEXEC
  1330. default y
  1331. help
  1332. Should the atags used to boot the kernel be exported in an "atags"
  1333. file in procfs. Useful with kexec.
  1334. config ARCH_SUPPORTS_CRASH_DUMP
  1335. def_bool y
  1336. config ARCH_DEFAULT_CRASH_DUMP
  1337. def_bool y
  1338. config AUTO_ZRELADDR
  1339. bool "Auto calculation of the decompressed kernel image address" if !ARCH_MULTIPLATFORM
  1340. default !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
  1341. help
  1342. ZRELADDR is the physical address where the decompressed kernel
  1343. image will be placed. If AUTO_ZRELADDR is selected, the address
  1344. will be determined at run-time, either by masking the current IP
  1345. with 0xf8000000, or, if invalid, from the DTB passed in r2.
  1346. This assumes the zImage being placed in the first 128MB from
  1347. start of memory.
  1348. config EFI_STUB
  1349. bool
  1350. config EFI
  1351. bool "UEFI runtime support"
  1352. depends on OF && !CPU_BIG_ENDIAN && MMU && AUTO_ZRELADDR && !XIP_KERNEL
  1353. select UCS2_STRING
  1354. select EFI_PARAMS_FROM_FDT
  1355. select EFI_STUB
  1356. select EFI_GENERIC_STUB
  1357. select EFI_RUNTIME_WRAPPERS
  1358. help
  1359. This option provides support for runtime services provided
  1360. by UEFI firmware (such as non-volatile variables, realtime
  1361. clock, and platform reset). A UEFI stub is also provided to
  1362. allow the kernel to be booted as an EFI application. This
  1363. is only useful for kernels that may run on systems that have
  1364. UEFI firmware.
  1365. config DMI
  1366. bool "Enable support for SMBIOS (DMI) tables"
  1367. depends on EFI
  1368. default y
  1369. help
  1370. This enables SMBIOS/DMI feature for systems.
  1371. This option is only useful on systems that have UEFI firmware.
  1372. However, even with this option, the resultant kernel should
  1373. continue to boot on existing non-UEFI platforms.
  1374. NOTE: This does *NOT* enable or encourage the use of DMI quirks,
  1375. i.e., the the practice of identifying the platform via DMI to
  1376. decide whether certain workarounds for buggy hardware and/or
  1377. firmware need to be enabled. This would require the DMI subsystem
  1378. to be enabled much earlier than we do on ARM, which is non-trivial.
  1379. endmenu
  1380. menu "CPU Power Management"
  1381. source "drivers/cpufreq/Kconfig"
  1382. source "drivers/cpuidle/Kconfig"
  1383. endmenu
  1384. menu "Floating point emulation"
  1385. comment "At least one emulation must be selected"
  1386. config FPE_NWFPE
  1387. bool "NWFPE math emulation"
  1388. depends on (!AEABI || OABI_COMPAT) && !THUMB2_KERNEL
  1389. help
  1390. Say Y to include the NWFPE floating point emulator in the kernel.
  1391. This is necessary to run most binaries. Linux does not currently
  1392. support floating point hardware so you need to say Y here even if
  1393. your machine has an FPA or floating point co-processor podule.
  1394. You may say N here if you are going to load the Acorn FPEmulator
  1395. early in the bootup.
  1396. config FPE_NWFPE_XP
  1397. bool "Support extended precision"
  1398. depends on FPE_NWFPE
  1399. help
  1400. Say Y to include 80-bit support in the kernel floating-point
  1401. emulator. Otherwise, only 32 and 64-bit support is compiled in.
  1402. Note that gcc does not generate 80-bit operations by default,
  1403. so in most cases this option only enlarges the size of the
  1404. floating point emulator without any good reason.
  1405. You almost surely want to say N here.
  1406. config FPE_FASTFPE
  1407. bool "FastFPE math emulation (EXPERIMENTAL)"
  1408. depends on (!AEABI || OABI_COMPAT) && !CPU_32v3
  1409. help
  1410. Say Y here to include the FAST floating point emulator in the kernel.
  1411. This is an experimental much faster emulator which now also has full
  1412. precision for the mantissa. It does not support any exceptions.
  1413. It is very simple, and approximately 3-6 times faster than NWFPE.
  1414. It should be sufficient for most programs. It may be not suitable
  1415. for scientific calculations, but you have to check this for yourself.
  1416. If you do not feel you need a faster FP emulation you should better
  1417. choose NWFPE.
  1418. config VFP
  1419. bool "VFP-format floating point maths"
  1420. depends on CPU_V6 || CPU_V6K || CPU_ARM926T || CPU_V7 || CPU_FEROCEON
  1421. help
  1422. Say Y to include VFP support code in the kernel. This is needed
  1423. if your hardware includes a VFP unit.
  1424. Please see <file:Documentation/arch/arm/vfp/release-notes.rst> for
  1425. release notes and additional status information.
  1426. Say N if your target does not have VFP hardware.
  1427. config VFPv3
  1428. bool
  1429. depends on VFP
  1430. default y if CPU_V7
  1431. config NEON
  1432. bool "Advanced SIMD (NEON) Extension support"
  1433. depends on VFPv3 && CPU_V7
  1434. help
  1435. Say Y to include support code for NEON, the ARMv7 Advanced SIMD
  1436. Extension.
  1437. config KERNEL_MODE_NEON
  1438. bool "Support for NEON in kernel mode"
  1439. depends on NEON && AEABI
  1440. help
  1441. Say Y to include support for NEON in kernel mode.
  1442. endmenu
  1443. config ARCH_CC_CAN_LINK
  1444. bool
  1445. default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN
  1446. default $(cc_can_link_user,-mbig-endian -mbe8) if CPU_ENDIAN_BE8
  1447. default $(cc_can_link_user,-mbig-endian -mbe32) if CPU_ENDIAN_BE32
  1448. config ARCH_USERFLAGS
  1449. string
  1450. default "-mlittle-endian" if CPU_LITTLE_ENDIAN
  1451. default "-mbig-endian -mbe8" if CPU_ENDIAN_BE8
  1452. default "-mbig-endian -mbe32" if CPU_ENDIAN_BE32
  1453. menu "Power management options"
  1454. source "kernel/power/Kconfig"
  1455. config ARCH_SUSPEND_POSSIBLE
  1456. depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
  1457. CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK
  1458. def_bool y
  1459. config ARM_CPU_SUSPEND
  1460. def_bool PM_SLEEP || BL_SWITCHER || ARM_PSCI_FW
  1461. depends on ARCH_SUSPEND_POSSIBLE
  1462. config ARCH_HIBERNATION_POSSIBLE
  1463. bool
  1464. depends on MMU
  1465. default y if ARCH_SUSPEND_POSSIBLE
  1466. endmenu