Kconfig 41 KB

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