Kconfig 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044
  1. config ARM64
  2. def_bool y
  3. select ACPI_CCA_REQUIRED if ACPI
  4. select ACPI_GENERIC_GSI if ACPI
  5. select ACPI_REDUCED_HARDWARE_ONLY if ACPI
  6. select ARCH_HAS_DEVMEM_IS_ALLOWED
  7. select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
  8. select ARCH_HAS_ELF_RANDOMIZE
  9. select ARCH_HAS_GCOV_PROFILE_ALL
  10. select ARCH_HAS_SG_CHAIN
  11. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  12. select ARCH_USE_CMPXCHG_LOCKREF
  13. select ARCH_SUPPORTS_ATOMIC_RMW
  14. select ARCH_SUPPORTS_NUMA_BALANCING
  15. select ARCH_WANT_OPTIONAL_GPIOLIB
  16. select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
  17. select ARCH_WANT_FRAME_POINTERS
  18. select ARCH_HAS_UBSAN_SANITIZE_ALL
  19. select ARM_AMBA
  20. select ARM_ARCH_TIMER
  21. select ARM_GIC
  22. select AUDIT_ARCH_COMPAT_GENERIC
  23. select ARM_GIC_V2M if PCI_MSI
  24. select ARM_GIC_V3
  25. select ARM_GIC_V3_ITS if PCI_MSI
  26. select ARM_PSCI_FW
  27. select BUILDTIME_EXTABLE_SORT
  28. select CLONE_BACKWARDS
  29. select COMMON_CLK
  30. select CPU_PM if (SUSPEND || CPU_IDLE)
  31. select DCACHE_WORD_ACCESS
  32. select EDAC_SUPPORT
  33. select FRAME_POINTER
  34. select GENERIC_ALLOCATOR
  35. select GENERIC_CLOCKEVENTS
  36. select GENERIC_CLOCKEVENTS_BROADCAST
  37. select GENERIC_CPU_AUTOPROBE
  38. select GENERIC_EARLY_IOREMAP
  39. select GENERIC_IDLE_POLL_SETUP
  40. select GENERIC_IRQ_PROBE
  41. select GENERIC_IRQ_SHOW
  42. select GENERIC_IRQ_SHOW_LEVEL
  43. select GENERIC_PCI_IOMAP
  44. select GENERIC_SCHED_CLOCK
  45. select GENERIC_SMP_IDLE_THREAD
  46. select GENERIC_STRNCPY_FROM_USER
  47. select GENERIC_STRNLEN_USER
  48. select GENERIC_TIME_VSYSCALL
  49. select HANDLE_DOMAIN_IRQ
  50. select HARDIRQS_SW_RESEND
  51. select HAVE_ALIGNED_STRUCT_PAGE if SLUB
  52. select HAVE_ARCH_AUDITSYSCALL
  53. select HAVE_ARCH_BITREVERSE
  54. select HAVE_ARCH_HUGE_VMAP
  55. select HAVE_ARCH_JUMP_LABEL
  56. select HAVE_ARCH_KASAN if SPARSEMEM_VMEMMAP && !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
  57. select HAVE_ARCH_KGDB
  58. select HAVE_ARCH_MMAP_RND_BITS
  59. select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
  60. select HAVE_ARCH_SECCOMP_FILTER
  61. select HAVE_ARCH_TRACEHOOK
  62. select HAVE_ARCH_TRANSPARENT_HUGEPAGE
  63. select HAVE_ARM_SMCCC
  64. select HAVE_EBPF_JIT
  65. select HAVE_C_RECORDMCOUNT
  66. select HAVE_CC_STACKPROTECTOR
  67. select HAVE_CMPXCHG_DOUBLE
  68. select HAVE_CMPXCHG_LOCAL
  69. select HAVE_CONTEXT_TRACKING
  70. select HAVE_DEBUG_BUGVERBOSE
  71. select HAVE_DEBUG_KMEMLEAK
  72. select HAVE_DMA_API_DEBUG
  73. select HAVE_DMA_CONTIGUOUS
  74. select HAVE_DYNAMIC_FTRACE
  75. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  76. select HAVE_FTRACE_MCOUNT_RECORD
  77. select HAVE_FUNCTION_TRACER
  78. select HAVE_FUNCTION_GRAPH_TRACER
  79. select HAVE_GENERIC_DMA_COHERENT
  80. select HAVE_HW_BREAKPOINT if PERF_EVENTS
  81. select HAVE_IRQ_TIME_ACCOUNTING
  82. select HAVE_MEMBLOCK
  83. select HAVE_MEMBLOCK_NODE_MAP if NUMA
  84. select HAVE_PATA_PLATFORM
  85. select HAVE_PERF_EVENTS
  86. select HAVE_PERF_REGS
  87. select HAVE_PERF_USER_STACK_DUMP
  88. select HAVE_RCU_TABLE_FREE
  89. select HAVE_SYSCALL_TRACEPOINTS
  90. select IOMMU_DMA if IOMMU_SUPPORT
  91. select IRQ_DOMAIN
  92. select IRQ_FORCED_THREADING
  93. select MODULES_USE_ELF_RELA
  94. select NO_BOOTMEM
  95. select OF
  96. select OF_EARLY_FLATTREE
  97. select OF_NUMA if NUMA && OF
  98. select OF_RESERVED_MEM
  99. select PERF_USE_VMALLOC
  100. select POWER_RESET
  101. select POWER_SUPPLY
  102. select SPARSE_IRQ
  103. select SYSCTL_EXCEPTION_TRACE
  104. help
  105. ARM 64-bit (AArch64) Linux support.
  106. config 64BIT
  107. def_bool y
  108. config ARCH_PHYS_ADDR_T_64BIT
  109. def_bool y
  110. config MMU
  111. def_bool y
  112. config ARM64_PAGE_SHIFT
  113. int
  114. default 16 if ARM64_64K_PAGES
  115. default 14 if ARM64_16K_PAGES
  116. default 12
  117. config ARM64_CONT_SHIFT
  118. int
  119. default 5 if ARM64_64K_PAGES
  120. default 7 if ARM64_16K_PAGES
  121. default 4
  122. config ARCH_MMAP_RND_BITS_MIN
  123. default 14 if ARM64_64K_PAGES
  124. default 16 if ARM64_16K_PAGES
  125. default 18
  126. # max bits determined by the following formula:
  127. # VA_BITS - PAGE_SHIFT - 3
  128. config ARCH_MMAP_RND_BITS_MAX
  129. default 19 if ARM64_VA_BITS=36
  130. default 24 if ARM64_VA_BITS=39
  131. default 27 if ARM64_VA_BITS=42
  132. default 30 if ARM64_VA_BITS=47
  133. default 29 if ARM64_VA_BITS=48 && ARM64_64K_PAGES
  134. default 31 if ARM64_VA_BITS=48 && ARM64_16K_PAGES
  135. default 33 if ARM64_VA_BITS=48
  136. default 14 if ARM64_64K_PAGES
  137. default 16 if ARM64_16K_PAGES
  138. default 18
  139. config ARCH_MMAP_RND_COMPAT_BITS_MIN
  140. default 7 if ARM64_64K_PAGES
  141. default 9 if ARM64_16K_PAGES
  142. default 11
  143. config ARCH_MMAP_RND_COMPAT_BITS_MAX
  144. default 16
  145. config NO_IOPORT_MAP
  146. def_bool y if !PCI
  147. config STACKTRACE_SUPPORT
  148. def_bool y
  149. config ILLEGAL_POINTER_VALUE
  150. hex
  151. default 0xdead000000000000
  152. config LOCKDEP_SUPPORT
  153. def_bool y
  154. config TRACE_IRQFLAGS_SUPPORT
  155. def_bool y
  156. config RWSEM_XCHGADD_ALGORITHM
  157. def_bool y
  158. config GENERIC_BUG
  159. def_bool y
  160. depends on BUG
  161. config GENERIC_BUG_RELATIVE_POINTERS
  162. def_bool y
  163. depends on GENERIC_BUG
  164. config GENERIC_HWEIGHT
  165. def_bool y
  166. config GENERIC_CSUM
  167. def_bool y
  168. config GENERIC_CALIBRATE_DELAY
  169. def_bool y
  170. config ZONE_DMA
  171. def_bool y
  172. config HAVE_GENERIC_RCU_GUP
  173. def_bool y
  174. config ARCH_DMA_ADDR_T_64BIT
  175. def_bool y
  176. config NEED_DMA_MAP_STATE
  177. def_bool y
  178. config NEED_SG_DMA_LENGTH
  179. def_bool y
  180. config SMP
  181. def_bool y
  182. config SWIOTLB
  183. def_bool y
  184. config IOMMU_HELPER
  185. def_bool SWIOTLB
  186. config KERNEL_MODE_NEON
  187. def_bool y
  188. config FIX_EARLYCON_MEM
  189. def_bool y
  190. config PGTABLE_LEVELS
  191. int
  192. default 2 if ARM64_16K_PAGES && ARM64_VA_BITS_36
  193. default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42
  194. default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48
  195. default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39
  196. default 3 if ARM64_16K_PAGES && ARM64_VA_BITS_47
  197. default 4 if !ARM64_64K_PAGES && ARM64_VA_BITS_48
  198. source "init/Kconfig"
  199. source "kernel/Kconfig.freezer"
  200. source "arch/arm64/Kconfig.platforms"
  201. menu "Bus support"
  202. config PCI
  203. bool "PCI support"
  204. help
  205. This feature enables support for PCI bus system. If you say Y
  206. here, the kernel will include drivers and infrastructure code
  207. to support PCI bus devices.
  208. config PCI_DOMAINS
  209. def_bool PCI
  210. config PCI_DOMAINS_GENERIC
  211. def_bool PCI
  212. config PCI_SYSCALL
  213. def_bool PCI
  214. source "drivers/pci/Kconfig"
  215. endmenu
  216. menu "Kernel Features"
  217. menu "ARM errata workarounds via the alternatives framework"
  218. config ARM64_ERRATUM_826319
  219. bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
  220. default y
  221. help
  222. This option adds an alternative code sequence to work around ARM
  223. erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
  224. AXI master interface and an L2 cache.
  225. If a Cortex-A53 uses an AMBA AXI4 ACE interface to other processors
  226. and is unable to accept a certain write via this interface, it will
  227. not progress on read data presented on the read data channel and the
  228. system can deadlock.
  229. The workaround promotes data cache clean instructions to
  230. data cache clean-and-invalidate.
  231. Please note that this does not necessarily enable the workaround,
  232. as it depends on the alternative framework, which will only patch
  233. the kernel if an affected CPU is detected.
  234. If unsure, say Y.
  235. config ARM64_ERRATUM_827319
  236. bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
  237. default y
  238. help
  239. This option adds an alternative code sequence to work around ARM
  240. erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
  241. master interface and an L2 cache.
  242. Under certain conditions this erratum can cause a clean line eviction
  243. to occur at the same time as another transaction to the same address
  244. on the AMBA 5 CHI interface, which can cause data corruption if the
  245. interconnect reorders the two transactions.
  246. The workaround promotes data cache clean instructions to
  247. data cache clean-and-invalidate.
  248. Please note that this does not necessarily enable the workaround,
  249. as it depends on the alternative framework, which will only patch
  250. the kernel if an affected CPU is detected.
  251. If unsure, say Y.
  252. config ARM64_ERRATUM_824069
  253. bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
  254. default y
  255. help
  256. This option adds an alternative code sequence to work around ARM
  257. erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
  258. to a coherent interconnect.
  259. If a Cortex-A53 processor is executing a store or prefetch for
  260. write instruction at the same time as a processor in another
  261. cluster is executing a cache maintenance operation to the same
  262. address, then this erratum might cause a clean cache line to be
  263. incorrectly marked as dirty.
  264. The workaround promotes data cache clean instructions to
  265. data cache clean-and-invalidate.
  266. Please note that this option does not necessarily enable the
  267. workaround, as it depends on the alternative framework, which will
  268. only patch the kernel if an affected CPU is detected.
  269. If unsure, say Y.
  270. config ARM64_ERRATUM_819472
  271. bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
  272. default y
  273. help
  274. This option adds an alternative code sequence to work around ARM
  275. erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
  276. present when it is connected to a coherent interconnect.
  277. If the processor is executing a load and store exclusive sequence at
  278. the same time as a processor in another cluster is executing a cache
  279. maintenance operation to the same address, then this erratum might
  280. cause data corruption.
  281. The workaround promotes data cache clean instructions to
  282. data cache clean-and-invalidate.
  283. Please note that this does not necessarily enable the workaround,
  284. as it depends on the alternative framework, which will only patch
  285. the kernel if an affected CPU is detected.
  286. If unsure, say Y.
  287. config ARM64_ERRATUM_832075
  288. bool "Cortex-A57: 832075: possible deadlock on mixing exclusive memory accesses with device loads"
  289. default y
  290. help
  291. This option adds an alternative code sequence to work around ARM
  292. erratum 832075 on Cortex-A57 parts up to r1p2.
  293. Affected Cortex-A57 parts might deadlock when exclusive load/store
  294. instructions to Write-Back memory are mixed with Device loads.
  295. The workaround is to promote device loads to use Load-Acquire
  296. semantics.
  297. Please note that this does not necessarily enable the workaround,
  298. as it depends on the alternative framework, which will only patch
  299. the kernel if an affected CPU is detected.
  300. If unsure, say Y.
  301. config ARM64_ERRATUM_834220
  302. bool "Cortex-A57: 834220: Stage 2 translation fault might be incorrectly reported in presence of a Stage 1 fault"
  303. depends on KVM
  304. default y
  305. help
  306. This option adds an alternative code sequence to work around ARM
  307. erratum 834220 on Cortex-A57 parts up to r1p2.
  308. Affected Cortex-A57 parts might report a Stage 2 translation
  309. fault as the result of a Stage 1 fault for load crossing a
  310. page boundary when there is a permission or device memory
  311. alignment fault at Stage 1 and a translation fault at Stage 2.
  312. The workaround is to verify that the Stage 1 translation
  313. doesn't generate a fault before handling the Stage 2 fault.
  314. Please note that this does not necessarily enable the workaround,
  315. as it depends on the alternative framework, which will only patch
  316. the kernel if an affected CPU is detected.
  317. If unsure, say Y.
  318. config ARM64_ERRATUM_845719
  319. bool "Cortex-A53: 845719: a load might read incorrect data"
  320. depends on COMPAT
  321. default y
  322. help
  323. This option adds an alternative code sequence to work around ARM
  324. erratum 845719 on Cortex-A53 parts up to r0p4.
  325. When running a compat (AArch32) userspace on an affected Cortex-A53
  326. part, a load at EL0 from a virtual address that matches the bottom 32
  327. bits of the virtual address used by a recent load at (AArch64) EL1
  328. might return incorrect data.
  329. The workaround is to write the contextidr_el1 register on exception
  330. return to a 32-bit task.
  331. Please note that this does not necessarily enable the workaround,
  332. as it depends on the alternative framework, which will only patch
  333. the kernel if an affected CPU is detected.
  334. If unsure, say Y.
  335. config ARM64_ERRATUM_843419
  336. bool "Cortex-A53: 843419: A load or store might access an incorrect address"
  337. depends on MODULES
  338. default y
  339. select ARM64_MODULE_CMODEL_LARGE
  340. help
  341. This option builds kernel modules using the large memory model in
  342. order to avoid the use of the ADRP instruction, which can cause
  343. a subsequent memory access to use an incorrect address on Cortex-A53
  344. parts up to r0p4.
  345. Note that the kernel itself must be linked with a version of ld
  346. which fixes potentially affected ADRP instructions through the
  347. use of veneers.
  348. If unsure, say Y.
  349. config CAVIUM_ERRATUM_22375
  350. bool "Cavium erratum 22375, 24313"
  351. default y
  352. help
  353. Enable workaround for erratum 22375, 24313.
  354. This implements two gicv3-its errata workarounds for ThunderX. Both
  355. with small impact affecting only ITS table allocation.
  356. erratum 22375: only alloc 8MB table size
  357. erratum 24313: ignore memory access type
  358. The fixes are in ITS initialization and basically ignore memory access
  359. type and table size provided by the TYPER and BASER registers.
  360. If unsure, say Y.
  361. config CAVIUM_ERRATUM_23144
  362. bool "Cavium erratum 23144: ITS SYNC hang on dual socket system"
  363. depends on NUMA
  364. default y
  365. help
  366. ITS SYNC command hang for cross node io and collections/cpu mapping.
  367. If unsure, say Y.
  368. config CAVIUM_ERRATUM_23154
  369. bool "Cavium erratum 23154: Access to ICC_IAR1_EL1 is not sync'ed"
  370. default y
  371. help
  372. The gicv3 of ThunderX requires a modified version for
  373. reading the IAR status to ensure data synchronization
  374. (access to icc_iar1_el1 is not sync'ed before and after).
  375. If unsure, say Y.
  376. config CAVIUM_ERRATUM_27456
  377. bool "Cavium erratum 27456: Broadcast TLBI instructions may cause icache corruption"
  378. default y
  379. help
  380. On ThunderX T88 pass 1.x through 2.1 parts, broadcast TLBI
  381. instructions may cause the icache to become corrupted if it
  382. contains data for a non-current ASID. The fix is to
  383. invalidate the icache when changing the mm context.
  384. If unsure, say Y.
  385. endmenu
  386. choice
  387. prompt "Page size"
  388. default ARM64_4K_PAGES
  389. help
  390. Page size (translation granule) configuration.
  391. config ARM64_4K_PAGES
  392. bool "4KB"
  393. help
  394. This feature enables 4KB pages support.
  395. config ARM64_16K_PAGES
  396. bool "16KB"
  397. help
  398. The system will use 16KB pages support. AArch32 emulation
  399. requires applications compiled with 16K (or a multiple of 16K)
  400. aligned segments.
  401. config ARM64_64K_PAGES
  402. bool "64KB"
  403. help
  404. This feature enables 64KB pages support (4KB by default)
  405. allowing only two levels of page tables and faster TLB
  406. look-up. AArch32 emulation requires applications compiled
  407. with 64K aligned segments.
  408. endchoice
  409. choice
  410. prompt "Virtual address space size"
  411. default ARM64_VA_BITS_39 if ARM64_4K_PAGES
  412. default ARM64_VA_BITS_47 if ARM64_16K_PAGES
  413. default ARM64_VA_BITS_42 if ARM64_64K_PAGES
  414. help
  415. Allows choosing one of multiple possible virtual address
  416. space sizes. The level of translation table is determined by
  417. a combination of page size and virtual address space size.
  418. config ARM64_VA_BITS_36
  419. bool "36-bit" if EXPERT
  420. depends on ARM64_16K_PAGES
  421. config ARM64_VA_BITS_39
  422. bool "39-bit"
  423. depends on ARM64_4K_PAGES
  424. config ARM64_VA_BITS_42
  425. bool "42-bit"
  426. depends on ARM64_64K_PAGES
  427. config ARM64_VA_BITS_47
  428. bool "47-bit"
  429. depends on ARM64_16K_PAGES
  430. config ARM64_VA_BITS_48
  431. bool "48-bit"
  432. endchoice
  433. config ARM64_VA_BITS
  434. int
  435. default 36 if ARM64_VA_BITS_36
  436. default 39 if ARM64_VA_BITS_39
  437. default 42 if ARM64_VA_BITS_42
  438. default 47 if ARM64_VA_BITS_47
  439. default 48 if ARM64_VA_BITS_48
  440. config CPU_BIG_ENDIAN
  441. bool "Build big-endian kernel"
  442. help
  443. Say Y if you plan on running a kernel in big-endian mode.
  444. config SCHED_MC
  445. bool "Multi-core scheduler support"
  446. help
  447. Multi-core scheduler support improves the CPU scheduler's decision
  448. making when dealing with multi-core CPU chips at a cost of slightly
  449. increased overhead in some places. If unsure say N here.
  450. config SCHED_SMT
  451. bool "SMT scheduler support"
  452. help
  453. Improves the CPU scheduler's decision making when dealing with
  454. MultiThreading at a cost of slightly increased overhead in some
  455. places. If unsure say N here.
  456. config NR_CPUS
  457. int "Maximum number of CPUs (2-4096)"
  458. range 2 4096
  459. # These have to remain sorted largest to smallest
  460. default "64"
  461. config HOTPLUG_CPU
  462. bool "Support for hot-pluggable CPUs"
  463. select GENERIC_IRQ_MIGRATION
  464. help
  465. Say Y here to experiment with turning CPUs off and on. CPUs
  466. can be controlled through /sys/devices/system/cpu.
  467. # Common NUMA Features
  468. config NUMA
  469. bool "Numa Memory Allocation and Scheduler Support"
  470. depends on SMP
  471. help
  472. Enable NUMA (Non Uniform Memory Access) support.
  473. The kernel will try to allocate memory used by a CPU on the
  474. local memory of the CPU and add some more
  475. NUMA awareness to the kernel.
  476. config NODES_SHIFT
  477. int "Maximum NUMA Nodes (as a power of 2)"
  478. range 1 10
  479. default "2"
  480. depends on NEED_MULTIPLE_NODES
  481. help
  482. Specify the maximum number of NUMA Nodes available on the target
  483. system. Increases memory reserved to accommodate various tables.
  484. config USE_PERCPU_NUMA_NODE_ID
  485. def_bool y
  486. depends on NUMA
  487. source kernel/Kconfig.preempt
  488. source kernel/Kconfig.hz
  489. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  490. depends on !HIBERNATION
  491. def_bool y
  492. config ARCH_HAS_HOLES_MEMORYMODEL
  493. def_bool y if SPARSEMEM
  494. config ARCH_SPARSEMEM_ENABLE
  495. def_bool y
  496. select SPARSEMEM_VMEMMAP_ENABLE
  497. config ARCH_SPARSEMEM_DEFAULT
  498. def_bool ARCH_SPARSEMEM_ENABLE
  499. config ARCH_SELECT_MEMORY_MODEL
  500. def_bool ARCH_SPARSEMEM_ENABLE
  501. config HAVE_ARCH_PFN_VALID
  502. def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
  503. config HW_PERF_EVENTS
  504. def_bool y
  505. depends on ARM_PMU
  506. config SYS_SUPPORTS_HUGETLBFS
  507. def_bool y
  508. config ARCH_WANT_HUGE_PMD_SHARE
  509. def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36)
  510. config ARCH_HAS_CACHE_LINE_SIZE
  511. def_bool y
  512. source "mm/Kconfig"
  513. config SECCOMP
  514. bool "Enable seccomp to safely compute untrusted bytecode"
  515. ---help---
  516. This kernel feature is useful for number crunching applications
  517. that may need to compute untrusted bytecode during their
  518. execution. By using pipes or other transports made available to
  519. the process as file descriptors supporting the read/write
  520. syscalls, it's possible to isolate those applications in
  521. their own address space using seccomp. Once seccomp is
  522. enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
  523. and the task is only allowed to execute a few safe syscalls
  524. defined by each seccomp mode.
  525. config PARAVIRT
  526. bool "Enable paravirtualization code"
  527. help
  528. This changes the kernel so it can modify itself when it is run
  529. under a hypervisor, potentially improving performance significantly
  530. over full virtualization.
  531. config PARAVIRT_TIME_ACCOUNTING
  532. bool "Paravirtual steal time accounting"
  533. select PARAVIRT
  534. default n
  535. help
  536. Select this option to enable fine granularity task steal time
  537. accounting. Time spent executing other tasks in parallel with
  538. the current vCPU is discounted from the vCPU power. To account for
  539. that, there can be a small performance impact.
  540. If in doubt, say N here.
  541. config XEN_DOM0
  542. def_bool y
  543. depends on XEN
  544. config XEN
  545. bool "Xen guest support on ARM64"
  546. depends on ARM64 && OF
  547. select SWIOTLB_XEN
  548. select PARAVIRT
  549. help
  550. Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
  551. config FORCE_MAX_ZONEORDER
  552. int
  553. default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
  554. default "12" if (ARM64_16K_PAGES && TRANSPARENT_HUGEPAGE)
  555. default "11"
  556. help
  557. The kernel memory allocator divides physically contiguous memory
  558. blocks into "zones", where each zone is a power of two number of
  559. pages. This option selects the largest power of two that the kernel
  560. keeps in the memory allocator. If you need to allocate very large
  561. blocks of physically contiguous memory, then you may need to
  562. increase this value.
  563. This config option is actually maximum order plus one. For example,
  564. a value of 11 means that the largest free memory block is 2^10 pages.
  565. We make sure that we can allocate upto a HugePage size for each configuration.
  566. Hence we have :
  567. MAX_ORDER = (PMD_SHIFT - PAGE_SHIFT) + 1 => PAGE_SHIFT - 2
  568. However for 4K, we choose a higher default value, 11 as opposed to 10, giving us
  569. 4M allocations matching the default size used by generic code.
  570. menuconfig ARMV8_DEPRECATED
  571. bool "Emulate deprecated/obsolete ARMv8 instructions"
  572. depends on COMPAT
  573. help
  574. Legacy software support may require certain instructions
  575. that have been deprecated or obsoleted in the architecture.
  576. Enable this config to enable selective emulation of these
  577. features.
  578. If unsure, say Y
  579. if ARMV8_DEPRECATED
  580. config SWP_EMULATION
  581. bool "Emulate SWP/SWPB instructions"
  582. help
  583. ARMv8 obsoletes the use of A32 SWP/SWPB instructions such that
  584. they are always undefined. Say Y here to enable software
  585. emulation of these instructions for userspace using LDXR/STXR.
  586. In some older versions of glibc [<=2.8] SWP is used during futex
  587. trylock() operations with the assumption that the code will not
  588. be preempted. This invalid assumption may be more likely to fail
  589. with SWP emulation enabled, leading to deadlock of the user
  590. application.
  591. NOTE: when accessing uncached shared regions, LDXR/STXR rely
  592. on an external transaction monitoring block called a global
  593. monitor to maintain update atomicity. If your system does not
  594. implement a global monitor, this option can cause programs that
  595. perform SWP operations to uncached memory to deadlock.
  596. If unsure, say Y
  597. config CP15_BARRIER_EMULATION
  598. bool "Emulate CP15 Barrier instructions"
  599. help
  600. The CP15 barrier instructions - CP15ISB, CP15DSB, and
  601. CP15DMB - are deprecated in ARMv8 (and ARMv7). It is
  602. strongly recommended to use the ISB, DSB, and DMB
  603. instructions instead.
  604. Say Y here to enable software emulation of these
  605. instructions for AArch32 userspace code. When this option is
  606. enabled, CP15 barrier usage is traced which can help
  607. identify software that needs updating.
  608. If unsure, say Y
  609. config SETEND_EMULATION
  610. bool "Emulate SETEND instruction"
  611. help
  612. The SETEND instruction alters the data-endianness of the
  613. AArch32 EL0, and is deprecated in ARMv8.
  614. Say Y here to enable software emulation of the instruction
  615. for AArch32 userspace code.
  616. Note: All the cpus on the system must have mixed endian support at EL0
  617. for this feature to be enabled. If a new CPU - which doesn't support mixed
  618. endian - is hotplugged in after this feature has been enabled, there could
  619. be unexpected results in the applications.
  620. If unsure, say Y
  621. endif
  622. menu "ARMv8.1 architectural features"
  623. config ARM64_HW_AFDBM
  624. bool "Support for hardware updates of the Access and Dirty page flags"
  625. default y
  626. help
  627. The ARMv8.1 architecture extensions introduce support for
  628. hardware updates of the access and dirty information in page
  629. table entries. When enabled in TCR_EL1 (HA and HD bits) on
  630. capable processors, accesses to pages with PTE_AF cleared will
  631. set this bit instead of raising an access flag fault.
  632. Similarly, writes to read-only pages with the DBM bit set will
  633. clear the read-only bit (AP[2]) instead of raising a
  634. permission fault.
  635. Kernels built with this configuration option enabled continue
  636. to work on pre-ARMv8.1 hardware and the performance impact is
  637. minimal. If unsure, say Y.
  638. config ARM64_PAN
  639. bool "Enable support for Privileged Access Never (PAN)"
  640. default y
  641. help
  642. Privileged Access Never (PAN; part of the ARMv8.1 Extensions)
  643. prevents the kernel or hypervisor from accessing user-space (EL0)
  644. memory directly.
  645. Choosing this option will cause any unprotected (not using
  646. copy_to_user et al) memory access to fail with a permission fault.
  647. The feature is detected at runtime, and will remain as a 'nop'
  648. instruction if the cpu does not implement the feature.
  649. config ARM64_LSE_ATOMICS
  650. bool "Atomic instructions"
  651. help
  652. As part of the Large System Extensions, ARMv8.1 introduces new
  653. atomic instructions that are designed specifically to scale in
  654. very large systems.
  655. Say Y here to make use of these instructions for the in-kernel
  656. atomic routines. This incurs a small overhead on CPUs that do
  657. not support these instructions and requires the kernel to be
  658. built with binutils >= 2.25.
  659. config ARM64_VHE
  660. bool "Enable support for Virtualization Host Extensions (VHE)"
  661. default y
  662. help
  663. Virtualization Host Extensions (VHE) allow the kernel to run
  664. directly at EL2 (instead of EL1) on processors that support
  665. it. This leads to better performance for KVM, as they reduce
  666. the cost of the world switch.
  667. Selecting this option allows the VHE feature to be detected
  668. at runtime, and does not affect processors that do not
  669. implement this feature.
  670. endmenu
  671. menu "ARMv8.2 architectural features"
  672. config ARM64_UAO
  673. bool "Enable support for User Access Override (UAO)"
  674. default y
  675. help
  676. User Access Override (UAO; part of the ARMv8.2 Extensions)
  677. causes the 'unprivileged' variant of the load/store instructions to
  678. be overriden to be privileged.
  679. This option changes get_user() and friends to use the 'unprivileged'
  680. variant of the load/store instructions. This ensures that user-space
  681. really did have access to the supplied memory. When addr_limit is
  682. set to kernel memory the UAO bit will be set, allowing privileged
  683. access to kernel memory.
  684. Choosing this option will cause copy_to_user() et al to use user-space
  685. memory permissions.
  686. The feature is detected at runtime, the kernel will use the
  687. regular load/store instructions if the cpu does not implement the
  688. feature.
  689. endmenu
  690. config ARM64_MODULE_CMODEL_LARGE
  691. bool
  692. config ARM64_MODULE_PLTS
  693. bool
  694. select ARM64_MODULE_CMODEL_LARGE
  695. select HAVE_MOD_ARCH_SPECIFIC
  696. config RELOCATABLE
  697. bool
  698. help
  699. This builds the kernel as a Position Independent Executable (PIE),
  700. which retains all relocation metadata required to relocate the
  701. kernel binary at runtime to a different virtual address than the
  702. address it was linked at.
  703. Since AArch64 uses the RELA relocation format, this requires a
  704. relocation pass at runtime even if the kernel is loaded at the
  705. same address it was linked at.
  706. config RANDOMIZE_BASE
  707. bool "Randomize the address of the kernel image"
  708. select ARM64_MODULE_PLTS
  709. select RELOCATABLE
  710. help
  711. Randomizes the virtual address at which the kernel image is
  712. loaded, as a security feature that deters exploit attempts
  713. relying on knowledge of the location of kernel internals.
  714. It is the bootloader's job to provide entropy, by passing a
  715. random u64 value in /chosen/kaslr-seed at kernel entry.
  716. When booting via the UEFI stub, it will invoke the firmware's
  717. EFI_RNG_PROTOCOL implementation (if available) to supply entropy
  718. to the kernel proper. In addition, it will randomise the physical
  719. location of the kernel Image as well.
  720. If unsure, say N.
  721. config RANDOMIZE_MODULE_REGION_FULL
  722. bool "Randomize the module region independently from the core kernel"
  723. depends on RANDOMIZE_BASE
  724. default y
  725. help
  726. Randomizes the location of the module region without considering the
  727. location of the core kernel. This way, it is impossible for modules
  728. to leak information about the location of core kernel data structures
  729. but it does imply that function calls between modules and the core
  730. kernel will need to be resolved via veneers in the module PLT.
  731. When this option is not set, the module region will be randomized over
  732. a limited range that contains the [_stext, _etext] interval of the
  733. core kernel, so branch relocations are always in range.
  734. endmenu
  735. menu "Boot options"
  736. config ARM64_ACPI_PARKING_PROTOCOL
  737. bool "Enable support for the ARM64 ACPI parking protocol"
  738. depends on ACPI
  739. help
  740. Enable support for the ARM64 ACPI parking protocol. If disabled
  741. the kernel will not allow booting through the ARM64 ACPI parking
  742. protocol even if the corresponding data is present in the ACPI
  743. MADT table.
  744. config CMDLINE
  745. string "Default kernel command string"
  746. default ""
  747. help
  748. Provide a set of default command-line options at build time by
  749. entering them here. As a minimum, you should specify the the
  750. root device (e.g. root=/dev/nfs).
  751. config CMDLINE_FORCE
  752. bool "Always use the default kernel command string"
  753. help
  754. Always use the default kernel command string, even if the boot
  755. loader passes other arguments to the kernel.
  756. This is useful if you cannot or don't want to change the
  757. command-line options your boot loader passes to the kernel.
  758. config EFI_STUB
  759. bool
  760. config EFI
  761. bool "UEFI runtime support"
  762. depends on OF && !CPU_BIG_ENDIAN
  763. select LIBFDT
  764. select UCS2_STRING
  765. select EFI_PARAMS_FROM_FDT
  766. select EFI_RUNTIME_WRAPPERS
  767. select EFI_STUB
  768. select EFI_ARMSTUB
  769. default y
  770. help
  771. This option provides support for runtime services provided
  772. by UEFI firmware (such as non-volatile variables, realtime
  773. clock, and platform reset). A UEFI stub is also provided to
  774. allow the kernel to be booted as an EFI application. This
  775. is only useful on systems that have UEFI firmware.
  776. config DMI
  777. bool "Enable support for SMBIOS (DMI) tables"
  778. depends on EFI
  779. default y
  780. help
  781. This enables SMBIOS/DMI feature for systems.
  782. This option is only useful on systems that have UEFI firmware.
  783. However, even with this option, the resultant kernel should
  784. continue to boot on existing non-UEFI platforms.
  785. endmenu
  786. menu "Userspace binary formats"
  787. source "fs/Kconfig.binfmt"
  788. config COMPAT
  789. bool "Kernel support for 32-bit EL0"
  790. depends on ARM64_4K_PAGES || EXPERT
  791. select COMPAT_BINFMT_ELF
  792. select HAVE_UID16
  793. select OLD_SIGSUSPEND3
  794. select COMPAT_OLD_SIGACTION
  795. help
  796. This option enables support for a 32-bit EL0 running under a 64-bit
  797. kernel at EL1. AArch32-specific components such as system calls,
  798. the user helper functions, VFP support and the ptrace interface are
  799. handled appropriately by the kernel.
  800. If you use a page size other than 4KB (i.e, 16KB or 64KB), please be aware
  801. that you will only be able to execute AArch32 binaries that were compiled
  802. with page size aligned segments.
  803. If you want to execute 32-bit userspace applications, say Y.
  804. config SYSVIPC_COMPAT
  805. def_bool y
  806. depends on COMPAT && SYSVIPC
  807. endmenu
  808. menu "Power management options"
  809. source "kernel/power/Kconfig"
  810. config ARCH_HIBERNATION_POSSIBLE
  811. def_bool y
  812. depends on CPU_PM
  813. config ARCH_HIBERNATION_HEADER
  814. def_bool y
  815. depends on HIBERNATION
  816. config ARCH_SUSPEND_POSSIBLE
  817. def_bool y
  818. endmenu
  819. menu "CPU Power Management"
  820. source "drivers/cpuidle/Kconfig"
  821. source "drivers/cpufreq/Kconfig"
  822. endmenu
  823. source "net/Kconfig"
  824. source "drivers/Kconfig"
  825. source "drivers/firmware/Kconfig"
  826. source "drivers/acpi/Kconfig"
  827. source "fs/Kconfig"
  828. source "arch/arm64/kvm/Kconfig"
  829. source "arch/arm64/Kconfig.debug"
  830. source "security/Kconfig"
  831. source "crypto/Kconfig"
  832. if CRYPTO
  833. source "arch/arm64/crypto/Kconfig"
  834. endif
  835. source "lib/Kconfig"