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