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