Kconfig 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395
  1. config ARM64
  2. def_bool y
  3. select ACPI_CCA_REQUIRED if ACPI
  4. select ACPI_GENERIC_GSI if ACPI
  5. select ACPI_GTDT if ACPI
  6. select ACPI_IORT if ACPI
  7. select ACPI_REDUCED_HARDWARE_ONLY if ACPI
  8. select ACPI_MCFG if ACPI
  9. select ACPI_SPCR_TABLE if ACPI
  10. select ACPI_PPTT if ACPI
  11. select ARCH_CLOCKSOURCE_DATA
  12. select ARCH_HAS_DEBUG_VIRTUAL
  13. select ARCH_HAS_DEVMEM_IS_ALLOWED
  14. select ARCH_HAS_DMA_COHERENT_TO_PFN
  15. select ARCH_HAS_DMA_MMAP_PGPROT
  16. select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
  17. select ARCH_HAS_ELF_RANDOMIZE
  18. select ARCH_HAS_FAST_MULTIPLIER
  19. select ARCH_HAS_FORTIFY_SOURCE
  20. select ARCH_HAS_GCOV_PROFILE_ALL
  21. select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
  22. select ARCH_HAS_KCOV
  23. select ARCH_HAS_MEMBARRIER_SYNC_CORE
  24. select ARCH_HAS_PTE_SPECIAL
  25. select ARCH_HAS_SET_MEMORY
  26. select ARCH_HAS_SG_CHAIN
  27. select ARCH_HAS_STRICT_KERNEL_RWX
  28. select ARCH_HAS_STRICT_MODULE_RWX
  29. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  30. select ARCH_HAS_SYNC_DMA_FOR_CPU
  31. select ARCH_HAS_SYSCALL_WRAPPER
  32. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  33. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  34. select ARCH_INLINE_READ_LOCK if !PREEMPT
  35. select ARCH_INLINE_READ_LOCK_BH if !PREEMPT
  36. select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPT
  37. select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPT
  38. select ARCH_INLINE_READ_UNLOCK if !PREEMPT
  39. select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPT
  40. select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPT
  41. select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPT
  42. select ARCH_INLINE_WRITE_LOCK if !PREEMPT
  43. select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPT
  44. select ARCH_INLINE_WRITE_LOCK_IRQ if !PREEMPT
  45. select ARCH_INLINE_WRITE_LOCK_IRQSAVE if !PREEMPT
  46. select ARCH_INLINE_WRITE_UNLOCK if !PREEMPT
  47. select ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPT
  48. select ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPT
  49. select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPT
  50. select ARCH_INLINE_SPIN_TRYLOCK if !PREEMPT
  51. select ARCH_INLINE_SPIN_TRYLOCK_BH if !PREEMPT
  52. select ARCH_INLINE_SPIN_LOCK if !PREEMPT
  53. select ARCH_INLINE_SPIN_LOCK_BH if !PREEMPT
  54. select ARCH_INLINE_SPIN_LOCK_IRQ if !PREEMPT
  55. select ARCH_INLINE_SPIN_LOCK_IRQSAVE if !PREEMPT
  56. select ARCH_INLINE_SPIN_UNLOCK if !PREEMPT
  57. select ARCH_INLINE_SPIN_UNLOCK_BH if !PREEMPT
  58. select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPT
  59. select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPT
  60. select ARCH_USE_CMPXCHG_LOCKREF
  61. select ARCH_USE_QUEUED_RWLOCKS
  62. select ARCH_USE_QUEUED_SPINLOCKS
  63. select ARCH_SUPPORTS_MEMORY_FAILURE
  64. select ARCH_SUPPORTS_ATOMIC_RMW
  65. select ARCH_SUPPORTS_INT128 if GCC_VERSION >= 50000 || CC_IS_CLANG
  66. select ARCH_SUPPORTS_NUMA_BALANCING
  67. select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
  68. select ARCH_WANT_FRAME_POINTERS
  69. select ARCH_HAS_UBSAN_SANITIZE_ALL
  70. select ARM_AMBA
  71. select ARM_ARCH_TIMER
  72. select ARM_GIC
  73. select AUDIT_ARCH_COMPAT_GENERIC
  74. select ARM_GIC_V2M if PCI
  75. select ARM_GIC_V3
  76. select ARM_GIC_V3_ITS if PCI
  77. select ARM_PSCI_FW
  78. select BUILDTIME_EXTABLE_SORT
  79. select CLONE_BACKWARDS
  80. select COMMON_CLK
  81. select CPU_PM if (SUSPEND || CPU_IDLE)
  82. select CRC32
  83. select DCACHE_WORD_ACCESS
  84. select DMA_DIRECT_OPS
  85. select EDAC_SUPPORT
  86. select FRAME_POINTER
  87. select GENERIC_ALLOCATOR
  88. select GENERIC_ARCH_TOPOLOGY
  89. select GENERIC_CLOCKEVENTS
  90. select GENERIC_CLOCKEVENTS_BROADCAST
  91. select GENERIC_CPU_AUTOPROBE
  92. select GENERIC_EARLY_IOREMAP
  93. select GENERIC_IDLE_POLL_SETUP
  94. select GENERIC_IRQ_MULTI_HANDLER
  95. select GENERIC_IRQ_PROBE
  96. select GENERIC_IRQ_SHOW
  97. select GENERIC_IRQ_SHOW_LEVEL
  98. select GENERIC_PCI_IOMAP
  99. select GENERIC_SCHED_CLOCK
  100. select GENERIC_SMP_IDLE_THREAD
  101. select GENERIC_STRNCPY_FROM_USER
  102. select GENERIC_STRNLEN_USER
  103. select GENERIC_TIME_VSYSCALL
  104. select HANDLE_DOMAIN_IRQ
  105. select HARDIRQS_SW_RESEND
  106. select HAVE_ACPI_APEI if (ACPI && EFI)
  107. select HAVE_ALIGNED_STRUCT_PAGE if SLUB
  108. select HAVE_ARCH_AUDITSYSCALL
  109. select HAVE_ARCH_BITREVERSE
  110. select HAVE_ARCH_HUGE_VMAP
  111. select HAVE_ARCH_JUMP_LABEL
  112. select HAVE_ARCH_JUMP_LABEL_RELATIVE
  113. select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
  114. select HAVE_ARCH_KGDB
  115. select HAVE_ARCH_MMAP_RND_BITS
  116. select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
  117. select HAVE_ARCH_PREL32_RELOCATIONS
  118. select HAVE_ARCH_SECCOMP_FILTER
  119. select HAVE_ARCH_STACKLEAK
  120. select HAVE_ARCH_THREAD_STRUCT_WHITELIST
  121. select HAVE_ARCH_TRACEHOOK
  122. select HAVE_ARCH_TRANSPARENT_HUGEPAGE
  123. select HAVE_ARCH_VMAP_STACK
  124. select HAVE_ARM_SMCCC
  125. select HAVE_EBPF_JIT
  126. select HAVE_C_RECORDMCOUNT
  127. select HAVE_CMPXCHG_DOUBLE
  128. select HAVE_CMPXCHG_LOCAL
  129. select HAVE_CONTEXT_TRACKING
  130. select HAVE_DEBUG_BUGVERBOSE
  131. select HAVE_DEBUG_KMEMLEAK
  132. select HAVE_DMA_CONTIGUOUS
  133. select HAVE_DYNAMIC_FTRACE
  134. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  135. select HAVE_FTRACE_MCOUNT_RECORD
  136. select HAVE_FUNCTION_TRACER
  137. select HAVE_FUNCTION_GRAPH_TRACER
  138. select HAVE_GCC_PLUGINS
  139. select HAVE_GENERIC_DMA_COHERENT
  140. select HAVE_HW_BREAKPOINT if PERF_EVENTS
  141. select HAVE_IRQ_TIME_ACCOUNTING
  142. select HAVE_MEMBLOCK_NODE_MAP if NUMA
  143. select HAVE_NMI
  144. select HAVE_PATA_PLATFORM
  145. select HAVE_PERF_EVENTS
  146. select HAVE_PERF_REGS
  147. select HAVE_PERF_USER_STACK_DUMP
  148. select HAVE_REGS_AND_STACK_ACCESS_API
  149. select HAVE_RCU_TABLE_FREE
  150. select HAVE_RCU_TABLE_INVALIDATE
  151. select HAVE_RSEQ
  152. select HAVE_STACKPROTECTOR
  153. select HAVE_SYSCALL_TRACEPOINTS
  154. select HAVE_KPROBES
  155. select HAVE_KRETPROBES
  156. select IOMMU_DMA if IOMMU_SUPPORT
  157. select IRQ_DOMAIN
  158. select IRQ_FORCED_THREADING
  159. select MODULES_USE_ELF_RELA
  160. select MULTI_IRQ_HANDLER
  161. select NEED_DMA_MAP_STATE
  162. select NEED_SG_DMA_LENGTH
  163. select OF
  164. select OF_EARLY_FLATTREE
  165. select OF_RESERVED_MEM
  166. select PCI_ECAM if ACPI
  167. select POWER_RESET
  168. select POWER_SUPPLY
  169. select REFCOUNT_FULL
  170. select SPARSE_IRQ
  171. select SWIOTLB
  172. select SYSCTL_EXCEPTION_TRACE
  173. select THREAD_INFO_IN_TASK
  174. help
  175. ARM 64-bit (AArch64) Linux support.
  176. config 64BIT
  177. def_bool y
  178. config MMU
  179. def_bool y
  180. config ARM64_PAGE_SHIFT
  181. int
  182. default 16 if ARM64_64K_PAGES
  183. default 14 if ARM64_16K_PAGES
  184. default 12
  185. config ARM64_CONT_SHIFT
  186. int
  187. default 5 if ARM64_64K_PAGES
  188. default 7 if ARM64_16K_PAGES
  189. default 4
  190. config ARCH_MMAP_RND_BITS_MIN
  191. default 14 if ARM64_64K_PAGES
  192. default 16 if ARM64_16K_PAGES
  193. default 18
  194. # max bits determined by the following formula:
  195. # VA_BITS - PAGE_SHIFT - 3
  196. config ARCH_MMAP_RND_BITS_MAX
  197. default 19 if ARM64_VA_BITS=36
  198. default 24 if ARM64_VA_BITS=39
  199. default 27 if ARM64_VA_BITS=42
  200. default 30 if ARM64_VA_BITS=47
  201. default 29 if ARM64_VA_BITS=48 && ARM64_64K_PAGES
  202. default 31 if ARM64_VA_BITS=48 && ARM64_16K_PAGES
  203. default 33 if ARM64_VA_BITS=48
  204. default 14 if ARM64_64K_PAGES
  205. default 16 if ARM64_16K_PAGES
  206. default 18
  207. config ARCH_MMAP_RND_COMPAT_BITS_MIN
  208. default 7 if ARM64_64K_PAGES
  209. default 9 if ARM64_16K_PAGES
  210. default 11
  211. config ARCH_MMAP_RND_COMPAT_BITS_MAX
  212. default 16
  213. config NO_IOPORT_MAP
  214. def_bool y if !PCI
  215. config STACKTRACE_SUPPORT
  216. def_bool y
  217. config ILLEGAL_POINTER_VALUE
  218. hex
  219. default 0xdead000000000000
  220. config LOCKDEP_SUPPORT
  221. def_bool y
  222. config TRACE_IRQFLAGS_SUPPORT
  223. def_bool y
  224. config RWSEM_XCHGADD_ALGORITHM
  225. def_bool y
  226. config GENERIC_BUG
  227. def_bool y
  228. depends on BUG
  229. config GENERIC_BUG_RELATIVE_POINTERS
  230. def_bool y
  231. depends on GENERIC_BUG
  232. config GENERIC_HWEIGHT
  233. def_bool y
  234. config GENERIC_CSUM
  235. def_bool y
  236. config GENERIC_CALIBRATE_DELAY
  237. def_bool y
  238. config ZONE_DMA32
  239. def_bool y
  240. config HAVE_GENERIC_GUP
  241. def_bool y
  242. config SMP
  243. def_bool y
  244. config KERNEL_MODE_NEON
  245. def_bool y
  246. config FIX_EARLYCON_MEM
  247. def_bool y
  248. config PGTABLE_LEVELS
  249. int
  250. default 2 if ARM64_16K_PAGES && ARM64_VA_BITS_36
  251. default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42
  252. default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48
  253. default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39
  254. default 3 if ARM64_16K_PAGES && ARM64_VA_BITS_47
  255. default 4 if !ARM64_64K_PAGES && ARM64_VA_BITS_48
  256. config ARCH_SUPPORTS_UPROBES
  257. def_bool y
  258. config ARCH_PROC_KCORE_TEXT
  259. def_bool y
  260. source "arch/arm64/Kconfig.platforms"
  261. menu "Bus support"
  262. config PCI
  263. bool "PCI support"
  264. help
  265. This feature enables support for PCI bus system. If you say Y
  266. here, the kernel will include drivers and infrastructure code
  267. to support PCI bus devices.
  268. config PCI_DOMAINS
  269. def_bool PCI
  270. config PCI_DOMAINS_GENERIC
  271. def_bool PCI
  272. config PCI_SYSCALL
  273. def_bool PCI
  274. source "drivers/pci/Kconfig"
  275. endmenu
  276. menu "Kernel Features"
  277. menu "ARM errata workarounds via the alternatives framework"
  278. config ARM64_ERRATUM_826319
  279. bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
  280. default y
  281. help
  282. This option adds an alternative code sequence to work around ARM
  283. erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
  284. AXI master interface and an L2 cache.
  285. If a Cortex-A53 uses an AMBA AXI4 ACE interface to other processors
  286. and is unable to accept a certain write via this interface, it will
  287. not progress on read data presented on the read data channel and the
  288. system can deadlock.
  289. The workaround promotes data cache clean instructions to
  290. data cache clean-and-invalidate.
  291. Please note that this does not necessarily enable the workaround,
  292. as it depends on the alternative framework, which will only patch
  293. the kernel if an affected CPU is detected.
  294. If unsure, say Y.
  295. config ARM64_ERRATUM_827319
  296. bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
  297. default y
  298. help
  299. This option adds an alternative code sequence to work around ARM
  300. erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
  301. master interface and an L2 cache.
  302. Under certain conditions this erratum can cause a clean line eviction
  303. to occur at the same time as another transaction to the same address
  304. on the AMBA 5 CHI interface, which can cause data corruption if the
  305. interconnect reorders the two transactions.
  306. The workaround promotes data cache clean instructions to
  307. data cache clean-and-invalidate.
  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_824069
  313. bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
  314. default y
  315. help
  316. This option adds an alternative code sequence to work around ARM
  317. erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
  318. to a coherent interconnect.
  319. If a Cortex-A53 processor is executing a store or prefetch for
  320. write instruction at the same time as a processor in another
  321. cluster is executing a cache maintenance operation to the same
  322. address, then this erratum might cause a clean cache line to be
  323. incorrectly marked as dirty.
  324. The workaround promotes data cache clean instructions to
  325. data cache clean-and-invalidate.
  326. Please note that this option does not necessarily enable the
  327. workaround, as it depends on the alternative framework, which will
  328. only patch the kernel if an affected CPU is detected.
  329. If unsure, say Y.
  330. config ARM64_ERRATUM_819472
  331. bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
  332. default y
  333. help
  334. This option adds an alternative code sequence to work around ARM
  335. erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
  336. present when it is connected to a coherent interconnect.
  337. If the processor is executing a load and store exclusive sequence at
  338. the same time as a processor in another cluster is executing a cache
  339. maintenance operation to the same address, then this erratum might
  340. cause data corruption.
  341. The workaround promotes data cache clean instructions to
  342. data cache clean-and-invalidate.
  343. Please note that this does not necessarily enable the workaround,
  344. as it depends on the alternative framework, which will only patch
  345. the kernel if an affected CPU is detected.
  346. If unsure, say Y.
  347. config ARM64_ERRATUM_832075
  348. bool "Cortex-A57: 832075: possible deadlock on mixing exclusive memory accesses with device loads"
  349. default y
  350. help
  351. This option adds an alternative code sequence to work around ARM
  352. erratum 832075 on Cortex-A57 parts up to r1p2.
  353. Affected Cortex-A57 parts might deadlock when exclusive load/store
  354. instructions to Write-Back memory are mixed with Device loads.
  355. The workaround is to promote device loads to use Load-Acquire
  356. semantics.
  357. Please note that this does not necessarily enable the workaround,
  358. as it depends on the alternative framework, which will only patch
  359. the kernel if an affected CPU is detected.
  360. If unsure, say Y.
  361. config ARM64_ERRATUM_834220
  362. bool "Cortex-A57: 834220: Stage 2 translation fault might be incorrectly reported in presence of a Stage 1 fault"
  363. depends on KVM
  364. default y
  365. help
  366. This option adds an alternative code sequence to work around ARM
  367. erratum 834220 on Cortex-A57 parts up to r1p2.
  368. Affected Cortex-A57 parts might report a Stage 2 translation
  369. fault as the result of a Stage 1 fault for load crossing a
  370. page boundary when there is a permission or device memory
  371. alignment fault at Stage 1 and a translation fault at Stage 2.
  372. The workaround is to verify that the Stage 1 translation
  373. doesn't generate a fault before handling the Stage 2 fault.
  374. Please note that this does not necessarily enable the workaround,
  375. as it depends on the alternative framework, which will only patch
  376. the kernel if an affected CPU is detected.
  377. If unsure, say Y.
  378. config ARM64_ERRATUM_845719
  379. bool "Cortex-A53: 845719: a load might read incorrect data"
  380. depends on COMPAT
  381. default y
  382. help
  383. This option adds an alternative code sequence to work around ARM
  384. erratum 845719 on Cortex-A53 parts up to r0p4.
  385. When running a compat (AArch32) userspace on an affected Cortex-A53
  386. part, a load at EL0 from a virtual address that matches the bottom 32
  387. bits of the virtual address used by a recent load at (AArch64) EL1
  388. might return incorrect data.
  389. The workaround is to write the contextidr_el1 register on exception
  390. return to a 32-bit task.
  391. Please note that this does not necessarily enable the workaround,
  392. as it depends on the alternative framework, which will only patch
  393. the kernel if an affected CPU is detected.
  394. If unsure, say Y.
  395. config ARM64_ERRATUM_843419
  396. bool "Cortex-A53: 843419: A load or store might access an incorrect address"
  397. default y
  398. select ARM64_MODULE_PLTS if MODULES
  399. help
  400. This option links the kernel with '--fix-cortex-a53-843419' and
  401. enables PLT support to replace certain ADRP instructions, which can
  402. cause subsequent memory accesses to use an incorrect address on
  403. Cortex-A53 parts up to r0p4.
  404. If unsure, say Y.
  405. config ARM64_ERRATUM_1024718
  406. bool "Cortex-A55: 1024718: Update of DBM/AP bits without break before make might result in incorrect update"
  407. default y
  408. help
  409. This option adds work around for Arm Cortex-A55 Erratum 1024718.
  410. Affected Cortex-A55 cores (r0p0, r0p1, r1p0) could cause incorrect
  411. update of the hardware dirty bit when the DBM/AP bits are updated
  412. without a break-before-make. The work around is to disable the usage
  413. of hardware DBM locally on the affected cores. CPUs not affected by
  414. erratum will continue to use the feature.
  415. If unsure, say Y.
  416. config ARM64_ERRATUM_1188873
  417. bool "Cortex-A76: MRC read following MRRC read of specific Generic Timer in AArch32 might give incorrect result"
  418. default y
  419. select ARM_ARCH_TIMER_OOL_WORKAROUND
  420. help
  421. This option adds work arounds for ARM Cortex-A76 erratum 1188873
  422. Affected Cortex-A76 cores (r0p0, r1p0, r2p0) could cause
  423. register corruption when accessing the timer registers from
  424. AArch32 userspace.
  425. If unsure, say Y.
  426. config ARM64_ERRATUM_1286807
  427. bool "Cortex-A76: Modification of the translation table for a virtual address might lead to read-after-read ordering violation"
  428. default y
  429. select ARM64_WORKAROUND_REPEAT_TLBI
  430. help
  431. This option adds workaround for ARM Cortex-A76 erratum 1286807
  432. On the affected Cortex-A76 cores (r0p0 to r3p0), if a virtual
  433. address for a cacheable mapping of a location is being
  434. accessed by a core while another core is remapping the virtual
  435. address to a new physical page using the recommended
  436. break-before-make sequence, then under very rare circumstances
  437. TLBI+DSB completes before a read using the translation being
  438. invalidated has been observed by other observers. The
  439. workaround repeats the TLBI+DSB operation.
  440. If unsure, say Y.
  441. config CAVIUM_ERRATUM_22375
  442. bool "Cavium erratum 22375, 24313"
  443. default y
  444. help
  445. Enable workaround for erratum 22375, 24313.
  446. This implements two gicv3-its errata workarounds for ThunderX. Both
  447. with small impact affecting only ITS table allocation.
  448. erratum 22375: only alloc 8MB table size
  449. erratum 24313: ignore memory access type
  450. The fixes are in ITS initialization and basically ignore memory access
  451. type and table size provided by the TYPER and BASER registers.
  452. If unsure, say Y.
  453. config CAVIUM_ERRATUM_23144
  454. bool "Cavium erratum 23144: ITS SYNC hang on dual socket system"
  455. depends on NUMA
  456. default y
  457. help
  458. ITS SYNC command hang for cross node io and collections/cpu mapping.
  459. If unsure, say Y.
  460. config CAVIUM_ERRATUM_23154
  461. bool "Cavium erratum 23154: Access to ICC_IAR1_EL1 is not sync'ed"
  462. default y
  463. help
  464. The gicv3 of ThunderX requires a modified version for
  465. reading the IAR status to ensure data synchronization
  466. (access to icc_iar1_el1 is not sync'ed before and after).
  467. If unsure, say Y.
  468. config CAVIUM_ERRATUM_27456
  469. bool "Cavium erratum 27456: Broadcast TLBI instructions may cause icache corruption"
  470. default y
  471. help
  472. On ThunderX T88 pass 1.x through 2.1 parts, broadcast TLBI
  473. instructions may cause the icache to become corrupted if it
  474. contains data for a non-current ASID. The fix is to
  475. invalidate the icache when changing the mm context.
  476. If unsure, say Y.
  477. config CAVIUM_ERRATUM_30115
  478. bool "Cavium erratum 30115: Guest may disable interrupts in host"
  479. default y
  480. help
  481. On ThunderX T88 pass 1.x through 2.2, T81 pass 1.0 through
  482. 1.2, and T83 Pass 1.0, KVM guest execution may disable
  483. interrupts in host. Trapping both GICv3 group-0 and group-1
  484. accesses sidesteps the issue.
  485. If unsure, say Y.
  486. config QCOM_FALKOR_ERRATUM_1003
  487. bool "Falkor E1003: Incorrect translation due to ASID change"
  488. default y
  489. help
  490. On Falkor v1, an incorrect ASID may be cached in the TLB when ASID
  491. and BADDR are changed together in TTBRx_EL1. Since we keep the ASID
  492. in TTBR1_EL1, this situation only occurs in the entry trampoline and
  493. then only for entries in the walk cache, since the leaf translation
  494. is unchanged. Work around the erratum by invalidating the walk cache
  495. entries for the trampoline before entering the kernel proper.
  496. config ARM64_WORKAROUND_REPEAT_TLBI
  497. bool
  498. help
  499. Enable the repeat TLBI workaround for Falkor erratum 1009 and
  500. Cortex-A76 erratum 1286807.
  501. config QCOM_FALKOR_ERRATUM_1009
  502. bool "Falkor E1009: Prematurely complete a DSB after a TLBI"
  503. default y
  504. select ARM64_WORKAROUND_REPEAT_TLBI
  505. help
  506. On Falkor v1, the CPU may prematurely complete a DSB following a
  507. TLBI xxIS invalidate maintenance operation. Repeat the TLBI operation
  508. one more time to fix the issue.
  509. If unsure, say Y.
  510. config QCOM_QDF2400_ERRATUM_0065
  511. bool "QDF2400 E0065: Incorrect GITS_TYPER.ITT_Entry_size"
  512. default y
  513. help
  514. On Qualcomm Datacenter Technologies QDF2400 SoC, ITS hardware reports
  515. ITE size incorrectly. The GITS_TYPER.ITT_Entry_size field should have
  516. been indicated as 16Bytes (0xf), not 8Bytes (0x7).
  517. If unsure, say Y.
  518. config SOCIONEXT_SYNQUACER_PREITS
  519. bool "Socionext Synquacer: Workaround for GICv3 pre-ITS"
  520. default y
  521. help
  522. Socionext Synquacer SoCs implement a separate h/w block to generate
  523. MSI doorbell writes with non-zero values for the device ID.
  524. If unsure, say Y.
  525. config HISILICON_ERRATUM_161600802
  526. bool "Hip07 161600802: Erroneous redistributor VLPI base"
  527. default y
  528. help
  529. The HiSilicon Hip07 SoC usees the wrong redistributor base
  530. when issued ITS commands such as VMOVP and VMAPP, and requires
  531. a 128kB offset to be applied to the target address in this commands.
  532. If unsure, say Y.
  533. config QCOM_FALKOR_ERRATUM_E1041
  534. bool "Falkor E1041: Speculative instruction fetches might cause errant memory access"
  535. default y
  536. help
  537. Falkor CPU may speculatively fetch instructions from an improper
  538. memory location when MMU translation is changed from SCTLR_ELn[M]=1
  539. to SCTLR_ELn[M]=0. Prefix an ISB instruction to fix the problem.
  540. If unsure, say Y.
  541. endmenu
  542. choice
  543. prompt "Page size"
  544. default ARM64_4K_PAGES
  545. help
  546. Page size (translation granule) configuration.
  547. config ARM64_4K_PAGES
  548. bool "4KB"
  549. help
  550. This feature enables 4KB pages support.
  551. config ARM64_16K_PAGES
  552. bool "16KB"
  553. help
  554. The system will use 16KB pages support. AArch32 emulation
  555. requires applications compiled with 16K (or a multiple of 16K)
  556. aligned segments.
  557. config ARM64_64K_PAGES
  558. bool "64KB"
  559. help
  560. This feature enables 64KB pages support (4KB by default)
  561. allowing only two levels of page tables and faster TLB
  562. look-up. AArch32 emulation requires applications compiled
  563. with 64K aligned segments.
  564. endchoice
  565. choice
  566. prompt "Virtual address space size"
  567. default ARM64_VA_BITS_39 if ARM64_4K_PAGES
  568. default ARM64_VA_BITS_47 if ARM64_16K_PAGES
  569. default ARM64_VA_BITS_42 if ARM64_64K_PAGES
  570. help
  571. Allows choosing one of multiple possible virtual address
  572. space sizes. The level of translation table is determined by
  573. a combination of page size and virtual address space size.
  574. config ARM64_VA_BITS_36
  575. bool "36-bit" if EXPERT
  576. depends on ARM64_16K_PAGES
  577. config ARM64_VA_BITS_39
  578. bool "39-bit"
  579. depends on ARM64_4K_PAGES
  580. config ARM64_VA_BITS_42
  581. bool "42-bit"
  582. depends on ARM64_64K_PAGES
  583. config ARM64_VA_BITS_47
  584. bool "47-bit"
  585. depends on ARM64_16K_PAGES
  586. config ARM64_VA_BITS_48
  587. bool "48-bit"
  588. endchoice
  589. config ARM64_VA_BITS
  590. int
  591. default 36 if ARM64_VA_BITS_36
  592. default 39 if ARM64_VA_BITS_39
  593. default 42 if ARM64_VA_BITS_42
  594. default 47 if ARM64_VA_BITS_47
  595. default 48 if ARM64_VA_BITS_48
  596. choice
  597. prompt "Physical address space size"
  598. default ARM64_PA_BITS_48
  599. help
  600. Choose the maximum physical address range that the kernel will
  601. support.
  602. config ARM64_PA_BITS_48
  603. bool "48-bit"
  604. config ARM64_PA_BITS_52
  605. bool "52-bit (ARMv8.2)"
  606. depends on ARM64_64K_PAGES
  607. depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
  608. help
  609. Enable support for a 52-bit physical address space, introduced as
  610. part of the ARMv8.2-LPA extension.
  611. With this enabled, the kernel will also continue to work on CPUs that
  612. do not support ARMv8.2-LPA, but with some added memory overhead (and
  613. minor performance overhead).
  614. endchoice
  615. config ARM64_PA_BITS
  616. int
  617. default 48 if ARM64_PA_BITS_48
  618. default 52 if ARM64_PA_BITS_52
  619. config CPU_BIG_ENDIAN
  620. bool "Build big-endian kernel"
  621. help
  622. Say Y if you plan on running a kernel in big-endian mode.
  623. config SCHED_MC
  624. bool "Multi-core scheduler support"
  625. help
  626. Multi-core scheduler support improves the CPU scheduler's decision
  627. making when dealing with multi-core CPU chips at a cost of slightly
  628. increased overhead in some places. If unsure say N here.
  629. config SCHED_SMT
  630. bool "SMT scheduler support"
  631. help
  632. Improves the CPU scheduler's decision making when dealing with
  633. MultiThreading at a cost of slightly increased overhead in some
  634. places. If unsure say N here.
  635. config NR_CPUS
  636. int "Maximum number of CPUs (2-4096)"
  637. range 2 4096
  638. # These have to remain sorted largest to smallest
  639. default "64"
  640. config HOTPLUG_CPU
  641. bool "Support for hot-pluggable CPUs"
  642. select GENERIC_IRQ_MIGRATION
  643. help
  644. Say Y here to experiment with turning CPUs off and on. CPUs
  645. can be controlled through /sys/devices/system/cpu.
  646. # Common NUMA Features
  647. config NUMA
  648. bool "Numa Memory Allocation and Scheduler Support"
  649. select ACPI_NUMA if ACPI
  650. select OF_NUMA
  651. help
  652. Enable NUMA (Non Uniform Memory Access) support.
  653. The kernel will try to allocate memory used by a CPU on the
  654. local memory of the CPU and add some more
  655. NUMA awareness to the kernel.
  656. config NODES_SHIFT
  657. int "Maximum NUMA Nodes (as a power of 2)"
  658. range 1 10
  659. default "2"
  660. depends on NEED_MULTIPLE_NODES
  661. help
  662. Specify the maximum number of NUMA Nodes available on the target
  663. system. Increases memory reserved to accommodate various tables.
  664. config USE_PERCPU_NUMA_NODE_ID
  665. def_bool y
  666. depends on NUMA
  667. config HAVE_SETUP_PER_CPU_AREA
  668. def_bool y
  669. depends on NUMA
  670. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  671. def_bool y
  672. depends on NUMA
  673. config HOLES_IN_ZONE
  674. def_bool y
  675. source kernel/Kconfig.hz
  676. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  677. def_bool y
  678. config ARCH_SPARSEMEM_ENABLE
  679. def_bool y
  680. select SPARSEMEM_VMEMMAP_ENABLE
  681. config ARCH_SPARSEMEM_DEFAULT
  682. def_bool ARCH_SPARSEMEM_ENABLE
  683. config ARCH_SELECT_MEMORY_MODEL
  684. def_bool ARCH_SPARSEMEM_ENABLE
  685. config ARCH_FLATMEM_ENABLE
  686. def_bool !NUMA
  687. config HAVE_ARCH_PFN_VALID
  688. def_bool y
  689. config HW_PERF_EVENTS
  690. def_bool y
  691. depends on ARM_PMU
  692. config SYS_SUPPORTS_HUGETLBFS
  693. def_bool y
  694. config ARCH_WANT_HUGE_PMD_SHARE
  695. def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36)
  696. config ARCH_HAS_CACHE_LINE_SIZE
  697. def_bool y
  698. config SECCOMP
  699. bool "Enable seccomp to safely compute untrusted bytecode"
  700. ---help---
  701. This kernel feature is useful for number crunching applications
  702. that may need to compute untrusted bytecode during their
  703. execution. By using pipes or other transports made available to
  704. the process as file descriptors supporting the read/write
  705. syscalls, it's possible to isolate those applications in
  706. their own address space using seccomp. Once seccomp is
  707. enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
  708. and the task is only allowed to execute a few safe syscalls
  709. defined by each seccomp mode.
  710. config PARAVIRT
  711. bool "Enable paravirtualization code"
  712. help
  713. This changes the kernel so it can modify itself when it is run
  714. under a hypervisor, potentially improving performance significantly
  715. over full virtualization.
  716. config PARAVIRT_TIME_ACCOUNTING
  717. bool "Paravirtual steal time accounting"
  718. select PARAVIRT
  719. default n
  720. help
  721. Select this option to enable fine granularity task steal time
  722. accounting. Time spent executing other tasks in parallel with
  723. the current vCPU is discounted from the vCPU power. To account for
  724. that, there can be a small performance impact.
  725. If in doubt, say N here.
  726. config KEXEC
  727. depends on PM_SLEEP_SMP
  728. select KEXEC_CORE
  729. bool "kexec system call"
  730. ---help---
  731. kexec is a system call that implements the ability to shutdown your
  732. current kernel, and to start another kernel. It is like a reboot
  733. but it is independent of the system firmware. And like a reboot
  734. you can start any kernel with it, not just Linux.
  735. config CRASH_DUMP
  736. bool "Build kdump crash kernel"
  737. help
  738. Generate crash dump after being started by kexec. This should
  739. be normally only set in special crash dump kernels which are
  740. loaded in the main kernel with kexec-tools into a specially
  741. reserved region and then later executed after a crash by
  742. kdump/kexec.
  743. For more details see Documentation/kdump/kdump.txt
  744. config XEN_DOM0
  745. def_bool y
  746. depends on XEN
  747. config XEN
  748. bool "Xen guest support on ARM64"
  749. depends on ARM64 && OF
  750. select SWIOTLB_XEN
  751. select PARAVIRT
  752. help
  753. Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
  754. config FORCE_MAX_ZONEORDER
  755. int
  756. default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
  757. default "12" if (ARM64_16K_PAGES && TRANSPARENT_HUGEPAGE)
  758. default "11"
  759. help
  760. The kernel memory allocator divides physically contiguous memory
  761. blocks into "zones", where each zone is a power of two number of
  762. pages. This option selects the largest power of two that the kernel
  763. keeps in the memory allocator. If you need to allocate very large
  764. blocks of physically contiguous memory, then you may need to
  765. increase this value.
  766. This config option is actually maximum order plus one. For example,
  767. a value of 11 means that the largest free memory block is 2^10 pages.
  768. We make sure that we can allocate upto a HugePage size for each configuration.
  769. Hence we have :
  770. MAX_ORDER = (PMD_SHIFT - PAGE_SHIFT) + 1 => PAGE_SHIFT - 2
  771. However for 4K, we choose a higher default value, 11 as opposed to 10, giving us
  772. 4M allocations matching the default size used by generic code.
  773. config UNMAP_KERNEL_AT_EL0
  774. bool "Unmap kernel when running in userspace (aka \"KAISER\")" if EXPERT
  775. default y
  776. help
  777. Speculation attacks against some high-performance processors can
  778. be used to bypass MMU permission checks and leak kernel data to
  779. userspace. This can be defended against by unmapping the kernel
  780. when running in userspace, mapping it back in on exception entry
  781. via a trampoline page in the vector table.
  782. If unsure, say Y.
  783. config HARDEN_BRANCH_PREDICTOR
  784. bool "Harden the branch predictor against aliasing attacks" if EXPERT
  785. default y
  786. help
  787. Speculation attacks against some high-performance processors rely on
  788. being able to manipulate the branch predictor for a victim context by
  789. executing aliasing branches in the attacker context. Such attacks
  790. can be partially mitigated against by clearing internal branch
  791. predictor state and limiting the prediction logic in some situations.
  792. This config option will take CPU-specific actions to harden the
  793. branch predictor against aliasing attacks and may rely on specific
  794. instruction sequences or control bits being set by the system
  795. firmware.
  796. If unsure, say Y.
  797. config HARDEN_EL2_VECTORS
  798. bool "Harden EL2 vector mapping against system register leak" if EXPERT
  799. default y
  800. help
  801. Speculation attacks against some high-performance processors can
  802. be used to leak privileged information such as the vector base
  803. register, resulting in a potential defeat of the EL2 layout
  804. randomization.
  805. This config option will map the vectors to a fixed location,
  806. independent of the EL2 code mapping, so that revealing VBAR_EL2
  807. to an attacker does not give away any extra information. This
  808. only gets enabled on affected CPUs.
  809. If unsure, say Y.
  810. config ARM64_SSBD
  811. bool "Speculative Store Bypass Disable" if EXPERT
  812. default y
  813. help
  814. This enables mitigation of the bypassing of previous stores
  815. by speculative loads.
  816. If unsure, say Y.
  817. menuconfig ARMV8_DEPRECATED
  818. bool "Emulate deprecated/obsolete ARMv8 instructions"
  819. depends on COMPAT
  820. depends on SYSCTL
  821. help
  822. Legacy software support may require certain instructions
  823. that have been deprecated or obsoleted in the architecture.
  824. Enable this config to enable selective emulation of these
  825. features.
  826. If unsure, say Y
  827. if ARMV8_DEPRECATED
  828. config SWP_EMULATION
  829. bool "Emulate SWP/SWPB instructions"
  830. help
  831. ARMv8 obsoletes the use of A32 SWP/SWPB instructions such that
  832. they are always undefined. Say Y here to enable software
  833. emulation of these instructions for userspace using LDXR/STXR.
  834. In some older versions of glibc [<=2.8] SWP is used during futex
  835. trylock() operations with the assumption that the code will not
  836. be preempted. This invalid assumption may be more likely to fail
  837. with SWP emulation enabled, leading to deadlock of the user
  838. application.
  839. NOTE: when accessing uncached shared regions, LDXR/STXR rely
  840. on an external transaction monitoring block called a global
  841. monitor to maintain update atomicity. If your system does not
  842. implement a global monitor, this option can cause programs that
  843. perform SWP operations to uncached memory to deadlock.
  844. If unsure, say Y
  845. config CP15_BARRIER_EMULATION
  846. bool "Emulate CP15 Barrier instructions"
  847. help
  848. The CP15 barrier instructions - CP15ISB, CP15DSB, and
  849. CP15DMB - are deprecated in ARMv8 (and ARMv7). It is
  850. strongly recommended to use the ISB, DSB, and DMB
  851. instructions instead.
  852. Say Y here to enable software emulation of these
  853. instructions for AArch32 userspace code. When this option is
  854. enabled, CP15 barrier usage is traced which can help
  855. identify software that needs updating.
  856. If unsure, say Y
  857. config SETEND_EMULATION
  858. bool "Emulate SETEND instruction"
  859. help
  860. The SETEND instruction alters the data-endianness of the
  861. AArch32 EL0, and is deprecated in ARMv8.
  862. Say Y here to enable software emulation of the instruction
  863. for AArch32 userspace code.
  864. Note: All the cpus on the system must have mixed endian support at EL0
  865. for this feature to be enabled. If a new CPU - which doesn't support mixed
  866. endian - is hotplugged in after this feature has been enabled, there could
  867. be unexpected results in the applications.
  868. If unsure, say Y
  869. endif
  870. config ARM64_SW_TTBR0_PAN
  871. bool "Emulate Privileged Access Never using TTBR0_EL1 switching"
  872. help
  873. Enabling this option prevents the kernel from accessing
  874. user-space memory directly by pointing TTBR0_EL1 to a reserved
  875. zeroed area and reserved ASID. The user access routines
  876. restore the valid TTBR0_EL1 temporarily.
  877. menu "ARMv8.1 architectural features"
  878. config ARM64_HW_AFDBM
  879. bool "Support for hardware updates of the Access and Dirty page flags"
  880. default y
  881. help
  882. The ARMv8.1 architecture extensions introduce support for
  883. hardware updates of the access and dirty information in page
  884. table entries. When enabled in TCR_EL1 (HA and HD bits) on
  885. capable processors, accesses to pages with PTE_AF cleared will
  886. set this bit instead of raising an access flag fault.
  887. Similarly, writes to read-only pages with the DBM bit set will
  888. clear the read-only bit (AP[2]) instead of raising a
  889. permission fault.
  890. Kernels built with this configuration option enabled continue
  891. to work on pre-ARMv8.1 hardware and the performance impact is
  892. minimal. If unsure, say Y.
  893. config ARM64_PAN
  894. bool "Enable support for Privileged Access Never (PAN)"
  895. default y
  896. help
  897. Privileged Access Never (PAN; part of the ARMv8.1 Extensions)
  898. prevents the kernel or hypervisor from accessing user-space (EL0)
  899. memory directly.
  900. Choosing this option will cause any unprotected (not using
  901. copy_to_user et al) memory access to fail with a permission fault.
  902. The feature is detected at runtime, and will remain as a 'nop'
  903. instruction if the cpu does not implement the feature.
  904. config ARM64_LSE_ATOMICS
  905. bool "Atomic instructions"
  906. default y
  907. help
  908. As part of the Large System Extensions, ARMv8.1 introduces new
  909. atomic instructions that are designed specifically to scale in
  910. very large systems.
  911. Say Y here to make use of these instructions for the in-kernel
  912. atomic routines. This incurs a small overhead on CPUs that do
  913. not support these instructions and requires the kernel to be
  914. built with binutils >= 2.25 in order for the new instructions
  915. to be used.
  916. config ARM64_VHE
  917. bool "Enable support for Virtualization Host Extensions (VHE)"
  918. default y
  919. help
  920. Virtualization Host Extensions (VHE) allow the kernel to run
  921. directly at EL2 (instead of EL1) on processors that support
  922. it. This leads to better performance for KVM, as they reduce
  923. the cost of the world switch.
  924. Selecting this option allows the VHE feature to be detected
  925. at runtime, and does not affect processors that do not
  926. implement this feature.
  927. endmenu
  928. menu "ARMv8.2 architectural features"
  929. config ARM64_UAO
  930. bool "Enable support for User Access Override (UAO)"
  931. default y
  932. help
  933. User Access Override (UAO; part of the ARMv8.2 Extensions)
  934. causes the 'unprivileged' variant of the load/store instructions to
  935. be overridden to be privileged.
  936. This option changes get_user() and friends to use the 'unprivileged'
  937. variant of the load/store instructions. This ensures that user-space
  938. really did have access to the supplied memory. When addr_limit is
  939. set to kernel memory the UAO bit will be set, allowing privileged
  940. access to kernel memory.
  941. Choosing this option will cause copy_to_user() et al to use user-space
  942. memory permissions.
  943. The feature is detected at runtime, the kernel will use the
  944. regular load/store instructions if the cpu does not implement the
  945. feature.
  946. config ARM64_PMEM
  947. bool "Enable support for persistent memory"
  948. select ARCH_HAS_PMEM_API
  949. select ARCH_HAS_UACCESS_FLUSHCACHE
  950. help
  951. Say Y to enable support for the persistent memory API based on the
  952. ARMv8.2 DCPoP feature.
  953. The feature is detected at runtime, and the kernel will use DC CVAC
  954. operations if DC CVAP is not supported (following the behaviour of
  955. DC CVAP itself if the system does not define a point of persistence).
  956. config ARM64_RAS_EXTN
  957. bool "Enable support for RAS CPU Extensions"
  958. default y
  959. help
  960. CPUs that support the Reliability, Availability and Serviceability
  961. (RAS) Extensions, part of ARMv8.2 are able to track faults and
  962. errors, classify them and report them to software.
  963. On CPUs with these extensions system software can use additional
  964. barriers to determine if faults are pending and read the
  965. classification from a new set of registers.
  966. Selecting this feature will allow the kernel to use these barriers
  967. and access the new registers if the system supports the extension.
  968. Platform RAS features may additionally depend on firmware support.
  969. config ARM64_CNP
  970. bool "Enable support for Common Not Private (CNP) translations"
  971. default y
  972. depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
  973. help
  974. Common Not Private (CNP) allows translation table entries to
  975. be shared between different PEs in the same inner shareable
  976. domain, so the hardware can use this fact to optimise the
  977. caching of such entries in the TLB.
  978. Selecting this option allows the CNP feature to be detected
  979. at runtime, and does not affect PEs that do not implement
  980. this feature.
  981. endmenu
  982. config ARM64_SVE
  983. bool "ARM Scalable Vector Extension support"
  984. default y
  985. depends on !KVM || ARM64_VHE
  986. help
  987. The Scalable Vector Extension (SVE) is an extension to the AArch64
  988. execution state which complements and extends the SIMD functionality
  989. of the base architecture to support much larger vectors and to enable
  990. additional vectorisation opportunities.
  991. To enable use of this extension on CPUs that implement it, say Y.
  992. Note that for architectural reasons, firmware _must_ implement SVE
  993. support when running on SVE capable hardware. The required support
  994. is present in:
  995. * version 1.5 and later of the ARM Trusted Firmware
  996. * the AArch64 boot wrapper since commit 5e1261e08abf
  997. ("bootwrapper: SVE: Enable SVE for EL2 and below").
  998. For other firmware implementations, consult the firmware documentation
  999. or vendor.
  1000. If you need the kernel to boot on SVE-capable hardware with broken
  1001. firmware, you may need to say N here until you get your firmware
  1002. fixed. Otherwise, you may experience firmware panics or lockups when
  1003. booting the kernel. If unsure and you are not observing these
  1004. symptoms, you should assume that it is safe to say Y.
  1005. CPUs that support SVE are architecturally required to support the
  1006. Virtualization Host Extensions (VHE), so the kernel makes no
  1007. provision for supporting SVE alongside KVM without VHE enabled.
  1008. Thus, you will need to enable CONFIG_ARM64_VHE if you want to support
  1009. KVM in the same kernel image.
  1010. config ARM64_MODULE_PLTS
  1011. bool
  1012. select HAVE_MOD_ARCH_SPECIFIC
  1013. config RELOCATABLE
  1014. bool
  1015. help
  1016. This builds the kernel as a Position Independent Executable (PIE),
  1017. which retains all relocation metadata required to relocate the
  1018. kernel binary at runtime to a different virtual address than the
  1019. address it was linked at.
  1020. Since AArch64 uses the RELA relocation format, this requires a
  1021. relocation pass at runtime even if the kernel is loaded at the
  1022. same address it was linked at.
  1023. config RANDOMIZE_BASE
  1024. bool "Randomize the address of the kernel image"
  1025. select ARM64_MODULE_PLTS if MODULES
  1026. select RELOCATABLE
  1027. help
  1028. Randomizes the virtual address at which the kernel image is
  1029. loaded, as a security feature that deters exploit attempts
  1030. relying on knowledge of the location of kernel internals.
  1031. It is the bootloader's job to provide entropy, by passing a
  1032. random u64 value in /chosen/kaslr-seed at kernel entry.
  1033. When booting via the UEFI stub, it will invoke the firmware's
  1034. EFI_RNG_PROTOCOL implementation (if available) to supply entropy
  1035. to the kernel proper. In addition, it will randomise the physical
  1036. location of the kernel Image as well.
  1037. If unsure, say N.
  1038. config RANDOMIZE_MODULE_REGION_FULL
  1039. bool "Randomize the module region over a 4 GB range"
  1040. depends on RANDOMIZE_BASE
  1041. default y
  1042. help
  1043. Randomizes the location of the module region inside a 4 GB window
  1044. covering the core kernel. This way, it is less likely for modules
  1045. to leak information about the location of core kernel data structures
  1046. but it does imply that function calls between modules and the core
  1047. kernel will need to be resolved via veneers in the module PLT.
  1048. When this option is not set, the module region will be randomized over
  1049. a limited range that contains the [_stext, _etext] interval of the
  1050. core kernel, so branch relocations are always in range.
  1051. endmenu
  1052. menu "Boot options"
  1053. config ARM64_ACPI_PARKING_PROTOCOL
  1054. bool "Enable support for the ARM64 ACPI parking protocol"
  1055. depends on ACPI
  1056. help
  1057. Enable support for the ARM64 ACPI parking protocol. If disabled
  1058. the kernel will not allow booting through the ARM64 ACPI parking
  1059. protocol even if the corresponding data is present in the ACPI
  1060. MADT table.
  1061. config CMDLINE
  1062. string "Default kernel command string"
  1063. default ""
  1064. help
  1065. Provide a set of default command-line options at build time by
  1066. entering them here. As a minimum, you should specify the the
  1067. root device (e.g. root=/dev/nfs).
  1068. config CMDLINE_FORCE
  1069. bool "Always use the default kernel command string"
  1070. help
  1071. Always use the default kernel command string, even if the boot
  1072. loader passes other arguments to the kernel.
  1073. This is useful if you cannot or don't want to change the
  1074. command-line options your boot loader passes to the kernel.
  1075. config EFI_STUB
  1076. bool
  1077. config EFI
  1078. bool "UEFI runtime support"
  1079. depends on OF && !CPU_BIG_ENDIAN
  1080. depends on KERNEL_MODE_NEON
  1081. select ARCH_SUPPORTS_ACPI
  1082. select LIBFDT
  1083. select UCS2_STRING
  1084. select EFI_PARAMS_FROM_FDT
  1085. select EFI_RUNTIME_WRAPPERS
  1086. select EFI_STUB
  1087. select EFI_ARMSTUB
  1088. default y
  1089. help
  1090. This option provides support for runtime services provided
  1091. by UEFI firmware (such as non-volatile variables, realtime
  1092. clock, and platform reset). A UEFI stub is also provided to
  1093. allow the kernel to be booted as an EFI application. This
  1094. is only useful on systems that have UEFI firmware.
  1095. config DMI
  1096. bool "Enable support for SMBIOS (DMI) tables"
  1097. depends on EFI
  1098. default y
  1099. help
  1100. This enables SMBIOS/DMI feature for systems.
  1101. This option is only useful on systems that have UEFI firmware.
  1102. However, even with this option, the resultant kernel should
  1103. continue to boot on existing non-UEFI platforms.
  1104. endmenu
  1105. config COMPAT
  1106. bool "Kernel support for 32-bit EL0"
  1107. depends on ARM64_4K_PAGES || EXPERT
  1108. select COMPAT_BINFMT_ELF if BINFMT_ELF
  1109. select HAVE_UID16
  1110. select OLD_SIGSUSPEND3
  1111. select COMPAT_OLD_SIGACTION
  1112. help
  1113. This option enables support for a 32-bit EL0 running under a 64-bit
  1114. kernel at EL1. AArch32-specific components such as system calls,
  1115. the user helper functions, VFP support and the ptrace interface are
  1116. handled appropriately by the kernel.
  1117. If you use a page size other than 4KB (i.e, 16KB or 64KB), please be aware
  1118. that you will only be able to execute AArch32 binaries that were compiled
  1119. with page size aligned segments.
  1120. If you want to execute 32-bit userspace applications, say Y.
  1121. config SYSVIPC_COMPAT
  1122. def_bool y
  1123. depends on COMPAT && SYSVIPC
  1124. menu "Power management options"
  1125. source "kernel/power/Kconfig"
  1126. config ARCH_HIBERNATION_POSSIBLE
  1127. def_bool y
  1128. depends on CPU_PM
  1129. config ARCH_HIBERNATION_HEADER
  1130. def_bool y
  1131. depends on HIBERNATION
  1132. config ARCH_SUSPEND_POSSIBLE
  1133. def_bool y
  1134. endmenu
  1135. menu "CPU Power Management"
  1136. source "drivers/cpuidle/Kconfig"
  1137. source "drivers/cpufreq/Kconfig"
  1138. endmenu
  1139. source "drivers/firmware/Kconfig"
  1140. source "drivers/acpi/Kconfig"
  1141. source "arch/arm64/kvm/Kconfig"
  1142. if CRYPTO
  1143. source "arch/arm64/crypto/Kconfig"
  1144. endif