Blame view

arch/parisc/Kconfig 9.54 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
  config PARISC
  	def_bool y
942fa985e   Yury Norov   32-bit userspace ...
4
  	select ARCH_32BIT_OFF_T if !64BIT
4a24fb2f3   Mark Salter   parisc: select AR...
5
  	select ARCH_MIGHT_HAVE_PC_PARPORT
ec7748b59   Sam Ravnborg   ide: introduce HA...
6
  	select HAVE_IDE
42d4b839c   Mathieu Desnoyers   Add HAVE_OPROFILE
7
  	select HAVE_OPROFILE
366dd4ea9   Helge Deller   parisc: Fix ftrac...
8
9
  	select HAVE_FUNCTION_TRACER
  	select HAVE_FUNCTION_GRAPH_TRACER
fc79168a7   Helge Deller   parisc: Add sysca...
10
  	select HAVE_SYSCALL_TRACEPOINTS
4530c49e6   Helge Deller   parisc: select AR...
11
  	select ARCH_WANT_FRAME_POINTERS
18d98a793   Helge Deller   parisc: Enable KASLR
12
  	select ARCH_HAS_ELF_RANDOMIZE
ad21fc4fa   Laura Abbott   arch: Move CONFIG...
13
  	select ARCH_HAS_STRICT_KERNEL_RWX
e35a2ce69   Helge Deller   parisc: Enable UB...
14
  	select ARCH_HAS_UBSAN_SANITIZE_ALL
7c703e54c   Christoph Hellwig   arch: switch the ...
15
  	select ARCH_NO_SG_CHAIN
54ac8fcbd   Helge Deller   parisc: PDT: Add ...
16
  	select ARCH_SUPPORTS_MEMORY_FAILURE
2f9237d4f   Christoph Hellwig   dma-mapping: make...
17
  	select DMA_OPS
9eb168642   Kyle McMartin   parisc: add rtc p...
18
  	select RTC_CLASS
3afe6d046   Geert Uytterhoeven   parisc: rtc: Rena...
19
  	select RTC_DRV_GENERIC
98a79d6a5   Rusty Russell   cpumask: centrali...
20
  	select INIT_ALL_POSSIBLE
f67d3c83f   Kyle McMartin   parisc: select BU...
21
  	select BUG
109167063   Shile Zhang   scripts/sorttable...
22
  	select BUILDTIME_TABLE_SORT
eb01d42a7   Christoph Hellwig   PCI: consolidate ...
23
  	select HAVE_PCI
cdd6c482c   Ingo Molnar   perf: Do the big ...
24
  	select HAVE_PERF_EVENTS
b6adc16e0   Helge Deller   parisc: Wire up s...
25
26
27
28
29
30
  	select HAVE_KERNEL_BZIP2
  	select HAVE_KERNEL_GZIP
  	select HAVE_KERNEL_LZ4
  	select HAVE_KERNEL_LZMA
  	select HAVE_KERNEL_LZO
  	select HAVE_KERNEL_XZ
64daa4435   Kyle McMartin   parisc: use gener...
31
  	select GENERIC_ATOMIC64 if !64BIT
72e73af1f   Thomas Gleixner   parisc: Use gener...
32
  	select GENERIC_IRQ_PROBE
629a85816   Michael S. Tsirkin   parisc: switch to...
33
  	select GENERIC_PCI_IOMAP
df013ffb8   Huang Ying   Add Kconfig optio...
34
  	select ARCH_HAVE_NMI_SAFE_CMPXCHG
9a1347237   Thomas Gleixner   parisc: Use gener...
35
  	select GENERIC_SMP_IDLE_THREAD
bf7b4c1b3   Helge Deller   parisc: Add CPU t...
36
  	select GENERIC_CPU_DEVICES
b1195c0e3   James Bottomley   [PARISC] update p...
37
  	select GENERIC_STRNCPY_FROM_USER
bf14e3b97   Vineet Gupta   sysctl: Enable PA...
38
  	select SYSCTL_ARCH_UNALIGN_ALLOW
fef47e2a2   Helge Deller   parisc: ratelimit...
39
  	select SYSCTL_EXCEPTION_TRACE
786d35d45   David Howells   Make most arch as...
40
  	select HAVE_MOD_ARCH_SPECIFIC
4febd95a8   Stephen Rothwell   Select VIRT_TO_BU...
41
  	select VIRT_TO_BUS
786d35d45   David Howells   Make most arch as...
42
  	select MODULES_USE_ELF_RELA
415bfae9e   Al Viro   parisc: switch to...
43
  	select CLONE_BACKWARDS
4f73bc4dd   Joe Millenbach   tty: Added a CONF...
44
  	select TTY # Needed for pdc_cons.c
d1a1dc0be   Dave Hansen   consolidate per-a...
45
  	select HAVE_DEBUG_STACKOVERFLOW
7a0177212   AKASHI Takahiro   audit: Add CONFIG...
46
  	select HAVE_ARCH_AUDITSYSCALL
773e1c5fa   George Spelvin   parisc: Add <asm/...
47
  	select HAVE_ARCH_HASH
62217beb3   Helge Deller   parisc: Add stati...
48
49
  	select HAVE_ARCH_JUMP_LABEL
  	select HAVE_ARCH_JUMP_LABEL_RELATIVE
910cd32e5   Helge Deller   parisc: Fix and e...
50
  	select HAVE_ARCH_SECCOMP_FILTER
64e2a42bc   Helge Deller   parisc: Add ARCH_...
51
  	select HAVE_ARCH_TRACEHOOK
75ebedf1d   Helge Deller   parisc: Add HAVE_...
52
  	select HAVE_REGS_AND_STACK_ACCESS_API
43b1f6abd   Helge Deller   parisc: Switch to...
53
54
55
  	select GENERIC_SCHED_CLOCK
  	select HAVE_UNSTABLE_SCHED_CLOCK if SMP
  	select GENERIC_CLOCKEVENTS
fff7fb0b2   Zhaoxiu Zeng   lib/GCD.c: use bi...
56
  	select CPU_NO_EFFICIENT_FFS
f616ab59c   Christoph Hellwig   dma-mapping: move...
57
  	select NEED_DMA_MAP_STATE
86596f0a2   Christoph Hellwig   scatterlist: move...
58
  	select NEED_SG_DMA_LENGTH
eacbfce19   Sven Schnelle   parisc: add KGDB ...
59
  	select HAVE_ARCH_KGDB
8858ac8e9   Sven Schnelle   parisc: Implement...
60
  	select HAVE_KPROBES
e0b59b7b6   Sven Schnelle   parisc: Implement...
61
  	select HAVE_KRETPROBES
6ca636622   Sven Schnelle   parisc: add dynam...
62
63
  	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
  	select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
52a22e6c2   Sven Schnelle   parisc/ftrace: Ad...
64
65
  	select HAVE_KPROBES_ON_FTRACE
  	select HAVE_DYNAMIC_FTRACE_WITH_REGS
964f595e6   Greg Kroah-Hartman   Revert "Revert "u...
66
  	select SET_FS
72e73af1f   Thomas Gleixner   parisc: Use gener...
67

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
68
69
70
71
  	help
  	  The PA-RISC microprocessor is designed by Hewlett-Packard and used
  	  in many of their workstations & servers (HP9000 700 and 800 series,
  	  and later HP3000 series).  The PA-RISC Linux project home page is
24289f560   Helge Deller   parisc: Kconfig: ...
72
  	  at <https://parisc.wiki.kernel.org>.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
73

74ad3d28a   Babu Moger   parisc: Define CO...
74
75
  config CPU_BIG_ENDIAN
  	def_bool y
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
76
77
78
79
80
  config MMU
  	def_bool y
  
  config STACK_GROWSUP
  	def_bool y
ededa081e   Helge Deller   parisc: Fix defco...
81
82
83
84
  config ARCH_DEFCONFIG
  	string
  	default "arch/parisc/configs/generic-32bit_defconfig" if !64BIT
  	default "arch/parisc/configs/generic-64bit_defconfig" if 64BIT
95c354fe9   Nick Piggin   spinlock: lockbre...
85
86
87
  config GENERIC_LOCKBREAK
  	bool
  	default y
09613e832   Thomas Gleixner   sched/rt, parisc:...
88
  	depends on SMP && PREEMPTION
95c354fe9   Nick Piggin   spinlock: lockbre...
89

f0d1b0b30   David Howells   [PATCH] LOG2: Imp...
90
91
92
93
94
95
96
  config ARCH_HAS_ILOG2_U32
  	bool
  	default n
  
  config ARCH_HAS_ILOG2_U64
  	bool
  	default n
6891f8a11   Helge Deller   [PARISC] Generic BUG
97
98
99
100
  config GENERIC_BUG
  	bool
  	default y
  	depends on BUG
59e18a2e1   Akinobu Mita   [PATCH] bitops: p...
101
102
103
  config GENERIC_HWEIGHT
  	bool
  	default y
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
104
105
106
  config GENERIC_CALIBRATE_DELAY
  	bool
  	default y
06027bdd2   Ingo Molnar   [PATCH] hrtimer: ...
107
108
109
110
  config TIME_LOW_RES
  	bool
  	depends on SMP
  	default y
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
111
112
113
  # unless you want to implement ACPI on PA-RISC ... ;-)
  config PM
  	bool
548f1176f   Helge Deller   parisc: add LATEN...
114
115
  config STACKTRACE_SUPPORT
  	def_bool y
5cae841b1   Al Viro   [PATCH] ISA DMA K...
116
117
  config ISA_DMA_API
  	bool
5cae841b1   Al Viro   [PATCH] ISA DMA K...
118

a08b6b796   Al Viro   [PATCH] Kconfig f...
119
120
  config ARCH_MAY_HAVE_PC_FDC
  	bool
8b631342d   Grant Grundler   [PARISC] Update K...
121
  	depends on BROKEN
a08b6b796   Al Viro   [PATCH] Kconfig f...
122
  	default y
f24ffde43   Kirill A. Shutemov   parisc: expose nu...
123
124
125
126
  config PGTABLE_LEVELS
  	int
  	default 3 if 64BIT && PARISC_PAGE_SIZE_4KB
  	default 2
736d21693   Helge Deller   parisc: Add Huge ...
127
128
  config SYS_SUPPORTS_HUGETLBFS
  	def_bool y if PA20
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
129
130
131
132
133
134
135
136
137
  
  menu "Processor type and features"
  
  choice
  	prompt "Processor type"
  	default PA7000
  
  config PA7000
  	bool "PA7000/PA7100"
a7f7f6248   Masahiro Yamada   treewide: replace...
138
  	help
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
  	  This is the processor type of your CPU.  This information is
  	  used for optimizing purposes.  In order to compile a kernel
  	  that can run on all 32-bit PA CPUs (albeit not optimally fast),
  	  you can specify "PA7000" here.
  
  	  Specifying "PA8000" here will allow you to select a 64-bit kernel
  	  which is required on some machines.
  
  config PA7100LC
  	bool "PA7100LC"
  	help
  	  Select this option for the PCX-L processor, as used in the
  	  712, 715/64, 715/80, 715/100, 715/100XC, 725/100, 743, 748,
  	  D200, D210, D300, D310 and E-class
  
  config PA7200
  	bool "PA7200"
  	help
  	  Select this option for the PCX-T' processor, as used in the
  	  C100, C110, J100, J110, J210XC, D250, D260, D350, D360,
  	  K100, K200, K210, K220, K400, K410 and K420
  
  config PA7300LC
  	bool "PA7300LC"
  	help
  	  Select this option for the PCX-L2 processor, as used in the
  	  744, A180, B132L, B160L, B180L, C132L, C160L, C180L,
  	  D220, D230, D320 and D330.
  
  config PA8X00
  	bool "PA8000 and up"
  	help
  	  Select this option for PCX-U to PCX-W2 processors.
  
  endchoice
  
  # Define implied options from the CPU selection here
  
  config PA20
  	def_bool y
  	depends on PA8X00
  
  config PA11
  	def_bool y
  	depends on PA7000 || PA7100LC || PA7200 || PA7300LC
c1f59375b   Christoph Hellwig   parisc: use gener...
184
185
  	select ARCH_HAS_SYNC_DMA_FOR_CPU
  	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
186
187
188
  
  config PREFETCH
  	def_bool y
32104b29c   Kyle McMartin   [PARISC] PA7200 a...
189
  	depends on PA8X00 || PA7200
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
190

ec758f983   Helge Deller   parisc: add CONFI...
191
192
  config MLONGCALLS
  	bool "Enable the -mlong-calls compiler option for big kernels"
200036a8e   Helge Deller   parisc: Allow bui...
193
194
  	default y if !MODULES || UBSAN || FTRACE
  	default n
ec758f983   Helge Deller   parisc: add CONFI...
195
196
197
198
199
200
201
202
203
204
205
206
207
  	depends on PA8X00
  	help
  	  If you configure the kernel to include many drivers built-in instead
  	  as modules, the kernel executable may become too big, so that the
  	  linker will not be able to resolve some long branches and fails to link
  	  your vmlinux kernel. In that case enabling this option will help you
  	  to overcome this limit by using the -mlong-calls compiler option.
  
  	  Usually you want to say N here, unless you e.g. want to build
  	  a kernel which includes all necessary drivers built-in and which can
  	  be used for TFTP booting without the need to have an initrd ramdisk.
  
  	  Enabling this option will probably slow down your kernel.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
208
209
210
211
212
213
214
215
216
217
218
219
  config 64BIT
  	bool "64-bit kernel"
  	depends on PA8X00
  	help
  	  Enable this if you want to support 64bit kernel on PA-RISC platform.
  
  	  At the moment, only people willing to use more than 2GB of RAM,
  	  or having a 64bit-only capable PA-RISC machine should say Y here.
  
  	  Since there is no 64bit userland on PA-RISC, there is no point to
  	  enable this option otherwise. The 64bit kernel is significantly bigger
  	  and slower than the 32bit one.
2fd830381   Helge Deller   [PARISC] Further ...
220
221
  choice
  	prompt "Kernel page size"
1c5f873d1   Paul Bolle   parisc: Kconfig: ...
222
  	default PARISC_PAGE_SIZE_4KB
2fd830381   Helge Deller   [PARISC] Further ...
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
  
  config PARISC_PAGE_SIZE_4KB
  	bool "4KB"
  	help
  	  This lets you select the page size of the kernel.  For best
  	  performance, a page size of 16KB is recommended.  For best
  	  compatibility with 32bit applications, a page size of 4KB should be
  	  selected (the vast majority of 32bit binaries work perfectly fine
  	  with a larger page size).
  
  	  4KB                For best 32bit compatibility
  	  16KB               For best performance
  	  64KB               For best performance, might give more overhead.
  
  	  If you don't know what to do, choose 4KB.
  
  config PARISC_PAGE_SIZE_16KB
daef22cf0   Kees Cook   arch/parisc: remo...
240
  	bool "16KB"
1c971f39e   Helge Deller   parisc: Mark 16kB...
241
  	depends on PA8X00 && BROKEN
2fd830381   Helge Deller   [PARISC] Further ...
242
243
  
  config PARISC_PAGE_SIZE_64KB
daef22cf0   Kees Cook   arch/parisc: remo...
244
  	bool "64KB"
1c971f39e   Helge Deller   parisc: Mark 16kB...
245
  	depends on PA8X00 && BROKEN
2fd830381   Helge Deller   [PARISC] Further ...
246
247
  
  endchoice
af21b01d1   Helge Deller   parisc: Reintrodu...
248
249
250
251
252
253
254
255
256
257
258
  config PARISC_SELF_EXTRACT
  	bool "Build kernel as self-extracting executable"
  	default y
  	help
  	  Say Y if you want to build the parisc kernel as a kind of
  	  self-extracting executable.
  
  	  If you say N here, the kernel will be compressed with gzip
  	  which can be loaded by the palo bootloader directly too.
  
  	  If you don't know what to do here, say Y.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
259
260
  config SMP
  	bool "Symmetric multi-processing support"
a7f7f6248   Masahiro Yamada   treewide: replace...
261
  	help
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
262
  	  This enables support for systems with more than one CPU. If you have
4a4741577   Robert Graffham   Kconfig: update f...
263
264
  	  a system with only one CPU, say N. If you have a system with more
  	  than one CPU, say Y.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
265

4a4741577   Robert Graffham   Kconfig: update f...
266
  	  If you say N here, the kernel will run on uni- and multiprocessor
2a3f53d55   Helge Deller   parisc/Kconfig: S...
267
268
  	  machines, but will use only one CPU of a multiprocessor machine.
  	  On a uniprocessor machine, the kernel will run faster if you say N.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
269

4f4cfa6c5   Mauro Carvalho Chehab   docs: admin-guide...
270
  	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
693a06543   Alexander A. Klimov   parisc: Replace H...
271
  	  available at <https://www.tldp.org/docs.html#howto>.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
272
273
  
  	  If you don't know what to do here, say N.
200c88042   Helge Deller   parisc: implement...
274

bf7b4c1b3   Helge Deller   parisc: Add CPU t...
275
276
277
278
279
280
281
282
283
284
285
286
287
288
  config PARISC_CPU_TOPOLOGY
  	bool "Support cpu topology definition"
  	depends on SMP
  	default y
  	help
  	  Support PARISC cpu topology definition.
  
  config SCHED_MC
  	bool "Multi-core scheduler support"
  	depends on PARISC_CPU_TOPOLOGY && PA8X00
  	help
  	  Multi-core scheduler support improves the CPU scheduler's decision
  	  making when dealing with multi-core CPU chips at a cost of slightly
  	  increased overhead in some places. If unsure say N here.
200c88042   Helge Deller   parisc: implement...
289
290
  config IRQSTACKS
  	bool "Use separate kernel stacks when processing interrupts"
416821d3d   Helge Deller   parisc: implement...
291
  	default y
200c88042   Helge Deller   parisc: implement...
292
293
294
295
  	help
  	  If you say Y here the kernel will use separate kernel stacks
  	  for handling hard and soft interrupts.  This can help avoid
  	  overflowing the process kernel stacks.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
296
297
298
299
  
  config HOTPLUG_CPU
  	bool
  	default y if SMP
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
300

a2ba82cd7   Kyle McMartin   [PARISC] Simplify...
301
302
303
  config ARCH_SELECT_MEMORY_MODEL
  	def_bool y
  	depends on 64BIT
dbdf07609   Helge Deller   parisc: Switch fr...
304
  config ARCH_SPARSEMEM_ENABLE
a2ba82cd7   Kyle McMartin   [PARISC] Simplify...
305
306
307
308
309
  	def_bool y
  	depends on 64BIT
  
  config ARCH_FLATMEM_ENABLE
  	def_bool y
dbdf07609   Helge Deller   parisc: Switch fr...
310
  config ARCH_SPARSEMEM_DEFAULT
a2ba82cd7   Kyle McMartin   [PARISC] Simplify...
311
  	def_bool y
dbdf07609   Helge Deller   parisc: Switch fr...
312
  	depends on ARCH_SPARSEMEM_ENABLE
c80d79d74   Yasunori Goto   [PATCH] Configura...
313

8b631342d   Grant Grundler   [PARISC] Update K...
314
  source "kernel/Kconfig.hz"
3f22ab276   Dave Hansen   [PATCH] make each...
315

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
316
317
318
  config COMPAT
  	def_bool y
  	depends on 64BIT
71d577db0   Helge Deller   parisc: Switch to...
319
  	select COMPAT_BINFMT_ELF if BINFMT_ELF
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
320

bf581e15a   Helge Deller   parisc: convert m...
321
322
323
  config SYSVIPC_COMPAT
  	def_bool y
  	depends on COMPAT && SYSVIPC
527973c84   Helge Deller   parisc: add kerne...
324
325
  config AUDIT_ARCH
  	def_bool y
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
326
327
328
329
  config NR_CPUS
  	int "Maximum number of CPUs (2-32)"
  	range 2 32
  	depends on SMP
435d34c7a   Helge Deller   parisc: Default t...
330
  	default "4"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
331

fc697dc0c   Sven Schnelle   parisc: add kexec...
332
333
334
335
336
337
338
339
340
341
342
343
  config KEXEC
  	bool "Kexec system call"
  	select KEXEC_CORE
  	help
  	  kexec is a system call that implements the ability to shutdown your
  	  current kernel, and to start another kernel.  It is like a reboot
  	  but it is independent of the system firmware.   And like a reboot
  	  you can start any kernel with it, not just Linux.
  
  	  It is an ongoing process to be certain the hardware in a machine
  	  shutdown, so do not be surprised if this code does not
  	  initially work for you.
1191cf498   Sven Schnelle   parisc: add suppo...
344
345
346
347
348
349
350
351
352
  config KEXEC_FILE
  	bool "kexec file based system call"
  	select KEXEC_CORE
  	select KEXEC_ELF
  	help
  	  This enables the kexec_file_load() System call. This is
  	  file based and takes file descriptors as system call argument
  	  for kernel and initramfs as opposed to list of segments as
  	  accepted by previous system call.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
353
  endmenu
024f5b597   Helge Deller   parisc: Add qemu ...
354
  source "drivers/firmware/Kconfig"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
355
356
  
  source "drivers/parisc/Kconfig"