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