Kconfig 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  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 ARM64_ERRATUM_1024718
  356. bool "Cortex-A55: 1024718: Update of DBM/AP bits without break before make might result in incorrect update"
  357. default y
  358. help
  359. This option adds work around for Arm Cortex-A55 Erratum 1024718.
  360. Affected Cortex-A55 cores (r0p0, r0p1, r1p0) could cause incorrect
  361. update of the hardware dirty bit when the DBM/AP bits are updated
  362. without a break-before-make. The work around is to disable the usage
  363. of hardware DBM locally on the affected cores. CPUs not affected by
  364. erratum will continue to use the feature.
  365. If unsure, say Y.
  366. config CAVIUM_ERRATUM_22375
  367. bool "Cavium erratum 22375, 24313"
  368. default y
  369. help
  370. Enable workaround for erratum 22375, 24313.
  371. This implements two gicv3-its errata workarounds for ThunderX. Both
  372. with small impact affecting only ITS table allocation.
  373. erratum 22375: only alloc 8MB table size
  374. erratum 24313: ignore memory access type
  375. The fixes are in ITS initialization and basically ignore memory access
  376. type and table size provided by the TYPER and BASER registers.
  377. If unsure, say Y.
  378. config CAVIUM_ERRATUM_23144
  379. bool "Cavium erratum 23144: ITS SYNC hang on dual socket system"
  380. depends on NUMA
  381. default y
  382. help
  383. ITS SYNC command hang for cross node io and collections/cpu mapping.
  384. If unsure, say Y.
  385. config CAVIUM_ERRATUM_23154
  386. bool "Cavium erratum 23154: Access to ICC_IAR1_EL1 is not sync'ed"
  387. default y
  388. help
  389. The gicv3 of ThunderX requires a modified version for
  390. reading the IAR status to ensure data synchronization
  391. (access to icc_iar1_el1 is not sync'ed before and after).
  392. If unsure, say Y.
  393. config CAVIUM_ERRATUM_27456
  394. bool "Cavium erratum 27456: Broadcast TLBI instructions may cause icache corruption"
  395. default y
  396. help
  397. On ThunderX T88 pass 1.x through 2.1 parts, broadcast TLBI
  398. instructions may cause the icache to become corrupted if it
  399. contains data for a non-current ASID. The fix is to
  400. invalidate the icache when changing the mm context.
  401. If unsure, say Y.
  402. config QCOM_QDF2400_ERRATUM_0065
  403. bool "QDF2400 E0065: Incorrect GITS_TYPER.ITT_Entry_size"
  404. default y
  405. help
  406. On Qualcomm Datacenter Technologies QDF2400 SoC, ITS hardware reports
  407. ITE size incorrectly. The GITS_TYPER.ITT_Entry_size field should have
  408. been indicated as 16Bytes (0xf), not 8Bytes (0x7).
  409. If unsure, say Y.
  410. endmenu
  411. choice
  412. prompt "Page size"
  413. default ARM64_4K_PAGES
  414. help
  415. Page size (translation granule) configuration.
  416. config ARM64_4K_PAGES
  417. bool "4KB"
  418. help
  419. This feature enables 4KB pages support.
  420. config ARM64_16K_PAGES
  421. bool "16KB"
  422. help
  423. The system will use 16KB pages support. AArch32 emulation
  424. requires applications compiled with 16K (or a multiple of 16K)
  425. aligned segments.
  426. config ARM64_64K_PAGES
  427. bool "64KB"
  428. help
  429. This feature enables 64KB pages support (4KB by default)
  430. allowing only two levels of page tables and faster TLB
  431. look-up. AArch32 emulation requires applications compiled
  432. with 64K aligned segments.
  433. endchoice
  434. choice
  435. prompt "Virtual address space size"
  436. default ARM64_VA_BITS_39 if ARM64_4K_PAGES
  437. default ARM64_VA_BITS_47 if ARM64_16K_PAGES
  438. default ARM64_VA_BITS_42 if ARM64_64K_PAGES
  439. help
  440. Allows choosing one of multiple possible virtual address
  441. space sizes. The level of translation table is determined by
  442. a combination of page size and virtual address space size.
  443. config ARM64_VA_BITS_36
  444. bool "36-bit" if EXPERT
  445. depends on ARM64_16K_PAGES
  446. config ARM64_VA_BITS_39
  447. bool "39-bit"
  448. depends on ARM64_4K_PAGES
  449. config ARM64_VA_BITS_42
  450. bool "42-bit"
  451. depends on ARM64_64K_PAGES
  452. config ARM64_VA_BITS_47
  453. bool "47-bit"
  454. depends on ARM64_16K_PAGES
  455. config ARM64_VA_BITS_48
  456. bool "48-bit"
  457. endchoice
  458. config ARM64_VA_BITS
  459. int
  460. default 36 if ARM64_VA_BITS_36
  461. default 39 if ARM64_VA_BITS_39
  462. default 42 if ARM64_VA_BITS_42
  463. default 47 if ARM64_VA_BITS_47
  464. default 48 if ARM64_VA_BITS_48
  465. config CPU_BIG_ENDIAN
  466. bool "Build big-endian kernel"
  467. help
  468. Say Y if you plan on running a kernel in big-endian mode.
  469. config SCHED_MC
  470. bool "Multi-core scheduler support"
  471. help
  472. Multi-core scheduler support improves the CPU scheduler's decision
  473. making when dealing with multi-core CPU chips at a cost of slightly
  474. increased overhead in some places. If unsure say N here.
  475. config SCHED_SMT
  476. bool "SMT scheduler support"
  477. help
  478. Improves the CPU scheduler's decision making when dealing with
  479. MultiThreading at a cost of slightly increased overhead in some
  480. places. If unsure say N here.
  481. config NR_CPUS
  482. int "Maximum number of CPUs (2-4096)"
  483. range 2 4096
  484. # These have to remain sorted largest to smallest
  485. default "64"
  486. config HOTPLUG_CPU
  487. bool "Support for hot-pluggable CPUs"
  488. select GENERIC_IRQ_MIGRATION
  489. help
  490. Say Y here to experiment with turning CPUs off and on. CPUs
  491. can be controlled through /sys/devices/system/cpu.
  492. # Common NUMA Features
  493. config NUMA
  494. bool "Numa Memory Allocation and Scheduler Support"
  495. select ACPI_NUMA if ACPI
  496. select OF_NUMA
  497. help
  498. Enable NUMA (Non Uniform Memory Access) support.
  499. The kernel will try to allocate memory used by a CPU on the
  500. local memory of the CPU and add some more
  501. NUMA awareness to the kernel.
  502. config NODES_SHIFT
  503. int "Maximum NUMA Nodes (as a power of 2)"
  504. range 1 10
  505. default "2"
  506. depends on NEED_MULTIPLE_NODES
  507. help
  508. Specify the maximum number of NUMA Nodes available on the target
  509. system. Increases memory reserved to accommodate various tables.
  510. config USE_PERCPU_NUMA_NODE_ID
  511. def_bool y
  512. depends on NUMA
  513. config HAVE_SETUP_PER_CPU_AREA
  514. def_bool y
  515. depends on NUMA
  516. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  517. def_bool y
  518. depends on NUMA
  519. source kernel/Kconfig.preempt
  520. source kernel/Kconfig.hz
  521. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  522. def_bool y
  523. config ARCH_HAS_HOLES_MEMORYMODEL
  524. def_bool y if SPARSEMEM
  525. config ARCH_SPARSEMEM_ENABLE
  526. def_bool y
  527. select SPARSEMEM_VMEMMAP_ENABLE
  528. config ARCH_SPARSEMEM_DEFAULT
  529. def_bool ARCH_SPARSEMEM_ENABLE
  530. config ARCH_SELECT_MEMORY_MODEL
  531. def_bool ARCH_SPARSEMEM_ENABLE
  532. config HAVE_ARCH_PFN_VALID
  533. def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
  534. config HW_PERF_EVENTS
  535. def_bool y
  536. depends on ARM_PMU
  537. config SYS_SUPPORTS_HUGETLBFS
  538. def_bool y
  539. config ARCH_WANT_HUGE_PMD_SHARE
  540. def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36)
  541. config ARCH_HAS_CACHE_LINE_SIZE
  542. def_bool y
  543. source "mm/Kconfig"
  544. config SECCOMP
  545. bool "Enable seccomp to safely compute untrusted bytecode"
  546. ---help---
  547. This kernel feature is useful for number crunching applications
  548. that may need to compute untrusted bytecode during their
  549. execution. By using pipes or other transports made available to
  550. the process as file descriptors supporting the read/write
  551. syscalls, it's possible to isolate those applications in
  552. their own address space using seccomp. Once seccomp is
  553. enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
  554. and the task is only allowed to execute a few safe syscalls
  555. defined by each seccomp mode.
  556. config PARAVIRT
  557. bool "Enable paravirtualization code"
  558. help
  559. This changes the kernel so it can modify itself when it is run
  560. under a hypervisor, potentially improving performance significantly
  561. over full virtualization.
  562. config PARAVIRT_TIME_ACCOUNTING
  563. bool "Paravirtual steal time accounting"
  564. select PARAVIRT
  565. default n
  566. help
  567. Select this option to enable fine granularity task steal time
  568. accounting. Time spent executing other tasks in parallel with
  569. the current vCPU is discounted from the vCPU power. To account for
  570. that, there can be a small performance impact.
  571. If in doubt, say N here.
  572. config KEXEC
  573. depends on PM_SLEEP_SMP
  574. select KEXEC_CORE
  575. bool "kexec system call"
  576. ---help---
  577. kexec is a system call that implements the ability to shutdown your
  578. current kernel, and to start another kernel. It is like a reboot
  579. but it is independent of the system firmware. And like a reboot
  580. you can start any kernel with it, not just Linux.
  581. config XEN_DOM0
  582. def_bool y
  583. depends on XEN
  584. config XEN
  585. bool "Xen guest support on ARM64"
  586. depends on ARM64 && OF
  587. select SWIOTLB_XEN
  588. select PARAVIRT
  589. help
  590. Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
  591. config FORCE_MAX_ZONEORDER
  592. int
  593. default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
  594. default "12" if (ARM64_16K_PAGES && TRANSPARENT_HUGEPAGE)
  595. default "11"
  596. help
  597. The kernel memory allocator divides physically contiguous memory
  598. blocks into "zones", where each zone is a power of two number of
  599. pages. This option selects the largest power of two that the kernel
  600. keeps in the memory allocator. If you need to allocate very large
  601. blocks of physically contiguous memory, then you may need to
  602. increase this value.
  603. This config option is actually maximum order plus one. For example,
  604. a value of 11 means that the largest free memory block is 2^10 pages.
  605. We make sure that we can allocate upto a HugePage size for each configuration.
  606. Hence we have :
  607. MAX_ORDER = (PMD_SHIFT - PAGE_SHIFT) + 1 => PAGE_SHIFT - 2
  608. However for 4K, we choose a higher default value, 11 as opposed to 10, giving us
  609. 4M allocations matching the default size used by generic code.
  610. config UNMAP_KERNEL_AT_EL0
  611. bool "Unmap kernel when running in userspace (aka \"KAISER\")" if EXPERT
  612. default y
  613. help
  614. Speculation attacks against some high-performance processors can
  615. be used to bypass MMU permission checks and leak kernel data to
  616. userspace. This can be defended against by unmapping the kernel
  617. when running in userspace, mapping it back in on exception entry
  618. via a trampoline page in the vector table.
  619. If unsure, say Y.
  620. config HARDEN_BRANCH_PREDICTOR
  621. bool "Harden the branch predictor against aliasing attacks" if EXPERT
  622. default y
  623. help
  624. Speculation attacks against some high-performance processors rely on
  625. being able to manipulate the branch predictor for a victim context by
  626. executing aliasing branches in the attacker context. Such attacks
  627. can be partially mitigated against by clearing internal branch
  628. predictor state and limiting the prediction logic in some situations.
  629. This config option will take CPU-specific actions to harden the
  630. branch predictor against aliasing attacks and may rely on specific
  631. instruction sequences or control bits being set by the system
  632. firmware.
  633. If unsure, say Y.
  634. config ARM64_SSBD
  635. bool "Speculative Store Bypass Disable" if EXPERT
  636. default y
  637. help
  638. This enables mitigation of the bypassing of previous stores
  639. by speculative loads.
  640. If unsure, say Y.
  641. menuconfig ARMV8_DEPRECATED
  642. bool "Emulate deprecated/obsolete ARMv8 instructions"
  643. depends on COMPAT
  644. help
  645. Legacy software support may require certain instructions
  646. that have been deprecated or obsoleted in the architecture.
  647. Enable this config to enable selective emulation of these
  648. features.
  649. If unsure, say Y
  650. if ARMV8_DEPRECATED
  651. config SWP_EMULATION
  652. bool "Emulate SWP/SWPB instructions"
  653. help
  654. ARMv8 obsoletes the use of A32 SWP/SWPB instructions such that
  655. they are always undefined. Say Y here to enable software
  656. emulation of these instructions for userspace using LDXR/STXR.
  657. In some older versions of glibc [<=2.8] SWP is used during futex
  658. trylock() operations with the assumption that the code will not
  659. be preempted. This invalid assumption may be more likely to fail
  660. with SWP emulation enabled, leading to deadlock of the user
  661. application.
  662. NOTE: when accessing uncached shared regions, LDXR/STXR rely
  663. on an external transaction monitoring block called a global
  664. monitor to maintain update atomicity. If your system does not
  665. implement a global monitor, this option can cause programs that
  666. perform SWP operations to uncached memory to deadlock.
  667. If unsure, say Y
  668. config CP15_BARRIER_EMULATION
  669. bool "Emulate CP15 Barrier instructions"
  670. help
  671. The CP15 barrier instructions - CP15ISB, CP15DSB, and
  672. CP15DMB - are deprecated in ARMv8 (and ARMv7). It is
  673. strongly recommended to use the ISB, DSB, and DMB
  674. instructions instead.
  675. Say Y here to enable software emulation of these
  676. instructions for AArch32 userspace code. When this option is
  677. enabled, CP15 barrier usage is traced which can help
  678. identify software that needs updating.
  679. If unsure, say Y
  680. config SETEND_EMULATION
  681. bool "Emulate SETEND instruction"
  682. help
  683. The SETEND instruction alters the data-endianness of the
  684. AArch32 EL0, and is deprecated in ARMv8.
  685. Say Y here to enable software emulation of the instruction
  686. for AArch32 userspace code.
  687. Note: All the cpus on the system must have mixed endian support at EL0
  688. for this feature to be enabled. If a new CPU - which doesn't support mixed
  689. endian - is hotplugged in after this feature has been enabled, there could
  690. be unexpected results in the applications.
  691. If unsure, say Y
  692. endif
  693. menu "ARMv8.1 architectural features"
  694. config ARM64_HW_AFDBM
  695. bool "Support for hardware updates of the Access and Dirty page flags"
  696. default y
  697. help
  698. The ARMv8.1 architecture extensions introduce support for
  699. hardware updates of the access and dirty information in page
  700. table entries. When enabled in TCR_EL1 (HA and HD bits) on
  701. capable processors, accesses to pages with PTE_AF cleared will
  702. set this bit instead of raising an access flag fault.
  703. Similarly, writes to read-only pages with the DBM bit set will
  704. clear the read-only bit (AP[2]) instead of raising a
  705. permission fault.
  706. Kernels built with this configuration option enabled continue
  707. to work on pre-ARMv8.1 hardware and the performance impact is
  708. minimal. If unsure, say Y.
  709. config ARM64_PAN
  710. bool "Enable support for Privileged Access Never (PAN)"
  711. default y
  712. help
  713. Privileged Access Never (PAN; part of the ARMv8.1 Extensions)
  714. prevents the kernel or hypervisor from accessing user-space (EL0)
  715. memory directly.
  716. Choosing this option will cause any unprotected (not using
  717. copy_to_user et al) memory access to fail with a permission fault.
  718. The feature is detected at runtime, and will remain as a 'nop'
  719. instruction if the cpu does not implement the feature.
  720. config ARM64_LSE_ATOMICS
  721. bool "Atomic instructions"
  722. help
  723. As part of the Large System Extensions, ARMv8.1 introduces new
  724. atomic instructions that are designed specifically to scale in
  725. very large systems.
  726. Say Y here to make use of these instructions for the in-kernel
  727. atomic routines. This incurs a small overhead on CPUs that do
  728. not support these instructions and requires the kernel to be
  729. built with binutils >= 2.25.
  730. config ARM64_VHE
  731. bool "Enable support for Virtualization Host Extensions (VHE)"
  732. default y
  733. help
  734. Virtualization Host Extensions (VHE) allow the kernel to run
  735. directly at EL2 (instead of EL1) on processors that support
  736. it. This leads to better performance for KVM, as they reduce
  737. the cost of the world switch.
  738. Selecting this option allows the VHE feature to be detected
  739. at runtime, and does not affect processors that do not
  740. implement this feature.
  741. endmenu
  742. menu "ARMv8.2 architectural features"
  743. config ARM64_UAO
  744. bool "Enable support for User Access Override (UAO)"
  745. default y
  746. help
  747. User Access Override (UAO; part of the ARMv8.2 Extensions)
  748. causes the 'unprivileged' variant of the load/store instructions to
  749. be overriden to be privileged.
  750. This option changes get_user() and friends to use the 'unprivileged'
  751. variant of the load/store instructions. This ensures that user-space
  752. really did have access to the supplied memory. When addr_limit is
  753. set to kernel memory the UAO bit will be set, allowing privileged
  754. access to kernel memory.
  755. Choosing this option will cause copy_to_user() et al to use user-space
  756. memory permissions.
  757. The feature is detected at runtime, the kernel will use the
  758. regular load/store instructions if the cpu does not implement the
  759. feature.
  760. endmenu
  761. config ARM64_MODULE_CMODEL_LARGE
  762. bool
  763. config ARM64_MODULE_PLTS
  764. bool
  765. select ARM64_MODULE_CMODEL_LARGE
  766. select HAVE_MOD_ARCH_SPECIFIC
  767. config RELOCATABLE
  768. bool
  769. help
  770. This builds the kernel as a Position Independent Executable (PIE),
  771. which retains all relocation metadata required to relocate the
  772. kernel binary at runtime to a different virtual address than the
  773. address it was linked at.
  774. Since AArch64 uses the RELA relocation format, this requires a
  775. relocation pass at runtime even if the kernel is loaded at the
  776. same address it was linked at.
  777. config RANDOMIZE_BASE
  778. bool "Randomize the address of the kernel image"
  779. select ARM64_MODULE_PLTS if MODULES
  780. select RELOCATABLE
  781. help
  782. Randomizes the virtual address at which the kernel image is
  783. loaded, as a security feature that deters exploit attempts
  784. relying on knowledge of the location of kernel internals.
  785. It is the bootloader's job to provide entropy, by passing a
  786. random u64 value in /chosen/kaslr-seed at kernel entry.
  787. When booting via the UEFI stub, it will invoke the firmware's
  788. EFI_RNG_PROTOCOL implementation (if available) to supply entropy
  789. to the kernel proper. In addition, it will randomise the physical
  790. location of the kernel Image as well.
  791. If unsure, say N.
  792. config RANDOMIZE_MODULE_REGION_FULL
  793. bool "Randomize the module region independently from the core kernel"
  794. depends on RANDOMIZE_BASE && !DYNAMIC_FTRACE
  795. default y
  796. help
  797. Randomizes the location of the module region without considering the
  798. location of the core kernel. This way, it is impossible for modules
  799. to leak information about the location of core kernel data structures
  800. but it does imply that function calls between modules and the core
  801. kernel will need to be resolved via veneers in the module PLT.
  802. When this option is not set, the module region will be randomized over
  803. a limited range that contains the [_stext, _etext] interval of the
  804. core kernel, so branch relocations are always in range.
  805. endmenu
  806. menu "Boot options"
  807. config ARM64_ACPI_PARKING_PROTOCOL
  808. bool "Enable support for the ARM64 ACPI parking protocol"
  809. depends on ACPI
  810. help
  811. Enable support for the ARM64 ACPI parking protocol. If disabled
  812. the kernel will not allow booting through the ARM64 ACPI parking
  813. protocol even if the corresponding data is present in the ACPI
  814. MADT table.
  815. config CMDLINE
  816. string "Default kernel command string"
  817. default ""
  818. help
  819. Provide a set of default command-line options at build time by
  820. entering them here. As a minimum, you should specify the the
  821. root device (e.g. root=/dev/nfs).
  822. config CMDLINE_FORCE
  823. bool "Always use the default kernel command string"
  824. help
  825. Always use the default kernel command string, even if the boot
  826. loader passes other arguments to the kernel.
  827. This is useful if you cannot or don't want to change the
  828. command-line options your boot loader passes to the kernel.
  829. config EFI_STUB
  830. bool
  831. config EFI
  832. bool "UEFI runtime support"
  833. depends on OF && !CPU_BIG_ENDIAN
  834. select LIBFDT
  835. select UCS2_STRING
  836. select EFI_PARAMS_FROM_FDT
  837. select EFI_RUNTIME_WRAPPERS
  838. select EFI_STUB
  839. select EFI_ARMSTUB
  840. default y
  841. help
  842. This option provides support for runtime services provided
  843. by UEFI firmware (such as non-volatile variables, realtime
  844. clock, and platform reset). A UEFI stub is also provided to
  845. allow the kernel to be booted as an EFI application. This
  846. is only useful on systems that have UEFI firmware.
  847. config DMI
  848. bool "Enable support for SMBIOS (DMI) tables"
  849. depends on EFI
  850. default y
  851. help
  852. This enables SMBIOS/DMI feature for systems.
  853. This option is only useful on systems that have UEFI firmware.
  854. However, even with this option, the resultant kernel should
  855. continue to boot on existing non-UEFI platforms.
  856. endmenu
  857. menu "Userspace binary formats"
  858. source "fs/Kconfig.binfmt"
  859. config COMPAT
  860. bool "Kernel support for 32-bit EL0"
  861. depends on ARM64_4K_PAGES || EXPERT
  862. select COMPAT_BINFMT_ELF if BINFMT_ELF
  863. select HAVE_UID16
  864. select OLD_SIGSUSPEND3
  865. select COMPAT_OLD_SIGACTION
  866. help
  867. This option enables support for a 32-bit EL0 running under a 64-bit
  868. kernel at EL1. AArch32-specific components such as system calls,
  869. the user helper functions, VFP support and the ptrace interface are
  870. handled appropriately by the kernel.
  871. If you use a page size other than 4KB (i.e, 16KB or 64KB), please be aware
  872. that you will only be able to execute AArch32 binaries that were compiled
  873. with page size aligned segments.
  874. If you want to execute 32-bit userspace applications, say Y.
  875. config SYSVIPC_COMPAT
  876. def_bool y
  877. depends on COMPAT && SYSVIPC
  878. endmenu
  879. menu "Power management options"
  880. source "kernel/power/Kconfig"
  881. config ARCH_HIBERNATION_POSSIBLE
  882. def_bool y
  883. depends on CPU_PM
  884. config ARCH_HIBERNATION_HEADER
  885. def_bool y
  886. depends on HIBERNATION
  887. config ARCH_SUSPEND_POSSIBLE
  888. def_bool y
  889. endmenu
  890. menu "CPU Power Management"
  891. source "drivers/cpuidle/Kconfig"
  892. source "drivers/cpufreq/Kconfig"
  893. endmenu
  894. source "net/Kconfig"
  895. source "drivers/Kconfig"
  896. source "drivers/firmware/Kconfig"
  897. source "drivers/acpi/Kconfig"
  898. source "fs/Kconfig"
  899. source "arch/arm64/kvm/Kconfig"
  900. source "arch/arm64/Kconfig.debug"
  901. source "security/Kconfig"
  902. source "crypto/Kconfig"
  903. if CRYPTO
  904. source "arch/arm64/crypto/Kconfig"
  905. endif
  906. source "lib/Kconfig"