Kconfig 14.6 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2 3 4 5 6
config PGTABLE_LEVELS
	int "Page Table Levels" if !IA64_PAGE_SIZE_64KB
	range 3 4 if !IA64_PAGE_SIZE_64KB
	default 3

L
Linus Torvalds 已提交
7 8 9 10
menu "Processor type and features"

config IA64
	bool
11
	select ARCH_MIGHT_HAVE_PC_PARPORT
12
	select ARCH_MIGHT_HAVE_PC_SERIO
L
Len Brown 已提交
13
	select ACPI if (!IA64_HP_SIM)
A
Arnd Bergmann 已提交
14
	select ARCH_SUPPORTS_ACPI if (!IA64_HP_SIM)
15
	select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
16
	select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
17
	select FORCE_PCI if (!IA64_HP_SIM)
18
	select PCI_DOMAINS if PCI
19
	select PCI_SYSCALL if PCI
20
	select HAVE_UNSTABLE_SCHED_CLOCK
J
Jiri Slaby 已提交
21
	select HAVE_EXIT_THREAD
S
Sam Ravnborg 已提交
22
	select HAVE_IDE
M
Mathieu Desnoyers 已提交
23
	select HAVE_OPROFILE
M
Mathieu Desnoyers 已提交
24
	select HAVE_KPROBES
25
	select HAVE_KRETPROBES
26 27
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_DYNAMIC_FTRACE if (!ITANIUM)
28
	select HAVE_FUNCTION_TRACER
29
	select TTY
30
	select HAVE_ARCH_TRACEHOOK
T
Tejun Heo 已提交
31
	select HAVE_MEMBLOCK_NODE_MAP
32
	select HAVE_VIRT_CPU_ACCOUNTING
33
	select ARCH_HAS_DMA_COHERENT_TO_PFN if SWIOTLB
C
Christoph Hellwig 已提交
34
	select ARCH_HAS_SYNC_DMA_FOR_CPU
35
	select VIRT_TO_BUS
T
Tejun Heo 已提交
36
	select ARCH_DISCARD_MEMBLOCK
T
Thomas Gleixner 已提交
37 38
	select GENERIC_IRQ_PROBE
	select GENERIC_PENDING_IRQ if SMP
39
	select GENERIC_IRQ_SHOW
T
Thomas Gleixner 已提交
40
	select GENERIC_IRQ_LEGACY
41
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
42
	select GENERIC_IOMAP
43
	select GENERIC_SMP_IDLE_THREAD
44
	select ARCH_TASK_STRUCT_ON_STACK
45
	select ARCH_TASK_STRUCT_ALLOCATOR
46
	select ARCH_THREAD_STACK_ALLOCATOR
47
	select ARCH_CLOCKSOURCE_DATA
48
	select GENERIC_TIME_VSYSCALL
49
	select SYSCTL_ARCH_UNALIGN_NO_WARN
50 51
	select HAVE_MOD_ARCH_SPECIFIC
	select MODULES_USE_ELF_RELA
52
	select ARCH_USE_CMPXCHG_LOCKREF
53
	select HAVE_ARCH_AUDITSYSCALL
54
	select NEED_DMA_MAP_STATE
55
	select NEED_SG_DMA_LENGTH
L
Linus Torvalds 已提交
56 57 58 59 60 61 62 63 64
	default y
	help
	  The Itanium Processor Family is Intel's 64-bit successor to
	  the 32-bit X86 line.  The IA-64 Linux project has a home
	  page at <http://www.linuxia64.org/> and a mailing list at
	  <linux-ia64@vger.kernel.org>.

config 64BIT
	bool
Z
Zhang, Yanmin 已提交
65
	select ATA_NONSTANDARD if ATA
L
Linus Torvalds 已提交
66 67
	default y

68
config ZONE_DMA32
69 70
	def_bool y
	depends on !IA64_SGI_SN2
71

72 73 74 75
config QUICKLIST
	bool
	default y

L
Linus Torvalds 已提交
76 77 78 79
config MMU
	bool
	default y

T
Tony Luck 已提交
80 81 82
config STACKTRACE_SUPPORT
	def_bool y

N
Nick Piggin 已提交
83
config GENERIC_LOCKBREAK
84
	def_bool n
N
Nick Piggin 已提交
85

L
Linus Torvalds 已提交
86 87 88 89
config RWSEM_XCHGADD_ALGORITHM
	bool
	default y

90 91 92 93 94
config HUGETLB_PAGE_SIZE_VARIABLE
	bool
	depends on HUGETLB_PAGE
	default y

L
Linus Torvalds 已提交
95 96 97 98
config GENERIC_CALIBRATE_DELAY
	bool
	default y

99
config HAVE_SETUP_PER_CPU_AREA
100 101
	def_bool y

M
Matt Domsch 已提交
102 103 104
config DMI
	bool
	default y
105
	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
M
Matt Domsch 已提交
106

L
Linus Torvalds 已提交
107 108
config EFI
	bool
109
	select UCS2_STRING
L
Linus Torvalds 已提交
110 111
	default y

112
config SCHED_OMIT_FRAME_POINTER
113 114 115
	bool
	default y

J
Jes Sorensen 已提交
116 117 118 119
config IA64_UNCACHED_ALLOCATOR
	bool
	select GENERIC_ALLOCATOR

120 121 122 123
config ARCH_USES_PG_UNCACHED
	def_bool y
	depends on IA64_UNCACHED_ALLOCATOR

124 125 126 127
config AUDIT_ARCH
	bool
	default y

L
Linus Torvalds 已提交
128 129 130 131 132 133 134 135
choice
	prompt "System type"
	default IA64_GENERIC

config IA64_GENERIC
	bool "generic"
	select NUMA
	select ACPI_NUMA
136
	select SWIOTLB
137
	select PCI_MSI
L
Linus Torvalds 已提交
138 139 140 141 142 143 144
	help
	  This selects the system type of your hardware.  A "generic" kernel
	  will run on any supported IA-64 system.  However, if you configure
	  a kernel for your specific system, it will be faster and smaller.

	  generic		For any supported IA-64 system
	  DIG-compliant		For DIG ("Developer's Interface Guide") compliant systems
145
	  DIG+Intel+IOMMU	For DIG systems with Intel IOMMU
L
Linus Torvalds 已提交
146 147 148
	  HP-zx1/sx1000		For HP systems
	  HP-zx1/sx1000+swiotlb	For HP systems with (broken) DMA-constrained devices.
	  SGI-SN2		For SGI Altix systems
149
	  SGI-UV		For SGI UV systems
L
Linus Torvalds 已提交
150 151 152 153 154 155
	  Ski-simulator		For the HP simulator <http://www.hpl.hp.com/research/linux/ski/>

	  If you don't know what to do, choose "generic".

config IA64_DIG
	bool "DIG-compliant"
156
	select SWIOTLB
L
Linus Torvalds 已提交
157

158 159
config IA64_DIG_VTD
	bool "DIG+Intel+IOMMU"
160
	select INTEL_IOMMU
161 162
	select PCI_MSI

L
Linus Torvalds 已提交
163 164 165 166 167 168 169 170
config IA64_HP_ZX1
	bool "HP-zx1/sx1000"
	help
	  Build a kernel that runs on HP zx1 and sx1000 systems.  This adds
	  support for the HP I/O MMU.

config IA64_HP_ZX1_SWIOTLB
	bool "HP-zx1/sx1000 with software I/O TLB"
171
	select SWIOTLB
L
Linus Torvalds 已提交
172 173 174 175 176 177 178 179 180
	help
	  Build a kernel that runs on HP zx1 and sx1000 systems even when they
	  have broken PCI devices which cannot DMA to full 32 bits.  Apart
	  from support for the HP I/O MMU, this includes support for the software
	  I/O TLB, which allows supporting the broken devices at the expense of
	  wasting some kernel memory (about 2MB by default).

config IA64_SGI_SN2
	bool "SGI-SN2"
181 182
	select NUMA
	select ACPI_NUMA
L
Linus Torvalds 已提交
183 184 185 186 187 188 189
	help
	  Selecting this option will optimize the kernel for use on sn2 based
	  systems, but the resulting kernel binary will not run on other
	  types of ia64 systems.  If you have an SGI Altix system, it's safe
	  to select this option.  If in doubt, select ia64 generic support
	  instead.

190 191
config IA64_SGI_UV
	bool "SGI-UV"
192 193 194 195 196 197 198 199 200 201
	select NUMA
	select ACPI_NUMA
	select SWIOTLB
	help
	  Selecting this option will optimize the kernel for use on UV based
	  systems, but the resulting kernel binary will not run on other
	  types of ia64 systems.  If you have an SGI UV system, it's safe
	  to select this option.  If in doubt, select ia64 generic support
	  instead.

L
Linus Torvalds 已提交
202 203
config IA64_HP_SIM
	bool "Ski-simulator"
204
	select SWIOTLB
205
	depends on !PM
L
Linus Torvalds 已提交
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259

endchoice

choice
	prompt "Processor type"
	default ITANIUM

config ITANIUM
	bool "Itanium"
	help
	  Select your IA-64 processor type.  The default is Itanium.
	  This choice is safe for all IA-64 systems, but may not perform
	  optimally on systems with, say, Itanium 2 or newer processors.

config MCKINLEY
	bool "Itanium 2"
	help
	  Select this to configure for an Itanium 2 (McKinley) processor.

endchoice

choice
	prompt "Kernel page size"
	default IA64_PAGE_SIZE_16KB

config IA64_PAGE_SIZE_4KB
	bool "4KB"
	help
	  This lets you select the page size of the kernel.  For best IA-64
	  performance, a page size of 8KB or 16KB is recommended.  For best
	  IA-32 compatibility, a page size of 4KB should be selected (the vast
	  majority of IA-32 binaries work perfectly fine with a larger page
	  size).  For Itanium 2 or newer systems, a page size of 64KB can also
	  be selected.

	  4KB                For best IA-32 compatibility
	  8KB                For best IA-64 performance
	  16KB               For best IA-64 performance
	  64KB               Requires Itanium 2 or newer processor.

	  If you don't know what to do, choose 16KB.

config IA64_PAGE_SIZE_8KB
	bool "8KB"

config IA64_PAGE_SIZE_16KB
	bool "16KB"

config IA64_PAGE_SIZE_64KB
	depends on !ITANIUM
	bool "64KB"

endchoice

T
Tony Luck 已提交
260 261 262 263 264 265
if IA64_HP_SIM
config HZ
	default 32
endif

if !IA64_HP_SIM
266
source "kernel/Kconfig.hz"
T
Tony Luck 已提交
267
endif
268

L
Linus Torvalds 已提交
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
config IA64_BRL_EMU
	bool
	depends on ITANIUM
	default y

# align cache-sensitive data to 128 bytes
config IA64_L1_CACHE_SHIFT
	int
	default "7" if MCKINLEY
	default "6" if ITANIUM

config IA64_CYCLONE
	bool "Cyclone (EXA) Time Source support"
	help
	  Say Y here to enable support for IBM EXA Cyclone time source.
	  If you're unsure, answer N.

config IOSAPIC
	bool
	depends on !IA64_HP_SIM
	default y

config FORCE_MAX_ZONEORDER
292 293 294 295
	int "MAX_ORDER (11 - 17)"  if !HUGETLB_PAGE
	range 11 17  if !HUGETLB_PAGE
	default "17" if HUGETLB_PAGE
	default "11"
L
Linus Torvalds 已提交
296 297 298 299 300 301 302 303 304 305 306 307 308 309

config SMP
	bool "Symmetric multi-processing support"
	help
	  This enables support for systems with more than one CPU. If you have
	  a system with only one CPU, say N.  If you have a system with more
	  than one CPU, say Y.

	  If you say N here, the kernel will run on single and multiprocessor
	  systems, but will use only one CPU of a multiprocessor system.  If
	  you say Y here, the kernel will run on many, but not all,
	  single processor systems.  On a single processor system, the kernel
	  will run faster if you say N here.

A
Adrian Bunk 已提交
310 311
	  See also the SMP-HOWTO available at
	  <http://www.tldp.org/docs.html#howto>.
L
Linus Torvalds 已提交
312 313 314 315

	  If you don't know what to do here, say N.

config NR_CPUS
316 317
	int "Maximum number of CPUs (2-4096)"
	range 2 4096
L
Linus Torvalds 已提交
318
	depends on SMP
319
	default "4096"
L
Linus Torvalds 已提交
320 321 322 323 324 325 326 327
	help
	  You should set this to the number of CPUs in your system, but
	  keep in mind that a kernel compiled for, e.g., 2 CPUs will boot but
	  only use 2 CPUs on a >2 CPU system.  Setting this to a value larger
	  than 64 will cause the use of a CPU mask array, causing a small
	  performance hit.

config HOTPLUG_CPU
328 329
	bool "Support for hot-pluggable CPUs"
	depends on SMP
L
Linus Torvalds 已提交
330 331 332 333 334 335
	default n
	---help---
	  Say Y here to experiment with turning CPUs off and on.  CPUs
	  can be controlled through /sys/devices/system/cpu/cpu#.
	  Say N if you want to disable CPU hotplug.

336 337 338
config ARCH_ENABLE_MEMORY_HOTPLUG
	def_bool y

K
KAMEZAWA Hiroyuki 已提交
339 340 341
config ARCH_ENABLE_MEMORY_HOTREMOVE
	def_bool y

S
Suresh Siddha 已提交
342 343 344 345 346 347 348 349
config SCHED_SMT
	bool "SMT scheduler support"
	depends on SMP
	help
	  Improves the CPU scheduler's decision making when dealing with
	  Intel IA64 chips with MultiThreading at a cost of slightly increased
	  overhead in some places. If unsure say N here.

A
Ashok Raj 已提交
350 351 352 353 354 355 356 357 358
config PERMIT_BSP_REMOVE
	bool "Support removal of Bootstrap Processor"
	depends on HOTPLUG_CPU
	default n
	---help---
	Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
	support. 

config FORCE_CPEI_RETARGET
L
Lucas De Marchi 已提交
359
	bool "Force assumption that CPEI can be re-targeted"
A
Ashok Raj 已提交
360 361 362
	depends on PERMIT_BSP_REMOVE
	default n
	---help---
L
Lucas De Marchi 已提交
363
	Say Y if you need to force the assumption that CPEI can be re-targeted to
A
Ashok Raj 已提交
364 365 366 367 368
	any cpu in the system. This hint is available via ACPI 3.0 specifications.
	Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
	This option it useful to enable this feature on older BIOS's as well.
	You can also enable this by using boot command line option force_cpei=1.

369 370 371 372 373 374 375 376 377
config ARCH_SELECT_MEMORY_MODEL
	def_bool y

config ARCH_DISCONTIGMEM_ENABLE
	def_bool y
	help
	  Say Y to support efficient handling of discontiguous physical memory,
	  for architectures which are either NUMA (Non-Uniform Memory Access)
	  or have huge holes in the physical address space for other reasons.
378
	  See <file:Documentation/vm/numa.rst> for more.
379 380 381 382 383 384 385

config ARCH_FLATMEM_ENABLE
	def_bool y

config ARCH_SPARSEMEM_ENABLE
	def_bool y
	depends on ARCH_DISCONTIGMEM_ENABLE
386
	select SPARSEMEM_VMEMMAP_ENABLE
387 388 389 390 391 392 393 394 395

config ARCH_DISCONTIGMEM_DEFAULT
	def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB)
	depends on ARCH_DISCONTIGMEM_ENABLE

config NUMA
	bool "NUMA support"
	depends on !IA64_HP_SIM && !FLATMEM
	default y if IA64_SGI_SN2
396
	select ACPI_NUMA if ACPI
397 398 399 400 401
	help
	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
	  Access).  This option is for configuring high-end multiprocessor
	  server systems.  If in doubt, say N.

Y
Yasunori Goto 已提交
402 403 404
config NODES_SHIFT
	int "Max num nodes shift(3-10)"
	range 3 10
405
	default "10"
Y
Yasunori Goto 已提交
406 407 408 409 410 411
	depends on NEED_MULTIPLE_NODES
	help
	  This option specifies the maximum number of nodes in your SSI system.
	  MAX_NUMNODES will be 2^(This value).
	  If in doubt, use the default.

412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
# VIRTUAL_MEM_MAP and FLAT_NODE_MEM_MAP are functionally equivalent.
# VIRTUAL_MEM_MAP has been retained for historical reasons.
config VIRTUAL_MEM_MAP
	bool "Virtual mem map"
	depends on !SPARSEMEM
	default y if !IA64_HP_SIM
	help
	  Say Y to compile the kernel with support for a virtual mem map.
	  This code also only takes effect if a memory hole of greater than
	  1 Gb is found during boot.  You must turn this option on if you
	  require the DISCONTIGMEM option for your machine. If you are
	  unsure, say Y.

config HOLES_IN_ZONE
	bool
	default y if VIRTUAL_MEM_MAP

config HAVE_ARCH_EARLY_PFN_TO_NID
430
	def_bool NUMA && SPARSEMEM
431

432 433 434 435
config HAVE_ARCH_NODEDATA_EXTENSION
	def_bool y
	depends on NUMA

436 437 438 439
config USE_PERCPU_NUMA_NODE_ID
	def_bool y
	depends on NUMA

440
config HAVE_MEMORYLESS_NODES
441
	def_bool NUMA
442

443 444 445 446
config ARCH_PROC_KCORE_TEXT
	def_bool y
	depends on PROC_KCORE

L
Linus Torvalds 已提交
447 448 449 450 451
config IA64_MCA_RECOVERY
	tristate "MCA recovery from errors other than TLB."

config PERFMON
	bool "Performance monitor support"
452
	depends on BROKEN
L
Linus Torvalds 已提交
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469
	help
	  Selects whether support for the IA-64 performance monitor hardware
	  is included in the kernel.  This makes some kernel data-structures a
	  little bigger and slows down execution a bit, but it is generally
	  a good idea to turn this on.  If you're unsure, say Y.

config IA64_PALINFO
	tristate "/proc/pal support"
	help
	  If you say Y here, you are able to get PAL (Processor Abstraction
	  Layer) information in /proc/pal.  This contains useful information
	  about the processors in your systems, such as cache and TLB sizes
	  and the PAL firmware version in use.

	  To use this option, you have to ensure that the "/proc file system
	  support" (CONFIG_PROC_FS) is enabled, too.

470 471 472
config IA64_MC_ERR_INJECT
	tristate "MC error injection support"
	help
M
Matt LaPlante 已提交
473 474 475
	  Adds support for MC error injection. If enabled, the kernel 
	  will provide a sysfs interface for user applications to
	  call MC error injection PAL procedures to inject various errors.
476 477 478 479
	  This is a useful tool for MCA testing.

	  If you're unsure, do not select this option.

480 481 482
config SGI_SN
	def_bool y if (IA64_SGI_SN2 || IA64_GENERIC)

D
David Mosberger-Tang 已提交
483 484 485 486 487 488 489 490
config IA64_ESI
	bool "ESI (Extensible SAL Interface) support"
	help
	  If you say Y here, support is built into the kernel to
	  make ESI calls.  ESI calls are used to support vendor-specific
	  firmware extensions, such as the ability to inject memory-errors
	  for test-purposes.  If you're unsure, say N.

491 492 493 494 495 496 497 498 499 500
config IA64_HP_AML_NFW
	bool "Support ACPI AML calls to native firmware"
	help
	  This driver installs a global ACPI Operation Region handler for
	  region 0xA1.  AML methods can use this OpRegion to call arbitrary
	  native firmware functions.  The driver installs the OpRegion
	  handler if there is an HPQ5001 device or if the user supplies
	  the "force" module parameter, e.g., with the "aml_nfw.force"
	  kernel command line option.

501 502
source "drivers/sn/Kconfig"

Z
Zou Nan hai 已提交
503
config KEXEC
504 505
	bool "kexec system call"
	depends on !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
506
	select KEXEC_CORE
Z
Zou Nan hai 已提交
507 508 509
	help
	  kexec is a system call that implements the ability to shutdown your
	  current kernel, and to start another kernel.  It is like a reboot
510
	  but it is independent of the system firmware.   And like a reboot
Z
Zou Nan hai 已提交
511 512
	  you can start any kernel with it, not just Linux.

M
Matt LaPlante 已提交
513
	  The name comes from the similarity to the exec system call.
Z
Zou Nan hai 已提交
514 515 516

	  It is an ongoing process to be certain the hardware in a machine
	  is properly shutdown, so do not be surprised if this code does not
517 518 519
	  initially work for you.  As of this writing the exact hardware
	  interface is strongly in flux, so no good recommendation can be
	  made.
Z
Zou Nan hai 已提交
520 521

config CRASH_DUMP
522 523
	  bool "kernel crash dumps"
	  depends on IA64_MCA_RECOVERY && !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
Z
Zou Nan hai 已提交
524 525 526
	  help
	    Generate crash dump after being started by kexec.

L
Linus Torvalds 已提交
527 528 529 530
source "drivers/firmware/Kconfig"

endmenu

531
menu "Power management and ACPI options"
L
Linus Torvalds 已提交
532

533
source "kernel/power/Kconfig"
L
Linus Torvalds 已提交
534 535 536

source "drivers/acpi/Kconfig"

537
if PM
538 539 540
menu "CPU Frequency scaling"
source "drivers/cpufreq/Kconfig"
endmenu
541 542
endif

L
Linus Torvalds 已提交
543 544
endmenu

545 546
source "arch/ia64/hp/sim/Kconfig"

J
Jes Sorensen 已提交
547 548 549 550 551 552 553 554
config MSPEC
	tristate "Memory special operations driver"
	depends on IA64
	select IA64_UNCACHED_ALLOCATOR
	help
	  If you have an ia64 and you want to enable memory special
	  operations support (formerly known as fetchop), say Y here,
	  otherwise say N.