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