Kconfig 31 KB

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