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