]> Git Repo - linux.git/blame - arch/sparc/Kconfig
arch/sparc: Introduce cmpxchg_u8 SPARC
[linux.git] / arch / sparc / Kconfig
CommitLineData
761b6026
BB
1config 64BIT
2 bool "64-bit kernel" if ARCH = "sparc"
3 default ARCH = "sparc64"
4 help
5 SPARC is a family of RISC microprocessors designed and marketed by
6 Sun Microsystems, incorporated. They are very widely found in Sun
7 workstations and clones.
8
9 Say yes to build a 64-bit kernel - formerly known as sparc64
10 Say no to build a 32-bit kernel - formerly known as sparc
11
35da3e39
SR
12config SPARC
13 bool
14 default y
ff649a6f 15 select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
a5252c28 16 select ARCH_MIGHT_HAVE_PC_SERIO
7b14c647 17 select OF
3cfc535c 18 select OF_PROMTREE
35da3e39
SR
19 select HAVE_IDE
20 select HAVE_OPROFILE
26b4c912 21 select HAVE_ARCH_KGDB if !SMP || SPARC64
35da3e39 22 select HAVE_ARCH_TRACEHOOK
5f56a5df 23 select HAVE_EXIT_THREAD
7ac57a89 24 select SYSCTL_EXCEPTION_TRACE
35da3e39
SR
25 select RTC_CLASS
26 select RTC_DRV_M48T59
460ea8d7 27 select RTC_SYSTOHC
451d7400 28 select HAVE_DMA_API_DEBUG
4f6500ff 29 select HAVE_ARCH_JUMP_LABEL if SPARC64
6baa9b20 30 select GENERIC_IRQ_SHOW
c1d7e01d 31 select ARCH_WANT_IPC_PARSE_VERSION
a21a2fd4 32 select GENERIC_PCI_IOMAP
d314d74c 33 select HAVE_NMI_WATCHDOG if SPARC64
7a12b503
DM
34 select HAVE_CBPF_JIT if SPARC32
35 select HAVE_EBPF_JIT if SPARC64
9b2a60c4 36 select HAVE_DEBUG_BUGVERBOSE
f0a2bc7e 37 select GENERIC_SMP_IDLE_THREAD
c7523a7c 38 select GENERIC_CLOCKEVENTS
2922585b 39 select GENERIC_STRNCPY_FROM_USER
2c66f623 40 select GENERIC_STRNLEN_USER
786d35d4 41 select MODULES_USE_ELF_RELA
eaca6eae 42 select ODD_RT_SIGACTION
52ad6b3f 43 select OLD_SIGSUSPEND
308c09f1 44 select ARCH_HAS_SG_CHAIN
fff7fb0b 45 select CPU_NO_EFFICIENT_FFS
395102db 46 select LOCKDEP_SMALL if LOCKDEP
1a8b6d76 47 select ARCH_WANT_RELAX_ORDER
35da3e39 48
35da3e39 49config SPARC32
761b6026 50 def_bool !64BIT
aea1181b 51 select GENERIC_ATOMIC64
c6df4b17 52 select CLZ_TAB
af1839eb 53 select HAVE_UID16
a274bd49 54 select OLD_SIGACTION
35da3e39 55
26b4c912 56config SPARC64
761b6026 57 def_bool 64BIT
26b4c912 58 select HAVE_FUNCTION_TRACER
9960e9e8 59 select HAVE_FUNCTION_GRAPH_TRACER
26b4c912
SR
60 select HAVE_KRETPROBES
61 select HAVE_KPROBES
4a0100f7 62 select HAVE_RCU_TABLE_FREE if SMP
95f72d1e 63 select HAVE_MEMBLOCK
2a4814df 64 select HAVE_MEMBLOCK_NODE_MAP
b9156ebb 65 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
9be12f9b
DM
66 select HAVE_DYNAMIC_FTRACE
67 select HAVE_FTRACE_MCOUNT_RECORD
c658ad1b 68 select HAVE_SYSCALL_TRACEPOINTS
812cb83a 69 select HAVE_CONTEXT_TRACKING
b69ec42b 70 select HAVE_DEBUG_KMEMLEAK
ee6a9333 71 select SPARSE_IRQ
26b4c912
SR
72 select RTC_DRV_CMOS
73 select RTC_DRV_BQ4802
74 select RTC_DRV_SUN4V
75 select RTC_DRV_STARFIRE
cdd6c482 76 select HAVE_PERF_EVENTS
906010b2 77 select PERF_USE_VMALLOC
fcd8d4f4 78 select IRQ_PREFLOW_FASTEOI
df013ffb 79 select ARCH_HAVE_NMI_SAFE_CMPXCHG
178a2960 80 select HAVE_C_RECORDMCOUNT
625d693e 81 select NO_BOOTMEM
7a017721 82 select HAVE_ARCH_AUDITSYSCALL
4badad35 83 select ARCH_SUPPORTS_ATOMIC_RMW
42a0bb3f 84 select HAVE_NMI
b7c02b73 85 select HAVE_REGS_AND_STACK_ACCESS_API
26b4c912 86
5e538790
SR
87config ARCH_DEFCONFIG
88 string
89 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
90 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
91
3c08158e
DM
92config ARCH_PROC_KCORE_TEXT
93 def_bool y
94
97d9f969
BM
95config CPU_BIG_ENDIAN
96 def_bool y
97
c88c545b
DK
98config ARCH_ATU
99 bool
100 default y if SPARC64
101
d30a6b84
TD
102config ARCH_DMA_ADDR_T_64BIT
103 bool
104 default y if ARCH_ATU
105
26b4c912
SR
106config IOMMU_HELPER
107 bool
108 default y if SPARC64
109
26b4c912
SR
110config STACKTRACE_SUPPORT
111 bool
112 default y if SPARC64
113
114config LOCKDEP_SUPPORT
115 bool
116 default y if SPARC64
117
bdde6b3c
TK
118config ARCH_HIBERNATION_POSSIBLE
119 def_bool y if SPARC64
120
26b4c912
SR
121config AUDIT_ARCH
122 bool
7e7e93a2 123 default y
26b4c912
SR
124
125config HAVE_SETUP_PER_CPU_AREA
126 def_bool y if SPARC64
127
bcb2107f 128config NEED_PER_CPU_EMBED_FIRST_CHUNK
4fd78a5f
DM
129 def_bool y if SPARC64
130
a70c6913
TH
131config NEED_PER_CPU_PAGE_FIRST_CHUNK
132 def_bool y if SPARC64
133
1da177e4
LT
134config MMU
135 bool
136 default y
137
1da177e4
LT
138config HIGHMEM
139 bool
26b4c912 140 default y if SPARC32
1da177e4 141
5ac6da66
CL
142config ZONE_DMA
143 bool
26b4c912 144 default y if SPARC32
5ac6da66 145
d15b51be
FT
146config NEED_DMA_MAP_STATE
147 def_bool y
148
18e98307
FT
149config NEED_SG_DMA_LENGTH
150 def_bool y
151
1da177e4
LT
152config GENERIC_ISA_DMA
153 bool
26b4c912 154 default y if SPARC32
1da177e4 155
6a11f75b
AM
156config ARCH_SUPPORTS_DEBUG_PAGEALLOC
157 def_bool y if SPARC64
158
81a2936c
KS
159config PGTABLE_LEVELS
160 default 4 if 64BIT
161 default 3
162
e8f4aa60
AP
163config ARCH_SUPPORTS_UPROBES
164 def_bool y if SPARC64
165
1da177e4
LT
166source "init/Kconfig"
167
dc52ddc0
MH
168source "kernel/Kconfig.freezer"
169
26b4c912 170menu "Processor type and features"
1da177e4 171
1da177e4 172config SMP
6b7679dd 173 bool "Symmetric multi-processing support"
1da177e4
LT
174 ---help---
175 This enables support for systems with more than one CPU. If you have
176 a system with only one CPU, say N. If you have a system with more
177 than one CPU, say Y.
178
4a474157 179 If you say N here, the kernel will run on uni- and multiprocessor
1da177e4
LT
180 machines, but will use only one CPU of a multiprocessor machine. If
181 you say Y here, the kernel will run on many, but not all,
4a474157 182 uniprocessor machines. On a uniprocessor machine, the kernel
1da177e4
LT
183 will run faster if you say N here.
184
185 People using multiprocessor machines who say Y here should also say
186 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
187 Management" code will be disabled if you say Y here.
188
03502faa
AB
189 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
190 available at <http://www.tldp.org/docs.html#howto>.
1da177e4
LT
191
192 If you don't know what to do here, say N.
193
194config NR_CPUS
26b4c912 195 int "Maximum number of CPUs"
1da177e4 196 depends on SMP
26b4c912
SR
197 range 2 32 if SPARC32
198 range 2 1024 if SPARC64
199 default 32 if SPARC32
200 default 64 if SPARC64
1da177e4 201
26b4c912 202source kernel/Kconfig.hz
1da177e4 203
1da177e4
LT
204config RWSEM_GENERIC_SPINLOCK
205 bool
26b4c912 206 default y if SPARC32
1da177e4
LT
207
208config RWSEM_XCHGADD_ALGORITHM
209 bool
26b4c912 210 default y if SPARC64
1da177e4 211
d59288b7
AM
212config GENERIC_HWEIGHT
213 bool
e0b20296 214 default y
d59288b7 215
1da177e4
LT
216config GENERIC_CALIBRATE_DELAY
217 bool
218 default y
219
a08b6b79
AV
220config ARCH_MAY_HAVE_PC_FDC
221 bool
222 default y
223
5f81941c
MH
224config EMULATED_CMPXCHG
225 bool
26b4c912 226 default y if SPARC32
5f81941c
MH
227 help
228 Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
229 is emulated, and therefore it is not completely atomic.
230
d670bd4f
SR
231# Makefile helpers
232config SPARC32_SMP
233 bool
234 default y
235 depends on SPARC32 && SMP
236
237config SPARC64_SMP
238 bool
239 default y
240 depends on SPARC64 && SMP
241
c57ec52f
DM
242config EARLYFB
243 bool "Support for early boot text console"
244 default y
245 depends on SPARC64
246 help
247 Say Y here to enable a faster early framebuffer boot console.
248
26b4c912
SR
249config SECCOMP
250 bool "Enable seccomp to safely compute untrusted bytecode"
251 depends on SPARC64 && PROC_FS
252 default y
253 help
254 This kernel feature is useful for number crunching applications
255 that may need to compute untrusted bytecode during their
256 execution. By using pipes or other transports made available to
257 the process as file descriptors supporting the read/write
258 syscalls, it's possible to isolate those applications in
259 their own address space using seccomp. Once seccomp is
260 enabled via /proc/<pid>/seccomp, it cannot be disabled
261 and the task is only allowed to execute a few safe syscalls
262 defined by each seccomp mode.
263
264 If unsure, say Y. Only embedded should say N here.
265
266config HOTPLUG_CPU
267 bool "Support for hot-pluggable CPUs"
268 depends on SPARC64 && SMP
26b4c912
SR
269 help
270 Say Y here to experiment with turning CPUs off and on. CPUs
271 can be controlled through /sys/devices/system/cpu/cpu#.
272 Say N if you want to disable CPU hotplug.
273
26b4c912
SR
274if SPARC64
275source "drivers/cpufreq/Kconfig"
26b4c912
SR
276endif
277
278config US3_MC
279 tristate "UltraSPARC-III Memory Controller driver"
280 depends on SPARC64
281 default y
282 help
283 This adds a driver for the UltraSPARC-III memory controller.
284 Loading this driver allows exact mnemonic strings to be
285 printed in the event of a memory error, so that the faulty DIMM
286 on the motherboard can be matched to the error.
287
288 If in doubt, say Y, as this information can be very useful.
289
290# Global things across all Sun machines.
291config GENERIC_LOCKBREAK
1da177e4
LT
292 bool
293 default y
26b4c912
SR
294 depends on SPARC64 && SMP && PREEMPT
295
26b4c912
SR
296config NUMA
297 bool "NUMA support"
298 depends on SPARC64 && SMP
299
300config NODES_SHIFT
301 int
302 default "4"
303 depends on NEED_MULTIPLE_NODES
304
305# Some NUMA nodes have memory ranges that span
306# other nodes. Even though a pfn is valid and
307# between a node's start and end pfns, it may not
308# reside on that node. See memmap_init_zone()
309# for details.
310config NODES_SPAN_OTHER_NODES
311 def_bool y
312 depends on NEED_MULTIPLE_NODES
313
26b4c912
SR
314config ARCH_SELECT_MEMORY_MODEL
315 def_bool y if SPARC64
316
317config ARCH_SPARSEMEM_ENABLE
318 def_bool y if SPARC64
319 select SPARSEMEM_VMEMMAP_ENABLE
320
321config ARCH_SPARSEMEM_DEFAULT
322 def_bool y if SPARC64
323
c88c545b
DK
324config FORCE_MAX_ZONEORDER
325 int "Maximum zone order"
326 default "13"
327 help
328 The kernel memory allocator divides physically contiguous memory
329 blocks into "zones", where each zone is a power of two number of
330 pages. This option selects the largest power of two that the kernel
331 keeps in the memory allocator. If you need to allocate very large
332 blocks of physically contiguous memory, then you may need to
333 increase this value.
334
335 This config option is actually maximum order plus one. For example,
336 a value of 13 means that the largest free memory block is 2^12 pages.
337
26b4c912
SR
338source "mm/Kconfig"
339
bdde6b3c
TK
340if SPARC64
341source "kernel/power/Kconfig"
342endif
343
26b4c912
SR
344config SCHED_SMT
345 bool "SMT (Hyperthreading) scheduler support"
346 depends on SPARC64 && SMP
347 default y
348 help
349 SMT scheduler support improves the CPU scheduler's decision making
350 when dealing with SPARC cpus at a cost of slightly increased overhead
351 in some places. If unsure say N here.
352
353config SCHED_MC
354 bool "Multi-core scheduler support"
355 depends on SPARC64 && SMP
356 default y
357 help
358 Multi-core scheduler support improves the CPU scheduler's decision
359 making when dealing with multi-core CPU chips at a cost of slightly
360 increased overhead in some places. If unsure say N here.
361
26b4c912 362source "kernel/Kconfig.preempt"
26b4c912
SR
363
364config CMDLINE_BOOL
365 bool "Default bootloader kernel arguments"
366 depends on SPARC64
367
368config CMDLINE
369 string "Initial kernel command string"
370 depends on CMDLINE_BOOL
371 default "console=ttyS0,9600 root=/dev/sda1"
372 help
373 Say Y here if you want to be able to pass default arguments to
374 the kernel. This will be overridden by the bootloader, if you
375 use one (such as SILO). This is most useful if you want to boot
376 a kernel from TFTP, and want default options to be available
377 with having them passed on the command line.
378
379 NOTE: This option WILL override the PROM bootargs setting!
380
381config SUN_PM
382 bool
383 default y if SPARC32
1da177e4
LT
384 help
385 Enable power management and CPU standby features on supported
386 SPARC platforms.
387
4b27e0e1
SR
388config SPARC_LED
389 tristate "Sun4m LED driver"
26b4c912 390 depends on SPARC32
4b27e0e1
SR
391 help
392 This driver toggles the front-panel LED on sun4m systems
393 in a user-specifiable manner. Its state can be probed
394 by reading /proc/led and its blinking mode can be changed
395 via writes to /proc/led
396
26b4c912
SR
397config SERIAL_CONSOLE
398 bool
399 depends on SPARC32
400 default y
401 ---help---
402 If you say Y here, it will be possible to use a serial port as the
403 system console (the system console is the device which receives all
404 kernel messages and warnings and which allows logins in single user
405 mode). This could be useful if some terminal or printer is connected
406 to that serial port.
407
408 Even if you say Y here, the currently visible virtual console
409 (/dev/tty0) will still be used as the system console by default, but
410 you can alter that using a kernel command line option such as
411 "console=ttyS1". (Try "man bootparam" or see the documentation of
412 your boot loader (silo) about how to pass options to the kernel at
413 boot time.)
414
415 If you don't have a graphics card installed and you say Y here, the
416 kernel will automatically use the first serial line, /dev/ttyS0, as
417 system console.
418
419 If unsure, say N.
4b27e0e1 420
5213a780
KE
421config SPARC_LEON
422 bool "Sparc Leon processor family"
423 depends on SPARC32
9296d94d
FF
424 select USB_EHCI_BIG_ENDIAN_MMIO
425 select USB_EHCI_BIG_ENDIAN_DESC
5213a780
KE
426 ---help---
427 If you say Y here if you are running on a SPARC-LEON processor.
428 The LEON processor is a synthesizable VHDL model of the
429 SPARC-v8 standard. LEON is part of the GRLIB collection of
430 IP cores that are distributed under GPL. GRLIB can be downloaded
431 from www.gaisler.com. You can download a sparc-linux cross-compilation
432 toolchain at www.gaisler.com.
433
684151a7
DH
434if SPARC_LEON
435menu "U-Boot options"
436
437config UBOOT_LOAD_ADDR
438 hex "uImage Load Address"
439 default 0x40004000
440 ---help---
441 U-Boot kernel load address, the address in physical address space
442 where u-boot will place the Linux kernel before booting it.
443 This address is normally the base address of main memory + 0x4000.
444
445config UBOOT_FLASH_ADDR
446 hex "uImage.o Load Address"
447 default 0x00080000
448 ---help---
449 Optional setting only affecting the uImage.o ELF-image used to
450 download the uImage file to the target using a ELF-loader other than
451 U-Boot. It may for example be used to download an uImage to FLASH with
452 the GRMON utility before even starting u-boot.
453
454config UBOOT_ENTRY_ADDR
455 hex "uImage Entry Address"
456 default 0xf0004000
457 ---help---
458 Do not change this unless you know what you're doing. This is
459 hardcoded by the SPARC32 and LEON port.
460
461 This is the virtual address u-boot jumps to when booting the Linux
462 Kernel.
463
464endmenu
465endif
466
4b27e0e1
SR
467endmenu
468
469menu "Bus options (PCI etc.)"
4b27e0e1
SR
470config SBUS
471 bool
472 default y
473
474config SBUSCHAR
475 bool
476 default y
477
26b4c912
SR
478config SUN_LDOMS
479 bool "Sun Logical Domains support"
480 depends on SPARC64
481 help
482 Say Y here is you want to support virtual devices via
483 Logical Domains.
484
1da177e4
LT
485config PCI
486 bool "Support for PCI and PS/2 keyboard/mouse"
487 help
26b4c912
SR
488 Find out whether your system includes a PCI bus. PCI is the name of
489 a bus system, i.e. the way the CPU talks to the other stuff inside
490 your box. If you say Y here, the kernel will include drivers and
491 infrastructure code to support PCI bus devices.
492
1da177e4
LT
493 CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
494 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
495 All of these platforms are extremely obscure, so say N if unsure.
496
26b4c912
SR
497config PCI_DOMAINS
498 def_bool PCI if SPARC64
499
36e23590
MW
500config PCI_SYSCALL
501 def_bool PCI
502
cfe3af5d
DH
503config PCIC_PCI
504 bool
8c47f8d0 505 depends on PCI && SPARC32 && !SPARC_LEON
cfe3af5d
DH
506 default y
507
26893c13
DH
508config LEON_PCI
509 bool
510 depends on PCI && SPARC_LEON
511 default y
512
d8650106
DH
513config SPARC_GRPCI1
514 bool "GRPCI Host Bridge Support"
515 depends on LEON_PCI
516 default y
517 help
518 Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
519 PCI host controller is typically found in GRLIB SPARC32/LEON
520 systems. The driver has one property (all_pci_errors) controlled
521 from the bootloader that makes the GRPCI to generate interrupts
522 on detected PCI Parity and System errors.
523
1ab0a676 524config SPARC_GRPCI2
5d07b786
DH
525 bool "GRPCI2 Host Bridge Support"
526 depends on LEON_PCI
527 default y
528 help
529 Say Y here to include the GRPCI2 Host Bridge Driver.
530
1da177e4
LT
531source "drivers/pci/Kconfig"
532
c6afec5e
DM
533source "drivers/pcmcia/Kconfig"
534
1da177e4
LT
535config SUN_OPENPROMFS
536 tristate "Openprom tree appears in /proc/openprom"
537 help
538 If you say Y, the OpenPROM device tree will be available as a
539 virtual file system, which you can mount to /proc/openprom by "mount
540 -t openpromfs none /proc/openprom".
541
542 To compile the /proc/openprom support as a module, choose M here: the
543 module will be called openpromfs.
544
545 Only choose N if you know in advance that you will not need to modify
546 OpenPROM settings on the running system.
547
a988fb80 548# Makefile helpers
d670bd4f
SR
549config SPARC64_PCI
550 bool
551 default y
552 depends on SPARC64 && PCI
30aaa808 553
a988fb80
TP
554config SPARC64_PCI_MSI
555 bool
556 default y
557 depends on SPARC64_PCI && PCI_MSI
558
30aaa808
NYC
559endmenu
560
12e271a8
SR
561menu "Executable file formats"
562
563source "fs/Kconfig.binfmt"
564
26b4c912
SR
565config COMPAT
566 bool
567 depends on SPARC64
568 default y
569 select COMPAT_BINFMT_ELF
af1839eb 570 select HAVE_UID16
48b25c43 571 select ARCH_WANT_OLD_COMPAT_IPC
a274bd49 572 select COMPAT_OLD_SIGACTION
26b4c912
SR
573
574config SYSVIPC_COMPAT
575 bool
576 depends on COMPAT && SYSVIPC
577 default y
578
45de6767
DH
579config KEYS_COMPAT
580 def_bool y if COMPAT && KEYS
581
12e271a8
SR
582endmenu
583
d5950b43
SR
584source "net/Kconfig"
585
30aaa808 586source "drivers/Kconfig"
1da177e4 587
1da177e4 588source "drivers/sbus/char/Kconfig"
1da177e4 589
1da177e4
LT
590source "fs/Kconfig"
591
1da177e4
LT
592source "arch/sparc/Kconfig.debug"
593
594source "security/Kconfig"
595
596source "crypto/Kconfig"
597
598source "lib/Kconfig"
This page took 0.870247 seconds and 4 git commands to generate.