Kconfig 15 KB

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