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