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