[PATCH] lockdep: stacktrace subsystem, s390 support
[pandora-kernel.git] / arch / s390 / Kconfig
1 #
2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
4 #
5
6 config MMU
7         bool
8         default y
9
10 config STACKTRACE_SUPPORT
11         bool
12         default y
13
14 config RWSEM_GENERIC_SPINLOCK
15         bool
16
17 config RWSEM_XCHGADD_ALGORITHM
18         bool
19         default y
20
21 config GENERIC_HWEIGHT
22         bool
23         default y
24
25 config GENERIC_CALIBRATE_DELAY
26         bool
27         default y
28
29 config GENERIC_BUST_SPINLOCK
30         bool
31
32 mainmenu "Linux Kernel Configuration"
33
34 config S390
35         bool
36         default y
37
38 source "init/Kconfig"
39
40 menu "Base setup"
41
42 comment "Processor type and features"
43
44 config 64BIT
45         bool "64 bit kernel"
46         help
47           Select this option if you have a 64 bit IBM zSeries machine
48           and want to use the 64 bit addressing mode.
49
50 config SMP
51         bool "Symmetric multi-processing support"
52         ---help---
53           This enables support for systems with more than one CPU. If you have
54           a system with only one CPU, like most personal computers, say N. If
55           you have a system with more than one CPU, say Y.
56
57           If you say N here, the kernel will run on single and multiprocessor
58           machines, but will use only one CPU of a multiprocessor machine. If
59           you say Y here, the kernel will run on many, but not all,
60           singleprocessor machines. On a singleprocessor machine, the kernel
61           will run faster if you say N here.
62
63           See also the <file:Documentation/smp.txt> and the SMP-HOWTO
64           available at <http://www.tldp.org/docs.html#howto>.
65
66           Even if you don't know what to do here, say Y.
67
68 config NR_CPUS
69         int "Maximum number of CPUs (2-64)"
70         range 2 64
71         depends on SMP
72         default "32"
73         help
74           This allows you to specify the maximum number of CPUs which this
75           kernel will support.  The maximum supported value is 64 and the
76           minimum value which makes sense is 2.
77
78           This is purely to save memory - each supported CPU adds
79           approximately sixteen kilobytes to the kernel image.
80
81 config HOTPLUG_CPU
82         bool "Support for hot-pluggable CPUs"
83         depends on SMP
84         select HOTPLUG
85         default n
86         help
87           Say Y here to be able to turn CPUs off and on. CPUs
88           can be controlled through /sys/devices/system/cpu/cpu#.
89           Say N if you want to disable CPU hotplug.
90
91 config DEFAULT_MIGRATION_COST
92         int
93         default "1000000"
94
95 config MATHEMU
96         bool "IEEE FPU emulation"
97         depends on MARCH_G5
98         help
99           This option is required for IEEE compliant floating point arithmetic
100           on older S/390 machines. Say Y unless you know your machine doesn't
101           need this.
102
103 config COMPAT
104         bool "Kernel support for 31 bit emulation"
105         depends on 64BIT
106         help
107           Select this option if you want to enable your system kernel to
108           handle system-calls from ELF binaries for 31 bit ESA.  This option
109           (and some other stuff like libraries and such) is needed for
110           executing 31 bit applications.  It is safe to say "Y".
111
112 config SYSVIPC_COMPAT
113         bool
114         depends on COMPAT && SYSVIPC
115         default y
116
117 config BINFMT_ELF32
118         tristate "Kernel support for 31 bit ELF binaries"
119         depends on COMPAT
120         help
121           This allows you to run 32-bit Linux/ELF binaries on your zSeries
122           in 64 bit mode. Everybody wants this; say Y.
123
124 comment "Code generation options"
125
126 choice
127         prompt "Processor type"
128         default MARCH_G5
129
130 config MARCH_G5
131         bool "S/390 model G5 and G6"
132         depends on !64BIT
133         help
134           Select this to build a 31 bit kernel that works
135           on all S/390 and zSeries machines.
136
137 config MARCH_Z900
138         bool "IBM eServer zSeries model z800 and z900"
139         help
140           Select this to optimize for zSeries machines. This
141           will enable some optimizations that are not available
142           on older 31 bit only CPUs.
143
144 config MARCH_Z990
145         bool "IBM eServer zSeries model z890 and z990"
146         help
147           Select this enable optimizations for model z890/z990.
148           This will be slightly faster but does not work on
149           older machines such as the z900.
150
151 endchoice
152
153 config PACK_STACK
154         bool "Pack kernel stack"
155         help
156           This option enables the compiler option -mkernel-backchain if it
157           is available. If the option is available the compiler supports
158           the new stack layout which dramatically reduces the minimum stack
159           frame size. With an old compiler a non-leaf function needs a
160           minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With
161           -mkernel-backchain the minimum size drops to 16 byte on 31 bit
162           and 24 byte on 64 bit.
163
164           Say Y if you are unsure.
165
166 config SMALL_STACK
167         bool "Use 4kb/8kb for kernel stack instead of 8kb/16kb"
168         depends on PACK_STACK
169         help
170           If you say Y here and the compiler supports the -mkernel-backchain
171           option the kernel will use a smaller kernel stack size. For 31 bit
172           the reduced size is 4kb instead of 8kb and for 64 bit it is 8kb
173           instead of 16kb. This allows to run more thread on a system and
174           reduces the pressure on the memory management for higher order
175           page allocations.
176
177           Say N if you are unsure.
178
179
180 config CHECK_STACK
181         bool "Detect kernel stack overflow"
182         help
183           This option enables the compiler option -mstack-guard and
184           -mstack-size if they are available. If the compiler supports them
185           it will emit additional code to each function prolog to trigger
186           an illegal operation if the kernel stack is about to overflow.
187
188           Say N if you are unsure.
189
190 config STACK_GUARD
191         int "Size of the guard area (128-1024)"
192         range 128 1024
193         depends on CHECK_STACK
194         default "256"
195         help
196           This allows you to specify the size of the guard area at the lower
197           end of the kernel stack. If the kernel stack points into the guard
198           area on function entry an illegal operation is triggered. The size
199           needs to be a power of 2. Please keep in mind that the size of an
200           interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
201           The minimum size for the stack guard should be 256 for 31 bit and
202           512 for 64 bit.
203
204 config WARN_STACK
205         bool "Emit compiler warnings for function with broken stack usage"
206         help
207           This option enables the compiler options -mwarn-framesize and
208           -mwarn-dynamicstack. If the compiler supports these options it
209           will generate warnings for function which either use alloca or
210           create a stack frame bigger then CONFIG_WARN_STACK_SIZE.
211
212           Say N if you are unsure.
213
214 config WARN_STACK_SIZE
215         int "Maximum frame size considered safe (128-2048)"
216         range 128 2048
217         depends on WARN_STACK
218         default "256"
219         help
220           This allows you to specify the maximum frame size a function may
221           have without the compiler complaining about it.
222
223 source "mm/Kconfig"
224
225 comment "I/O subsystem configuration"
226
227 config MACHCHK_WARNING
228         bool "Process warning machine checks"
229         help
230           Select this option if you want the machine check handler on IBM S/390 or
231           zSeries to process warning machine checks (e.g. on power failures).
232           If unsure, say "Y".
233
234 config QDIO
235         tristate "QDIO support"
236         ---help---
237           This driver provides the Queued Direct I/O base support for
238           IBM mainframes.
239
240           For details please refer to the documentation provided by IBM at
241           <http://www10.software.ibm.com/developerworks/opensource/linux390>
242
243           To compile this driver as a module, choose M here: the
244           module will be called qdio.
245
246           If unsure, say Y.
247
248 config QDIO_PERF_STATS
249         bool "Performance statistics in /proc"
250         depends on QDIO
251         help
252           Say Y here to get performance statistics in /proc/qdio_perf
253
254           If unsure, say N.
255
256 config QDIO_DEBUG
257         bool "Extended debugging information"
258         depends on QDIO
259         help
260           Say Y here to get extended debugging output in
261             /sys/kernel/debug/s390dbf/qdio...
262           Warning: this option reduces the performance of the QDIO module.
263
264           If unsure, say N.
265
266 comment "Misc"
267
268 config PREEMPT
269         bool "Preemptible Kernel"
270         help
271           This option reduces the latency of the kernel when reacting to
272           real-time or interactive events by allowing a low priority process to
273           be preempted even if it is in kernel mode executing a system call.
274           This allows applications to run more reliably even when the system is
275           under load.
276
277           Say N if you are unsure.
278
279 config IPL
280         bool "Builtin IPL record support"
281         help
282           If you want to use the produced kernel to IPL directly from a
283           device, you have to merge a bootsector specific to the device
284           into the first bytes of the kernel. You will have to select the
285           IPL device.
286
287 choice
288         prompt "IPL method generated into head.S"
289         depends on IPL
290         default IPL_TAPE
291         help
292           Select "tape" if you want to IPL the image from a Tape.
293
294           Select "vm_reader" if you are running under VM/ESA and want
295           to IPL the image from the emulated card reader.
296
297 config IPL_TAPE
298         bool "tape"
299
300 config IPL_VM
301         bool "vm_reader"
302
303 endchoice
304
305 source "fs/Kconfig.binfmt"
306
307 config PROCESS_DEBUG
308         bool "Show crashed user process info"
309         help
310           Say Y to print all process fault locations to the console.  This is
311           a debugging option; you probably do not want to set it unless you
312           are an S390 port maintainer.
313
314 config PFAULT
315         bool "Pseudo page fault support"
316         help
317           Select this option, if you want to use PFAULT pseudo page fault
318           handling under VM. If running native or in LPAR, this option
319           has no effect. If your VM does not support PFAULT, PAGEEX
320           pseudo page fault handling will be used.
321           Note that VM 4.2 supports PFAULT but has a bug in its
322           implementation that causes some problems.
323           Everybody who wants to run Linux under VM != VM4.2 should select
324           this option.
325
326 config SHARED_KERNEL
327         bool "VM shared kernel support"
328         help
329           Select this option, if you want to share the text segment of the
330           Linux kernel between different VM guests. This reduces memory
331           usage with lots of guests but greatly increases kernel size.
332           You should only select this option if you know what you are
333           doing and want to exploit this feature.
334
335 config CMM
336         tristate "Cooperative memory management"
337         help
338           Select this option, if you want to enable the kernel interface
339           to reduce the memory size of the system. This is accomplished
340           by allocating pages of memory and put them "on hold". This only
341           makes sense for a system running under VM where the unused pages
342           will be reused by VM for other guest systems. The interface
343           allows an external monitor to balance memory of many systems.
344           Everybody who wants to run Linux under VM should select this
345           option.
346
347 config CMM_PROC
348         bool "/proc interface to cooperative memory management"
349         depends on CMM
350         help
351           Select this option to enable the /proc interface to the
352           cooperative memory management.
353
354 config CMM_IUCV
355         bool "IUCV special message interface to cooperative memory management"
356         depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
357         help
358           Select this option to enable the special message interface to
359           the cooperative memory management.
360
361 config VIRT_TIMER
362         bool "Virtual CPU timer support"
363         help
364           This provides a kernel interface for virtual CPU timers.
365           Default is disabled.
366
367 config VIRT_CPU_ACCOUNTING
368         bool "Base user process accounting on virtual cpu timer"
369         depends on VIRT_TIMER
370         help
371           Select this option to use CPU timer deltas to do user
372           process accounting.
373
374 config APPLDATA_BASE
375         bool "Linux - VM Monitor Stream, base infrastructure"
376         depends on PROC_FS && VIRT_TIMER=y
377         help
378           This provides a kernel interface for creating and updating z/VM APPLDATA
379           monitor records. The monitor records are updated at certain time
380           intervals, once the timer is started.
381           Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
382           i.e. enables or disables monitoring on the Linux side.
383           A custom interval value (in seconds) can be written to
384           /proc/appldata/interval.
385
386           Defaults are 60 seconds interval and timer off.
387           The /proc entries can also be read from, showing the current settings.
388
389 config APPLDATA_MEM
390         tristate "Monitor memory management statistics"
391         depends on APPLDATA_BASE
392         help
393           This provides memory management related data to the Linux - VM Monitor
394           Stream, like paging/swapping rate, memory utilisation, etc.
395           Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
396           APPLDATA monitor record, i.e. enables or disables monitoring this record
397           on the z/VM side.
398
399           Default is disabled.
400           The /proc entry can also be read from, showing the current settings.
401
402           This can also be compiled as a module, which will be called
403           appldata_mem.o.
404
405 config APPLDATA_OS
406         tristate "Monitor OS statistics"
407         depends on APPLDATA_BASE
408         help
409           This provides OS related data to the Linux - VM Monitor Stream, like
410           CPU utilisation, etc.
411           Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
412           APPLDATA monitor record, i.e. enables or disables monitoring this record
413           on the z/VM side.
414
415           Default is disabled.
416           This can also be compiled as a module, which will be called
417           appldata_os.o.
418
419 config APPLDATA_NET_SUM
420         tristate "Monitor overall network statistics"
421         depends on APPLDATA_BASE
422         help
423           This provides network related data to the Linux - VM Monitor Stream,
424           currently there is only a total sum of network I/O statistics, no
425           per-interface data.
426           Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
427           APPLDATA monitor record, i.e. enables or disables monitoring this record
428           on the z/VM side.
429
430           Default is disabled.
431           This can also be compiled as a module, which will be called
432           appldata_net_sum.o.
433
434 config NO_IDLE_HZ
435         bool "No HZ timer ticks in idle"
436         help
437           Switches the regular HZ timer off when the system is going idle.
438           This helps z/VM to detect that the Linux system is idle. VM can
439           then "swap-out" this guest which reduces memory usage. It also
440           reduces the overhead of idle systems.
441
442           The HZ timer can be switched on/off via /proc/sys/kernel/hz_timer.
443           hz_timer=0 means HZ timer is disabled. hz_timer=1 means HZ
444           timer is active.
445
446 config NO_IDLE_HZ_INIT
447         bool "HZ timer in idle off by default"
448         depends on NO_IDLE_HZ
449         help
450           The HZ timer is switched off in idle by default. That means the
451           HZ timer is already disabled at boot time.
452
453 config S390_HYPFS_FS
454         bool "s390 hypervisor file system support"
455         select SYS_HYPERVISOR
456         default y
457         help
458           This is a virtual file system intended to provide accounting
459           information in an s390 hypervisor environment.
460
461 config KEXEC
462         bool "kexec system call (EXPERIMENTAL)"
463         depends on EXPERIMENTAL
464         help
465           kexec is a system call that implements the ability to shutdown your
466           current kernel, and to start another kernel.  It is like a reboot
467           but is independent of hardware/microcode support.
468
469 endmenu
470
471 source "net/Kconfig"
472
473 config PCMCIA
474         bool
475         default n
476
477 source "drivers/base/Kconfig"
478
479 source "drivers/connector/Kconfig"
480
481 source "drivers/scsi/Kconfig"
482
483 source "drivers/s390/Kconfig"
484
485 source "drivers/net/Kconfig"
486
487 source "fs/Kconfig"
488
489 source "arch/s390/oprofile/Kconfig"
490
491 source "arch/s390/Kconfig.debug"
492
493 source "security/Kconfig"
494
495 source "crypto/Kconfig"
496
497 source "lib/Kconfig"