OSDN Git Service

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