xref: /linux/arch/parisc/Kconfig (revision 6ca6366220ed285e29ee22f4cf5c68a0397cb005)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldsconfig PARISC
31da177e4SLinus Torvalds	def_bool y
4942fa985SYury Norov	select ARCH_32BIT_OFF_T if !64BIT
54a24fb2fSMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT
6ec7748b5SSam Ravnborg	select HAVE_IDE
742d4b839SMathieu Desnoyers	select HAVE_OPROFILE
8366dd4eaSHelge Deller	select HAVE_FUNCTION_TRACER
9366dd4eaSHelge Deller	select HAVE_FUNCTION_GRAPH_TRACER
10fc79168aSHelge Deller	select HAVE_SYSCALL_TRACEPOINTS
114530c49eSHelge Deller	select ARCH_WANT_FRAME_POINTERS
1218d98a79SHelge Deller	select ARCH_HAS_ELF_RANDOMIZE
13ad21fc4fSLaura Abbott	select ARCH_HAS_STRICT_KERNEL_RWX
14e35a2ce6SHelge Deller	select ARCH_HAS_UBSAN_SANITIZE_ALL
157c703e54SChristoph Hellwig	select ARCH_NO_SG_CHAIN
1654ac8fcbSHelge Deller	select ARCH_SUPPORTS_MEMORY_FAILURE
179eb16864SKyle McMartin	select RTC_CLASS
183afe6d04SGeert Uytterhoeven	select RTC_DRV_GENERIC
1998a79d6aSRusty Russell	select INIT_ALL_POSSIBLE
20f67d3c83SKyle McMartin	select BUG
210de79858SHelge Deller	select BUILDTIME_EXTABLE_SORT
22eb01d42aSChristoph Hellwig	select HAVE_PCI
23cdd6c482SIngo Molnar	select HAVE_PERF_EVENTS
24b6adc16eSHelge Deller	select HAVE_KERNEL_BZIP2
25b6adc16eSHelge Deller	select HAVE_KERNEL_GZIP
26b6adc16eSHelge Deller	select HAVE_KERNEL_LZ4
27b6adc16eSHelge Deller	select HAVE_KERNEL_LZMA
28b6adc16eSHelge Deller	select HAVE_KERNEL_LZO
29b6adc16eSHelge Deller	select HAVE_KERNEL_XZ
3064daa443SKyle McMartin	select GENERIC_ATOMIC64 if !64BIT
3172e73af1SThomas Gleixner	select GENERIC_IRQ_PROBE
32629a8581SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
33df013ffbSHuang Ying	select ARCH_HAVE_NMI_SAFE_CMPXCHG
349a134723SThomas Gleixner	select GENERIC_SMP_IDLE_THREAD
35bf7b4c1bSHelge Deller	select GENERIC_CPU_DEVICES
36b1195c0eSJames Bottomley	select GENERIC_STRNCPY_FROM_USER
37bf14e3b9SVineet Gupta	select SYSCTL_ARCH_UNALIGN_ALLOW
38fef47e2aSHelge Deller	select SYSCTL_EXCEPTION_TRACE
39786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
404febd95aSStephen Rothwell	select VIRT_TO_BUS
41786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
42415bfae9SAl Viro	select CLONE_BACKWARDS
434f73bc4dSJoe Millenbach	select TTY # Needed for pdc_cons.c
44d1a1dc0bSDave Hansen	select HAVE_DEBUG_STACKOVERFLOW
457a017721SAKASHI Takahiro	select HAVE_ARCH_AUDITSYSCALL
46773e1c5fSGeorge Spelvin	select HAVE_ARCH_HASH
4762217bebSHelge Deller	select HAVE_ARCH_JUMP_LABEL
4862217bebSHelge Deller	select HAVE_ARCH_JUMP_LABEL_RELATIVE
49910cd32eSHelge Deller	select HAVE_ARCH_SECCOMP_FILTER
5064e2a42bSHelge Deller	select HAVE_ARCH_TRACEHOOK
5175ebedf1SHelge Deller	select HAVE_REGS_AND_STACK_ACCESS_API
5243b1f6abSHelge Deller	select GENERIC_SCHED_CLOCK
5343b1f6abSHelge Deller	select HAVE_UNSTABLE_SCHED_CLOCK if SMP
5443b1f6abSHelge Deller	select GENERIC_CLOCKEVENTS
5579387179SChristoph Hellwig	select ARCH_NO_COHERENT_DMA_MMAP
56fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
57f616ab59SChristoph Hellwig	select NEED_DMA_MAP_STATE
5886596f0aSChristoph Hellwig	select NEED_SG_DMA_LENGTH
59eacbfce1SSven Schnelle	select HAVE_ARCH_KGDB
608858ac8eSSven Schnelle	select HAVE_KPROBES
61e0b59b7bSSven Schnelle	select HAVE_KRETPROBES
62*6ca63662SSven Schnelle	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
63*6ca63662SSven Schnelle	select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
6472e73af1SThomas Gleixner
651da177e4SLinus Torvalds	help
661da177e4SLinus Torvalds	  The PA-RISC microprocessor is designed by Hewlett-Packard and used
671da177e4SLinus Torvalds	  in many of their workstations & servers (HP9000 700 and 800 series,
681da177e4SLinus Torvalds	  and later HP3000 series).  The PA-RISC Linux project home page is
691da177e4SLinus Torvalds	  at <http://www.parisc-linux.org/>.
701da177e4SLinus Torvalds
7174ad3d28SBabu Mogerconfig CPU_BIG_ENDIAN
7274ad3d28SBabu Moger	def_bool y
7374ad3d28SBabu Moger
741da177e4SLinus Torvaldsconfig MMU
751da177e4SLinus Torvalds	def_bool y
761da177e4SLinus Torvalds
771da177e4SLinus Torvaldsconfig STACK_GROWSUP
781da177e4SLinus Torvalds	def_bool y
791da177e4SLinus Torvalds
8095c354feSNick Pigginconfig GENERIC_LOCKBREAK
8195c354feSNick Piggin	bool
8295c354feSNick Piggin	default y
8395c354feSNick Piggin	depends on SMP && PREEMPT
8495c354feSNick Piggin
85f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U32
86f0d1b0b3SDavid Howells	bool
87f0d1b0b3SDavid Howells	default n
88f0d1b0b3SDavid Howells
89f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U64
90f0d1b0b3SDavid Howells	bool
91f0d1b0b3SDavid Howells	default n
92f0d1b0b3SDavid Howells
936891f8a1SHelge Dellerconfig GENERIC_BUG
946891f8a1SHelge Deller	bool
956891f8a1SHelge Deller	default y
966891f8a1SHelge Deller	depends on BUG
976891f8a1SHelge Deller
9859e18a2eSAkinobu Mitaconfig GENERIC_HWEIGHT
9959e18a2eSAkinobu Mita	bool
10059e18a2eSAkinobu Mita	default y
10159e18a2eSAkinobu Mita
1021da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
1031da177e4SLinus Torvalds	bool
1041da177e4SLinus Torvalds	default y
1051da177e4SLinus Torvalds
10606027bddSIngo Molnarconfig TIME_LOW_RES
10706027bddSIngo Molnar	bool
10806027bddSIngo Molnar	depends on SMP
10906027bddSIngo Molnar	default y
11006027bddSIngo Molnar
1111da177e4SLinus Torvalds# unless you want to implement ACPI on PA-RISC ... ;-)
1121da177e4SLinus Torvaldsconfig PM
1131da177e4SLinus Torvalds	bool
1141da177e4SLinus Torvalds
115548f1176SHelge Dellerconfig STACKTRACE_SUPPORT
116548f1176SHelge Deller	def_bool y
117548f1176SHelge Deller
1185cae841bSAl Viroconfig ISA_DMA_API
1195cae841bSAl Viro	bool
1205cae841bSAl Viro
121a08b6b79Sviro@ZenIV.linux.org.ukconfig ARCH_MAY_HAVE_PC_FDC
122a08b6b79Sviro@ZenIV.linux.org.uk	bool
1238b631342SGrant Grundler	depends on BROKEN
124a08b6b79Sviro@ZenIV.linux.org.uk	default y
125a08b6b79Sviro@ZenIV.linux.org.uk
126f24ffde4SKirill A. Shutemovconfig PGTABLE_LEVELS
127f24ffde4SKirill A. Shutemov	int
128f24ffde4SKirill A. Shutemov	default 3 if 64BIT && PARISC_PAGE_SIZE_4KB
129f24ffde4SKirill A. Shutemov	default 2
130f24ffde4SKirill A. Shutemov
131736d2169SHelge Dellerconfig SYS_SUPPORTS_HUGETLBFS
132736d2169SHelge Deller	def_bool y if PA20
133736d2169SHelge Deller
1341da177e4SLinus Torvalds
1351da177e4SLinus Torvaldsmenu "Processor type and features"
1361da177e4SLinus Torvalds
1371da177e4SLinus Torvaldschoice
1381da177e4SLinus Torvalds	prompt "Processor type"
1391da177e4SLinus Torvalds	default PA7000
1401da177e4SLinus Torvalds
1411da177e4SLinus Torvaldsconfig PA7000
1421da177e4SLinus Torvalds	bool "PA7000/PA7100"
1431da177e4SLinus Torvalds	---help---
1441da177e4SLinus Torvalds	  This is the processor type of your CPU.  This information is
1451da177e4SLinus Torvalds	  used for optimizing purposes.  In order to compile a kernel
1461da177e4SLinus Torvalds	  that can run on all 32-bit PA CPUs (albeit not optimally fast),
1471da177e4SLinus Torvalds	  you can specify "PA7000" here.
1481da177e4SLinus Torvalds
1491da177e4SLinus Torvalds	  Specifying "PA8000" here will allow you to select a 64-bit kernel
1501da177e4SLinus Torvalds	  which is required on some machines.
1511da177e4SLinus Torvalds
1521da177e4SLinus Torvaldsconfig PA7100LC
1531da177e4SLinus Torvalds	bool "PA7100LC"
1541da177e4SLinus Torvalds	help
1551da177e4SLinus Torvalds	  Select this option for the PCX-L processor, as used in the
1561da177e4SLinus Torvalds	  712, 715/64, 715/80, 715/100, 715/100XC, 725/100, 743, 748,
1571da177e4SLinus Torvalds	  D200, D210, D300, D310 and E-class
1581da177e4SLinus Torvalds
1591da177e4SLinus Torvaldsconfig PA7200
1601da177e4SLinus Torvalds	bool "PA7200"
1611da177e4SLinus Torvalds	help
1621da177e4SLinus Torvalds	  Select this option for the PCX-T' processor, as used in the
1631da177e4SLinus Torvalds	  C100, C110, J100, J110, J210XC, D250, D260, D350, D360,
1641da177e4SLinus Torvalds	  K100, K200, K210, K220, K400, K410 and K420
1651da177e4SLinus Torvalds
1661da177e4SLinus Torvaldsconfig PA7300LC
1671da177e4SLinus Torvalds	bool "PA7300LC"
1681da177e4SLinus Torvalds	help
1691da177e4SLinus Torvalds	  Select this option for the PCX-L2 processor, as used in the
1701da177e4SLinus Torvalds	  744, A180, B132L, B160L, B180L, C132L, C160L, C180L,
1711da177e4SLinus Torvalds	  D220, D230, D320 and D330.
1721da177e4SLinus Torvalds
1731da177e4SLinus Torvaldsconfig PA8X00
1741da177e4SLinus Torvalds	bool "PA8000 and up"
1751da177e4SLinus Torvalds	help
1761da177e4SLinus Torvalds	  Select this option for PCX-U to PCX-W2 processors.
1771da177e4SLinus Torvalds
1781da177e4SLinus Torvaldsendchoice
1791da177e4SLinus Torvalds
1801da177e4SLinus Torvalds# Define implied options from the CPU selection here
1811da177e4SLinus Torvalds
1821da177e4SLinus Torvaldsconfig PA20
1831da177e4SLinus Torvalds	def_bool y
1841da177e4SLinus Torvalds	depends on PA8X00
1851da177e4SLinus Torvalds
1861da177e4SLinus Torvaldsconfig PA11
1871da177e4SLinus Torvalds	def_bool y
1881da177e4SLinus Torvalds	depends on PA7000 || PA7100LC || PA7200 || PA7300LC
189c1f59375SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
190c1f59375SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
191c1f59375SChristoph Hellwig	select DMA_NONCOHERENT_CACHE_SYNC
1921da177e4SLinus Torvalds
1931da177e4SLinus Torvaldsconfig PREFETCH
1941da177e4SLinus Torvalds	def_bool y
19532104b29SKyle McMartin	depends on PA8X00 || PA7200
1961da177e4SLinus Torvalds
197ec758f98SHelge Dellerconfig MLONGCALLS
198ec758f98SHelge Deller	bool "Enable the -mlong-calls compiler option for big kernels"
199200036a8SHelge Deller	default y if !MODULES || UBSAN || FTRACE
200200036a8SHelge Deller	default n
201ec758f98SHelge Deller	depends on PA8X00
202ec758f98SHelge Deller	help
203ec758f98SHelge Deller	  If you configure the kernel to include many drivers built-in instead
204ec758f98SHelge Deller	  as modules, the kernel executable may become too big, so that the
205ec758f98SHelge Deller	  linker will not be able to resolve some long branches and fails to link
206ec758f98SHelge Deller	  your vmlinux kernel. In that case enabling this option will help you
207ec758f98SHelge Deller	  to overcome this limit by using the -mlong-calls compiler option.
208ec758f98SHelge Deller
209ec758f98SHelge Deller	  Usually you want to say N here, unless you e.g. want to build
210ec758f98SHelge Deller	  a kernel which includes all necessary drivers built-in and which can
211ec758f98SHelge Deller	  be used for TFTP booting without the need to have an initrd ramdisk.
212ec758f98SHelge Deller
213ec758f98SHelge Deller	  Enabling this option will probably slow down your kernel.
214ec758f98SHelge Deller
2151da177e4SLinus Torvaldsconfig 64BIT
2161da177e4SLinus Torvalds	bool "64-bit kernel"
2171da177e4SLinus Torvalds	depends on PA8X00
2181da177e4SLinus Torvalds	help
2191da177e4SLinus Torvalds	  Enable this if you want to support 64bit kernel on PA-RISC platform.
2201da177e4SLinus Torvalds
2211da177e4SLinus Torvalds	  At the moment, only people willing to use more than 2GB of RAM,
2221da177e4SLinus Torvalds	  or having a 64bit-only capable PA-RISC machine should say Y here.
2231da177e4SLinus Torvalds
2241da177e4SLinus Torvalds	  Since there is no 64bit userland on PA-RISC, there is no point to
2251da177e4SLinus Torvalds	  enable this option otherwise. The 64bit kernel is significantly bigger
2261da177e4SLinus Torvalds	  and slower than the 32bit one.
2271da177e4SLinus Torvalds
2282fd83038SHelge Dellerchoice
2292fd83038SHelge Deller	prompt "Kernel page size"
2301c5f873dSPaul Bolle	default PARISC_PAGE_SIZE_4KB
2312fd83038SHelge Deller
2322fd83038SHelge Dellerconfig PARISC_PAGE_SIZE_4KB
2332fd83038SHelge Deller	bool "4KB"
2342fd83038SHelge Deller	help
2352fd83038SHelge Deller	  This lets you select the page size of the kernel.  For best
2362fd83038SHelge Deller	  performance, a page size of 16KB is recommended.  For best
2372fd83038SHelge Deller	  compatibility with 32bit applications, a page size of 4KB should be
2382fd83038SHelge Deller	  selected (the vast majority of 32bit binaries work perfectly fine
2392fd83038SHelge Deller	  with a larger page size).
2402fd83038SHelge Deller
2412fd83038SHelge Deller	  4KB                For best 32bit compatibility
2422fd83038SHelge Deller	  16KB               For best performance
2432fd83038SHelge Deller	  64KB               For best performance, might give more overhead.
2442fd83038SHelge Deller
2452fd83038SHelge Deller	  If you don't know what to do, choose 4KB.
2462fd83038SHelge Deller
2472fd83038SHelge Dellerconfig PARISC_PAGE_SIZE_16KB
248daef22cfSKees Cook	bool "16KB"
2491c971f39SHelge Deller	depends on PA8X00 && BROKEN
2502fd83038SHelge Deller
2512fd83038SHelge Dellerconfig PARISC_PAGE_SIZE_64KB
252daef22cfSKees Cook	bool "64KB"
2531c971f39SHelge Deller	depends on PA8X00 && BROKEN
2542fd83038SHelge Deller
2552fd83038SHelge Dellerendchoice
2562fd83038SHelge Deller
257af21b01dSHelge Dellerconfig PARISC_SELF_EXTRACT
258af21b01dSHelge Deller	bool "Build kernel as self-extracting executable"
259af21b01dSHelge Deller	default y
260af21b01dSHelge Deller	help
261af21b01dSHelge Deller	  Say Y if you want to build the parisc kernel as a kind of
262af21b01dSHelge Deller	  self-extracting executable.
263af21b01dSHelge Deller
264af21b01dSHelge Deller	  If you say N here, the kernel will be compressed with gzip
265af21b01dSHelge Deller	  which can be loaded by the palo bootloader directly too.
266af21b01dSHelge Deller
267af21b01dSHelge Deller	  If you don't know what to do here, say Y.
268af21b01dSHelge Deller
2691da177e4SLinus Torvaldsconfig SMP
2701da177e4SLinus Torvalds	bool "Symmetric multi-processing support"
2711da177e4SLinus Torvalds	---help---
2721da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
2734a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
2744a474157SRobert Graffham	  than one CPU, say Y.
2751da177e4SLinus Torvalds
2764a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
2772a3f53d5SHelge Deller	  machines, but will use only one CPU of a multiprocessor machine.
2782a3f53d5SHelge Deller	  On a uniprocessor machine, the kernel will run faster if you say N.
2791da177e4SLinus Torvalds
280ecf38679SMauro Carvalho Chehab	  See also <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO
28103502faaSAdrian Bunk	  available at <http://www.tldp.org/docs.html#howto>.
2821da177e4SLinus Torvalds
2831da177e4SLinus Torvalds	  If you don't know what to do here, say N.
2841da177e4SLinus Torvalds
285bf7b4c1bSHelge Dellerconfig PARISC_CPU_TOPOLOGY
286bf7b4c1bSHelge Deller	bool "Support cpu topology definition"
287bf7b4c1bSHelge Deller	depends on SMP
288bf7b4c1bSHelge Deller	default y
289bf7b4c1bSHelge Deller	help
290bf7b4c1bSHelge Deller	  Support PARISC cpu topology definition.
291bf7b4c1bSHelge Deller
292bf7b4c1bSHelge Dellerconfig SCHED_MC
293bf7b4c1bSHelge Deller	bool "Multi-core scheduler support"
294bf7b4c1bSHelge Deller	depends on PARISC_CPU_TOPOLOGY && PA8X00
295bf7b4c1bSHelge Deller	help
296bf7b4c1bSHelge Deller	  Multi-core scheduler support improves the CPU scheduler's decision
297bf7b4c1bSHelge Deller	  making when dealing with multi-core CPU chips at a cost of slightly
298bf7b4c1bSHelge Deller	  increased overhead in some places. If unsure say N here.
299bf7b4c1bSHelge Deller
300200c8804SHelge Dellerconfig IRQSTACKS
301200c8804SHelge Deller	bool "Use separate kernel stacks when processing interrupts"
302416821d3SHelge Deller	default y
303200c8804SHelge Deller	help
304200c8804SHelge Deller	  If you say Y here the kernel will use separate kernel stacks
305200c8804SHelge Deller	  for handling hard and soft interrupts.  This can help avoid
306200c8804SHelge Deller	  overflowing the process kernel stacks.
307200c8804SHelge Deller
3081da177e4SLinus Torvaldsconfig HOTPLUG_CPU
3091da177e4SLinus Torvalds	bool
3101da177e4SLinus Torvalds	default y if SMP
3111da177e4SLinus Torvalds
312a2ba82cdSKyle McMartinconfig ARCH_SELECT_MEMORY_MODEL
313a2ba82cdSKyle McMartin	def_bool y
314a2ba82cdSKyle McMartin	depends on 64BIT
315a2ba82cdSKyle McMartin
316dbdf0760SHelge Dellerconfig ARCH_SPARSEMEM_ENABLE
317a2ba82cdSKyle McMartin	def_bool y
318a2ba82cdSKyle McMartin	depends on 64BIT
319a2ba82cdSKyle McMartin
320a2ba82cdSKyle McMartinconfig ARCH_FLATMEM_ENABLE
321a2ba82cdSKyle McMartin	def_bool y
322a2ba82cdSKyle McMartin
323dbdf0760SHelge Dellerconfig ARCH_SPARSEMEM_DEFAULT
324a2ba82cdSKyle McMartin	def_bool y
325dbdf0760SHelge Deller	depends on ARCH_SPARSEMEM_ENABLE
326c80d79d7SYasunori Goto
3278b631342SGrant Grundlersource "kernel/Kconfig.hz"
3283f22ab27SDave Hansen
3291da177e4SLinus Torvaldsconfig COMPAT
3301da177e4SLinus Torvalds	def_bool y
3311da177e4SLinus Torvalds	depends on 64BIT
33271d577dbSHelge Deller	select COMPAT_BINFMT_ELF if BINFMT_ELF
3331da177e4SLinus Torvalds
334bf581e15SHelge Dellerconfig SYSVIPC_COMPAT
335bf581e15SHelge Deller	def_bool y
336bf581e15SHelge Deller	depends on COMPAT && SYSVIPC
337bf581e15SHelge Deller
338527973c8SHelge Dellerconfig AUDIT_ARCH
339527973c8SHelge Deller	def_bool y
340527973c8SHelge Deller
3411da177e4SLinus Torvaldsconfig NR_CPUS
3421da177e4SLinus Torvalds	int "Maximum number of CPUs (2-32)"
3431da177e4SLinus Torvalds	range 2 32
3441da177e4SLinus Torvalds	depends on SMP
345435d34c7SHelge Deller	default "4"
3461da177e4SLinus Torvalds
3471da177e4SLinus Torvaldsendmenu
3481da177e4SLinus Torvalds
3491da177e4SLinus Torvalds
3501da177e4SLinus Torvaldssource "drivers/parisc/Kconfig"
3511da177e4SLinus Torvalds
352c90f0694SHelge Dellerconfig SECCOMP
353c90f0694SHelge Deller	def_bool y
354c90f0694SHelge Deller	prompt "Enable seccomp to safely compute untrusted bytecode"
355c90f0694SHelge Deller	---help---
356c90f0694SHelge Deller	  This kernel feature is useful for number crunching applications
357c90f0694SHelge Deller	  that may need to compute untrusted bytecode during their
358c90f0694SHelge Deller	  execution. By using pipes or other transports made available to
359c90f0694SHelge Deller	  the process as file descriptors supporting the read/write
360c90f0694SHelge Deller	  syscalls, it's possible to isolate those applications in
361c90f0694SHelge Deller	  their own address space using seccomp. Once seccomp is
362c90f0694SHelge Deller	  enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
363c90f0694SHelge Deller	  and the task is only allowed to execute a few safe syscalls
364c90f0694SHelge Deller	  defined by each seccomp mode.
365c90f0694SHelge Deller
366c90f0694SHelge Deller	  If unsure, say Y. Only embedded should say N here.
367