forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
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,20 @@
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
5359 select ARCH_HAS_SYNC_DMA_FOR_CPU
54
- select DMA_NONCOHERENT_OPS
5560 select GENERIC_ATOMIC64
5661 select CLZ_TAB
5762 select HAVE_UID16
....@@ -63,13 +68,13 @@
6368 select HAVE_FUNCTION_GRAPH_TRACER
6469 select HAVE_KRETPROBES
6570 select HAVE_KPROBES
66
- select HAVE_RCU_TABLE_FREE if SMP
67
- select HAVE_MEMBLOCK_NODE_MAP
71
+ select MMU_GATHER_RCU_TABLE_FREE if SMP
6872 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
6973 select HAVE_DYNAMIC_FTRACE
7074 select HAVE_FTRACE_MCOUNT_RECORD
7175 select HAVE_SYSCALL_TRACEPOINTS
7276 select HAVE_CONTEXT_TRACKING
77
+ select HAVE_TIF_NOHZ
7378 select HAVE_DEBUG_KMEMLEAK
7479 select IOMMU_HELPER
7580 select SPARSE_IRQ
....@@ -79,7 +84,6 @@
7984 select RTC_DRV_STARFIRE
8085 select HAVE_PERF_EVENTS
8186 select PERF_USE_VMALLOC
82
- select IRQ_PREFLOW_FASTEOI
8387 select ARCH_HAVE_NMI_SAFE_CMPXCHG
8488 select HAVE_C_RECORDMCOUNT
8589 select HAVE_ARCH_AUDITSYSCALL
....@@ -91,11 +95,8 @@
9195 select GENERIC_TIME_VSYSCALL
9296 select ARCH_CLOCKSOURCE_DATA
9397 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
98
+ select PCI_DOMAINS if PCI
99
+ select ARCH_HAS_GIGANTIC_PAGE
99100
100101 config ARCH_PROC_KCORE_TEXT
101102 def_bool y
....@@ -161,7 +162,7 @@
161162
162163 config SMP
163164 bool "Symmetric multi-processing support"
164
- ---help---
165
+ help
165166 This enables support for systems with more than one CPU. If you have
166167 a system with only one CPU, say N. If you have a system with more
167168 than one CPU, say Y.
....@@ -176,7 +177,7 @@
176177 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
177178 Management" code will be disabled if you say Y here.
178179
179
- See also <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO
180
+ See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
180181 available at <http://www.tldp.org/docs.html#howto>.
181182
182183 If you don't know what to do here, say N.
....@@ -189,15 +190,7 @@
189190 default 32 if SPARC32
190191 default 4096 if SPARC64
191192
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
193
+source "kernel/Kconfig.hz"
201194
202195 config GENERIC_HWEIGHT
203196 bool
....@@ -236,23 +229,6 @@
236229 help
237230 Say Y here to enable a faster early framebuffer boot console.
238231
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
-
256232 config HOTPLUG_CPU
257233 bool "Support for hot-pluggable CPUs"
258234 depends on SPARC64 && SMP
....@@ -281,7 +257,7 @@
281257 config GENERIC_LOCKBREAK
282258 bool
283259 default y
284
- depends on SPARC64 && SMP && PREEMPT
260
+ depends on SPARC64 && SMP && PREEMPTION
285261
286262 config NUMA
287263 bool "NUMA support"
....@@ -295,18 +271,6 @@
295271 help
296272 Specify the maximum number of NUMA Nodes available on the target
297273 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
310274
311275 config ARCH_SPARSEMEM_ENABLE
312276 def_bool y if SPARC64
....@@ -388,7 +352,7 @@
388352 bool
389353 depends on SPARC32
390354 default y
391
- ---help---
355
+ help
392356 If you say Y here, it will be possible to use a serial port as the
393357 system console (the system console is the device which receives all
394358 kernel messages and warnings and which allows logins in single user
....@@ -415,7 +379,7 @@
415379 select USB_EHCI_BIG_ENDIAN_DESC
416380 select USB_UHCI_BIG_ENDIAN_MMIO
417381 select USB_UHCI_BIG_ENDIAN_DESC
418
- ---help---
382
+ help
419383 If you say Y here if you are running on a SPARC-LEON processor.
420384 The LEON processor is a synthesizable VHDL model of the
421385 SPARC-v8 standard. LEON is part of the GRLIB collection of
....@@ -429,7 +393,7 @@
429393 config UBOOT_LOAD_ADDR
430394 hex "uImage Load Address"
431395 default 0x40004000
432
- ---help---
396
+ help
433397 U-Boot kernel load address, the address in physical address space
434398 where u-boot will place the Linux kernel before booting it.
435399 This address is normally the base address of main memory + 0x4000.
....@@ -437,7 +401,7 @@
437401 config UBOOT_FLASH_ADDR
438402 hex "uImage.o Load Address"
439403 default 0x00080000
440
- ---help---
404
+ help
441405 Optional setting only affecting the uImage.o ELF-image used to
442406 download the uImage file to the target using a ELF-loader other than
443407 U-Boot. It may for example be used to download an uImage to FLASH with
....@@ -446,7 +410,7 @@
446410 config UBOOT_ENTRY_ADDR
447411 hex "uImage Entry Address"
448412 default 0xf0004000
449
- ---help---
413
+ help
450414 Do not change this unless you know what you're doing. This is
451415 hardcoded by the SPARC32 and LEON port.
452416
....@@ -473,24 +437,6 @@
473437 help
474438 Say Y here is you want to support virtual devices via
475439 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
494440
495441 config PCIC_PCI
496442 bool
....@@ -519,10 +465,6 @@
519465 default y
520466 help
521467 Say Y here to include the GRPCI2 Host Bridge Driver.
522
-
523
-source "drivers/pci/Kconfig"
524
-
525
-source "drivers/pcmcia/Kconfig"
526468
527469 config SUN_OPENPROMFS
528470 tristate "Openprom tree appears in /proc/openprom"