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