Kconfig 32 KB

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