hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/sparc/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 config 64BIT
23 bool "64-bit kernel" if "$(ARCH)" = "sparc"
34 default "$(ARCH)" = "sparc64"
....@@ -14,13 +15,17 @@
1415 default y
1516 select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
1617 select ARCH_MIGHT_HAVE_PC_SERIO
18
+ select DMA_OPS
1719 select OF
1820 select OF_PROMTREE
21
+ select HAVE_ASM_MODVERSIONS
1922 select HAVE_IDE
2023 select HAVE_OPROFILE
2124 select HAVE_ARCH_KGDB if !SMP || SPARC64
2225 select HAVE_ARCH_TRACEHOOK
26
+ select HAVE_ARCH_SECCOMP if SPARC64
2327 select HAVE_EXIT_THREAD
28
+ select HAVE_PCI
2429 select SYSCTL_EXCEPTION_TRACE
2530 select RTC_CLASS
2631 select RTC_DRV_M48T59
....@@ -38,20 +43,21 @@
3843 select GENERIC_STRNCPY_FROM_USER
3944 select GENERIC_STRNLEN_USER
4045 select MODULES_USE_ELF_RELA
46
+ select PCI_SYSCALL if PCI
47
+ select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
4148 select ODD_RT_SIGACTION
4249 select OLD_SIGSUSPEND
43
- select ARCH_HAS_SG_CHAIN
4450 select CPU_NO_EFFICIENT_FFS
4551 select LOCKDEP_SMALL if LOCKDEP
4652 select NEED_DMA_MAP_STATE
4753 select NEED_SG_DMA_LENGTH
48
- select HAVE_MEMBLOCK
49
- select NO_BOOTMEM
54
+ select SET_FS
5055
5156 config SPARC32
5257 def_bool !64BIT
58
+ select ARCH_32BIT_OFF_T
59
+ select ARCH_HAS_CPU_FINALIZE_INIT if !SMP
5360 select ARCH_HAS_SYNC_DMA_FOR_CPU
54
- select DMA_NONCOHERENT_OPS
5561 select GENERIC_ATOMIC64
5662 select CLZ_TAB
5763 select HAVE_UID16
....@@ -63,13 +69,13 @@
6369 select HAVE_FUNCTION_GRAPH_TRACER
6470 select HAVE_KRETPROBES
6571 select HAVE_KPROBES
66
- select HAVE_RCU_TABLE_FREE if SMP
67
- select HAVE_MEMBLOCK_NODE_MAP
72
+ select MMU_GATHER_RCU_TABLE_FREE if SMP
6873 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
6974 select HAVE_DYNAMIC_FTRACE
7075 select HAVE_FTRACE_MCOUNT_RECORD
7176 select HAVE_SYSCALL_TRACEPOINTS
7277 select HAVE_CONTEXT_TRACKING
78
+ select HAVE_TIF_NOHZ
7379 select HAVE_DEBUG_KMEMLEAK
7480 select IOMMU_HELPER
7581 select SPARSE_IRQ
....@@ -79,7 +85,6 @@
7985 select RTC_DRV_STARFIRE
8086 select HAVE_PERF_EVENTS
8187 select PERF_USE_VMALLOC
82
- select IRQ_PREFLOW_FASTEOI
8388 select ARCH_HAVE_NMI_SAFE_CMPXCHG
8489 select HAVE_C_RECORDMCOUNT
8590 select HAVE_ARCH_AUDITSYSCALL
....@@ -91,11 +96,8 @@
9196 select GENERIC_TIME_VSYSCALL
9297 select ARCH_CLOCKSOURCE_DATA
9398 select ARCH_HAS_PTE_SPECIAL
94
-
95
-config ARCH_DEFCONFIG
96
- string
97
- default "arch/sparc/configs/sparc32_defconfig" if SPARC32
98
- default "arch/sparc/configs/sparc64_defconfig" if SPARC64
99
+ select PCI_DOMAINS if PCI
100
+ select ARCH_HAS_GIGANTIC_PAGE
99101
100102 config ARCH_PROC_KCORE_TEXT
101103 def_bool y
....@@ -161,7 +163,7 @@
161163
162164 config SMP
163165 bool "Symmetric multi-processing support"
164
- ---help---
166
+ help
165167 This enables support for systems with more than one CPU. If you have
166168 a system with only one CPU, say N. If you have a system with more
167169 than one CPU, say Y.
....@@ -176,7 +178,7 @@
176178 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
177179 Management" code will be disabled if you say Y here.
178180
179
- See also <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO
181
+ See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
180182 available at <http://www.tldp.org/docs.html#howto>.
181183
182184 If you don't know what to do here, say N.
....@@ -189,15 +191,7 @@
189191 default 32 if SPARC32
190192 default 4096 if SPARC64
191193
192
-source kernel/Kconfig.hz
193
-
194
-config RWSEM_GENERIC_SPINLOCK
195
- bool
196
- default y if SPARC32
197
-
198
-config RWSEM_XCHGADD_ALGORITHM
199
- bool
200
- default y if SPARC64
194
+source "kernel/Kconfig.hz"
201195
202196 config GENERIC_HWEIGHT
203197 bool
....@@ -236,23 +230,6 @@
236230 help
237231 Say Y here to enable a faster early framebuffer boot console.
238232
239
-config SECCOMP
240
- bool "Enable seccomp to safely compute untrusted bytecode"
241
- depends on SPARC64 && PROC_FS
242
- default y
243
- help
244
- This kernel feature is useful for number crunching applications
245
- that may need to compute untrusted bytecode during their
246
- execution. By using pipes or other transports made available to
247
- the process as file descriptors supporting the read/write
248
- syscalls, it's possible to isolate those applications in
249
- their own address space using seccomp. Once seccomp is
250
- enabled via /proc/<pid>/seccomp, it cannot be disabled
251
- and the task is only allowed to execute a few safe syscalls
252
- defined by each seccomp mode.
253
-
254
- If unsure, say Y. Only embedded should say N here.
255
-
256233 config HOTPLUG_CPU
257234 bool "Support for hot-pluggable CPUs"
258235 depends on SPARC64 && SMP
....@@ -281,7 +258,7 @@
281258 config GENERIC_LOCKBREAK
282259 bool
283260 default y
284
- depends on SPARC64 && SMP && PREEMPT
261
+ depends on SPARC64 && SMP && PREEMPTION
285262
286263 config NUMA
287264 bool "NUMA support"
....@@ -295,18 +272,6 @@
295272 help
296273 Specify the maximum number of NUMA Nodes available on the target
297274 system. Increases memory reserved to accommodate various tables.
298
-
299
-# Some NUMA nodes have memory ranges that span
300
-# other nodes. Even though a pfn is valid and
301
-# between a node's start and end pfns, it may not
302
-# reside on that node. See memmap_init_zone()
303
-# for details.
304
-config NODES_SPAN_OTHER_NODES
305
- def_bool y
306
- depends on NEED_MULTIPLE_NODES
307
-
308
-config ARCH_SELECT_MEMORY_MODEL
309
- def_bool y if SPARC64
310275
311276 config ARCH_SPARSEMEM_ENABLE
312277 def_bool y if SPARC64
....@@ -329,7 +294,7 @@
329294 This config option is actually maximum order plus one. For example,
330295 a value of 13 means that the largest free memory block is 2^12 pages.
331296
332
-if SPARC64
297
+if SPARC64 || COMPILE_TEST
333298 source "kernel/power/Kconfig"
334299 endif
335300
....@@ -388,7 +353,7 @@
388353 bool
389354 depends on SPARC32
390355 default y
391
- ---help---
356
+ help
392357 If you say Y here, it will be possible to use a serial port as the
393358 system console (the system console is the device which receives all
394359 kernel messages and warnings and which allows logins in single user
....@@ -415,7 +380,7 @@
415380 select USB_EHCI_BIG_ENDIAN_DESC
416381 select USB_UHCI_BIG_ENDIAN_MMIO
417382 select USB_UHCI_BIG_ENDIAN_DESC
418
- ---help---
383
+ help
419384 If you say Y here if you are running on a SPARC-LEON processor.
420385 The LEON processor is a synthesizable VHDL model of the
421386 SPARC-v8 standard. LEON is part of the GRLIB collection of
....@@ -429,7 +394,7 @@
429394 config UBOOT_LOAD_ADDR
430395 hex "uImage Load Address"
431396 default 0x40004000
432
- ---help---
397
+ help
433398 U-Boot kernel load address, the address in physical address space
434399 where u-boot will place the Linux kernel before booting it.
435400 This address is normally the base address of main memory + 0x4000.
....@@ -437,7 +402,7 @@
437402 config UBOOT_FLASH_ADDR
438403 hex "uImage.o Load Address"
439404 default 0x00080000
440
- ---help---
405
+ help
441406 Optional setting only affecting the uImage.o ELF-image used to
442407 download the uImage file to the target using a ELF-loader other than
443408 U-Boot. It may for example be used to download an uImage to FLASH with
....@@ -446,7 +411,7 @@
446411 config UBOOT_ENTRY_ADDR
447412 hex "uImage Entry Address"
448413 default 0xf0004000
449
- ---help---
414
+ help
450415 Do not change this unless you know what you're doing. This is
451416 hardcoded by the SPARC32 and LEON port.
452417
....@@ -473,24 +438,6 @@
473438 help
474439 Say Y here is you want to support virtual devices via
475440 Logical Domains.
476
-
477
-config PCI
478
- bool "Support for PCI and PS/2 keyboard/mouse"
479
- help
480
- Find out whether your system includes a PCI bus. PCI is the name of
481
- a bus system, i.e. the way the CPU talks to the other stuff inside
482
- your box. If you say Y here, the kernel will include drivers and
483
- infrastructure code to support PCI bus devices.
484
-
485
- CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
486
- CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
487
- All of these platforms are extremely obscure, so say N if unsure.
488
-
489
-config PCI_DOMAINS
490
- def_bool PCI if SPARC64
491
-
492
-config PCI_SYSCALL
493
- def_bool PCI
494441
495442 config PCIC_PCI
496443 bool
....@@ -519,10 +466,6 @@
519466 default y
520467 help
521468 Say Y here to include the GRPCI2 Host Bridge Driver.
522
-
523
-source "drivers/pci/Kconfig"
524
-
525
-source "drivers/pcmcia/Kconfig"
526469
527470 config SUN_OPENPROMFS
528471 tristate "Openprom tree appears in /proc/openprom"