xref: /openbmc/linux/arch/parisc/Kconfig (revision 0e6774ec)
1# SPDX-License-Identifier: GPL-2.0
2config PARISC
3	def_bool y
4	select ALTERNATE_USER_ADDRESS_SPACE
5	select ARCH_32BIT_OFF_T if !64BIT
6	select ARCH_MIGHT_HAVE_PC_PARPORT
7	select HAVE_FUNCTION_TRACER
8	select HAVE_FUNCTION_GRAPH_TRACER
9	select HAVE_SYSCALL_TRACEPOINTS
10	select ARCH_WANT_FRAME_POINTERS
11	select ARCH_HAS_ELF_RANDOMIZE
12	select ARCH_HAS_STRICT_KERNEL_RWX
13	select ARCH_HAS_STRICT_MODULE_RWX
14	select ARCH_HAS_UBSAN_SANITIZE_ALL
15	select ARCH_HAS_PTE_SPECIAL
16	select ARCH_NO_SG_CHAIN
17	select ARCH_SPLIT_ARG64 if !64BIT
18	select ARCH_SUPPORTS_HUGETLBFS if PA20
19	select ARCH_SUPPORTS_MEMORY_FAILURE
20	select ARCH_STACKWALK
21	select ARCH_HAS_CACHE_LINE_SIZE
22	select ARCH_HAS_DEBUG_VM_PGTABLE
23	select HAVE_RELIABLE_STACKTRACE
24	select DMA_OPS
25	select RTC_CLASS
26	select RTC_DRV_GENERIC
27	select INIT_ALL_POSSIBLE
28	select BUG
29	select HAVE_PCI
30	select HAVE_PERF_EVENTS
31	select HAVE_KERNEL_BZIP2
32	select HAVE_KERNEL_GZIP
33	select HAVE_KERNEL_LZ4
34	select HAVE_KERNEL_LZMA
35	select HAVE_KERNEL_LZO
36	select HAVE_KERNEL_XZ
37	select GENERIC_ATOMIC64 if !64BIT
38	select GENERIC_IRQ_PROBE
39	select GENERIC_PCI_IOMAP
40	select GENERIC_IOREMAP
41	select ARCH_HAVE_NMI_SAFE_CMPXCHG
42	select GENERIC_SMP_IDLE_THREAD
43	select GENERIC_ARCH_TOPOLOGY if SMP
44	select GENERIC_CPU_DEVICES if !SMP
45	select GENERIC_LIB_DEVMEM_IS_ALLOWED
46	select SYSCTL_ARCH_UNALIGN_ALLOW
47	select SYSCTL_EXCEPTION_TRACE
48	select HAVE_MOD_ARCH_SPECIFIC
49	select MODULES_USE_ELF_RELA
50	select CLONE_BACKWARDS
51	select TTY # Needed for pdc_cons.c
52	select HAS_IOPORT if PCI || EISA
53	select HAVE_DEBUG_STACKOVERFLOW
54	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
55	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
56	select HAVE_ARCH_MMAP_RND_BITS
57	select HAVE_ARCH_AUDITSYSCALL
58	select HAVE_ARCH_HASH
59	select HAVE_ARCH_JUMP_LABEL
60	select HAVE_ARCH_JUMP_LABEL_RELATIVE
61	select HAVE_ARCH_KFENCE
62	select HAVE_ARCH_SECCOMP_FILTER
63	select HAVE_ARCH_TRACEHOOK
64	select HAVE_EBPF_JIT
65	select ARCH_WANT_DEFAULT_BPF_JIT
66	select HAVE_REGS_AND_STACK_ACCESS_API
67	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
68	select GENERIC_SCHED_CLOCK
69	select GENERIC_IRQ_MIGRATION if SMP
70	select HAVE_UNSTABLE_SCHED_CLOCK if SMP
71	select LEGACY_TIMER_TICK
72	select CPU_NO_EFFICIENT_FFS
73	select THREAD_INFO_IN_TASK
74	select NEED_DMA_MAP_STATE
75	select NEED_SG_DMA_LENGTH
76	select HAVE_ARCH_KGDB
77	select HAVE_KPROBES
78	select HAVE_KRETPROBES
79	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
80	select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
81	select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
82	select HAVE_KPROBES_ON_FTRACE
83	select HAVE_DYNAMIC_FTRACE_WITH_REGS
84	select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
85	select TRACE_IRQFLAGS_SUPPORT
86	select HAVE_FUNCTION_DESCRIPTORS if 64BIT
87	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
88
89	help
90	  The PA-RISC microprocessor is designed by Hewlett-Packard and used
91	  in many of their workstations & servers (HP9000 700 and 800 series,
92	  and later HP3000 series).  The PA-RISC Linux project home page is
93	  at <https://parisc.wiki.kernel.org>.
94
95config CPU_BIG_ENDIAN
96	def_bool y
97
98config MMU
99	def_bool y
100
101config STACK_GROWSUP
102	def_bool y
103
104config GENERIC_LOCKBREAK
105	bool
106	default y
107	depends on SMP && PREEMPTION
108
109config ARCH_HAS_ILOG2_U32
110	bool
111	default n
112
113config ARCH_HAS_ILOG2_U64
114	bool
115	default n
116
117config GENERIC_BUG
118	def_bool y
119	depends on BUG
120	select GENERIC_BUG_RELATIVE_POINTERS if 64BIT
121
122config GENERIC_BUG_RELATIVE_POINTERS
123	bool
124
125config GENERIC_HWEIGHT
126	bool
127	default y
128
129config GENERIC_CALIBRATE_DELAY
130	bool
131	default y
132
133config TIME_LOW_RES
134	bool
135	depends on SMP
136	default y
137
138config ARCH_MMAP_RND_BITS_MIN
139	default 18 if 64BIT
140	default 8
141
142config ARCH_MMAP_RND_COMPAT_BITS_MIN
143	default 8
144
145config ARCH_MMAP_RND_BITS_MAX
146	default 18 if 64BIT
147	default 13
148
149config ARCH_MMAP_RND_COMPAT_BITS_MAX
150	default 13
151
152# unless you want to implement ACPI on PA-RISC ... ;-)
153config PM
154	bool
155
156config STACKTRACE_SUPPORT
157	def_bool y
158
159config LOCKDEP_SUPPORT
160	bool
161	default y
162
163config ISA_DMA_API
164	bool
165
166config ARCH_MAY_HAVE_PC_FDC
167	bool
168	depends on BROKEN
169	default y
170
171config PGTABLE_LEVELS
172	int
173	default 3 if 64BIT && PARISC_PAGE_SIZE_4KB
174	default 2
175
176menu "Processor type and features"
177
178choice
179	prompt "Processor type"
180	default PA7000 if "$(ARCH)" = "parisc"
181
182config PA7000
183	bool "PA7000/PA7100" if "$(ARCH)" = "parisc"
184	help
185	  This is the processor type of your CPU.  This information is
186	  used for optimizing purposes.  In order to compile a kernel
187	  that can run on all 32-bit PA CPUs (albeit not optimally fast),
188	  you can specify "PA7000" here.
189
190	  Specifying "PA8000" here will allow you to select a 64-bit kernel
191	  which is required on some machines.
192
193config PA7100LC
194	bool "PA7100LC" if "$(ARCH)" = "parisc"
195	help
196	  Select this option for the PCX-L processor, as used in the
197	  712, 715/64, 715/80, 715/100, 715/100XC, 725/100, 743, 748,
198	  D200, D210, D300, D310 and E-class
199
200config PA7200
201	bool "PA7200" if "$(ARCH)" = "parisc"
202	help
203	  Select this option for the PCX-T' processor, as used in the
204	  C100, C110, J100, J110, J210XC, D250, D260, D350, D360,
205	  K100, K200, K210, K220, K400, K410 and K420
206
207config PA7300LC
208	bool "PA7300LC" if "$(ARCH)" = "parisc"
209	help
210	  Select this option for the PCX-L2 processor, as used in the
211	  744, A180, B132L, B160L, B180L, C132L, C160L, C180L,
212	  D220, D230, D320 and D330.
213
214config PA8X00
215	bool "PA8000 and up"
216	help
217	  Select this option for PCX-U to PCX-W2 processors.
218
219endchoice
220
221# Define implied options from the CPU selection here
222
223config PA20
224	def_bool y
225	depends on PA8X00
226
227config PA11
228	def_bool y
229	depends on PA7000 || PA7100LC || PA7200 || PA7300LC
230	select ARCH_HAS_SYNC_DMA_FOR_CPU
231	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
232
233config PREFETCH
234	def_bool y
235	depends on PA8X00 || PA7200
236
237config PARISC_HUGE_KERNEL
238	def_bool y if !MODULES || UBSAN || FTRACE || COMPILE_TEST
239
240config MLONGCALLS
241	def_bool y if PARISC_HUGE_KERNEL
242	bool "Enable the -mlong-calls compiler option for big kernels" if !PARISC_HUGE_KERNEL
243	depends on PA8X00
244	help
245	  If you configure the kernel to include many drivers built-in instead
246	  as modules, the kernel executable may become too big, so that the
247	  linker will not be able to resolve some long branches and fails to link
248	  your vmlinux kernel. In that case enabling this option will help you
249	  to overcome this limit by using the -mlong-calls compiler option.
250
251	  Usually you want to say N here, unless you e.g. want to build
252	  a kernel which includes all necessary drivers built-in and which can
253	  be used for TFTP booting without the need to have an initrd ramdisk.
254
255	  Enabling this option will probably slow down your kernel.
256
257config 64BIT
258	def_bool y if "$(ARCH)" = "parisc64"
259	bool "64-bit kernel" if "$(ARCH)" = "parisc"
260	depends on PA8X00
261	help
262	  Enable this if you want to support 64bit kernel on PA-RISC platform.
263
264	  At the moment, only people willing to use more than 2GB of RAM,
265	  or having a 64bit-only capable PA-RISC machine should say Y here.
266
267	  Since there is no 64bit userland on PA-RISC, there is no point to
268	  enable this option otherwise. The 64bit kernel is significantly bigger
269	  and slower than the 32bit one.
270
271choice
272	prompt "Kernel page size"
273	default PARISC_PAGE_SIZE_4KB
274
275config PARISC_PAGE_SIZE_4KB
276	bool "4KB"
277	help
278	  This lets you select the page size of the kernel.  For best
279	  performance, a page size of 16KB is recommended.  For best
280	  compatibility with 32bit applications, a page size of 4KB should be
281	  selected (the vast majority of 32bit binaries work perfectly fine
282	  with a larger page size).
283
284	  4KB                For best 32bit compatibility
285	  16KB               For best performance
286	  64KB               For best performance, might give more overhead.
287
288	  If you don't know what to do, choose 4KB.
289
290config PARISC_PAGE_SIZE_16KB
291	bool "16KB"
292	depends on PA8X00 && BROKEN && !KFENCE
293
294config PARISC_PAGE_SIZE_64KB
295	bool "64KB"
296	depends on PA8X00 && BROKEN && !KFENCE
297
298endchoice
299
300config SMP
301	bool "Symmetric multi-processing support"
302	help
303	  This enables support for systems with more than one CPU. If you have
304	  a system with only one CPU, say N. If you have a system with more
305	  than one CPU, say Y.
306
307	  If you say N here, the kernel will run on uni- and multiprocessor
308	  machines, but will use only one CPU of a multiprocessor machine.
309	  On a uniprocessor machine, the kernel will run faster if you say N.
310
311	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
312	  available at <https://www.tldp.org/docs.html#howto>.
313
314	  If you don't know what to do here, say N.
315
316config SCHED_MC
317	bool "Multi-core scheduler support"
318	depends on GENERIC_ARCH_TOPOLOGY && PA8X00
319	help
320	  Multi-core scheduler support improves the CPU scheduler's decision
321	  making when dealing with multi-core CPU chips at a cost of slightly
322	  increased overhead in some places. If unsure say N here.
323
324config IRQSTACKS
325	bool "Use separate kernel stacks when processing interrupts"
326	default y
327	help
328	  If you say Y here the kernel will use separate kernel stacks
329	  for handling hard and soft interrupts.  This can help avoid
330	  overflowing the process kernel stacks.
331
332config HOTPLUG_CPU
333	bool
334	default y if SMP
335
336config ARCH_SELECT_MEMORY_MODEL
337	def_bool y
338	depends on 64BIT
339
340config ARCH_SPARSEMEM_ENABLE
341	def_bool y
342	depends on 64BIT
343
344config ARCH_FLATMEM_ENABLE
345	def_bool y
346
347config ARCH_SPARSEMEM_DEFAULT
348	def_bool y
349	depends on ARCH_SPARSEMEM_ENABLE
350
351source "kernel/Kconfig.hz"
352
353config COMPAT
354	def_bool y
355	depends on 64BIT
356
357config AUDIT_ARCH
358	def_bool y
359
360config NR_CPUS
361	int "Maximum number of CPUs (2-32)"
362	range 2 32
363	depends on SMP
364	default "8" if 64BIT
365	default "16"
366
367endmenu
368
369config ARCH_SUPPORTS_KEXEC
370	def_bool y
371
372config ARCH_SUPPORTS_KEXEC_FILE
373	def_bool y
374
375config ARCH_SELECTS_KEXEC_FILE
376	def_bool y
377	depends on KEXEC_FILE
378	select KEXEC_ELF
379
380source "drivers/parisc/Kconfig"
381