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