Kconfig 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. # SPDX-License-Identifier: GPL-2.0
  2. config MMU
  3. def_bool y
  4. config CPU_BIG_ENDIAN
  5. def_bool y
  6. config LOCKDEP_SUPPORT
  7. def_bool y
  8. config STACKTRACE_SUPPORT
  9. def_bool y
  10. config ARCH_HAS_ILOG2_U32
  11. def_bool n
  12. config ARCH_HAS_ILOG2_U64
  13. def_bool n
  14. config ARCH_PROC_KCORE_TEXT
  15. def_bool y
  16. config GENERIC_HWEIGHT
  17. def_bool !HAVE_MARCH_Z196_FEATURES
  18. config GENERIC_BUG
  19. def_bool y if BUG
  20. config GENERIC_BUG_RELATIVE_POINTERS
  21. def_bool y
  22. config GENERIC_LOCKBREAK
  23. def_bool y if PREEMPTION
  24. config AUDIT_ARCH
  25. def_bool y
  26. config NO_IOPORT_MAP
  27. def_bool y
  28. config ARCH_SUPPORTS_UPROBES
  29. def_bool y
  30. config KASAN_SHADOW_OFFSET
  31. hex
  32. depends on KASAN
  33. default 0x1C000000000000
  34. config CC_HAS_BUILTIN_FFS
  35. def_bool !(CC_IS_GCC && GCC_VERSION < 160000)
  36. help
  37. GCC versions before 16.0.0 generate library calls to ffs()
  38. for __builtin_ffs() even when __has_builtin(__builtin_ffs)
  39. is true.
  40. config CC_ASM_FLAG_OUTPUT_BROKEN
  41. def_bool CC_IS_GCC && GCC_VERSION < 140200
  42. help
  43. GCC versions before 14.2.0 may die with an internal
  44. compiler error in some configurations if flag output
  45. operands are used within inline assemblies.
  46. config CC_HAS_ASM_AOR_FORMAT_FLAGS
  47. def_bool !(CC_IS_CLANG && CLANG_VERSION < 190100)
  48. help
  49. Clang versions before 19.1.0 do not support A,
  50. O, and R inline assembly format flags.
  51. config CC_HAS_ASM_IMMEDIATE_STRINGS
  52. def_bool !(CC_IS_GCC && GCC_VERSION < 90000)
  53. help
  54. GCC versions before 9.0.0 cannot handle strings as immediate
  55. input operands in inline assemblies.
  56. config CC_HAS_STACKPROTECTOR_GLOBAL
  57. def_bool $(cc-option, -mstack-protector-guard=global -mstack-protector-guard-record)
  58. config S390
  59. def_bool y
  60. #
  61. # Note: keep this list sorted alphabetically
  62. #
  63. imply IMA_SECURE_AND_OR_TRUSTED_BOOT
  64. select ALTERNATE_USER_ADDRESS_SPACE
  65. select ARCH_32BIT_USTAT_F_TINODE
  66. select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
  67. select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM
  68. select ARCH_ENABLE_MEMORY_HOTREMOVE
  69. select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2
  70. select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
  71. select ARCH_HAS_CC_CAN_LINK
  72. select ARCH_HAS_CPU_FINALIZE_INIT
  73. select ARCH_HAS_CURRENT_STACK_POINTER
  74. select ARCH_HAS_DEBUG_VIRTUAL
  75. select ARCH_HAS_DEBUG_VM_PGTABLE
  76. select ARCH_HAS_DEBUG_WX
  77. select ARCH_HAS_DEVMEM_IS_ALLOWED
  78. select ARCH_HAS_DMA_OPS if PCI
  79. select ARCH_HAS_ELF_RANDOMIZE
  80. select ARCH_HAS_FORCE_DMA_UNENCRYPTED
  81. select ARCH_HAS_FORTIFY_SOURCE
  82. select ARCH_HAS_GCOV_PROFILE_ALL
  83. select ARCH_HAS_GIGANTIC_PAGE
  84. select ARCH_HAS_KCOV
  85. select ARCH_HAS_MEMBARRIER_SYNC_CORE
  86. select ARCH_HAS_MEM_ENCRYPT
  87. select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
  88. select ARCH_HAS_PREEMPT_LAZY
  89. select ARCH_HAS_PTDUMP
  90. select ARCH_HAS_PTE_SPECIAL
  91. select ARCH_HAS_SCALED_CPUTIME
  92. select ARCH_HAS_SET_DIRECT_MAP
  93. select ARCH_HAS_SET_MEMORY
  94. select ARCH_HAS_STRICT_KERNEL_RWX
  95. select ARCH_HAS_STRICT_MODULE_RWX
  96. select ARCH_HAS_SYSCALL_WRAPPER
  97. select ARCH_HAS_UBSAN
  98. select ARCH_HAS_VDSO_TIME_DATA
  99. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  100. select ARCH_HAVE_TRACE_MMIO_ACCESS
  101. select ARCH_INLINE_READ_LOCK
  102. select ARCH_INLINE_READ_LOCK_BH
  103. select ARCH_INLINE_READ_LOCK_IRQ
  104. select ARCH_INLINE_READ_LOCK_IRQSAVE
  105. select ARCH_INLINE_READ_TRYLOCK
  106. select ARCH_INLINE_READ_UNLOCK
  107. select ARCH_INLINE_READ_UNLOCK_BH
  108. select ARCH_INLINE_READ_UNLOCK_IRQ
  109. select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
  110. select ARCH_INLINE_SPIN_LOCK
  111. select ARCH_INLINE_SPIN_LOCK_BH
  112. select ARCH_INLINE_SPIN_LOCK_IRQ
  113. select ARCH_INLINE_SPIN_LOCK_IRQSAVE
  114. select ARCH_INLINE_SPIN_TRYLOCK
  115. select ARCH_INLINE_SPIN_TRYLOCK_BH
  116. select ARCH_INLINE_SPIN_UNLOCK
  117. select ARCH_INLINE_SPIN_UNLOCK_BH
  118. select ARCH_INLINE_SPIN_UNLOCK_IRQ
  119. select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
  120. select ARCH_INLINE_WRITE_LOCK
  121. select ARCH_INLINE_WRITE_LOCK_BH
  122. select ARCH_INLINE_WRITE_LOCK_IRQ
  123. select ARCH_INLINE_WRITE_LOCK_IRQSAVE
  124. select ARCH_INLINE_WRITE_TRYLOCK
  125. select ARCH_INLINE_WRITE_UNLOCK
  126. select ARCH_INLINE_WRITE_UNLOCK_BH
  127. select ARCH_INLINE_WRITE_UNLOCK_IRQ
  128. select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
  129. select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE
  130. select ARCH_STACKWALK
  131. select ARCH_SUPPORTS_ATOMIC_RMW
  132. select ARCH_SUPPORTS_DEBUG_PAGEALLOC
  133. select ARCH_SUPPORTS_HUGETLBFS
  134. select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 && CC_IS_CLANG
  135. select ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS
  136. select ARCH_SUPPORTS_NUMA_BALANCING
  137. select ARCH_SUPPORTS_PER_VMA_LOCK
  138. select ARCH_USE_BUILTIN_BSWAP
  139. select ARCH_USE_CMPXCHG_LOCKREF
  140. select ARCH_USE_SYM_ANNOTATIONS
  141. select ARCH_WANTS_NO_INSTR
  142. select ARCH_WANT_DEFAULT_BPF_JIT
  143. select ARCH_WANT_IPC_PARSE_VERSION
  144. select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
  145. select ARCH_WANT_KERNEL_PMD_MKWRITE
  146. select ARCH_WANT_LD_ORPHAN_WARN
  147. select ARCH_WANTS_THP_SWAP
  148. select BUILDTIME_TABLE_SORT
  149. select CLONE_BACKWARDS2
  150. select DCACHE_WORD_ACCESS if !KMSAN
  151. select DYNAMIC_FTRACE if FUNCTION_TRACER
  152. select FUNCTION_ALIGNMENT_8B if CC_IS_GCC
  153. select FUNCTION_ALIGNMENT_16B if !CC_IS_GCC
  154. select GENERIC_ALLOCATOR
  155. select GENERIC_CPU_DEVICES
  156. select GENERIC_CPU_AUTOPROBE
  157. select GENERIC_CPU_VULNERABILITIES
  158. select GENERIC_ENTRY
  159. select GENERIC_GETTIMEOFDAY
  160. select GENERIC_SMP_IDLE_THREAD
  161. select GENERIC_TIME_VSYSCALL
  162. select GENERIC_IOREMAP if PCI
  163. select HAVE_ALIGNED_STRUCT_PAGE
  164. select HAVE_ARCH_AUDITSYSCALL
  165. select HAVE_ARCH_JUMP_LABEL
  166. select HAVE_ARCH_JUMP_LABEL_RELATIVE
  167. select HAVE_ARCH_KASAN
  168. select HAVE_ARCH_KASAN_VMALLOC
  169. select HAVE_ARCH_KCSAN
  170. select HAVE_ARCH_KMSAN
  171. select HAVE_ARCH_KFENCE
  172. select HAVE_ARCH_KSTACK_ERASE
  173. select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
  174. select HAVE_ARCH_SECCOMP_FILTER
  175. select HAVE_ARCH_SOFT_DIRTY
  176. select HAVE_ARCH_TRACEHOOK
  177. select HAVE_ARCH_TRANSPARENT_HUGEPAGE
  178. select HAVE_ARCH_VMAP_STACK
  179. select HAVE_ASM_MODVERSIONS
  180. select HAVE_BUILDTIME_MCOUNT_SORT
  181. select HAVE_CMPXCHG_DOUBLE
  182. select HAVE_CMPXCHG_LOCAL
  183. select HAVE_DEBUG_KMEMLEAK
  184. select HAVE_DMA_CONTIGUOUS
  185. select HAVE_DYNAMIC_FTRACE
  186. select HAVE_DYNAMIC_FTRACE_WITH_ARGS
  187. select HAVE_FTRACE_REGS_HAVING_PT_REGS
  188. select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
  189. select HAVE_DYNAMIC_FTRACE_WITH_REGS
  190. select HAVE_EBPF_JIT if HAVE_MARCH_Z196_FEATURES
  191. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  192. select HAVE_GENERIC_TIF_BITS
  193. select HAVE_GUP_FAST
  194. select HAVE_FENTRY
  195. select HAVE_FTRACE_GRAPH_FUNC
  196. select HAVE_FUNCTION_ARG_ACCESS_API
  197. select HAVE_FUNCTION_ERROR_INJECTION
  198. select HAVE_FUNCTION_GRAPH_FREGS
  199. select HAVE_FUNCTION_GRAPH_TRACER
  200. select HAVE_FUNCTION_TRACER
  201. select HAVE_GCC_PLUGINS
  202. select HAVE_GENERIC_VDSO
  203. select HAVE_IOREMAP_PROT if PCI
  204. select HAVE_KERNEL_BZIP2
  205. select HAVE_KERNEL_GZIP
  206. select HAVE_KERNEL_LZ4
  207. select HAVE_KERNEL_LZMA
  208. select HAVE_KERNEL_LZO
  209. select HAVE_KERNEL_UNCOMPRESSED
  210. select HAVE_KERNEL_XZ
  211. select HAVE_KERNEL_ZSTD
  212. select HAVE_KPROBES
  213. select HAVE_KPROBES_ON_FTRACE
  214. select HAVE_KRETPROBES
  215. select HAVE_LIVEPATCH
  216. select HAVE_MEMBLOCK_PHYS_MAP
  217. select HAVE_MOD_ARCH_SPECIFIC
  218. select HAVE_NMI
  219. select HAVE_NOP_MCOUNT
  220. select HAVE_PAGE_SIZE_4KB
  221. select HAVE_PCI
  222. select HAVE_PERF_EVENTS
  223. select HAVE_PERF_REGS
  224. select HAVE_PERF_USER_STACK_DUMP
  225. select HAVE_POSIX_CPU_TIMERS_TASK_WORK
  226. select HAVE_PREEMPT_DYNAMIC_KEY
  227. select HAVE_REGS_AND_STACK_ACCESS_API
  228. select HAVE_RELIABLE_STACKTRACE
  229. select HAVE_RETHOOK
  230. select HAVE_RSEQ
  231. select HAVE_SAMPLE_FTRACE_DIRECT
  232. select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
  233. select HAVE_SETUP_PER_CPU_AREA
  234. select HAVE_SOFTIRQ_ON_OWN_STACK
  235. select HAVE_STACKPROTECTOR if CC_HAS_STACKPROTECTOR_GLOBAL
  236. select HAVE_SYSCALL_TRACEPOINTS
  237. select HAVE_VIRT_CPU_ACCOUNTING
  238. select HAVE_VIRT_CPU_ACCOUNTING_IDLE
  239. select HOTPLUG_SMT
  240. select IOMMU_HELPER if PCI
  241. select IOMMU_SUPPORT if PCI
  242. select IRQ_MSI_LIB if PCI
  243. select KASAN_VMALLOC if KASAN
  244. select LOCK_MM_AND_FIND_VMA
  245. select MMU_GATHER_MERGE_VMAS
  246. select MMU_GATHER_NO_GATHER
  247. select MMU_GATHER_RCU_TABLE_FREE
  248. select MODULES_USE_ELF_RELA
  249. select NEED_DMA_MAP_STATE if PCI
  250. select NEED_PER_CPU_EMBED_FIRST_CHUNK
  251. select NEED_PROC_VMCORE_DEVICE_RAM if PROC_VMCORE
  252. select NEED_SG_DMA_LENGTH if PCI
  253. select OLD_SIGACTION
  254. select OLD_SIGSUSPEND3
  255. select PCI_DOMAINS if PCI
  256. select PCI_MSI if PCI
  257. select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
  258. select PCI_QUIRKS if PCI
  259. select SPARSE_IRQ
  260. select SWIOTLB
  261. select SYSCTL_EXCEPTION_TRACE
  262. select SYSTEM_DATA_VERIFICATION if KEXEC_SIG
  263. select THREAD_INFO_IN_TASK
  264. select TRACE_IRQFLAGS_SUPPORT
  265. select TTY
  266. select USER_STACKTRACE_SUPPORT
  267. select VDSO_GETRANDOM
  268. select VIRT_CPU_ACCOUNTING
  269. select VMAP_STACK
  270. select ZONE_DMA
  271. # Note: keep the above list sorted alphabetically
  272. config SCHED_OMIT_FRAME_POINTER
  273. def_bool y
  274. config PGTABLE_LEVELS
  275. int
  276. default 5
  277. source "kernel/livepatch/Kconfig"
  278. config ARCH_CC_CAN_LINK
  279. bool
  280. default $(cc_can_link_user,-m64)
  281. config ARCH_USERFLAGS
  282. string
  283. default "-m64"
  284. config ARCH_SUPPORTS_KEXEC
  285. def_bool y
  286. config ARCH_SUPPORTS_KEXEC_FILE
  287. def_bool y
  288. config ARCH_SUPPORTS_KEXEC_SIG
  289. def_bool y
  290. config ARCH_SUPPORTS_KEXEC_PURGATORY
  291. def_bool y
  292. config ARCH_SUPPORTS_CRASH_DUMP
  293. def_bool y
  294. help
  295. Refer to <file:Documentation/arch/s390/zfcpdump.rst> for more details on this.
  296. This option also enables s390 zfcpdump.
  297. See also <file:Documentation/arch/s390/zfcpdump.rst>
  298. config ARCH_DEFAULT_CRASH_DUMP
  299. def_bool y
  300. menu "Processor type and features"
  301. config HAVE_MARCH_Z10_FEATURES
  302. def_bool n
  303. config HAVE_MARCH_Z196_FEATURES
  304. def_bool n
  305. select HAVE_MARCH_Z10_FEATURES
  306. config HAVE_MARCH_ZEC12_FEATURES
  307. def_bool n
  308. select HAVE_MARCH_Z196_FEATURES
  309. config HAVE_MARCH_Z13_FEATURES
  310. def_bool n
  311. select HAVE_MARCH_ZEC12_FEATURES
  312. config HAVE_MARCH_Z14_FEATURES
  313. def_bool n
  314. select HAVE_MARCH_Z13_FEATURES
  315. config HAVE_MARCH_Z15_FEATURES
  316. def_bool n
  317. select HAVE_MARCH_Z14_FEATURES
  318. config HAVE_MARCH_Z16_FEATURES
  319. def_bool n
  320. select HAVE_MARCH_Z15_FEATURES
  321. config HAVE_MARCH_Z17_FEATURES
  322. def_bool n
  323. select HAVE_MARCH_Z16_FEATURES
  324. choice
  325. prompt "Processor type"
  326. default MARCH_Z196
  327. config MARCH_Z10
  328. bool "IBM System z10"
  329. select HAVE_MARCH_Z10_FEATURES
  330. depends on $(cc-option,-march=z10)
  331. help
  332. Select this to enable optimizations for IBM System z10 (2097 and 2098
  333. series). This is the oldest machine generation currently supported.
  334. config MARCH_Z196
  335. bool "IBM zEnterprise 114 and 196"
  336. select HAVE_MARCH_Z196_FEATURES
  337. depends on $(cc-option,-march=z196)
  338. help
  339. Select this to enable optimizations for IBM zEnterprise 114 and 196
  340. (2818 and 2817 series). The kernel will be slightly faster but will
  341. not work on older machines.
  342. config MARCH_ZEC12
  343. bool "IBM zBC12 and zEC12"
  344. select HAVE_MARCH_ZEC12_FEATURES
  345. depends on $(cc-option,-march=zEC12)
  346. help
  347. Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and
  348. 2827 series). The kernel will be slightly faster but will not work on
  349. older machines.
  350. config MARCH_Z13
  351. bool "IBM z13s and z13"
  352. select HAVE_MARCH_Z13_FEATURES
  353. depends on $(cc-option,-march=z13)
  354. help
  355. Select this to enable optimizations for IBM z13s and z13 (2965 and
  356. 2964 series). The kernel will be slightly faster but will not work on
  357. older machines.
  358. config MARCH_Z14
  359. bool "IBM z14 ZR1 and z14"
  360. select HAVE_MARCH_Z14_FEATURES
  361. depends on $(cc-option,-march=z14)
  362. help
  363. Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
  364. and 3906 series). The kernel will be slightly faster but will not
  365. work on older machines.
  366. config MARCH_Z15
  367. bool "IBM z15"
  368. select HAVE_MARCH_Z15_FEATURES
  369. depends on $(cc-option,-march=z15)
  370. help
  371. Select this to enable optimizations for IBM z15 (8562
  372. and 8561 series). The kernel will be slightly faster but will not
  373. work on older machines.
  374. config MARCH_Z16
  375. bool "IBM z16"
  376. select HAVE_MARCH_Z16_FEATURES
  377. depends on $(cc-option,-march=z16)
  378. help
  379. Select this to enable optimizations for IBM z16 (3931 and
  380. 3932 series).
  381. config MARCH_Z17
  382. bool "IBM z17"
  383. select HAVE_MARCH_Z17_FEATURES
  384. depends on $(cc-option,-march=z17)
  385. help
  386. Select this to enable optimizations for IBM z17 (9175 and
  387. 9176 series).
  388. endchoice
  389. config MARCH_Z10_TUNE
  390. def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT
  391. config MARCH_Z196_TUNE
  392. def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT
  393. config MARCH_ZEC12_TUNE
  394. def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT
  395. config MARCH_Z13_TUNE
  396. def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT
  397. config MARCH_Z14_TUNE
  398. def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT
  399. config MARCH_Z15_TUNE
  400. def_bool TUNE_Z15 || MARCH_Z15 && TUNE_DEFAULT
  401. config MARCH_Z16_TUNE
  402. def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT
  403. config MARCH_Z17_TUNE
  404. def_bool TUNE_Z17 || MARCH_Z17 && TUNE_DEFAULT
  405. choice
  406. prompt "Tune code generation"
  407. default TUNE_DEFAULT
  408. help
  409. Cause the compiler to tune (-mtune) the generated code for a machine.
  410. This will make the code run faster on the selected machine but
  411. somewhat slower on other machines.
  412. This option only changes how the compiler emits instructions, not the
  413. selection of instructions itself, so the resulting kernel will run on
  414. all other machines.
  415. config TUNE_DEFAULT
  416. bool "Default"
  417. help
  418. Tune the generated code for the target processor for which the kernel
  419. will be compiled.
  420. config TUNE_Z10
  421. bool "IBM System z10"
  422. config TUNE_Z196
  423. bool "IBM zEnterprise 114 and 196"
  424. depends on $(cc-option,-mtune=z196)
  425. config TUNE_ZEC12
  426. bool "IBM zBC12 and zEC12"
  427. depends on $(cc-option,-mtune=zEC12)
  428. config TUNE_Z13
  429. bool "IBM z13s and z13"
  430. depends on $(cc-option,-mtune=z13)
  431. config TUNE_Z14
  432. bool "IBM z14 ZR1 and z14"
  433. depends on $(cc-option,-mtune=z14)
  434. config TUNE_Z15
  435. bool "IBM z15"
  436. depends on $(cc-option,-mtune=z15)
  437. config TUNE_Z16
  438. bool "IBM z16"
  439. depends on $(cc-option,-mtune=z16)
  440. config TUNE_Z17
  441. bool "IBM z17"
  442. depends on $(cc-option,-mtune=z17)
  443. endchoice
  444. config 64BIT
  445. def_bool y
  446. config COMMAND_LINE_SIZE
  447. int "Maximum size of kernel command line"
  448. default 4096
  449. range 896 1048576
  450. help
  451. This allows you to specify the maximum length of the kernel command
  452. line.
  453. config SMP
  454. def_bool y
  455. config NR_CPUS
  456. int "Maximum number of CPUs (2-512)"
  457. range 2 512
  458. default "64"
  459. help
  460. This allows you to specify the maximum number of CPUs which this
  461. kernel will support. The maximum supported value is 512 and the
  462. minimum value which makes sense is 2.
  463. This is purely to save memory - each supported CPU adds
  464. approximately sixteen kilobytes to the kernel image.
  465. config HOTPLUG_CPU
  466. def_bool y
  467. config NUMA
  468. bool "NUMA support"
  469. depends on SCHED_TOPOLOGY
  470. default n
  471. help
  472. Enable NUMA support
  473. This option adds NUMA support to the kernel.
  474. config NODES_SHIFT
  475. int
  476. depends on NUMA
  477. default "1"
  478. config SCHED_TOPOLOGY
  479. def_bool y
  480. prompt "Topology scheduler support"
  481. select ARCH_SUPPORTS_SCHED_SMT
  482. select ARCH_SUPPORTS_SCHED_MC
  483. select SCHED_SMT
  484. select SCHED_MC
  485. help
  486. Topology scheduler support improves the CPU scheduler's decision
  487. making when dealing with machines that have multi-threading,
  488. multiple cores or multiple books.
  489. config SCHED_TOPOLOGY_VERTICAL
  490. def_bool y
  491. bool "Use vertical CPU polarization by default"
  492. depends on SCHED_TOPOLOGY
  493. help
  494. Use vertical CPU polarization by default if available.
  495. The default CPU polarization is horizontal.
  496. config HIPERDISPATCH_ON
  497. def_bool y
  498. bool "Use hiperdispatch on vertical polarization by default"
  499. depends on SCHED_TOPOLOGY
  500. depends on PROC_SYSCTL
  501. help
  502. Hiperdispatch aims to improve the CPU scheduler's decision
  503. making when using vertical polarization by adjusting CPU
  504. capacities dynamically. Set this option to use hiperdispatch
  505. on vertical polarization by default. This can be overwritten
  506. by sysctl's s390.hiperdispatch attribute later on.
  507. source "kernel/Kconfig.hz"
  508. config CERT_STORE
  509. bool "Get user certificates via DIAG320"
  510. depends on KEYS
  511. select CRYPTO_LIB_SHA256
  512. help
  513. Enable this option if you want to access user-provided secure boot
  514. certificates via DIAG 0x320.
  515. These certificates will be made available via the keyring named
  516. 'cert_store'.
  517. config KERNEL_NOBP
  518. def_bool n
  519. prompt "Enable modified branch prediction for the kernel by default"
  520. help
  521. If this option is selected the kernel will switch to a modified
  522. branch prediction mode if the firmware interface is available.
  523. The modified branch prediction mode improves the behaviour in
  524. regard to speculative execution.
  525. With the option enabled the kernel parameter "nobp=0" or "nospec"
  526. can be used to run the kernel in the normal branch prediction mode.
  527. With the option disabled the modified branch prediction mode is
  528. enabled with the "nobp=1" kernel parameter.
  529. If unsure, say N.
  530. config EXPOLINE
  531. def_bool n
  532. depends on $(cc-option,-mindirect-branch=thunk)
  533. prompt "Avoid speculative indirect branches in the kernel"
  534. help
  535. Compile the kernel with the expoline compiler options to guard
  536. against kernel-to-user data leaks by avoiding speculative indirect
  537. branches.
  538. Requires a compiler with -mindirect-branch=thunk support for full
  539. protection. The kernel may run slower.
  540. If unsure, say N.
  541. config EXPOLINE_EXTERN
  542. def_bool EXPOLINE && CC_IS_GCC && GCC_VERSION >= 110200 && \
  543. $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC))
  544. help
  545. Generate expolines as external functions if the compiler supports it.
  546. This option is required for some tooling like kpatch, if expolines
  547. are enabled. The kernel is compiled with
  548. -mindirect-branch=thunk-extern, which requires a newer compiler.
  549. choice
  550. prompt "Expoline default"
  551. depends on EXPOLINE
  552. default EXPOLINE_FULL
  553. config EXPOLINE_OFF
  554. bool "spectre_v2=off"
  555. config EXPOLINE_AUTO
  556. bool "spectre_v2=auto"
  557. config EXPOLINE_FULL
  558. bool "spectre_v2=on"
  559. endchoice
  560. config RELOCATABLE
  561. def_bool y
  562. select ARCH_VMLINUX_NEEDS_RELOCS
  563. help
  564. This builds a kernel image that retains relocation information
  565. so it can be loaded at an arbitrary address.
  566. The relocations make the kernel image about 15% larger (compressed
  567. 10%), but are discarded at runtime.
  568. Note: this option exists only for documentation purposes, please do
  569. not remove it.
  570. config RANDOMIZE_BASE
  571. bool "Randomize the address of the kernel image (KASLR)"
  572. default y
  573. help
  574. In support of Kernel Address Space Layout Randomization (KASLR),
  575. this randomizes the address at which the kernel image is loaded,
  576. as a security feature that deters exploit attempts relying on
  577. knowledge of the location of kernel internals.
  578. config RANDOMIZE_IDENTITY_BASE
  579. bool "Randomize the address of the identity mapping base"
  580. depends on RANDOMIZE_BASE
  581. default DEBUG_VM
  582. help
  583. The identity mapping base address is pinned to zero by default.
  584. Allow randomization of that base to expose otherwise missed
  585. notion of physical and virtual addresses of data structures.
  586. That does not have any impact on the base address at which the
  587. kernel image is loaded.
  588. If unsure, say N
  589. config KERNEL_IMAGE_BASE
  590. hex "Kernel image base address"
  591. range 0x100000 0x1FFFFFE0000000 if !KASAN
  592. range 0x100000 0x1BFFFFE0000000 if KASAN
  593. default 0x3FFE0000000 if !KASAN
  594. default 0x7FFFE0000000 if KASAN
  595. help
  596. This is the address at which the kernel image is loaded in case
  597. Kernel Address Space Layout Randomization (KASLR) is disabled.
  598. In case the Protected virtualization guest support is enabled the
  599. Ultravisor imposes a virtual address limit. If the value of this
  600. option leads to the kernel image exceeding the Ultravisor limit,
  601. this option is ignored and the image is loaded below the limit.
  602. If the value of this option leads to the kernel image overlapping
  603. the virtual memory where other data structures are located, this
  604. option is ignored and the image is loaded above the structures.
  605. endmenu
  606. menu "Memory setup"
  607. config ARCH_SPARSEMEM_ENABLE
  608. def_bool y
  609. select SPARSEMEM_VMEMMAP_ENABLE
  610. config ARCH_SPARSEMEM_DEFAULT
  611. def_bool y
  612. config ILLEGAL_POINTER_VALUE
  613. hex
  614. default 0xdead000000000000
  615. config MAX_PHYSMEM_BITS
  616. int "Maximum size of supported physical memory in bits (42-53)"
  617. range 42 53
  618. default "46"
  619. help
  620. This option specifies the maximum supported size of physical memory
  621. in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB).
  622. Increasing the number of bits also increases the kernel image size.
  623. By default 46 bits (64TB) are supported.
  624. endmenu
  625. menu "I/O subsystem"
  626. config QDIO
  627. def_tristate y
  628. prompt "QDIO support"
  629. help
  630. This driver provides the Queued Direct I/O base support for
  631. IBM System z.
  632. To compile this driver as a module, choose M here: the
  633. module will be called qdio.
  634. If unsure, say Y.
  635. if PCI
  636. config PCI_NR_FUNCTIONS
  637. int "Maximum number of PCI functions (1-4096)"
  638. range 1 4096
  639. default "512"
  640. help
  641. This allows you to specify the maximum number of PCI functions which
  642. this kernel will support.
  643. endif # PCI
  644. config HAS_IOMEM
  645. def_bool PCI
  646. config CHSC_SCH
  647. def_tristate m
  648. prompt "Support for CHSC subchannels"
  649. help
  650. This driver allows usage of CHSC subchannels. A CHSC subchannel
  651. is usually present on LPAR only.
  652. The driver creates a device /dev/chsc, which may be used to
  653. obtain I/O configuration information about the machine and
  654. to issue asynchronous chsc commands (DANGEROUS).
  655. You will usually only want to use this interface on a special
  656. LPAR designated for system management.
  657. To compile this driver as a module, choose M here: the
  658. module will be called chsc_sch.
  659. If unsure, say N.
  660. config SCM_BUS
  661. def_bool y
  662. prompt "SCM bus driver"
  663. help
  664. Bus driver for Storage Class Memory.
  665. config EADM_SCH
  666. def_tristate m
  667. prompt "Support for EADM subchannels"
  668. depends on SCM_BUS
  669. help
  670. This driver allows usage of EADM subchannels. EADM subchannels act
  671. as a communication vehicle for SCM increments.
  672. To compile this driver as a module, choose M here: the
  673. module will be called eadm_sch.
  674. config AP
  675. def_tristate y
  676. prompt "Support for Adjunct Processors (ap)"
  677. help
  678. This driver allows usage to Adjunct Processor (AP) devices via
  679. the ap bus, cards and queues. Supported Adjunct Processors are
  680. the CryptoExpress Cards (CEX).
  681. To compile this driver as a module, choose M here: the
  682. module will be called ap.
  683. If unsure, say Y (default).
  684. config AP_DEBUG
  685. def_bool n
  686. prompt "Enable debug features for Adjunct Processor (ap) devices"
  687. depends on AP
  688. help
  689. Say 'Y' here to enable some additional debug features for Adjunct
  690. Processor (ap) devices.
  691. There will be some more sysfs attributes displayed for ap queues.
  692. Do not enable on production level kernel build.
  693. If unsure, say N.
  694. config VFIO_CCW
  695. def_tristate n
  696. prompt "Support for VFIO-CCW subchannels"
  697. depends on VFIO
  698. select VFIO_MDEV
  699. help
  700. This driver allows usage of I/O subchannels via VFIO-CCW.
  701. To compile this driver as a module, choose M here: the
  702. module will be called vfio_ccw.
  703. config VFIO_AP
  704. def_tristate n
  705. prompt "VFIO support for AP devices"
  706. depends on KVM
  707. depends on VFIO
  708. depends on AP
  709. select VFIO_MDEV
  710. help
  711. This driver grants access to Adjunct Processor (AP) devices
  712. via the VFIO mediated device interface.
  713. To compile this driver as a module, choose M here: the module
  714. will be called vfio_ap.
  715. endmenu
  716. config CCW
  717. def_bool y
  718. config HAVE_PNETID
  719. tristate
  720. default (SMC || CCWGROUP)
  721. menu "Virtualization"
  722. config PFAULT
  723. def_bool y
  724. prompt "Pseudo page fault support"
  725. help
  726. Select this option, if you want to use PFAULT pseudo page fault
  727. handling under VM. If running native or in LPAR, this option
  728. has no effect. If your VM does not support PFAULT, PAGEEX
  729. pseudo page fault handling will be used.
  730. Note that VM 4.2 supports PFAULT but has a bug in its
  731. implementation that causes some problems.
  732. Everybody who wants to run Linux under VM != VM4.2 should select
  733. this option.
  734. config CMM
  735. def_tristate n
  736. prompt "Cooperative memory management"
  737. help
  738. Select this option, if you want to enable the kernel interface
  739. to reduce the memory size of the system. This is accomplished
  740. by allocating pages of memory and put them "on hold". This only
  741. makes sense for a system running under VM where the unused pages
  742. will be reused by VM for other guest systems. The interface
  743. allows an external monitor to balance memory of many systems.
  744. Everybody who wants to run Linux under VM should select this
  745. option.
  746. config CMM_IUCV
  747. def_bool y
  748. prompt "IUCV special message interface to cooperative memory management"
  749. depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
  750. help
  751. Select this option to enable the special message interface to
  752. the cooperative memory management.
  753. config APPLDATA_BASE
  754. def_bool n
  755. prompt "Linux - VM Monitor Stream, base infrastructure"
  756. depends on PROC_SYSCTL
  757. help
  758. This provides a kernel interface for creating and updating z/VM APPLDATA
  759. monitor records. The monitor records are updated at certain time
  760. intervals, once the timer is started.
  761. Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
  762. i.e. enables or disables monitoring on the Linux side.
  763. A custom interval value (in seconds) can be written to
  764. /proc/appldata/interval.
  765. Defaults are 60 seconds interval and timer off.
  766. The /proc entries can also be read from, showing the current settings.
  767. config APPLDATA_MEM
  768. def_tristate m
  769. prompt "Monitor memory management statistics"
  770. depends on APPLDATA_BASE && VM_EVENT_COUNTERS
  771. help
  772. This provides memory management related data to the Linux - VM Monitor
  773. Stream, like paging/swapping rate, memory utilisation, etc.
  774. Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
  775. APPLDATA monitor record, i.e. enables or disables monitoring this record
  776. on the z/VM side.
  777. Default is disabled.
  778. The /proc entry can also be read from, showing the current settings.
  779. This can also be compiled as a module, which will be called
  780. appldata_mem.o.
  781. config APPLDATA_OS
  782. def_tristate m
  783. prompt "Monitor OS statistics"
  784. depends on APPLDATA_BASE
  785. help
  786. This provides OS related data to the Linux - VM Monitor Stream, like
  787. CPU utilisation, etc.
  788. Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
  789. APPLDATA monitor record, i.e. enables or disables monitoring this record
  790. on the z/VM side.
  791. Default is disabled.
  792. This can also be compiled as a module, which will be called
  793. appldata_os.o.
  794. config APPLDATA_NET_SUM
  795. def_tristate m
  796. prompt "Monitor overall network statistics"
  797. depends on APPLDATA_BASE && NET
  798. help
  799. This provides network related data to the Linux - VM Monitor Stream,
  800. currently there is only a total sum of network I/O statistics, no
  801. per-interface data.
  802. Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
  803. APPLDATA monitor record, i.e. enables or disables monitoring this record
  804. on the z/VM side.
  805. Default is disabled.
  806. This can also be compiled as a module, which will be called
  807. appldata_net_sum.o.
  808. config S390_HYPFS
  809. def_bool y
  810. prompt "s390 hypervisor information"
  811. help
  812. This provides several binary files at (debugfs)/s390_hypfs/ to
  813. provide accounting information in an s390 hypervisor environment.
  814. config S390_HYPFS_FS
  815. def_bool n
  816. prompt "s390 hypervisor file system support"
  817. select SYS_HYPERVISOR
  818. depends on S390_HYPFS
  819. help
  820. This is a virtual file system intended to provide accounting
  821. information in an s390 hypervisor environment. This file system
  822. is deprecated and should not be used.
  823. Say N if you are unsure.
  824. source "arch/s390/kvm/Kconfig"
  825. config S390_GUEST
  826. def_bool y
  827. prompt "s390 support for virtio devices"
  828. select TTY
  829. select VIRTUALIZATION
  830. select VIRTIO
  831. help
  832. Enabling this option adds support for virtio based paravirtual device
  833. drivers on s390.
  834. Select this option if you want to run the kernel as a guest under
  835. the KVM hypervisor.
  836. endmenu
  837. config S390_MODULES_SANITY_TEST_HELPERS
  838. def_bool n
  839. menu "Selftests"
  840. config S390_UNWIND_SELFTEST
  841. def_tristate n
  842. depends on KUNIT
  843. default KUNIT_ALL_TESTS
  844. prompt "Test unwind functions"
  845. help
  846. This option enables s390 specific stack unwinder testing kernel
  847. module. This option is not useful for distributions or general
  848. kernels, but only for kernel developers working on architecture code.
  849. Say N if you are unsure.
  850. config S390_KPROBES_SANITY_TEST
  851. def_tristate n
  852. prompt "Enable s390 specific kprobes tests"
  853. depends on KPROBES
  854. depends on KUNIT
  855. help
  856. This option enables an s390 specific kprobes test module. This option
  857. is not useful for distributions or general kernels, but only for kernel
  858. developers working on architecture code.
  859. Say N if you are unsure.
  860. config S390_MODULES_SANITY_TEST
  861. def_tristate n
  862. depends on KUNIT
  863. default KUNIT_ALL_TESTS
  864. prompt "Enable s390 specific modules tests"
  865. select S390_MODULES_SANITY_TEST_HELPERS
  866. help
  867. This option enables an s390 specific modules test. This option is
  868. not useful for distributions or general kernels, but only for
  869. kernel developers working on architecture code.
  870. Say N if you are unsure.
  871. endmenu