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