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