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