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