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