forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/ia64/Kconfig
....@@ -8,13 +8,19 @@
88
99 config IA64
1010 bool
11
+ select ARCH_HAS_DMA_MARK_CLEAN
1112 select ARCH_MIGHT_HAVE_PC_PARPORT
1213 select ARCH_MIGHT_HAVE_PC_SERIO
13
- select PCI if (!IA64_HP_SIM)
14
- select ACPI if (!IA64_HP_SIM)
15
- select ARCH_SUPPORTS_ACPI if (!IA64_HP_SIM)
14
+ select ACPI
15
+ select ACPI_NUMA if NUMA
16
+ select ARCH_SUPPORTS_ACPI
1617 select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
1718 select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
19
+ select FORCE_PCI
20
+ select PCI_DOMAINS if PCI
21
+ select PCI_MSI
22
+ select PCI_SYSCALL if PCI
23
+ select HAVE_ASM_MODVERSIONS
1824 select HAVE_UNSTABLE_SCHED_CLOCK
1925 select HAVE_EXIT_THREAD
2026 select HAVE_IDE
....@@ -26,14 +32,8 @@
2632 select HAVE_FUNCTION_TRACER
2733 select TTY
2834 select HAVE_ARCH_TRACEHOOK
29
- select HAVE_MEMBLOCK
30
- select HAVE_MEMBLOCK_NODE_MAP
31
- select NO_BOOTMEM
3235 select HAVE_VIRT_CPU_ACCOUNTING
33
- select ARCH_HAS_DMA_MARK_CLEAN
34
- select ARCH_HAS_SG_CHAIN
3536 select VIRT_TO_BUS
36
- select ARCH_DISCARD_MEMBLOCK
3737 select GENERIC_IRQ_PROBE
3838 select GENERIC_PENDING_IRQ if SMP
3939 select GENERIC_IRQ_SHOW
....@@ -46,6 +46,7 @@
4646 select ARCH_THREAD_STACK_ALLOCATOR
4747 select ARCH_CLOCKSOURCE_DATA
4848 select GENERIC_TIME_VSYSCALL
49
+ select SWIOTLB
4950 select SYSCTL_ARCH_UNALIGN_NO_WARN
5051 select HAVE_MOD_ARCH_SPECIFIC
5152 select MODULES_USE_ELF_RELA
....@@ -53,6 +54,9 @@
5354 select HAVE_ARCH_AUDITSYSCALL
5455 select NEED_DMA_MAP_STATE
5556 select NEED_SG_DMA_LENGTH
57
+ select NUMA if !FLATMEM
58
+ select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
59
+ select SET_FS
5660 default y
5761 help
5862 The Itanium Processor Family is Intel's 64-bit successor to
....@@ -67,11 +71,6 @@
6771
6872 config ZONE_DMA32
6973 def_bool y
70
- depends on !IA64_SGI_SN2
71
-
72
-config QUICKLIST
73
- bool
74
- default y
7574
7675 config MMU
7776 bool
....@@ -82,10 +81,6 @@
8281
8382 config GENERIC_LOCKBREAK
8483 def_bool n
85
-
86
-config RWSEM_XCHGADD_ALGORITHM
87
- bool
88
- default y
8984
9085 config HUGETLB_PAGE_SIZE_VARIABLE
9186 bool
....@@ -124,87 +119,6 @@
124119 config AUDIT_ARCH
125120 bool
126121 default y
127
-
128
-choice
129
- prompt "System type"
130
- default IA64_GENERIC
131
-
132
-config IA64_GENERIC
133
- bool "generic"
134
- select NUMA
135
- select ACPI_NUMA
136
- select SWIOTLB
137
- select PCI_MSI
138
- help
139
- This selects the system type of your hardware. A "generic" kernel
140
- will run on any supported IA-64 system. However, if you configure
141
- a kernel for your specific system, it will be faster and smaller.
142
-
143
- generic For any supported IA-64 system
144
- DIG-compliant For DIG ("Developer's Interface Guide") compliant systems
145
- DIG+Intel+IOMMU For DIG systems with Intel IOMMU
146
- HP-zx1/sx1000 For HP systems
147
- HP-zx1/sx1000+swiotlb For HP systems with (broken) DMA-constrained devices.
148
- SGI-SN2 For SGI Altix systems
149
- SGI-UV For SGI UV systems
150
- Ski-simulator For the HP simulator <http://www.hpl.hp.com/research/linux/ski/>
151
-
152
- If you don't know what to do, choose "generic".
153
-
154
-config IA64_DIG
155
- bool "DIG-compliant"
156
- select SWIOTLB
157
-
158
-config IA64_DIG_VTD
159
- bool "DIG+Intel+IOMMU"
160
- select INTEL_IOMMU
161
- select PCI_MSI
162
-
163
-config IA64_HP_ZX1
164
- bool "HP-zx1/sx1000"
165
- help
166
- Build a kernel that runs on HP zx1 and sx1000 systems. This adds
167
- support for the HP I/O MMU.
168
-
169
-config IA64_HP_ZX1_SWIOTLB
170
- bool "HP-zx1/sx1000 with software I/O TLB"
171
- select SWIOTLB
172
- help
173
- Build a kernel that runs on HP zx1 and sx1000 systems even when they
174
- have broken PCI devices which cannot DMA to full 32 bits. Apart
175
- from support for the HP I/O MMU, this includes support for the software
176
- I/O TLB, which allows supporting the broken devices at the expense of
177
- wasting some kernel memory (about 2MB by default).
178
-
179
-config IA64_SGI_SN2
180
- bool "SGI-SN2"
181
- select NUMA
182
- select ACPI_NUMA
183
- help
184
- Selecting this option will optimize the kernel for use on sn2 based
185
- systems, but the resulting kernel binary will not run on other
186
- types of ia64 systems. If you have an SGI Altix system, it's safe
187
- to select this option. If in doubt, select ia64 generic support
188
- instead.
189
-
190
-config IA64_SGI_UV
191
- bool "SGI-UV"
192
- select NUMA
193
- select ACPI_NUMA
194
- select SWIOTLB
195
- help
196
- Selecting this option will optimize the kernel for use on UV based
197
- systems, but the resulting kernel binary will not run on other
198
- types of ia64 systems. If you have an SGI UV system, it's safe
199
- to select this option. If in doubt, select ia64 generic support
200
- instead.
201
-
202
-config IA64_HP_SIM
203
- bool "Ski-simulator"
204
- select SWIOTLB
205
- depends on !PM
206
-
207
-endchoice
208122
209123 choice
210124 prompt "Processor type"
....@@ -257,14 +171,7 @@
257171
258172 endchoice
259173
260
-if IA64_HP_SIM
261
-config HZ
262
- default 32
263
-endif
264
-
265
-if !IA64_HP_SIM
266
-source kernel/Kconfig.hz
267
-endif
174
+source "kernel/Kconfig.hz"
268175
269176 config IA64_BRL_EMU
270177 bool
....@@ -277,16 +184,26 @@
277184 default "7" if MCKINLEY
278185 default "6" if ITANIUM
279186
187
+config IA64_SGI_UV
188
+ bool "SGI-UV support"
189
+ help
190
+ Selecting this option will add specific support for running on SGI
191
+ UV based systems. If you have an SGI UV system or are building a
192
+ distro kernel, select this option.
193
+
194
+config IA64_HP_SBA_IOMMU
195
+ bool "HP SBA IOMMU support"
196
+ select DMA_OPS
197
+ default y
198
+ help
199
+ Say Y here to add support for the SBA IOMMU found on HP zx1 and
200
+ sx1000 systems. If you're unsure, answer Y.
201
+
280202 config IA64_CYCLONE
281203 bool "Cyclone (EXA) Time Source support"
282204 help
283205 Say Y here to enable support for IBM EXA Cyclone time source.
284206 If you're unsure, answer N.
285
-
286
-config IOSAPIC
287
- bool
288
- depends on !IA64_HP_SIM
289
- default y
290207
291208 config FORCE_MAX_ZONEORDER
292209 int "MAX_ORDER (11 - 17)" if !HUGETLB_PAGE
....@@ -328,7 +245,7 @@
328245 bool "Support for hot-pluggable CPUs"
329246 depends on SMP
330247 default n
331
- ---help---
248
+ help
332249 Say Y here to experiment with turning CPUs off and on. CPUs
333250 can be controlled through /sys/devices/system/cpu/cpu#.
334251 Say N if you want to disable CPU hotplug.
....@@ -351,7 +268,7 @@
351268 bool "Support removal of Bootstrap Processor"
352269 depends on HOTPLUG_CPU
353270 default n
354
- ---help---
271
+ help
355272 Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
356273 support.
357274
....@@ -359,7 +276,7 @@
359276 bool "Force assumption that CPEI can be re-targeted"
360277 depends on PERMIT_BSP_REMOVE
361278 default n
362
- ---help---
279
+ help
363280 Say Y if you need to force the assumption that CPEI can be re-targeted to
364281 any cpu in the system. This hint is available via ACPI 3.0 specifications.
365282 Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
....@@ -386,14 +303,13 @@
386303 select SPARSEMEM_VMEMMAP_ENABLE
387304
388305 config ARCH_DISCONTIGMEM_DEFAULT
389
- def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB)
306
+ def_bool y
390307 depends on ARCH_DISCONTIGMEM_ENABLE
391308
392309 config NUMA
393310 bool "NUMA support"
394
- depends on !IA64_HP_SIM && !FLATMEM
395
- default y if IA64_SGI_SN2
396
- select ACPI_NUMA if ACPI
311
+ depends on !FLATMEM
312
+ select SMP
397313 help
398314 Say Y to compile the kernel to support NUMA (Non-Uniform Memory
399315 Access). This option is for configuring high-end multiprocessor
....@@ -414,7 +330,7 @@
414330 config VIRTUAL_MEM_MAP
415331 bool "Virtual mem map"
416332 depends on !SPARSEMEM
417
- default y if !IA64_HP_SIM
333
+ default y
418334 help
419335 Say Y to compile the kernel with support for a virtual mem map.
420336 This code also only takes effect if a memory hole of greater than
....@@ -447,15 +363,6 @@
447363 config IA64_MCA_RECOVERY
448364 tristate "MCA recovery from errors other than TLB."
449365
450
-config PERFMON
451
- bool "Performance monitor support"
452
- depends on BROKEN
453
- help
454
- Selects whether support for the IA-64 performance monitor hardware
455
- is included in the kernel. This makes some kernel data-structures a
456
- little bigger and slows down execution a bit, but it is generally
457
- a good idea to turn this on. If you're unsure, say Y.
458
-
459366 config IA64_PALINFO
460367 tristate "/proc/pal support"
461368 help
....@@ -477,9 +384,6 @@
477384
478385 If you're unsure, do not select this option.
479386
480
-config SGI_SN
481
- def_bool y if (IA64_SGI_SN2 || IA64_GENERIC)
482
-
483387 config IA64_ESI
484388 bool "ESI (Extensible SAL Interface) support"
485389 help
....@@ -498,11 +402,9 @@
498402 the "force" module parameter, e.g., with the "aml_nfw.force"
499403 kernel command line option.
500404
501
-source "drivers/sn/Kconfig"
502
-
503405 config KEXEC
504406 bool "kexec system call"
505
- depends on !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
407
+ depends on !SMP || HOTPLUG_CPU
506408 select KEXEC_CORE
507409 help
508410 kexec is a system call that implements the ability to shutdown your
....@@ -520,7 +422,7 @@
520422
521423 config CRASH_DUMP
522424 bool "kernel crash dumps"
523
- depends on IA64_MCA_RECOVERY && !IA64_HP_SIM && (!SMP || HOTPLUG_CPU)
425
+ depends on IA64_MCA_RECOVERY && (!SMP || HOTPLUG_CPU)
524426 help
525427 Generate crash dump after being started by kexec.
526428
....@@ -541,32 +443,6 @@
541443 endif
542444
543445 endmenu
544
-
545
-if !IA64_HP_SIM
546
-
547
-menu "Bus options (PCI, PCMCIA)"
548
-
549
-config PCI
550
- bool "PCI support"
551
- help
552
- Real IA-64 machines all have PCI/PCI-X/PCI Express busses. Say Y
553
- here unless you are using a simulator without PCI support.
554
-
555
-config PCI_DOMAINS
556
- def_bool PCI
557
-
558
-config PCI_SYSCALL
559
- def_bool PCI
560
-
561
-source "drivers/pci/Kconfig"
562
-
563
-source "drivers/pcmcia/Kconfig"
564
-
565
-endmenu
566
-
567
-endif
568
-
569
-source "arch/ia64/hp/sim/Kconfig"
570446
571447 config MSPEC
572448 tristate "Memory special operations driver"