Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. # SPDX-License-Identifier: GPL-2.0
  2. config PGTABLE_LEVELS
  3. int "Page Table Levels" if !IA64_PAGE_SIZE_64KB
  4. range 3 4 if !IA64_PAGE_SIZE_64KB
  5. default 3
  6. menu "Processor type and features"
  7. config IA64
  8. bool
  9. select ARCH_MIGHT_HAVE_PC_PARPORT
  10. select ARCH_MIGHT_HAVE_PC_SERIO
  11. select PCI if (!IA64_HP_SIM)
  12. select ACPI if (!IA64_HP_SIM)
  13. select ARCH_SUPPORTS_ACPI if (!IA64_HP_SIM)
  14. select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
  15. select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
  16. select HAVE_UNSTABLE_SCHED_CLOCK
  17. select HAVE_EXIT_THREAD
  18. select HAVE_IDE
  19. select HAVE_OPROFILE
  20. select HAVE_KPROBES
  21. select HAVE_KRETPROBES
  22. select HAVE_FTRACE_MCOUNT_RECORD
  23. select HAVE_DYNAMIC_FTRACE if (!ITANIUM)
  24. select HAVE_FUNCTION_TRACER
  25. select TTY
  26. select HAVE_ARCH_TRACEHOOK
  27. select HAVE_MEMBLOCK_NODE_MAP
  28. select HAVE_VIRT_CPU_ACCOUNTING
  29. select ARCH_HAS_DMA_MARK_CLEAN
  30. select ARCH_HAS_SG_CHAIN
  31. select VIRT_TO_BUS
  32. select ARCH_DISCARD_MEMBLOCK
  33. select GENERIC_IRQ_PROBE
  34. select GENERIC_PENDING_IRQ if SMP
  35. select GENERIC_IRQ_SHOW
  36. select GENERIC_IRQ_LEGACY
  37. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  38. select GENERIC_IOMAP
  39. select GENERIC_SMP_IDLE_THREAD
  40. select ARCH_TASK_STRUCT_ON_STACK
  41. select ARCH_TASK_STRUCT_ALLOCATOR
  42. select ARCH_THREAD_STACK_ALLOCATOR
  43. select ARCH_CLOCKSOURCE_DATA
  44. select GENERIC_TIME_VSYSCALL
  45. select SYSCTL_ARCH_UNALIGN_NO_WARN
  46. select HAVE_MOD_ARCH_SPECIFIC
  47. select MODULES_USE_ELF_RELA
  48. select ARCH_USE_CMPXCHG_LOCKREF
  49. select HAVE_ARCH_AUDITSYSCALL
  50. select NEED_DMA_MAP_STATE
  51. select NEED_SG_DMA_LENGTH
  52. default y
  53. help
  54. The Itanium Processor Family is Intel's 64-bit successor to
  55. the 32-bit X86 line. The IA-64 Linux project has a home
  56. page at <http://www.linuxia64.org/> and a mailing list at
  57. <linux-ia64@vger.kernel.org>.
  58. config 64BIT
  59. bool
  60. select ATA_NONSTANDARD if ATA
  61. default y
  62. config ZONE_DMA32
  63. def_bool y
  64. depends on !IA64_SGI_SN2
  65. config QUICKLIST
  66. bool
  67. default y
  68. config MMU
  69. bool
  70. default y
  71. config STACKTRACE_SUPPORT
  72. def_bool y
  73. config GENERIC_LOCKBREAK
  74. def_bool n
  75. config RWSEM_XCHGADD_ALGORITHM
  76. bool
  77. default y
  78. config HUGETLB_PAGE_SIZE_VARIABLE
  79. bool
  80. depends on HUGETLB_PAGE
  81. default y
  82. config GENERIC_CALIBRATE_DELAY
  83. bool
  84. default y
  85. config HAVE_SETUP_PER_CPU_AREA
  86. def_bool y
  87. config DMI
  88. bool
  89. default y
  90. select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
  91. config EFI
  92. bool
  93. select UCS2_STRING
  94. default y
  95. config SCHED_OMIT_FRAME_POINTER
  96. bool
  97. default y
  98. config IA64_UNCACHED_ALLOCATOR
  99. bool
  100. select GENERIC_ALLOCATOR
  101. config ARCH_USES_PG_UNCACHED
  102. def_bool y
  103. depends on IA64_UNCACHED_ALLOCATOR
  104. config AUDIT_ARCH
  105. bool
  106. default y
  107. choice
  108. prompt "System type"
  109. default IA64_GENERIC
  110. config IA64_GENERIC
  111. bool "generic"
  112. select NUMA
  113. select ACPI_NUMA
  114. select SWIOTLB
  115. select PCI_MSI
  116. help
  117. This selects the system type of your hardware. A "generic" kernel
  118. will run on any supported IA-64 system. However, if you configure
  119. a kernel for your specific system, it will be faster and smaller.
  120. generic For any supported IA-64 system
  121. DIG-compliant For DIG ("Developer's Interface Guide") compliant systems
  122. DIG+Intel+IOMMU For DIG systems with Intel IOMMU
  123. HP-zx1/sx1000 For HP systems
  124. HP-zx1/sx1000+swiotlb For HP systems with (broken) DMA-constrained devices.
  125. SGI-SN2 For SGI Altix systems
  126. SGI-UV For SGI UV systems
  127. Ski-simulator For the HP simulator <http://www.hpl.hp.com/research/linux/ski/>
  128. If you don't know what to do, choose "generic".
  129. config IA64_DIG
  130. bool "DIG-compliant"
  131. select SWIOTLB
  132. config IA64_DIG_VTD
  133. bool "DIG+Intel+IOMMU"
  134. select INTEL_IOMMU
  135. select PCI_MSI
  136. config IA64_HP_ZX1
  137. bool "HP-zx1/sx1000"
  138. help
  139. Build a kernel that runs on HP zx1 and sx1000 systems. This adds
  140. support for the HP I/O MMU.
  141. config IA64_HP_ZX1_SWIOTLB
  142. bool "HP-zx1/sx1000 with software I/O TLB"
  143. select SWIOTLB
  144. help
  145. Build a kernel that runs on HP zx1 and sx1000 systems even when they
  146. have broken PCI devices which cannot DMA to full 32 bits. Apart
  147. from support for the HP I/O MMU, this includes support for the software
  148. I/O TLB, which allows supporting the broken devices at the expense of
  149. wasting some kernel memory (about 2MB by default).
  150. config IA64_SGI_SN2
  151. bool "SGI-SN2"
  152. select NUMA
  153. select ACPI_NUMA
  154. help
  155. Selecting this option will optimize the kernel for use on sn2 based
  156. systems, but the resulting kernel binary will not run on other
  157. types of ia64 systems. If you have an SGI Altix system, it's safe
  158. to select this option. If in doubt, select ia64 generic support
  159. instead.
  160. config IA64_SGI_UV
  161. bool "SGI-UV"
  162. select NUMA
  163. select ACPI_NUMA
  164. select SWIOTLB
  165. help
  166. Selecting this option will optimize the kernel for use on UV based
  167. systems, but the resulting kernel binary will not run on other
  168. types of ia64 systems. If you have an SGI UV system, it's safe
  169. to select this option. If in doubt, select ia64 generic support
  170. instead.
  171. config IA64_HP_SIM
  172. bool "Ski-simulator"
  173. select SWIOTLB
  174. depends on !PM
  175. endchoice
  176. choice
  177. prompt "Processor type"
  178. default ITANIUM
  179. config ITANIUM
  180. bool "Itanium"
  181. help
  182. Select your IA-64 processor type. The default is Itanium.
  183. This choice is safe for all IA-64 systems, but may not perform
  184. optimally on systems with, say, Itanium 2 or newer processors.
  185. config MCKINLEY
  186. bool "Itanium 2"
  187. help
  188. Select this to configure for an Itanium 2 (McKinley) processor.
  189. endchoice
  190. choice
  191. prompt "Kernel page size"
  192. default IA64_PAGE_SIZE_16KB
  193. config IA64_PAGE_SIZE_4KB
  194. bool "4KB"
  195. help
  196. This lets you select the page size of the kernel. For best IA-64
  197. performance, a page size of 8KB or 16KB is recommended. For best
  198. IA-32 compatibility, a page size of 4KB should be selected (the vast
  199. majority of IA-32 binaries work perfectly fine with a larger page
  200. size). For Itanium 2 or newer systems, a page size of 64KB can also
  201. be selected.
  202. 4KB For best IA-32 compatibility
  203. 8KB For best IA-64 performance
  204. 16KB For best IA-64 performance
  205. 64KB Requires Itanium 2 or newer processor.
  206. If you don't know what to do, choose 16KB.
  207. config IA64_PAGE_SIZE_8KB
  208. bool "8KB"
  209. config IA64_PAGE_SIZE_16KB
  210. bool "16KB"
  211. config IA64_PAGE_SIZE_64KB
  212. depends on !ITANIUM
  213. bool "64KB"
  214. endchoice
  215. if IA64_HP_SIM
  216. config HZ
  217. default 32
  218. endif
  219. if !IA64_HP_SIM
  220. source kernel/Kconfig.hz
  221. endif
  222. config IA64_BRL_EMU
  223. bool
  224. depends on ITANIUM
  225. default y
  226. # align cache-sensitive data to 128 bytes
  227. config IA64_L1_CACHE_SHIFT
  228. int
  229. default "7" if MCKINLEY
  230. default "6" if ITANIUM
  231. config IA64_CYCLONE
  232. bool "Cyclone (EXA) Time Source support"
  233. help
  234. Say Y here to enable support for IBM EXA Cyclone time source.
  235. If you're unsure, answer N.
  236. config IOSAPIC
  237. bool
  238. depends on !IA64_HP_SIM
  239. default y
  240. config FORCE_MAX_ZONEORDER
  241. int "MAX_ORDER (11 - 17)" if !HUGETLB_PAGE
  242. range 11 17 if !HUGETLB_PAGE
  243. default "17" if HUGETLB_PAGE
  244. default "11"
  245. config SMP
  246. bool "Symmetric multi-processing support"
  247. help
  248. This enables support for systems with more than one CPU. If you have
  249. a system with only one CPU, say N. If you have a system with more
  250. than one CPU, say Y.
  251. If you say N here, the kernel will run on single and multiprocessor
  252. systems, but will use only one CPU of a multiprocessor system. If
  253. you say Y here, the kernel will run on many, but not all,
  254. single processor systems. On a single processor system, the kernel
  255. will run faster if you say N here.
  256. See also the SMP-HOWTO available at
  257. <http://www.tldp.org/docs.html#howto>.
  258. If you don't know what to do here, say N.
  259. config NR_CPUS
  260. int "Maximum number of CPUs (2-4096)"
  261. range 2 4096
  262. depends on SMP
  263. default "4096"
  264. help
  265. You should set this to the number of CPUs in your system, but
  266. keep in mind that a kernel compiled for, e.g., 2 CPUs will boot but
  267. only use 2 CPUs on a >2 CPU system. Setting this to a value larger
  268. than 64 will cause the use of a CPU mask array, causing a small
  269. performance hit.
  270. config HOTPLUG_CPU
  271. bool "Support for hot-pluggable CPUs"
  272. depends on SMP
  273. default n
  274. ---help---
  275. Say Y here to experiment with turning CPUs off and on. CPUs
  276. can be controlled through /sys/devices/system/cpu/cpu#.
  277. Say N if you want to disable CPU hotplug.
  278. config ARCH_ENABLE_MEMORY_HOTPLUG
  279. def_bool y
  280. config ARCH_ENABLE_MEMORY_HOTREMOVE
  281. def_bool y
  282. config SCHED_SMT
  283. bool "SMT scheduler support"
  284. depends on SMP
  285. help
  286. Improves the CPU scheduler's decision making when dealing with
  287. Intel IA64 chips with MultiThreading at a cost of slightly increased
  288. overhead in some places. If unsure say N here.
  289. config PERMIT_BSP_REMOVE
  290. bool "Support removal of Bootstrap Processor"
  291. depends on HOTPLUG_CPU
  292. default n
  293. ---help---
  294. Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
  295. support.
  296. config FORCE_CPEI_RETARGET
  297. bool "Force assumption that CPEI can be re-targeted"
  298. depends on PERMIT_BSP_REMOVE
  299. default n
  300. ---help---
  301. Say Y if you need to force the assumption that CPEI can be re-targeted to
  302. any cpu in the system. This hint is available via ACPI 3.0 specifications.
  303. Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
  304. This option it useful to enable this feature on older BIOS's as well.
  305. You can also enable this by using boot command line option force_cpei=1.
  306. config ARCH_SELECT_MEMORY_MODEL
  307. def_bool y
  308. config ARCH_DISCONTIGMEM_ENABLE
  309. def_bool y
  310. help
  311. Say Y to support efficient handling of discontiguous physical memory,
  312. for architectures which are either NUMA (Non-Uniform Memory Access)
  313. or have huge holes in the physical address space for other reasons.
  314. See <file:Documentation/vm/numa.rst> for more.
  315. config ARCH_FLATMEM_ENABLE
  316. def_bool y
  317. config ARCH_SPARSEMEM_ENABLE
  318. def_bool y
  319. depends on ARCH_DISCONTIGMEM_ENABLE
  320. select SPARSEMEM_VMEMMAP_ENABLE
  321. config ARCH_DISCONTIGMEM_DEFAULT
  322. def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB)
  323. depends on ARCH_DISCONTIGMEM_ENABLE
  324. config NUMA
  325. bool "NUMA support"
  326. depends on !IA64_HP_SIM && !FLATMEM
  327. default y if IA64_SGI_SN2
  328. select ACPI_NUMA if ACPI
  329. help
  330. Say Y to compile the kernel to support NUMA (Non-Uniform Memory
  331. Access). This option is for configuring high-end multiprocessor
  332. server systems. If in doubt, say N.
  333. config NODES_SHIFT
  334. int "Max num nodes shift(3-10)"
  335. range 3 10
  336. default "10"
  337. depends on NEED_MULTIPLE_NODES
  338. help
  339. This option specifies the maximum number of nodes in your SSI system.
  340. MAX_NUMNODES will be 2^(This value).
  341. If in doubt, use the default.
  342. # VIRTUAL_MEM_MAP and FLAT_NODE_MEM_MAP are functionally equivalent.
  343. # VIRTUAL_MEM_MAP has been retained for historical reasons.
  344. config VIRTUAL_MEM_MAP
  345. bool "Virtual mem map"
  346. depends on !SPARSEMEM
  347. default y if !IA64_HP_SIM
  348. help
  349. Say Y to compile the kernel with support for a virtual mem map.
  350. This code also only takes effect if a memory hole of greater than
  351. 1 Gb is found during boot. You must turn this option on if you
  352. require the DISCONTIGMEM option for your machine. If you are
  353. unsure, say Y.
  354. config HOLES_IN_ZONE
  355. bool
  356. default y if VIRTUAL_MEM_MAP
  357. config HAVE_ARCH_EARLY_PFN_TO_NID
  358. def_bool NUMA && SPARSEMEM
  359. config HAVE_ARCH_NODEDATA_EXTENSION
  360. def_bool y
  361. depends on NUMA
  362. config USE_PERCPU_NUMA_NODE_ID
  363. def_bool y
  364. depends on NUMA
  365. config HAVE_MEMORYLESS_NODES
  366. def_bool NUMA
  367. config ARCH_PROC_KCORE_TEXT
  368. def_bool y
  369. depends on PROC_KCORE
  370. config IA64_MCA_RECOVERY
  371. tristate "MCA recovery from errors other than TLB."
  372. config PERFMON
  373. bool "Performance monitor support"
  374. depends on BROKEN
  375. help
  376. Selects whether support for the IA-64 performance monitor hardware
  377. is included in the kernel. This makes some kernel data-structures a
  378. little bigger and slows down execution a bit, but it is generally
  379. a good idea to turn this on. If you're unsure, say Y.
  380. config IA64_PALINFO
  381. tristate "/proc/pal support"
  382. help
  383. If you say Y here, you are able to get PAL (Processor Abstraction
  384. Layer) information in /proc/pal. This contains useful information
  385. about the processors in your systems, such as cache and TLB sizes
  386. and the PAL firmware version in use.
  387. To use this option, you have to ensure that the "/proc file system
  388. support" (CONFIG_PROC_FS) is enabled, too.
  389. config IA64_MC_ERR_INJECT
  390. tristate "MC error injection support"
  391. help
  392. Adds support for MC error injection. If enabled, the kernel
  393. will provide a sysfs interface for user applications to
  394. call MC error injection PAL procedures to inject various errors.
  395. This is a useful tool for MCA testing.
  396. If you're unsure, do not select this option.
  397. config SGI_SN
  398. def_bool y if (IA64_SGI_SN2 || IA64_GENERIC)
  399. config IA64_ESI
  400. bool "ESI (Extensible SAL Interface) support"
  401. help
  402. If you say Y here, support is built into the kernel to
  403. make ESI calls. ESI calls are used to support vendor-specific
  404. firmware extensions, such as the ability to inject memory-errors
  405. for test-purposes. If you're unsure, say N.
  406. config IA64_HP_AML_NFW
  407. bool "Support ACPI AML calls to native firmware"
  408. help
  409. This driver installs a global ACPI Operation Region handler for
  410. region 0xA1. AML methods can use this OpRegion to call arbitrary
  411. native firmware functions. The driver installs the OpRegion
  412. handler if there is an HPQ5001 device or if the user supplies
  413. the "force" module parameter, e.g., with the "aml_nfw.force"
  414. kernel command line option.
  415. source "drivers/sn/Kconfig"
  416. config KEXEC
  417. bool "kexec system call"
  418. depends on !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
  419. select KEXEC_CORE
  420. help
  421. kexec is a system call that implements the ability to shutdown your
  422. current kernel, and to start another kernel. It is like a reboot
  423. but it is independent of the system firmware. And like a reboot
  424. you can start any kernel with it, not just Linux.
  425. The name comes from the similarity to the exec system call.
  426. It is an ongoing process to be certain the hardware in a machine
  427. is properly shutdown, so do not be surprised if this code does not
  428. initially work for you. As of this writing the exact hardware
  429. interface is strongly in flux, so no good recommendation can be
  430. made.
  431. config CRASH_DUMP
  432. bool "kernel crash dumps"
  433. depends on IA64_MCA_RECOVERY && !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
  434. help
  435. Generate crash dump after being started by kexec.
  436. source "drivers/firmware/Kconfig"
  437. endmenu
  438. menu "Power management and ACPI options"
  439. source "kernel/power/Kconfig"
  440. source "drivers/acpi/Kconfig"
  441. if PM
  442. menu "CPU Frequency scaling"
  443. source "drivers/cpufreq/Kconfig"
  444. endmenu
  445. endif
  446. endmenu
  447. if !IA64_HP_SIM
  448. menu "Bus options (PCI, PCMCIA)"
  449. config PCI
  450. bool "PCI support"
  451. help
  452. Real IA-64 machines all have PCI/PCI-X/PCI Express busses. Say Y
  453. here unless you are using a simulator without PCI support.
  454. config PCI_DOMAINS
  455. def_bool PCI
  456. config PCI_SYSCALL
  457. def_bool PCI
  458. source "drivers/pci/Kconfig"
  459. source "drivers/pcmcia/Kconfig"
  460. endmenu
  461. endif
  462. source "arch/ia64/hp/sim/Kconfig"
  463. config MSPEC
  464. tristate "Memory special operations driver"
  465. depends on IA64
  466. select IA64_UNCACHED_ALLOCATOR
  467. help
  468. If you have an ia64 and you want to enable memory special
  469. operations support (formerly known as fetchop), say Y here,
  470. otherwise say N.