]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/ia64/Kconfig
ftrace, ia64: Add recordmcount for ia64
[mirror_ubuntu-jammy-kernel.git] / arch / ia64 / Kconfig
CommitLineData
1da177e4
LT
1#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5
6mainmenu "IA-64 Linux Kernel Configuration"
7
8source "init/Kconfig"
9
dc52ddc0
MH
10source "kernel/Kconfig.freezer"
11
1da177e4
LT
12menu "Processor type and features"
13
14config IA64
15 bool
06f87adf
LB
16 select PCI if (!IA64_HP_SIM)
17 select ACPI if (!IA64_HP_SIM)
8140a90e 18 select PM if (!IA64_HP_SIM)
f282b970 19 select ARCH_SUPPORTS_MSI
ec7748b5 20 select HAVE_IDE
42d4b839 21 select HAVE_OPROFILE
3f550096 22 select HAVE_KPROBES
9edddaa2 23 select HAVE_KRETPROBES
74bc7cee 24 select HAVE_DMA_ATTRS
b693919c 25 select HAVE_KVM
9690ad03 26 select HAVE_ARCH_TRACEHOOK
1da177e4
LT
27 default y
28 help
29 The Itanium Processor Family is Intel's 64-bit successor to
30 the 32-bit X86 line. The IA-64 Linux project has a home
31 page at <http://www.linuxia64.org/> and a mailing list at
32 <linux-ia64@vger.kernel.org>.
33
34config 64BIT
35 bool
9f271d57 36 select ATA_NONSTANDARD if ATA
1da177e4
LT
37 default y
38
66701b14 39config ZONE_DMA
09ae1f58
CL
40 def_bool y
41 depends on !IA64_SGI_SN2
66701b14 42
2bd62a40
CL
43config QUICKLIST
44 bool
45 default y
46
1da177e4
LT
47config MMU
48 bool
49 default y
50
6c654b5f
JL
51config SWIOTLB
52 bool
6c654b5f 53
a8522509
FT
54config IOMMU_HELPER
55 bool
56
95c354fe
NP
57config GENERIC_LOCKBREAK
58 bool
59 default y
60 depends on SMP && PREEMPT
61
1da177e4
LT
62config RWSEM_XCHGADD_ALGORITHM
63 bool
64 default y
65
d9c23400
MG
66config HUGETLB_PAGE_SIZE_VARIABLE
67 bool
68 depends on HUGETLB_PAGE
69 default y
70
2875aef8
AM
71config GENERIC_FIND_NEXT_BIT
72 bool
73 default y
74
1da177e4
LT
75config GENERIC_CALIBRATE_DELAY
76 bool
77 default y
78
0aa366f3
TL
79config GENERIC_TIME
80 bool
81 default y
82
83config GENERIC_TIME_VSYSCALL
1da177e4
LT
84 bool
85 default y
86
988c388a 87config HAVE_SETUP_PER_CPU_AREA
b32ef636 88 def_bool y
89
3ed3bce8
MD
90config DMI
91 bool
92 default y
93
1da177e4
LT
94config EFI
95 bool
96 default y
97
98config GENERIC_IOMAP
99 bool
100 default y
101
ae1e9130 102config SCHED_OMIT_FRAME_POINTER
7d12e522
AB
103 bool
104 default y
105
f14f75b8
JS
106config IA64_UNCACHED_ALLOCATOR
107 bool
108 select GENERIC_ALLOCATOR
109
e65e1fc2
AV
110config AUDIT_ARCH
111 bool
112 default y
113
ba9cc328
IY
114menuconfig PARAVIRT_GUEST
115 bool "Paravirtualized guest support"
116 help
117 Say Y here to get to see options related to running Linux under
118 various hypervisors. This option alone does not add any kernel code.
119
120 If you say N, all options in this submenu will be skipped and disabled.
121
122if PARAVIRT_GUEST
123
124config PARAVIRT
125 bool "Enable paravirtualization code"
126 depends on PARAVIRT_GUEST
127 default y
128 bool
129 default y
130 help
131 This changes the kernel so it can modify itself when it is run
132 under a hypervisor, potentially improving performance significantly
133 over full virtualization. However, when run without a hypervisor
134 the kernel is theoretically slower and slightly larger.
135
136
137source "arch/ia64/xen/Kconfig"
138
139endif
140
1da177e4
LT
141choice
142 prompt "System type"
143 default IA64_GENERIC
144
145config IA64_GENERIC
146 bool "generic"
147 select NUMA
148 select ACPI_NUMA
d1598e05 149 select SWIOTLB
62fdd767 150 select PCI_MSI
f2b3fdc8 151 select DMAR
1da177e4
LT
152 help
153 This selects the system type of your hardware. A "generic" kernel
154 will run on any supported IA-64 system. However, if you configure
155 a kernel for your specific system, it will be faster and smaller.
156
157 generic For any supported IA-64 system
158 DIG-compliant For DIG ("Developer's Interface Guide") compliant systems
62fdd767 159 DIG+Intel+IOMMU For DIG systems with Intel IOMMU
1da177e4
LT
160 HP-zx1/sx1000 For HP systems
161 HP-zx1/sx1000+swiotlb For HP systems with (broken) DMA-constrained devices.
162 SGI-SN2 For SGI Altix systems
22246614 163 SGI-UV For SGI UV systems
1da177e4 164 Ski-simulator For the HP simulator <http://www.hpl.hp.com/research/linux/ski/>
ba9cc328 165 Xen-domU For xen domU system
1da177e4
LT
166
167 If you don't know what to do, choose "generic".
168
169config IA64_DIG
170 bool "DIG-compliant"
d1598e05 171 select SWIOTLB
1da177e4 172
62fdd767
FY
173config IA64_DIG_VTD
174 bool "DIG+Intel+IOMMU"
175 select DMAR
176 select PCI_MSI
177
1da177e4
LT
178config IA64_HP_ZX1
179 bool "HP-zx1/sx1000"
180 help
181 Build a kernel that runs on HP zx1 and sx1000 systems. This adds
182 support for the HP I/O MMU.
183
184config IA64_HP_ZX1_SWIOTLB
185 bool "HP-zx1/sx1000 with software I/O TLB"
d1598e05 186 select SWIOTLB
1da177e4
LT
187 help
188 Build a kernel that runs on HP zx1 and sx1000 systems even when they
189 have broken PCI devices which cannot DMA to full 32 bits. Apart
190 from support for the HP I/O MMU, this includes support for the software
191 I/O TLB, which allows supporting the broken devices at the expense of
192 wasting some kernel memory (about 2MB by default).
193
194config IA64_SGI_SN2
195 bool "SGI-SN2"
bd3be240
JS
196 select NUMA
197 select ACPI_NUMA
1da177e4
LT
198 help
199 Selecting this option will optimize the kernel for use on sn2 based
200 systems, but the resulting kernel binary will not run on other
201 types of ia64 systems. If you have an SGI Altix system, it's safe
202 to select this option. If in doubt, select ia64 generic support
203 instead.
204
3351ab9b
JS
205config IA64_SGI_UV
206 bool "SGI-UV"
22246614
JS
207 select NUMA
208 select ACPI_NUMA
209 select SWIOTLB
210 help
211 Selecting this option will optimize the kernel for use on UV based
212 systems, but the resulting kernel binary will not run on other
213 types of ia64 systems. If you have an SGI UV system, it's safe
214 to select this option. If in doubt, select ia64 generic support
215 instead.
216
1da177e4
LT
217config IA64_HP_SIM
218 bool "Ski-simulator"
d1598e05 219 select SWIOTLB
1da177e4 220
ba9cc328
IY
221config IA64_XEN_GUEST
222 bool "Xen guest"
223 depends on XEN
224
1da177e4
LT
225endchoice
226
227choice
228 prompt "Processor type"
229 default ITANIUM
230
231config ITANIUM
232 bool "Itanium"
233 help
234 Select your IA-64 processor type. The default is Itanium.
235 This choice is safe for all IA-64 systems, but may not perform
236 optimally on systems with, say, Itanium 2 or newer processors.
237
238config MCKINLEY
239 bool "Itanium 2"
240 help
241 Select this to configure for an Itanium 2 (McKinley) processor.
242
243endchoice
244
245choice
246 prompt "Kernel page size"
247 default IA64_PAGE_SIZE_16KB
248
249config IA64_PAGE_SIZE_4KB
250 bool "4KB"
251 help
252 This lets you select the page size of the kernel. For best IA-64
253 performance, a page size of 8KB or 16KB is recommended. For best
254 IA-32 compatibility, a page size of 4KB should be selected (the vast
255 majority of IA-32 binaries work perfectly fine with a larger page
256 size). For Itanium 2 or newer systems, a page size of 64KB can also
257 be selected.
258
259 4KB For best IA-32 compatibility
260 8KB For best IA-64 performance
261 16KB For best IA-64 performance
262 64KB Requires Itanium 2 or newer processor.
263
264 If you don't know what to do, choose 16KB.
265
266config IA64_PAGE_SIZE_8KB
267 bool "8KB"
268
269config IA64_PAGE_SIZE_16KB
270 bool "16KB"
271
272config IA64_PAGE_SIZE_64KB
273 depends on !ITANIUM
274 bool "64KB"
275
276endchoice
277
837cd0bd
RH
278choice
279 prompt "Page Table Levels"
280 default PGTABLE_3
281
282config PGTABLE_3
283 bool "3 Levels"
284
285config PGTABLE_4
286 depends on !IA64_PAGE_SIZE_64KB
287 bool "4 Levels"
288
289endchoice
290
10d0aa3c
TL
291if IA64_HP_SIM
292config HZ
293 default 32
294endif
295
296if !IA64_HP_SIM
b5d23e5b 297source kernel/Kconfig.hz
10d0aa3c 298endif
b5d23e5b 299
1da177e4
LT
300config IA64_BRL_EMU
301 bool
302 depends on ITANIUM
303 default y
304
305# align cache-sensitive data to 128 bytes
306config IA64_L1_CACHE_SHIFT
307 int
308 default "7" if MCKINLEY
309 default "6" if ITANIUM
310
1da177e4
LT
311config IA64_CYCLONE
312 bool "Cyclone (EXA) Time Source support"
313 help
314 Say Y here to enable support for IBM EXA Cyclone time source.
315 If you're unsure, answer N.
316
317config IOSAPIC
318 bool
319 depends on !IA64_HP_SIM
320 default y
321
1da177e4 322config FORCE_MAX_ZONEORDER
da9577c5
BP
323 int "MAX_ORDER (11 - 17)" if !HUGETLB_PAGE
324 range 11 17 if !HUGETLB_PAGE
325 default "17" if HUGETLB_PAGE
326 default "11"
1da177e4 327
b64f34cd
HS
328config VIRT_CPU_ACCOUNTING
329 bool "Deterministic task and CPU time accounting"
330 default n
331 help
332 Select this option to enable more accurate task and CPU time
333 accounting. This is done by reading a CPU counter on each
334 kernel entry and exit and on transitions within the kernel
335 between system, softirq and hardirq state, so there is a
336 small performance impact.
337 If in doubt, say N here.
338
1da177e4
LT
339config SMP
340 bool "Symmetric multi-processing support"
f27b433e 341 select USE_GENERIC_SMP_HELPERS
1da177e4
LT
342 help
343 This enables support for systems with more than one CPU. If you have
344 a system with only one CPU, say N. If you have a system with more
345 than one CPU, say Y.
346
347 If you say N here, the kernel will run on single and multiprocessor
348 systems, but will use only one CPU of a multiprocessor system. If
349 you say Y here, the kernel will run on many, but not all,
350 single processor systems. On a single processor system, the kernel
351 will run faster if you say N here.
352
03502faa
AB
353 See also the SMP-HOWTO available at
354 <http://www.tldp.org/docs.html#howto>.
1da177e4
LT
355
356 If you don't know what to do here, say N.
357
358config NR_CPUS
d1339df1
RH
359 int "Maximum number of CPUs (2-4096)"
360 range 2 4096
1da177e4 361 depends on SMP
d1339df1 362 default "4096"
1da177e4
LT
363 help
364 You should set this to the number of CPUs in your system, but
365 keep in mind that a kernel compiled for, e.g., 2 CPUs will boot but
366 only use 2 CPUs on a >2 CPU system. Setting this to a value larger
367 than 64 will cause the use of a CPU mask array, causing a small
368 performance hit.
369
370config HOTPLUG_CPU
371 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
372 depends on SMP && EXPERIMENTAL
373 select HOTPLUG
374 default n
375 ---help---
376 Say Y here to experiment with turning CPUs off and on. CPUs
377 can be controlled through /sys/devices/system/cpu/cpu#.
378 Say N if you want to disable CPU hotplug.
379
cc57637b
YG
380config ARCH_ENABLE_MEMORY_HOTPLUG
381 def_bool y
382
0c0e6195
KH
383config ARCH_ENABLE_MEMORY_HOTREMOVE
384 def_bool y
385
7a9bdd88
SS
386config SCHED_SMT
387 bool "SMT scheduler support"
388 depends on SMP
7a9bdd88
SS
389 help
390 Improves the CPU scheduler's decision making when dealing with
391 Intel IA64 chips with MultiThreading at a cost of slightly increased
392 overhead in some places. If unsure say N here.
393
ff741906
AR
394config PERMIT_BSP_REMOVE
395 bool "Support removal of Bootstrap Processor"
396 depends on HOTPLUG_CPU
397 default n
398 ---help---
399 Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
400 support.
401
402config FORCE_CPEI_RETARGET
403 bool "Force assumption that CPEI can be re-targetted"
404 depends on PERMIT_BSP_REMOVE
405 default n
406 ---help---
407 Say Y if you need to force the assumption that CPEI can be re-targetted to
408 any cpu in the system. This hint is available via ACPI 3.0 specifications.
409 Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
410 This option it useful to enable this feature on older BIOS's as well.
411 You can also enable this by using boot command line option force_cpei=1.
412
0b0517a4 413source "kernel/Kconfig.preempt"
1da177e4 414
3f22ab27
DH
415source "mm/Kconfig"
416
da9577c5
BP
417config ARCH_SELECT_MEMORY_MODEL
418 def_bool y
419
420config ARCH_DISCONTIGMEM_ENABLE
421 def_bool y
422 help
423 Say Y to support efficient handling of discontiguous physical memory,
424 for architectures which are either NUMA (Non-Uniform Memory Access)
425 or have huge holes in the physical address space for other reasons.
426 See <file:Documentation/vm/numa> for more.
427
428config ARCH_FLATMEM_ENABLE
429 def_bool y
430
431config ARCH_SPARSEMEM_ENABLE
432 def_bool y
433 depends on ARCH_DISCONTIGMEM_ENABLE
ef229c5a 434 select SPARSEMEM_VMEMMAP_ENABLE
da9577c5
BP
435
436config ARCH_DISCONTIGMEM_DEFAULT
437 def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB)
438 depends on ARCH_DISCONTIGMEM_ENABLE
439
440config NUMA
441 bool "NUMA support"
442 depends on !IA64_HP_SIM && !FLATMEM
443 default y if IA64_SGI_SN2
6c33eb39 444 select ACPI_NUMA if ACPI
da9577c5
BP
445 help
446 Say Y to compile the kernel to support NUMA (Non-Uniform Memory
447 Access). This option is for configuring high-end multiprocessor
448 server systems. If in doubt, say N.
449
c80d79d7
YG
450config NODES_SHIFT
451 int "Max num nodes shift(3-10)"
452 range 3 10
c57d68ca 453 default "10"
c80d79d7
YG
454 depends on NEED_MULTIPLE_NODES
455 help
456 This option specifies the maximum number of nodes in your SSI system.
457 MAX_NUMNODES will be 2^(This value).
458 If in doubt, use the default.
459
05e0caad
MG
460config ARCH_POPULATES_NODE_MAP
461 def_bool y
462
da9577c5
BP
463# VIRTUAL_MEM_MAP and FLAT_NODE_MEM_MAP are functionally equivalent.
464# VIRTUAL_MEM_MAP has been retained for historical reasons.
465config VIRTUAL_MEM_MAP
466 bool "Virtual mem map"
467 depends on !SPARSEMEM
468 default y if !IA64_HP_SIM
469 help
470 Say Y to compile the kernel with support for a virtual mem map.
471 This code also only takes effect if a memory hole of greater than
472 1 Gb is found during boot. You must turn this option on if you
473 require the DISCONTIGMEM option for your machine. If you are
474 unsure, say Y.
475
476config HOLES_IN_ZONE
477 bool
478 default y if VIRTUAL_MEM_MAP
479
480config HAVE_ARCH_EARLY_PFN_TO_NID
481 def_bool y
482 depends on NEED_MULTIPLE_NODES
483
10ad400b
YG
484config HAVE_ARCH_NODEDATA_EXTENSION
485 def_bool y
486 depends on NUMA
487
1da177e4
LT
488config IA32_SUPPORT
489 bool "Support for Linux/x86 binaries"
490 help
491 IA-64 processors can execute IA-32 (X86) instructions. By
492 saying Y here, the kernel will include IA-32 system call
493 emulation support which makes it possible to transparently
494 run IA-32 Linux binaries on an IA-64 Linux system.
495 If in doubt, say Y.
496
497config COMPAT
498 bool
499 depends on IA32_SUPPORT
500 default y
501
7a6c8135
TL
502config COMPAT_FOR_U64_ALIGNMENT
503 def_bool COMPAT
504
1da177e4
LT
505config IA64_MCA_RECOVERY
506 tristate "MCA recovery from errors other than TLB."
507
508config PERFMON
509 bool "Performance monitor support"
510 help
511 Selects whether support for the IA-64 performance monitor hardware
512 is included in the kernel. This makes some kernel data-structures a
513 little bigger and slows down execution a bit, but it is generally
514 a good idea to turn this on. If you're unsure, say Y.
515
516config IA64_PALINFO
517 tristate "/proc/pal support"
518 help
519 If you say Y here, you are able to get PAL (Processor Abstraction
520 Layer) information in /proc/pal. This contains useful information
521 about the processors in your systems, such as cache and TLB sizes
522 and the PAL firmware version in use.
523
524 To use this option, you have to ensure that the "/proc file system
525 support" (CONFIG_PROC_FS) is enabled, too.
526
e9ef08bd
FY
527config IA64_MC_ERR_INJECT
528 tristate "MC error injection support"
529 help
01dd2fbf
ML
530 Adds support for MC error injection. If enabled, the kernel
531 will provide a sysfs interface for user applications to
532 call MC error injection PAL procedures to inject various errors.
e9ef08bd
FY
533 This is a useful tool for MCA testing.
534
535 If you're unsure, do not select this option.
536
466575f4
JS
537config SGI_SN
538 def_bool y if (IA64_SGI_SN2 || IA64_GENERIC)
539
2ab561a1
DMT
540config IA64_ESI
541 bool "ESI (Extensible SAL Interface) support"
542 help
543 If you say Y here, support is built into the kernel to
544 make ESI calls. ESI calls are used to support vendor-specific
545 firmware extensions, such as the ability to inject memory-errors
546 for test-purposes. If you're unsure, say N.
547
28eda5b8
BH
548config IA64_HP_AML_NFW
549 bool "Support ACPI AML calls to native firmware"
550 help
551 This driver installs a global ACPI Operation Region handler for
552 region 0xA1. AML methods can use this OpRegion to call arbitrary
553 native firmware functions. The driver installs the OpRegion
554 handler if there is an HPQ5001 device or if the user supplies
555 the "force" module parameter, e.g., with the "aml_nfw.force"
556 kernel command line option.
557
c1311af1
BC
558source "drivers/sn/Kconfig"
559
a7956113
ZN
560config KEXEC
561 bool "kexec system call (EXPERIMENTAL)"
562 depends on EXPERIMENTAL && !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
563 help
564 kexec is a system call that implements the ability to shutdown your
565 current kernel, and to start another kernel. It is like a reboot
3dde6ad8 566 but it is independent of the system firmware. And like a reboot
a7956113
ZN
567 you can start any kernel with it, not just Linux.
568
01dd2fbf 569 The name comes from the similarity to the exec system call.
a7956113
ZN
570
571 It is an ongoing process to be certain the hardware in a machine
572 is properly shutdown, so do not be surprised if this code does not
573 initially work for you. It may help to enable device hotplugging
574 support. As of this writing the exact hardware interface is
575 strongly in flux, so no good recommendation can be made.
576
577config CRASH_DUMP
fb86611f
BW
578 bool "kernel crash dumps"
579 depends on IA64_MCA_RECOVERY && !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
a7956113
ZN
580 help
581 Generate crash dump after being started by kexec.
582
1da177e4
LT
583source "drivers/firmware/Kconfig"
584
585source "fs/Kconfig.binfmt"
586
587endmenu
588
1547a012 589menu "Power management and ACPI options"
1da177e4 590
eb7b6b32 591source "kernel/power/Kconfig"
1da177e4
LT
592
593source "drivers/acpi/Kconfig"
594
4db8699b
VP
595if PM
596
597source "arch/ia64/kernel/cpufreq/Kconfig"
598
599endif
600
1da177e4
LT
601endmenu
602
603if !IA64_HP_SIM
604
605menu "Bus options (PCI, PCMCIA)"
606
607config PCI
608 bool "PCI support"
609 help
85f265d8
CH
610 Real IA-64 machines all have PCI/PCI-X/PCI Express busses. Say Y
611 here unless you are using a simulator without PCI support.
1da177e4
LT
612
613config PCI_DOMAINS
36e23590
MW
614 def_bool PCI
615
616config PCI_SYSCALL
617 def_bool PCI
1da177e4 618
b7bb575c
KK
619source "drivers/pci/pcie/Kconfig"
620
1da177e4
LT
621source "drivers/pci/Kconfig"
622
623source "drivers/pci/hotplug/Kconfig"
624
625source "drivers/pcmcia/Kconfig"
626
62fdd767
FY
627config DMAR
628 bool "Support for DMA Remapping Devices (EXPERIMENTAL)"
629 depends on IA64_GENERIC && ACPI && EXPERIMENTAL
630 help
631 DMA remapping (DMAR) devices support enables independent address
632 translations for Direct Memory Access (DMA) from devices.
633 These DMA remapping devices are reported via ACPI tables
634 and include PCI device scope covered by these DMA
635 remapping devices.
636
1da177e4
LT
637endmenu
638
639endif
640
d5950b43
SR
641source "net/Kconfig"
642
1da177e4
LT
643source "drivers/Kconfig"
644
1547a012
BH
645source "arch/ia64/hp/sim/Kconfig"
646
1a4b0fc5
JS
647config MSPEC
648 tristate "Memory special operations driver"
649 depends on IA64
650 select IA64_UNCACHED_ALLOCATOR
651 help
652 If you have an ia64 and you want to enable memory special
653 operations support (formerly known as fetchop), say Y here,
654 otherwise say N.
655
1da177e4
LT
656source "fs/Kconfig"
657
1547a012
BH
658source "arch/ia64/Kconfig.debug"
659
660source "security/Kconfig"
661
662source "crypto/Kconfig"
663
b693919c
XZ
664source "arch/ia64/kvm/Kconfig"
665
1da177e4
LT
666source "lib/Kconfig"
667
668#
669# Use the generic interrupt handling code in kernel/irq/:
670#
671config GENERIC_HARDIRQS
672 bool
673 default y
674
675config GENERIC_IRQ_PROBE
676 bool
677 default y
678
54d5d424
AR
679config GENERIC_PENDING_IRQ
680 bool
681 depends on GENERIC_HARDIRQS && SMP
682 default y
683
0d7012a9
IM
684config IRQ_PER_CPU
685 bool
686 default y
687
b34eb53c 688config IOMMU_HELPER
a8522509 689 def_bool (IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB || IA64_GENERIC || SWIOTLB)
1aaf1183
JR
690
691config IOMMU_API
692 def_bool (DMAR)