1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2a0ae9c7cSArnd Bergmannsource "arch/powerpc/platforms/Kconfig.cputype" 317e638bcSJohannes Berg 45017b459SNicholas Pigginconfig CC_HAS_ELFV2 55017b459SNicholas Piggin def_bool PPC64 && $(cc-option, -mabi=elfv2) 65017b459SNicholas Piggin 7dc5dac74SNicholas Pigginconfig CC_HAS_PREFIXED 8dc5dac74SNicholas Piggin def_bool PPC64 && $(cc-option, -mcpu=power10 -mprefixed) 9dc5dac74SNicholas Piggin 107e3a68beSNicholas Pigginconfig CC_HAS_PCREL 11169f8997SNicholas Piggin # Clang has a bug (https://github.com/llvm/llvm-project/issues/62372) 12169f8997SNicholas Piggin # where pcrel code is not generated if -msoft-float, -mno-altivec, or 13169f8997SNicholas Piggin # -mno-vsx options are also given. Without these options, fp/vec 14169f8997SNicholas Piggin # instructions are generated from regular kernel code. So Clang can't 15169f8997SNicholas Piggin # do pcrel yet. 16169f8997SNicholas Piggin def_bool PPC64 && CC_IS_GCC && $(cc-option, -mcpu=power10 -mpcrel) 177e3a68beSNicholas Piggin 18234a71a7Skerstin jonssonconfig 32BIT 19234a71a7Skerstin jonsson bool 20234a71a7Skerstin jonsson default y if PPC32 21234a71a7Skerstin jonsson 2214cf11afSPaul Mackerrasconfig 64BIT 2314cf11afSPaul Mackerras bool 2414cf11afSPaul Mackerras default y if PPC64 2514cf11afSPaul Mackerras 26a4520b25SChristophe Leroyconfig LIVEPATCH_64 27a4520b25SChristophe Leroy def_bool PPC64 28a4520b25SChristophe Leroy depends on LIVEPATCH 29a4520b25SChristophe Leroy 3014cf11afSPaul Mackerrasconfig MMU 3114cf11afSPaul Mackerras bool 3214cf11afSPaul Mackerras default y 3314cf11afSPaul Mackerras 349fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_BITS_MAX 359fea59bdSMichael Ellerman # On Book3S 64, the default virtual address space for 64-bit processes 369fea59bdSMichael Ellerman # is 2^47 (128TB). As a maximum, allow randomisation to consume up to 379fea59bdSMichael Ellerman # 32T of address space (2^45), which should ensure a reasonable gap 389fea59bdSMichael Ellerman # between bottom-up and top-down allocations for applications that 399fea59bdSMichael Ellerman # consume "normal" amounts of address space. Book3S 64 only supports 64K 409fea59bdSMichael Ellerman # and 4K page sizes. 419fea59bdSMichael Ellerman default 29 if PPC_BOOK3S_64 && PPC_64K_PAGES # 29 = 45 (32T) - 16 (64K) 429fea59bdSMichael Ellerman default 33 if PPC_BOOK3S_64 # 33 = 45 (32T) - 12 (4K) 439fea59bdSMichael Ellerman # 449fea59bdSMichael Ellerman # On all other 64-bit platforms (currently only Book3E), the virtual 459fea59bdSMichael Ellerman # address space is 2^46 (64TB). Allow randomisation to consume up to 16T 469fea59bdSMichael Ellerman # of address space (2^44). Only 4K page sizes are supported. 479fea59bdSMichael Ellerman default 32 if 64BIT # 32 = 44 (16T) - 12 (4K) 489fea59bdSMichael Ellerman # 499fea59bdSMichael Ellerman # For 32-bit, use the compat values, as they're the same. 509fea59bdSMichael Ellerman default ARCH_MMAP_RND_COMPAT_BITS_MAX 519fea59bdSMichael Ellerman 529fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_BITS_MIN 539fea59bdSMichael Ellerman # Allow randomisation to consume up to 1GB of address space (2^30). 549fea59bdSMichael Ellerman default 14 if 64BIT && PPC_64K_PAGES # 14 = 30 (1GB) - 16 (64K) 559fea59bdSMichael Ellerman default 18 if 64BIT # 18 = 30 (1GB) - 12 (4K) 569fea59bdSMichael Ellerman # 579fea59bdSMichael Ellerman # For 32-bit, use the compat values, as they're the same. 589fea59bdSMichael Ellerman default ARCH_MMAP_RND_COMPAT_BITS_MIN 599fea59bdSMichael Ellerman 609fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_COMPAT_BITS_MAX 619fea59bdSMichael Ellerman # Total virtual address space for 32-bit processes is 2^31 (2GB). 629fea59bdSMichael Ellerman # Allow randomisation to consume up to 512MB of address space (2^29). 639fea59bdSMichael Ellerman default 11 if PPC_256K_PAGES # 11 = 29 (512MB) - 18 (256K) 649fea59bdSMichael Ellerman default 13 if PPC_64K_PAGES # 13 = 29 (512MB) - 16 (64K) 659fea59bdSMichael Ellerman default 15 if PPC_16K_PAGES # 15 = 29 (512MB) - 14 (16K) 669fea59bdSMichael Ellerman default 17 # 17 = 29 (512MB) - 12 (4K) 679fea59bdSMichael Ellerman 689fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_COMPAT_BITS_MIN 699fea59bdSMichael Ellerman # Total virtual address space for 32-bit processes is 2^31 (2GB). 709fea59bdSMichael Ellerman # Allow randomisation to consume up to 8MB of address space (2^23). 719fea59bdSMichael Ellerman default 5 if PPC_256K_PAGES # 5 = 23 (8MB) - 18 (256K) 729fea59bdSMichael Ellerman default 7 if PPC_64K_PAGES # 7 = 23 (8MB) - 16 (64K) 739fea59bdSMichael Ellerman default 9 if PPC_16K_PAGES # 9 = 23 (8MB) - 14 (16K) 749fea59bdSMichael Ellerman default 11 # 11 = 23 (8MB) - 12 (4K) 759fea59bdSMichael Ellerman 76551b81f2SMichael Ellermanconfig NR_IRQS 77551b81f2SMichael Ellerman int "Number of virtual interrupt numbers" 787b3b3de3SCédric Le Goater range 32 1048576 79551b81f2SMichael Ellerman default "512" 80551b81f2SMichael Ellerman help 81551b81f2SMichael Ellerman This defines the number of virtual interrupt numbers the kernel 82551b81f2SMichael Ellerman can manage. Virtual interrupt numbers are what you see in 83551b81f2SMichael Ellerman /proc/interrupts. If you configure your system to have too few, 84551b81f2SMichael Ellerman drivers will fail to load or worse - handle with care. 85551b81f2SMichael Ellerman 86ddd703caSNicholas Pigginconfig NMI_IPI 87ddd703caSNicholas Piggin bool 882104180aSNicholas Piggin depends on SMP && (DEBUGGER || KEXEC_CORE || HARDLOCKUP_DETECTOR) 89ddd703caSNicholas Piggin default y 90ddd703caSNicholas Piggin 9175eb767eSNicholas Pigginconfig PPC_WATCHDOG 9275eb767eSNicholas Piggin bool 937ca8fe94SPetr Mladek depends on HARDLOCKUP_DETECTOR_ARCH 9475eb767eSNicholas Piggin default y 9575eb767eSNicholas Piggin help 9675eb767eSNicholas Piggin This is a placeholder when the powerpc hardlockup detector 9775eb767eSNicholas Piggin watchdog is selected (arch/powerpc/kernel/watchdog.c). It is 98f8a4b277SColin Ian King selected via the generic lockup detector menu which is why we 9975eb767eSNicholas Piggin have no standalone config option for it here. 10075eb767eSNicholas Piggin 101fd3e0bbcSChristoph Hellwigconfig STACKTRACE_SUPPORT 102fd3e0bbcSChristoph Hellwig bool 103fd3e0bbcSChristoph Hellwig default y 104fd3e0bbcSChristoph Hellwig 105945feb17SBenjamin Herrenschmidtconfig LOCKDEP_SUPPORT 106945feb17SBenjamin Herrenschmidt bool 107945feb17SBenjamin Herrenschmidt default y 108945feb17SBenjamin Herrenschmidt 10995c354feSNick Pigginconfig GENERIC_LOCKBREAK 11095c354feSNick Piggin bool 11195c354feSNick Piggin default y 1129f61521cSNicholas Piggin depends on SMP && PREEMPTION && !PPC_QUEUED_SPINLOCKS 11395c354feSNick Piggin 114e779b2f9SAkinobu Mitaconfig GENERIC_HWEIGHT 115e779b2f9SAkinobu Mita bool 116e779b2f9SAkinobu Mita default y 117e779b2f9SAkinobu Mita 11814cf11afSPaul Mackerrasconfig PPC 11914cf11afSPaul Mackerras bool 12014cf11afSPaul Mackerras default y 121a7d2475aSMichael Ellerman # 122a7d2475aSMichael Ellerman # Please keep this list sorted alphabetically. 123a7d2475aSMichael Ellerman # 124942fa985SYury Norov select ARCH_32BIT_OFF_T if PPC32 12541b7a347SDaniel Axtens select ARCH_DISABLE_KASAN_INLINE if PPC_RADIX_MMU 126c00a60d6SJiaxun Yang select ARCH_DMA_DEFAULT_COHERENT if !NOT_COHERENT_CACHE 12791024b3cSAnshuman Khandual select ARCH_ENABLE_MEMORY_HOTPLUG 12891024b3cSAnshuman Khandual select ARCH_ENABLE_MEMORY_HOTREMOVE 129c6b05f4eSChristophe Leroy select ARCH_HAS_COPY_MC if PPC64 1302792d84eSKees Cook select ARCH_HAS_CURRENT_STACK_POINTER 1316bf752daSChristophe Leroy select ARCH_HAS_DEBUG_VIRTUAL 132937c49d1SAneesh Kumar K.V select ARCH_HAS_DEBUG_VM_PGTABLE 133e0847283SChristophe Leroy select ARCH_HAS_DEBUG_WX if STRICT_KERNEL_RWX 134a7d2475aSMichael Ellerman select ARCH_HAS_DEVMEM_IS_ALLOWED 135c6b05f4eSChristophe Leroy select ARCH_HAS_DMA_MAP_DIRECT if PPC_PSERIES 1366974f0c4SDaniel Micay select ARCH_HAS_FORTIFY_SOURCE 137a7d2475aSMichael Ellerman select ARCH_HAS_GCOV_PROFILE_ALL 138cbd34da7SChristoph Hellwig select ARCH_HAS_HUGEPD if HUGETLB_PAGE 139c6b05f4eSChristophe Leroy select ARCH_HAS_KCOV 140*be2fc65dSSamuel Holland select ARCH_HAS_KERNEL_FPU_SUPPORT if PPC64 && PPC_FPU 1413ccfebedSMathieu Desnoyers select ARCH_HAS_MEMBARRIER_CALLBACKS 1422384b36fSNicholas Piggin select ARCH_HAS_MEMBARRIER_SYNC_CORE 143387e220aSNicholas Piggin select ARCH_HAS_MEMREMAP_COMPAT_ALIGN if PPC_64S_HASH_MMU 144c6b05f4eSChristophe Leroy select ARCH_HAS_MMIOWB if PPC64 145c6b05f4eSChristophe Leroy select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE 146c6b05f4eSChristophe Leroy select ARCH_HAS_PHYS_TO_DMA 147c6b05f4eSChristophe Leroy select ARCH_HAS_PMEM_API 148c6b05f4eSChristophe Leroy select ARCH_HAS_PTE_DEVMAP if PPC_BOOK3S_64 149c6b05f4eSChristophe Leroy select ARCH_HAS_PTE_SPECIAL 150b4645ffcSChristophe Leroy select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64 1511f9ad21cSRussell Currey select ARCH_HAS_SET_MEMORY 15268b44f94SChristophe Leroy select ARCH_HAS_STRICT_KERNEL_RWX if (PPC_BOOK3S || PPC_8xx || 40x) && !HIBERNATION 153dfc3095cSChristophe Leroy select ARCH_HAS_STRICT_KERNEL_RWX if PPC_85xx && !HIBERNATION && !RANDOMIZE_BASE 1540670010fSChristophe Leroy select ARCH_HAS_STRICT_MODULE_RWX if ARCH_HAS_STRICT_KERNEL_RWX 1557e92e01bSRohan McLure select ARCH_HAS_SYSCALL_WRAPPER if !SPU_BASE && !COMPAT 156a7d2475aSMichael Ellerman select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST 157461cef2aSChristophe Leroy select ARCH_HAS_UACCESS_FLUSHCACHE 158918327e9SKees Cook select ARCH_HAS_UBSAN 159a7d2475aSMichael Ellerman select ARCH_HAVE_NMI_SAFE_CMPXCHG 160a9c3475dSVignesh Balasubramanian select ARCH_HAVE_EXTRA_ELF_NOTES if SPU_BASE 161350e88baSMike Rapoport select ARCH_KEEP_MEMBLOCK 162603fd64dSAneesh Kumar K.V select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE if PPC_RADIX_MMU 163b7e7c37bSMark Salter select ARCH_MIGHT_HAVE_PC_PARPORT 164c74e6d3dSMark Salter select ARCH_MIGHT_HAVE_PC_SERIO 1654ec591e5SChristophe Leroy select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX 166fdacae8aSChristophe Leroy select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT 16702a771c9SMichael Ellerman select ARCH_SPLIT_ARG64 if PPC32 168a1cdef04SChristophe Leroy select ARCH_STACKWALK 169a7d2475aSMichael Ellerman select ARCH_SUPPORTS_ATOMIC_RMW 17068b44f94SChristophe Leroy select ARCH_SUPPORTS_DEBUG_PAGEALLOC if PPC_BOOK3S || PPC_8xx || 40x 171a7d2475aSMichael Ellerman select ARCH_USE_BUILTIN_BSWAP 172a7d2475aSMichael Ellerman select ARCH_USE_CMPXCHG_LOCKREF if PPC64 173dce44566SAnshuman Khandual select ARCH_USE_MEMTEST 174aa65ff6bSNicholas Piggin select ARCH_USE_QUEUED_RWLOCKS if PPC_QUEUED_SPINLOCKS 175e0fe568eSMichael Ellerman select ARCH_WANT_DEFAULT_BPF_JIT 17636e5f9eeSChristophe Leroy select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT 177a7d2475aSMichael Ellerman select ARCH_WANT_IPC_PARSE_VERSION 17866acd460SNicholas Piggin select ARCH_WANT_IRQS_OFF_ACTIVATE_MM 17959612b24SNathan Chancellor select ARCH_WANT_LD_ORPHAN_WARN 180f2b79c0dSAneesh Kumar K.V select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP if PPC_RADIX_MMU 181eeaec780SChristophe Leroy select ARCH_WANTS_MODULES_DATA_IN_VMALLOC if PPC_BOOK3S_32 || PPC_8xx 18277e58496SPaul E. McKenney select ARCH_WEAK_RELEASE_ACQUIRE 183d812c0e1SStephen Rothwell select BINFMT_ELF 18410916706SShile Zhang select BUILDTIME_TABLE_SORT 185a7d2475aSMichael Ellerman select CLONE_BACKWARDS 1862eafc474SNicholas Piggin select CPUMASK_OFFSTACK if NR_CPUS >= 8192 187a7d2475aSMichael Ellerman select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN 188f1565c24SChristoph Hellwig select DMA_OPS_BYPASS if PPC64 189c6b05f4eSChristophe Leroy select DMA_OPS if PPC64 1900c0c5230SMichael Ellerman select DYNAMIC_FTRACE if FUNCTION_TRACER 191a7d2475aSMichael Ellerman select EDAC_ATOMIC_SCRUB 192a7d2475aSMichael Ellerman select EDAC_SUPPORT 1930f71dcfbSNaveen N Rao select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if ARCH_USING_PATCHABLE_FUNCTION_ENTRY 194b20f98e8SSathvika Vasireddy select FUNCTION_ALIGNMENT_4B 195a7d2475aSMichael Ellerman select GENERIC_ATOMIC64 if PPC32 196a7d2475aSMichael Ellerman select GENERIC_CLOCKEVENTS_BROADCAST if SMP 197a7d2475aSMichael Ellerman select GENERIC_CMOS_UPDATE 198a7d2475aSMichael Ellerman select GENERIC_CPU_AUTOPROBE 199179ab1cbSMichael Ellerman select GENERIC_CPU_VULNERABILITIES if PPC_BARRIER_NOSPEC 200265c3491SChristophe Leroy select GENERIC_EARLY_IOREMAP 20174205b3fSChristophe Leroy select GENERIC_GETTIMEOFDAY 2020ceef6e9SVaibhav Jain select GENERIC_IDLE_POLL_SETUP 2038d05554dSChristophe Leroy select GENERIC_IOREMAP 204a7d2475aSMichael Ellerman select GENERIC_IRQ_SHOW 205a7d2475aSMichael Ellerman select GENERIC_IRQ_SHOW_LEVEL 206eb01d42aSChristoph Hellwig select GENERIC_PCI_IOMAP if PCI 207e0847283SChristophe Leroy select GENERIC_PTDUMP 208a7d2475aSMichael Ellerman select GENERIC_SMP_IDLE_THREAD 209d4cfb113SPaul Mackerras select GENERIC_TIME_VSYSCALL 21074205b3fSChristophe Leroy select GENERIC_VDSO_TIME_NS 211fcbfe812SNiklas Schnelle select HAS_IOPORT if PCI 212a7d2475aSMichael Ellerman select HAVE_ARCH_AUDITSYSCALL 2138abddd96SNicholas Piggin select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP 214a6a8f7c4SChristophe Leroy select HAVE_ARCH_HUGE_VMAP if PPC_RADIX_MMU || PPC_8xx 215a7d2475aSMichael Ellerman select HAVE_ARCH_JUMP_LABEL 216b0b3b2c7SChristophe Leroy select HAVE_ARCH_JUMP_LABEL_RELATIVE 217d3e5bab9SArnd Bergmann select HAVE_ARCH_KASAN if PPC32 && PAGE_SHIFT <= 14 21841b7a347SDaniel Axtens select HAVE_ARCH_KASAN if PPC_RADIX_MMU 219c7b9ed7cSChristophe Leroy select HAVE_ARCH_KASAN if PPC_BOOK3E_64 22041b7a347SDaniel Axtens select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN 22195567f46SRohan McLure select HAVE_ARCH_KCSAN 222a5edf981SNicholas Miehlbradt select HAVE_ARCH_KFENCE if ARCH_SUPPORTS_DEBUG_PAGEALLOC 223f4a0318fSXiu Jianfeng select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET 224ac9c8901SNicholas Miehlbradt select HAVE_ARCH_WITHIN_STACK_FRAMES 225c6b05f4eSChristophe Leroy select HAVE_ARCH_KGDB 2269fea59bdSMichael Ellerman select HAVE_ARCH_MMAP_RND_BITS 2279fea59bdSMichael Ellerman select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT 22820e07af7SFinn Thain select HAVE_ARCH_NVRAM_OPS 229a7d2475aSMichael Ellerman select HAVE_ARCH_SECCOMP_FILTER 230a7d2475aSMichael Ellerman select HAVE_ARCH_TRACEHOOK 2312ff2b7ecSMasahiro Yamada select HAVE_ASM_MODVERSIONS 2325c4b710aSNicholas Piggin select HAVE_CONTEXT_TRACKING_USER 233c6b05f4eSChristophe Leroy select HAVE_C_RECORDMCOUNT 234a7d2475aSMichael Ellerman select HAVE_DEBUG_KMEMLEAK 235a7d2475aSMichael Ellerman select HAVE_DEBUG_STACKOVERFLOW 236a7d2475aSMichael Ellerman select HAVE_DYNAMIC_FTRACE 2370f71dcfbSNaveen N Rao select HAVE_DYNAMIC_FTRACE_WITH_ARGS if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32 2380f71dcfbSNaveen N Rao select HAVE_DYNAMIC_FTRACE_WITH_REGS if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32 23951c66ad8SChristophe Leroy select HAVE_EBPF_JIT 240ecf8f364SMichael Ellerman select HAVE_EFFICIENT_UNALIGNED_ACCESS 24125176ad0SDavid Hildenbrand select HAVE_GUP_FAST 242a7d2475aSMichael Ellerman select HAVE_FTRACE_MCOUNT_RECORD 243f01b0eddSNaveen N Rao select HAVE_FUNCTION_ARG_ACCESS_API 2445b89492cSChristophe Leroy select HAVE_FUNCTION_DESCRIPTORS if PPC64_ELF_ABI_V1 2457cd01b08SNaveen N. Rao select HAVE_FUNCTION_ERROR_INJECTION 246a7d2475aSMichael Ellerman select HAVE_FUNCTION_GRAPH_TRACER 247d24da1f8SNaveen N Rao select HAVE_FUNCTION_TRACER if PPC64 || (PPC32 && CC_IS_GCC) 2488034c2fbSMasahiro Yamada select HAVE_GCC_PLUGINS if GCC_VERSION >= 50200 # plugin support on gcc <= 5.1 is buggy on PPC 249ab037dd8SChristophe Leroy select HAVE_GENERIC_VDSO 250c6b05f4eSChristophe Leroy select HAVE_HARDLOCKUP_DETECTOR_ARCH if PPC_BOOK3S_64 && SMP 2517ca8fe94SPetr Mladek select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI 252a7d2475aSMichael Ellerman select HAVE_HW_BREAKPOINT if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx) 253a7d2475aSMichael Ellerman select HAVE_IOREMAP_PROT 254c6b05f4eSChristophe Leroy select HAVE_IRQ_TIME_ACCOUNTING 255a7d2475aSMichael Ellerman select HAVE_KERNEL_GZIP 2561cc9a21bSChristophe Leroy select HAVE_KERNEL_LZMA if DEFAULT_UIMAGE 257264bffadSChristophe Leroy select HAVE_KERNEL_LZO if DEFAULT_UIMAGE 258423bfc69SChristian Lamparter select HAVE_KERNEL_XZ if PPC_BOOK3S || 44x 259a7d2475aSMichael Ellerman select HAVE_KPROBES 260ead514d5SNaveen N. Rao select HAVE_KPROBES_ON_FTRACE 261a7d2475aSMichael Ellerman select HAVE_KRETPROBES 26260d77ed2SNaveen N Rao select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if HAVE_OBJTOOL_MCOUNT && (!ARCH_USING_PATCHABLE_FUNCTION_ENTRY || (!CC_IS_GCC || GCC_VERSION >= 110100)) 263a4520b25SChristophe Leroy select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS 264a7d2475aSMichael Ellerman select HAVE_MOD_ARCH_SPECIFIC 2652104180aSNicholas Piggin select HAVE_NMI if PERF_EVENTS || (PPC64 && PPC_BOOK3S) 266eacf4c02SChristophe Leroy select HAVE_OPTPROBES 2670f71dcfbSNaveen N Rao select HAVE_OBJTOOL if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32 268c984aef8SSathvika Vasireddy select HAVE_OBJTOOL_MCOUNT if HAVE_OBJTOOL 269a7d2475aSMichael Ellerman select HAVE_PERF_EVENTS 270a7d2475aSMichael Ellerman select HAVE_PERF_EVENTS_NMI if PPC64 271a7d2475aSMichael Ellerman select HAVE_PERF_REGS 272a7d2475aSMichael Ellerman select HAVE_PERF_USER_STACK_DUMP 273a7d2475aSMichael Ellerman select HAVE_REGS_AND_STACK_ACCESS_API 274accdd093SChristophe Leroy select HAVE_RELIABLE_STACKTRACE 275c6b05f4eSChristophe Leroy select HAVE_RSEQ 2767ecd19cfSKefeng Wang select HAVE_SETUP_PER_CPU_AREA if PPC64 277cd1a41ceSThomas Gleixner select HAVE_SOFTIRQ_ON_OWN_STACK 278c6b05f4eSChristophe Leroy select HAVE_STACKPROTECTOR if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2) 279c6b05f4eSChristophe Leroy select HAVE_STACKPROTECTOR if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13) 2805c810cedSChristophe Leroy select HAVE_STATIC_CALL if PPC32 281a7d2475aSMichael Ellerman select HAVE_SYSCALL_TRACEPOINTS 282a7d2475aSMichael Ellerman select HAVE_VIRT_CPU_ACCOUNTING 28301f13550SNicholas Piggin select HAVE_VIRT_CPU_ACCOUNTING_GEN 28473c58e7eSMichael Ellerman select HOTPLUG_SMT if HOTPLUG_CPU 28573c58e7eSMichael Ellerman select SMT_NUM_THREADS_DYNAMIC 286f96271ceSMichael Ellerman select HUGETLB_PAGE_SIZE_VARIABLE if PPC_BOOK3S_64 && HUGETLB_PAGE 287a4ce5a48SChristoph Hellwig select IOMMU_HELPER if PPC64 288a7d2475aSMichael Ellerman select IRQ_DOMAIN 289a7d2475aSMichael Ellerman select IRQ_FORCED_THREADING 2900a956d52SMike Rapoport (IBM) select KASAN_VMALLOC if KASAN && EXECMEM 291e6fe228cSMichael Ellerman select LOCK_MM_AND_FIND_VMA 292c6b05f4eSChristophe Leroy select MMU_GATHER_PAGE_SIZE 293c6b05f4eSChristophe Leroy select MMU_GATHER_RCU_TABLE_FREE 2941e9fdf21SPeter Zijlstra select MMU_GATHER_MERGE_VMAS 29577f68ebeSNicholas Piggin select MMU_LAZY_TLB_SHOOTDOWN if PPC_BOOK3S_64 296a7d2475aSMichael Ellerman select MODULES_USE_ELF_RELA 29706832fc0SChristoph Hellwig select NEED_DMA_MAP_STATE if PPC64 || NOT_COHERENT_CACHE 2987ecd19cfSKefeng Wang select NEED_PER_CPU_EMBED_FIRST_CHUNK if PPC64 2997ecd19cfSKefeng Wang select NEED_PER_CPU_PAGE_FIRST_CHUNK if PPC64 30086596f0aSChristoph Hellwig select NEED_SG_DMA_LENGTH 30110f85f43SStephen Rothwell select OF 302e6ce1324SStephen Neuendorffer select OF_EARLY_FLATTREE 303a7d2475aSMichael Ellerman select OLD_SIGACTION if PPC32 304a7d2475aSMichael Ellerman select OLD_SIGSUSPEND 3052eac9c2dSChristoph Hellwig select PCI_DOMAINS if PCI 306981aa1d3SThomas Gleixner select PCI_MSI_ARCH_FALLBACKS if PCI_MSI 30720f1b79dSChristoph Hellwig select PCI_SYSCALL if PCI 308a278e7eaSMichael Neuling select PPC_DAWR if PPC64 3096e8cef38SArnd Bergmann select RTC_LIB 310a7d2475aSMichael Ellerman select SPARSE_IRQ 311c35717c7SRussell Currey select STRICT_KERNEL_RWX if STRICT_MODULE_RWX 3127ac57a89SCatalin Marinas select SYSCTL_EXCEPTION_TRACE 313ed1cd6deSChristophe Leroy select THREAD_INFO_IN_TASK 3144aae683fSMasahiro Yamada select TRACE_IRQFLAGS_SUPPORT 315a7d2475aSMichael Ellerman # 316a7d2475aSMichael Ellerman # Please keep this list sorted alphabetically. 317a7d2475aSMichael Ellerman # 31814cf11afSPaul Mackerras 319179ab1cbSMichael Ellermanconfig PPC_BARRIER_NOSPEC 320179ab1cbSMichael Ellerman bool 321179ab1cbSMichael Ellerman default y 3223e731858SChristophe Leroy depends on PPC_BOOK3S_64 || PPC_E500 323179ab1cbSMichael Ellerman 324b86cf14fSNicholas Pigginconfig PPC_HAS_LBARX_LHARX 325b86cf14fSNicholas Piggin bool 326b86cf14fSNicholas Piggin 32714cf11afSPaul Mackerrasconfig EARLY_PRINTK 32814cf11afSPaul Mackerras bool 32951d3082fSBenjamin Herrenschmidt default y 33014cf11afSPaul Mackerras 331b71d47c1SJason Baronconfig PANIC_TIMEOUT 332b71d47c1SJason Baron int 333b71d47c1SJason Baron default 180 334b71d47c1SJason Baron 33514cf11afSPaul Mackerrasconfig COMPAT 3366e944aedSMichal Suchanek bool "Enable support for 32bit binaries" 3376e944aedSMichal Suchanek depends on PPC64 3386e944aedSMichal Suchanek default y if !CPU_LITTLE_ENDIAN 33948b25c43SChris Metcalf select ARCH_WANT_OLD_COMPAT_IPC 34009a4d5d0SAl Viro select COMPAT_OLD_SIGACTION 34114cf11afSPaul Mackerras 342ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER 34314cf11afSPaul Mackerras bool 34414cf11afSPaul Mackerras default y 34514cf11afSPaul Mackerras 34614cf11afSPaul Mackerrasconfig ARCH_MAY_HAVE_PC_FDC 34714cf11afSPaul Mackerras bool 3483484a31fSPranith Kumar default PCI 34914cf11afSPaul Mackerras 35008264cbcSKumar Galaconfig PPC_UDBG_16550 35108264cbcSKumar Gala bool 35208264cbcSKumar Gala 35308264cbcSKumar Galaconfig GENERIC_TBSYNC 35408264cbcSKumar Gala bool 35508264cbcSKumar Gala default y if PPC32 && SMP 35608264cbcSKumar Gala 357b7472e17SMichael Ellermanconfig AUDIT_ARCH 358b7472e17SMichael Ellerman bool 359b7472e17SMichael Ellerman default y 360b7472e17SMichael Ellerman 36173c9ceabSJeremy Fitzhardingeconfig GENERIC_BUG 36273c9ceabSJeremy Fitzhardinge bool 36373c9ceabSJeremy Fitzhardinge default y 36473c9ceabSJeremy Fitzhardinge depends on BUG 36573c9ceabSJeremy Fitzhardinge 3661baa1f70SJordan Nietheconfig GENERIC_BUG_RELATIVE_POINTERS 3671baa1f70SJordan Niethe def_bool y 3681baa1f70SJordan Niethe depends on GENERIC_BUG 3691baa1f70SJordan Niethe 370b3028878SJohannes Bergconfig SYS_SUPPORTS_APM_EMULATION 37158da10bbSKumar Gala default y if PMAC_APM_EMU 372b3028878SJohannes Berg bool 373b3028878SJohannes Berg 3746c5b59b9SDavid Gibsonconfig EPAPR_BOOT 3756c5b59b9SDavid Gibson bool 3766c5b59b9SDavid Gibson help 3776c5b59b9SDavid Gibson Used to allow a board to specify it wants an ePAPR compliant wrapper. 3786c5b59b9SDavid Gibson 379f4fc4a5bSKumar Galaconfig DEFAULT_UIMAGE 380f4fc4a5bSKumar Gala bool 381f4fc4a5bSKumar Gala help 382f4fc4a5bSKumar Gala Used to allow a board to specify it wants a uImage built by default 383f4fc4a5bSKumar Gala 384801e4062SJohannes Bergconfig ARCH_HIBERNATION_POSSIBLE 385801e4062SJohannes Berg bool 386543b9fd3SJohannes Berg default y 387543b9fd3SJohannes Berg 388f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE 389f4cb5700SJohannes Berg def_bool y 3904ffd6952SAnton Vorontsov depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \ 391d0832a75SZhao Chenhui (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \ 392d0832a75SZhao Chenhui || 44x || 40x 393f4cb5700SJohannes Berg 3949ca12ac0SNicholas Pigginconfig ARCH_SUSPEND_NONZERO_CPU 3959ca12ac0SNicholas Piggin def_bool y 3969ca12ac0SNicholas Piggin depends on PPC_POWERNV || PPC_PSERIES 3979ca12ac0SNicholas Piggin 398ac790d09SAneesh Kumar K.Vconfig ARCH_HAS_ADD_PAGES 399ac790d09SAneesh Kumar K.V def_bool y 400ac790d09SAneesh Kumar K.V depends on ARCH_ENABLE_MEMORY_HOTPLUG 401ac790d09SAneesh Kumar K.V 4024c75a6f4SBenjamin Herrenschmidtconfig PPC_DCR_NATIVE 4034c75a6f4SBenjamin Herrenschmidt bool 4044c75a6f4SBenjamin Herrenschmidt 4054c75a6f4SBenjamin Herrenschmidtconfig PPC_DCR_MMIO 4064c75a6f4SBenjamin Herrenschmidt bool 4074c75a6f4SBenjamin Herrenschmidt 4084c75a6f4SBenjamin Herrenschmidtconfig PPC_DCR 4094c75a6f4SBenjamin Herrenschmidt bool 4104c75a6f4SBenjamin Herrenschmidt depends on PPC_DCR_NATIVE || PPC_DCR_MMIO 4114c75a6f4SBenjamin Herrenschmidt default y 4124c75a6f4SBenjamin Herrenschmidt 4135d2eb73aSPali Rohárconfig PPC_PCI_OF_BUS_MAP 4145d2eb73aSPali Rohár bool "Use pci_to_OF_bus_map (deprecated)" 4155d2eb73aSPali Rohár depends on PPC32 4165d2eb73aSPali Rohár depends on PPC_PMAC || PPC_CHRP 4175d2eb73aSPali Rohár help 4185d2eb73aSPali Rohár This option uses pci_to_OF_bus_map to map OF nodes to PCI devices, which 4195d2eb73aSPali Rohár restricts the system to only having 256 PCI buses. On CHRP it also causes 4205d2eb73aSPali Rohár the "pci-OF-bus-map" property to be created in the device tree. 4215d2eb73aSPali Rohár 4225d2eb73aSPali Rohár If unsure, say "N". 4235d2eb73aSPali Rohár 42456635681SPali Rohárconfig PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT 42556635681SPali Rohár depends on PPC32 4265d2eb73aSPali Rohár depends on !PPC_PCI_OF_BUS_MAP 42756635681SPali Rohár bool "Assign PCI bus numbers from zero individually for each PCI domain" 42834557b75SPali Rohár default y 42956635681SPali Rohár help 43056635681SPali Rohár By default on PPC32 were PCI bus numbers unique across all PCI domains. 43156635681SPali Rohár So system could have only 256 PCI buses independently of available 43256635681SPali Rohár PCI domains. When this option is enabled then PCI bus numbers are 43356635681SPali Rohár PCI domain dependent and each PCI controller on own domain can have 43456635681SPali Rohár 256 PCI buses, like it is on other Linux architectures. 43556635681SPali Rohár 4364c9d2800SBenjamin Herrenschmidtconfig PPC_OF_PLATFORM_PCI 4374c9d2800SBenjamin Herrenschmidt bool 438373a6da1SStephen Rothwell depends on PCI 4394c9d2800SBenjamin Herrenschmidt depends on PPC64 # not supported on 32 bits yet 4404c9d2800SBenjamin Herrenschmidt 4418b7b80b9SAnanth N Mavinakayanahalliconfig ARCH_SUPPORTS_UPROBES 4428b7b80b9SAnanth N Mavinakayanahalli def_bool y 4438b7b80b9SAnanth N Mavinakayanahalli 444172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_REGS 445172ae2e7SDave Kleikamp bool 446172ae2e7SDave Kleikamp depends on 40x || BOOKE 447172ae2e7SDave Kleikamp default y 448172ae2e7SDave Kleikamp 449172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_IACS 450172ae2e7SDave Kleikamp int 451172ae2e7SDave Kleikamp depends on PPC_ADV_DEBUG_REGS 452172ae2e7SDave Kleikamp default 4 if 44x 453172ae2e7SDave Kleikamp default 2 454172ae2e7SDave Kleikamp 455172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_DACS 456172ae2e7SDave Kleikamp int 457172ae2e7SDave Kleikamp depends on PPC_ADV_DEBUG_REGS 458172ae2e7SDave Kleikamp default 2 459172ae2e7SDave Kleikamp 460172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_DVCS 461172ae2e7SDave Kleikamp int 462172ae2e7SDave Kleikamp depends on PPC_ADV_DEBUG_REGS 463172ae2e7SDave Kleikamp default 2 if 44x 464172ae2e7SDave Kleikamp default 0 465172ae2e7SDave Kleikamp 466172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_DAC_RANGE 467172ae2e7SDave Kleikamp bool 468172ae2e7SDave Kleikamp depends on PPC_ADV_DEBUG_REGS && 44x 469172ae2e7SDave Kleikamp default y 470172ae2e7SDave Kleikamp 471a278e7eaSMichael Neulingconfig PPC_DAWR 472a278e7eaSMichael Neuling bool 473a278e7eaSMichael Neuling 47406ef42a1SKirill A. Shutemovconfig PGTABLE_LEVELS 47506ef42a1SKirill A. Shutemov int 47606ef42a1SKirill A. Shutemov default 2 if !PPC64 47706ef42a1SKirill A. Shutemov default 4 47806ef42a1SKirill A. Shutemov 479a2d2e1ecSBenjamin Herrenschmidtsource "arch/powerpc/sysdev/Kconfig" 4804330f5daSKumar Galasource "arch/powerpc/platforms/Kconfig" 48114cf11afSPaul Mackerras 48214cf11afSPaul Mackerrasmenu "Kernel options" 48314cf11afSPaul Mackerras 48414cf11afSPaul Mackerrasconfig HIGHMEM 48514cf11afSPaul Mackerras bool "High memory support" 48614cf11afSPaul Mackerras depends on PPC32 48747da42b2SThomas Gleixner select KMAP_LOCAL 48814cf11afSPaul Mackerras 4898636a1f9SMasahiro Yamadasource "kernel/Kconfig.hz" 49014cf11afSPaul Mackerras 49114cf11afSPaul Mackerrasconfig MATH_EMULATION 49214cf11afSPaul Mackerras bool "Math emulation" 49353d143feSPaul Mackerras depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT 494b6254cedSChristophe Leroy select PPC_FPU_REGS 4954f44e8aeSEnrico Weigelt, metux IT consult help 49614cf11afSPaul Mackerras Some PowerPC chips designed for embedded applications do not have 49714cf11afSPaul Mackerras a floating-point unit and therefore do not implement the 49814cf11afSPaul Mackerras floating-point instructions in the PowerPC instruction set. If you 49914cf11afSPaul Mackerras say Y here, the kernel will include code to emulate a floating-point 50014cf11afSPaul Mackerras unit, which will allow programs that use floating-point 50114cf11afSPaul Mackerras instructions to run. 50214cf11afSPaul Mackerras 5034e63f8edSBenjamin Herrenschmidt This is also useful to emulate missing (optional) instructions 5044e63f8edSBenjamin Herrenschmidt such as fsqrt on cores that do have an FPU but do not implement 5054e63f8edSBenjamin Herrenschmidt them (such as Freescale BookE). 5064e63f8edSBenjamin Herrenschmidt 507e05c0e81SKevin Haochoice 508e05c0e81SKevin Hao prompt "Math emulation options" 509e05c0e81SKevin Hao default MATH_EMULATION_FULL 510e05c0e81SKevin Hao depends on MATH_EMULATION 511e05c0e81SKevin Hao 512e05c0e81SKevin Haoconfig MATH_EMULATION_FULL 513e05c0e81SKevin Hao bool "Emulate all the floating point instructions" 5144f44e8aeSEnrico Weigelt, metux IT consult help 515e05c0e81SKevin Hao Select this option will enable the kernel to support to emulate 516e05c0e81SKevin Hao all the floating point instructions. If your SoC doesn't have 517e05c0e81SKevin Hao a FPU, you should select this. 518e05c0e81SKevin Hao 519e05c0e81SKevin Haoconfig MATH_EMULATION_HW_UNIMPLEMENTED 520e05c0e81SKevin Hao bool "Just emulate the FPU unimplemented instructions" 5214f44e8aeSEnrico Weigelt, metux IT consult help 522e05c0e81SKevin Hao Select this if you know there does have a hardware FPU on your 523e05c0e81SKevin Hao SoC, but some floating point instructions are not implemented by that. 524e05c0e81SKevin Hao 525e05c0e81SKevin Haoendchoice 526e05c0e81SKevin Hao 5273d72bbc4SMichael Neulingconfig PPC_TRANSACTIONAL_MEM 5283d72bbc4SMichael Neuling bool "Transactional Memory support for POWERPC" 5293d72bbc4SMichael Neuling depends on PPC_BOOK3S_64 5303d72bbc4SMichael Neuling depends on SMP 5317b37a123SMichael Neuling select ALTIVEC 5327b37a123SMichael Neuling select VSX 5334f44e8aeSEnrico Weigelt, metux IT consult help 5343d72bbc4SMichael Neuling Support user-mode Transactional Memory on POWERPC. 5353d72bbc4SMichael Neuling 536013a53f2SAnshuman Khandualconfig PPC_UV 537013a53f2SAnshuman Khandual bool "Ultravisor support" 538013a53f2SAnshuman Khandual depends on KVM_BOOK3S_HV_POSSIBLE 539a2db55ddSBharata B Rao depends on DEVICE_PRIVATE 540013a53f2SAnshuman Khandual default n 541013a53f2SAnshuman Khandual help 542013a53f2SAnshuman Khandual This option paravirtualizes the kernel to run in POWER platforms that 543013a53f2SAnshuman Khandual supports the Protected Execution Facility (PEF). On such platforms, 544013a53f2SAnshuman Khandual the ultravisor firmware runs at a privilege level above the 545013a53f2SAnshuman Khandual hypervisor. 546013a53f2SAnshuman Khandual 547013a53f2SAnshuman Khandual If unsure, say "N". 548013a53f2SAnshuman Khandual 549951eedebSNicholas Pigginconfig LD_HEAD_STUB_CATCH 550951eedebSNicholas Piggin bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT 551951eedebSNicholas Piggin depends on PPC64 552951eedebSNicholas Piggin help 553951eedebSNicholas Piggin Very large kernels can cause linker branch stubs to be generated by 554951eedebSNicholas Piggin code in head_64.S, which moves the head text sections out of their 555951eedebSNicholas Piggin specified location. This option can work around the problem. 556951eedebSNicholas Piggin 557951eedebSNicholas Piggin If unsure, say "N". 558951eedebSNicholas Piggin 5598c50b72aSTorsten Duweconfig MPROFILE_KERNEL 560aec0ba74SNicholas Piggin depends on PPC64_ELF_ABI_V2 && FUNCTION_TRACER 561aec0ba74SNicholas Piggin def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -mlittle-endian) if CPU_LITTLE_ENDIAN 562aec0ba74SNicholas Piggin def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -mbig-endian) if CPU_BIG_ENDIAN 5638c50b72aSTorsten Duwe 5640f71dcfbSNaveen N Raoconfig ARCH_USING_PATCHABLE_FUNCTION_ENTRY 5650f71dcfbSNaveen N Rao depends on FUNCTION_TRACER && (PPC32 || PPC64_ELF_ABI_V2) 5660f71dcfbSNaveen N Rao depends on $(cc-option,-fpatchable-function-entry=2) 5670f71dcfbSNaveen N Rao def_bool y if PPC32 5680f71dcfbSNaveen N Rao def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-fpatchable-function-entry.sh $(CC) -mlittle-endian) if PPC64 && CPU_LITTLE_ENDIAN 5690f71dcfbSNaveen N Rao def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-fpatchable-function-entry.sh $(CC) -mbig-endian) if PPC64 && CPU_BIG_ENDIAN 5700f71dcfbSNaveen N Rao 57114cf11afSPaul Mackerrasconfig HOTPLUG_CPU 57214cf11afSPaul Mackerras bool "Support for enabling/disabling CPUs" 57340b31360SStephen Rothwell depends on SMP && (PPC_PSERIES || \ 5742f4f1f81Schenhui zhao PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE) 5754f44e8aeSEnrico Weigelt, metux IT consult help 57614cf11afSPaul Mackerras Say Y here to be able to disable and re-enable individual 57714cf11afSPaul Mackerras CPUs at runtime on SMP machines. 57814cf11afSPaul Mackerras 57914cf11afSPaul Mackerras Say N if you are unsure. 58014cf11afSPaul Mackerras 5810e23347fSRohan McLureconfig INTERRUPT_SANITIZE_REGISTERS 5820e23347fSRohan McLure bool "Clear gprs on interrupt arrival" 5830e23347fSRohan McLure depends on PPC64 && ARCH_HAS_SYSCALL_WRAPPER 5847cd882dfSRohan McLure default PPC_BOOK3E_64 || PPC_PSERIES || PPC_POWERNV 5850e23347fSRohan McLure help 5860e23347fSRohan McLure Reduce the influence of user register state on interrupt handlers and 5870e23347fSRohan McLure syscalls through clearing user state from registers before handling 5880e23347fSRohan McLure the exception. 5890e23347fSRohan McLure 590aa65ff6bSNicholas Pigginconfig PPC_QUEUED_SPINLOCKS 591c9f34013SNicholas Piggin bool "Queued spinlocks" if EXPERT 592aa65ff6bSNicholas Piggin depends on SMP 593c9f34013SNicholas Piggin default PPC_BOOK3S_64 594aa65ff6bSNicholas Piggin help 595aa65ff6bSNicholas Piggin Say Y here to use queued spinlocks which give better scalability and 596aa65ff6bSNicholas Piggin fairness on large SMP and NUMA systems without harming single threaded 597aa65ff6bSNicholas Piggin performance. 598aa65ff6bSNicholas Piggin 59912633e80SNathan Fontenotconfig ARCH_CPU_PROBE_RELEASE 60012633e80SNathan Fontenot def_bool y 60112633e80SNathan Fontenot depends on HOTPLUG_CPU 60212633e80SNathan Fontenot 603f2296a3dSMahesh Salgaonkarconfig PPC64_SUPPORTS_MEMORY_FAILURE 604f2296a3dSMahesh Salgaonkar bool "Add support for memory hwpoison" 605f2296a3dSMahesh Salgaonkar depends on PPC_BOOK3S_64 606f2296a3dSMahesh Salgaonkar default "y" if PPC_POWERNV 607f2296a3dSMahesh Salgaonkar select ARCH_SUPPORTS_MEMORY_FAILURE 608f2296a3dSMahesh Salgaonkar 60980bf3c84SEric DeVolderconfig ARCH_SUPPORTS_KEXEC 61080bf3c84SEric DeVolder def_bool PPC_BOOK3S || PPC_E500 || (44x && !SMP) 61114cf11afSPaul Mackerras 61280bf3c84SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_FILE 613c1ad12eeSArnd Bergmann def_bool PPC64 61414cf11afSPaul Mackerras 615e6265fe7SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_PURGATORY 616c1ad12eeSArnd Bergmann def_bool y 617b799a09fSAKASHI Takahiro 61880bf3c84SEric DeVolderconfig ARCH_SELECTS_KEXEC_FILE 61980bf3c84SEric DeVolder def_bool y 62080bf3c84SEric DeVolder depends on KEXEC_FILE 62180bf3c84SEric DeVolder select KEXEC_ELF 62280bf3c84SEric DeVolder select HAVE_IMA_KEXEC if IMA 62380bf3c84SEric DeVolder 6245017b459SNicholas Pigginconfig PPC64_BIG_ENDIAN_ELF_ABI_V2 6258c5fa3b5SNicholas Piggin # Option is available to BFD, but LLD does not support ELFv1 so this is 6268c5fa3b5SNicholas Piggin # always true there. 6278c5fa3b5SNicholas Piggin prompt "Build big-endian kernel using ELF ABI V2" if LD_IS_BFD && EXPERT 6288c5fa3b5SNicholas Piggin def_bool y 6295017b459SNicholas Piggin depends on PPC64 && CPU_BIG_ENDIAN 6305017b459SNicholas Piggin depends on CC_HAS_ELFV2 6315017b459SNicholas Piggin help 6325017b459SNicholas Piggin This builds the kernel image using the "Power Architecture 64-Bit ELF 6335017b459SNicholas Piggin V2 ABI Specification", which has a reduced stack overhead and faster 6345017b459SNicholas Piggin function calls. This internal kernel ABI option does not affect 6355017b459SNicholas Piggin userspace compatibility. 6365017b459SNicholas Piggin 6375017b459SNicholas Piggin The V2 ABI is standard for 64-bit little-endian, but for big-endian 6385017b459SNicholas Piggin it is less well tested by kernel and toolchain. However some distros 6395017b459SNicholas Piggin build userspace this way, and it can produce a functioning kernel. 6405017b459SNicholas Piggin 6414c91bd6eSKevin Haoconfig RELOCATABLE 6424c91bd6eSKevin Hao bool "Build a relocatable kernel" 643dfc3095cSChristophe Leroy depends on PPC64 || (FLATMEM && (44x || PPC_85xx)) 6444c91bd6eSKevin Hao select NONSTATIC_KERNEL 6454c91bd6eSKevin Hao help 6464c91bd6eSKevin Hao This builds a kernel image that is capable of running at the 6474c91bd6eSKevin Hao location the kernel is loaded at. For ppc32, there is no any 6484c91bd6eSKevin Hao alignment restrictions, and this feature is a superset of 6494c91bd6eSKevin Hao DYNAMIC_MEMSTART and hence overrides it. For ppc64, we should use 6504c91bd6eSKevin Hao 16k-aligned base address. The kernel is linked as a 6514c91bd6eSKevin Hao position-independent executable (PIE) and contains dynamic relocations 6524c91bd6eSKevin Hao which are processed early in the bootup process. 6534c91bd6eSKevin Hao 6544c91bd6eSKevin Hao One use is for the kexec on panic case where the recovery kernel 6554c91bd6eSKevin Hao must live at a different physical address than the primary 6564c91bd6eSKevin Hao kernel. 6574c91bd6eSKevin Hao 6584c91bd6eSKevin Hao Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address 6594c91bd6eSKevin Hao it has been loaded at and the compile time physical addresses 6604c91bd6eSKevin Hao CONFIG_PHYSICAL_START is ignored. However CONFIG_PHYSICAL_START 6614c91bd6eSKevin Hao setting can still be useful to bootwrappers that need to know the 6624c91bd6eSKevin Hao load address of the kernel (eg. u-boot/mkimage). 6634c91bd6eSKevin Hao 6642b0e86ccSJason Yanconfig RANDOMIZE_BASE 6652b0e86ccSJason Yan bool "Randomize the address of the kernel image" 66673d11498SChristophe Leroy depends on PPC_85xx && FLATMEM 6672b0e86ccSJason Yan depends on RELOCATABLE 6682b0e86ccSJason Yan help 6692b0e86ccSJason Yan Randomizes the virtual address at which the kernel image is 6702b0e86ccSJason Yan loaded, as a security feature that deters exploit attempts 6712b0e86ccSJason Yan relying on knowledge of the location of kernel internals. 6722b0e86ccSJason Yan 6732b0e86ccSJason Yan If unsure, say Y. 6742b0e86ccSJason Yan 67570839d20SNicholas Pigginconfig RELOCATABLE_TEST 67670839d20SNicholas Piggin bool "Test relocatable kernel" 67770839d20SNicholas Piggin depends on (PPC64 && RELOCATABLE) 67870839d20SNicholas Piggin help 67970839d20SNicholas Piggin This runs the relocatable kernel at the address it was initially 68070839d20SNicholas Piggin loaded at, which tends to be non-zero and therefore test the 68170839d20SNicholas Piggin relocation code. 68270839d20SNicholas Piggin 68380bf3c84SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP 68480bf3c84SEric DeVolder def_bool PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP) 68580bf3c84SEric DeVolder 68680bf3c84SEric DeVolderconfig ARCH_SELECTS_CRASH_DUMP 68780bf3c84SEric DeVolder def_bool y 68880bf3c84SEric DeVolder depends on CRASH_DUMP 689dfc3095cSChristophe Leroy select RELOCATABLE if PPC64 || 44x || PPC_85xx 690e8625d46SHaren Myneni 691b741092dSSourabh Jainconfig ARCH_SUPPORTS_CRASH_HOTPLUG 692b741092dSSourabh Jain def_bool y 693b741092dSSourabh Jain depends on PPC64 694b741092dSSourabh Jain 695eb39c880SMahesh Salgaonkarconfig FA_DUMP 696eb39c880SMahesh Salgaonkar bool "Firmware-assisted dump" 6975c4233ccSHari Bathini depends on CRASH_DUMP && PPC64 && (PPC_RTAS || PPC_POWERNV) 698242f271cSManish Ahuja help 699eb39c880SMahesh Salgaonkar A robust mechanism to get reliable kernel crash dump with 700eb39c880SMahesh Salgaonkar assistance from firmware. This approach does not use kexec, 70122bd0177SHari Bathini instead firmware assists in booting the capture kernel 702eb39c880SMahesh Salgaonkar while preserving memory contents. Firmware-assisted dump 703eb39c880SMahesh Salgaonkar is meant to be a kdump replacement offering robustness and 704eb39c880SMahesh Salgaonkar speed not possible without system firmware assistance. 705242f271cSManish Ahuja 70641df5928SHari Bathini If unsure, say "y". Only special kernels like petitboot may 70741df5928SHari Bathini need to say "N" here. 708242f271cSManish Ahuja 709bec53196SHari Bathiniconfig PRESERVE_FA_DUMP 710bec53196SHari Bathini bool "Preserve Firmware-assisted dump" 711bec53196SHari Bathini depends on PPC64 && PPC_POWERNV && !FA_DUMP 712bec53196SHari Bathini help 713bec53196SHari Bathini On a kernel with FA_DUMP disabled, this option helps to preserve 714bec53196SHari Bathini crash data from a previously crash'ed kernel. Useful when the next 715bec53196SHari Bathini memory preserving kernel boot would process this crash data. 716bec53196SHari Bathini Petitboot kernel is the typical usecase for this option. 717bec53196SHari Bathini 7186f713d18SHari Bathiniconfig OPAL_CORE 7196f713d18SHari Bathini bool "Export OPAL memory as /sys/firmware/opal/core" 7206f713d18SHari Bathini depends on PPC64 && PPC_POWERNV 7216f713d18SHari Bathini help 7226f713d18SHari Bathini This option uses the MPIPL support in firmware to provide an 7236f713d18SHari Bathini ELF core of OPAL memory after a crash. The ELF core is exported 7246f713d18SHari Bathini as /sys/firmware/opal/core file which is helpful in debugging 7256f713d18SHari Bathini OPAL crashes using GDB. 72614cf11afSPaul Mackerras 72714cf11afSPaul Mackerrasconfig IRQ_ALL_CPUS 72814cf11afSPaul Mackerras bool "Distribute interrupts on all CPUs by default" 7296cf09b9dSPaul Bolle depends on SMP 73014cf11afSPaul Mackerras help 73114cf11afSPaul Mackerras This option gives the kernel permission to distribute IRQs across 73214cf11afSPaul Mackerras multiple CPUs. Saying N here will route all IRQs to the first 73314cf11afSPaul Mackerras CPU. Generally saying Y is safe, although some problems have been 73414cf11afSPaul Mackerras reported with SMP Power Macintoshes with this option enabled. 73514cf11afSPaul Mackerras 736ffa27b6bSAndy Whitcroftconfig NUMA 737bae80c27SMichael Ellerman bool "NUMA Memory Allocation and Scheduler Support" 73825395cd2SMichael Ellerman depends on PPC64 && SMP 7394c28b32bSMichael Ellerman default y if PPC_PSERIES || PPC_POWERNV 7407ecd19cfSKefeng Wang select USE_PERCPU_NUMA_NODE_ID 741bae80c27SMichael Ellerman help 742bae80c27SMichael Ellerman Enable NUMA (Non-Uniform Memory Access) support. 743bae80c27SMichael Ellerman 744bae80c27SMichael Ellerman The kernel will try to allocate memory used by a CPU on the 745bae80c27SMichael Ellerman local memory controller of the CPU and add some more 746bae80c27SMichael Ellerman NUMA awareness to the kernel. 747ffa27b6bSAndy Whitcroft 748c80d79d7SYasunori Gotoconfig NODES_SHIFT 749c80d79d7SYasunori Goto int 750ea55bf29SAnton Blanchard default "8" if PPC64 751c80d79d7SYasunori Goto default "4" 752a9ee6cf5SMike Rapoport depends on NUMA 753c80d79d7SYasunori Goto 75464bb80d8SNishanth Aravamudanconfig HAVE_MEMORYLESS_NODES 75564bb80d8SNishanth Aravamudan def_bool y 75664bb80d8SNishanth Aravamudan depends on NUMA 75764bb80d8SNishanth Aravamudan 75814cf11afSPaul Mackerrasconfig ARCH_SELECT_MEMORY_MODEL 75914cf11afSPaul Mackerras def_bool y 76014cf11afSPaul Mackerras depends on PPC64 76114cf11afSPaul Mackerras 76214cf11afSPaul Mackerrasconfig ARCH_FLATMEM_ENABLE 76314cf11afSPaul Mackerras def_bool y 7649100b205SAndy Whitcroft depends on (PPC64 && !NUMA) || PPC32 76514cf11afSPaul Mackerras 76614cf11afSPaul Mackerrasconfig ARCH_SPARSEMEM_ENABLE 76714cf11afSPaul Mackerras def_bool y 7689100b205SAndy Whitcroft depends on PPC64 769d29eff7bSAndy Whitcroft select SPARSEMEM_VMEMMAP_ENABLE 77045fb6ceaSAnton Blanchard 77145fb6ceaSAnton Blanchardconfig ARCH_SPARSEMEM_DEFAULT 77245fb6ceaSAnton Blanchard def_bool y 7737b3912f4SMichael Ellerman depends on PPC_BOOK3S_64 77414cf11afSPaul Mackerras 775f6853eb5SMichael Ellermanconfig ILLEGAL_POINTER_VALUE 776f6853eb5SMichael Ellerman hex 777f6853eb5SMichael Ellerman # This is roughly half way between the top of user space and the bottom 778f6853eb5SMichael Ellerman # of kernel space, which seems about as good as we can get. 779f6853eb5SMichael Ellerman default 0x5deadbeef0000000 if PPC64 780f6853eb5SMichael Ellerman default 0 781f6853eb5SMichael Ellerman 7827e9191daSMike Kravetzconfig ARCH_MEMORY_PROBE 7837e9191daSMike Kravetz def_bool y 7847e9191daSMike Kravetz depends on MEMORY_HOTPLUG 7857e9191daSMike Kravetz 786ca9153a3SIlya Yanokchoice 787ca9153a3SIlya Yanok prompt "Page size" 788f22969a6SJoel Stanley default PPC_64K_PAGES if PPC_BOOK3S_64 789ca9153a3SIlya Yanok default PPC_4K_PAGES 7903c726f8dSBenjamin Herrenschmidt help 791ca9153a3SIlya Yanok Select the kernel logical page size. Increasing the page size 792ca9153a3SIlya Yanok will reduce software overhead at each page boundary, allow 793ca9153a3SIlya Yanok hardware prefetch mechanisms to be more effective, and allow 794ca9153a3SIlya Yanok larger dma transfers increasing IO efficiency and reducing 795ca9153a3SIlya Yanok overhead. However the utilization of memory will increase. 796ca9153a3SIlya Yanok For example, each cached file will using a multiple of the 797ca9153a3SIlya Yanok page size to hold its contents and the difference between the 798ca9153a3SIlya Yanok end of file and the end of page is wasted. 799ca9153a3SIlya Yanok 800ca9153a3SIlya Yanok Some dedicated systems, such as software raid serving with 801ca9153a3SIlya Yanok accelerated calculations, have shown significant increases. 802ca9153a3SIlya Yanok 803ca9153a3SIlya Yanok If you configure a 64 bit kernel for 64k pages but the 804ca9153a3SIlya Yanok processor does not support them, then the kernel will simulate 805ca9153a3SIlya Yanok them with 4k pages, loading them on demand, but with the 806ca9153a3SIlya Yanok reduced software overhead and larger internal fragmentation. 807ca9153a3SIlya Yanok For the 32 bit kernel, a large page option will not be offered 808ca9153a3SIlya Yanok unless it is supported by the configured processor. 809ca9153a3SIlya Yanok 810ca9153a3SIlya Yanok If unsure, choose 4K_PAGES. 811ca9153a3SIlya Yanok 812ca9153a3SIlya Yanokconfig PPC_4K_PAGES 813ca9153a3SIlya Yanok bool "4k page size" 81419f97c98SAneesh Kumar K.V select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64 815d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_4KB 816ca9153a3SIlya Yanok 817ca9153a3SIlya Yanokconfig PPC_16K_PAGES 81855f8b5b8SMichael Ellerman bool "16k page size" 81955c8fc3fSChristophe Leroy depends on 44x || PPC_8xx 820d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_16KB 821ca9153a3SIlya Yanok 822ca9153a3SIlya Yanokconfig PPC_64K_PAGES 82355f8b5b8SMichael Ellerman bool "64k page size" 824bba43630SMichael Ellerman depends on 44x || PPC_BOOK3S_64 82519f97c98SAneesh Kumar K.V select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64 826d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_64KB 827ca9153a3SIlya Yanok 828e1240122SYuri Tikhonovconfig PPC_256K_PAGES 8294eeef098SChristophe Leroy bool "256k page size (Requires non-standard binutils settings)" 8304eeef098SChristophe Leroy depends on 44x && !PPC_47x 831d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_256KB 832e1240122SYuri Tikhonov help 833e1240122SYuri Tikhonov Make the page size 256k. 834e1240122SYuri Tikhonov 8354eeef098SChristophe Leroy The kernel will only be able to run applications that have been 8364eeef098SChristophe Leroy compiled with '-zmax-page-size' set to 256K (the default is 64K) using 8374eeef098SChristophe Leroy binutils later than 2.17.50.0.3, or by patching the ELF_MAXPAGESIZE 8384eeef098SChristophe Leroy definition from 0x10000 to 0x40000 in older versions. 839e1240122SYuri Tikhonov 840ca9153a3SIlya Yanokendchoice 8413c726f8dSBenjamin Herrenschmidt 84247613407SHamish Martinconfig THREAD_SHIFT 84347613407SHamish Martin int "Thread shift" if EXPERT 84447613407SHamish Martin range 13 15 84547613407SHamish Martin default "15" if PPC_256K_PAGES 84618f14afeSMichael Ellerman default "15" if PPC_PSERIES || PPC_POWERNV 84747613407SHamish Martin default "14" if PPC64 84847613407SHamish Martin default "13" 84947613407SHamish Martin help 85047613407SHamish Martin Used to define the stack size. The default is almost always what you 85147613407SHamish Martin want. Only change this if you know what you are doing. 85247613407SHamish Martin 8530f4a9041SChristophe Leroyconfig DATA_SHIFT_BOOL 854da1adea0SChristophe Leroy bool "Set custom data alignment" 8550f4a9041SChristophe Leroy depends on ADVANCED_OPTIONS 85690cbac0eSChristophe Leroy depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE 85749e3d8eaSChristophe Leroy depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && !STRICT_KERNEL_RWX) || \ 858dfc3095cSChristophe Leroy PPC_85xx 8590f4a9041SChristophe Leroy help 8600f4a9041SChristophe Leroy This option allows you to set the kernel data alignment. When 8610f4a9041SChristophe Leroy RAM is mapped by blocks, the alignment needs to fit the size and 8620f4a9041SChristophe Leroy number of possible blocks. The default should be OK for most configs. 8630f4a9041SChristophe Leroy 8640f4a9041SChristophe Leroy Say N here unless you know what you are doing. 865166d97d9SChristophe Leroy 866166d97d9SChristophe Leroyconfig DATA_SHIFT 8670f4a9041SChristophe Leroy int "Data shift" if DATA_SHIFT_BOOL 868166d97d9SChristophe Leroy default 24 if STRICT_KERNEL_RWX && PPC64 86990cbac0eSChristophe Leroy range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32 87090cbac0eSChristophe Leroy range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx 871dfc3095cSChristophe Leroy range 20 24 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_85xx 87263b2bc61SChristophe Leroy default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32 87390cbac0eSChristophe Leroy default 18 if (DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32 8748f54a6f7SChristophe Leroy default 23 if STRICT_KERNEL_RWX && PPC_8xx 87590cbac0eSChristophe Leroy default 23 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx && PIN_TLB_DATA 87690cbac0eSChristophe Leroy default 19 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx 877dfc3095cSChristophe Leroy default 24 if STRICT_KERNEL_RWX && PPC_85xx 878d3e5bab9SArnd Bergmann default PAGE_SHIFT 8790f4a9041SChristophe Leroy help 8800f4a9041SChristophe Leroy On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO. 8810f4a9041SChristophe Leroy Smaller is the alignment, greater is the number of necessary DBATs. 882166d97d9SChristophe Leroy 8838f54a6f7SChristophe Leroy On 8xx, large pages (512kb or 8M) are used to map kernel linear 8848f54a6f7SChristophe Leroy memory. Aligning to 8M reduces TLB misses as only 8M pages are used 885da1adea0SChristophe Leroy in that case. If PIN_TLB is selected, it must be aligned to 8M as 886da1adea0SChristophe Leroy 8M pages will be pinned. 8878f54a6f7SChristophe Leroy 8880192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER 8896fc54303SMike Rapoport (IBM) int "Order of maximal physically contiguous allocations" 890358e526aSMichael Ellerman range 7 8 if PPC64 && PPC_64K_PAGES 89123baf831SKirill A. Shutemov default "8" if PPC64 && PPC_64K_PAGES 892358e526aSMichael Ellerman range 12 12 if PPC64 && !PPC_64K_PAGES 89323baf831SKirill A. Shutemov default "12" if PPC64 && !PPC_64K_PAGES 894358e526aSMichael Ellerman range 8 10 if PPC32 && PPC_16K_PAGES 89523baf831SKirill A. Shutemov default "8" if PPC32 && PPC_16K_PAGES 896358e526aSMichael Ellerman range 6 10 if PPC32 && PPC_64K_PAGES 89723baf831SKirill A. Shutemov default "6" if PPC32 && PPC_64K_PAGES 898358e526aSMichael Ellerman range 4 10 if PPC32 && PPC_256K_PAGES 89923baf831SKirill A. Shutemov default "4" if PPC32 && PPC_256K_PAGES 900ff9e8f41SMichael Ellerman range 10 12 90123baf831SKirill A. Shutemov default "10" 90253bcddb9SStephen Rothwell help 9036fc54303SMike Rapoport (IBM) The kernel page allocator limits the size of maximal physically 9045e0a760bSKirill A. Shutemov contiguous allocations. The limit is called MAX_PAGE_ORDER and it 9056fc54303SMike Rapoport (IBM) defines the maximal power of two of number of pages that can be 9066fc54303SMike Rapoport (IBM) allocated as a single contiguous block. This option allows 9076fc54303SMike Rapoport (IBM) overriding the default setting when ability to allocate very 9086fc54303SMike Rapoport (IBM) large blocks of physically contiguous memory is required. 90953bcddb9SStephen Rothwell 91053bcddb9SStephen Rothwell The page size is not necessarily 4KB. For example, on 64-bit 91153bcddb9SStephen Rothwell systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep 91253bcddb9SStephen Rothwell this in mind when choosing a value for this option. 91353bcddb9SStephen Rothwell 9146fc54303SMike Rapoport (IBM) Don't change if unsure. 9156fc54303SMike Rapoport (IBM) 916fa28237cSPaul Mackerrasconfig PPC_SUBPAGE_PROT 91763396adaSNicholas Piggin bool "Support setting protections for 4k subpages (subpage_prot syscall)" 91863396adaSNicholas Piggin default n 919c2857374SNicholas Piggin depends on PPC_64S_HASH_MMU && PPC_64K_PAGES 920fa28237cSPaul Mackerras help 92163396adaSNicholas Piggin This option adds support for system call to allow user programs 922fa28237cSPaul Mackerras to set access permissions (read/write, readonly, or no access) 923fa28237cSPaul Mackerras on the 4k subpages of each 64k page. 924fa28237cSPaul Mackerras 92563396adaSNicholas Piggin If unsure, say N here. 92663396adaSNicholas Piggin 9279b725a90SShawn Anastasioconfig PPC_PROT_SAO_LPAR 9289b725a90SShawn Anastasio bool "Support PROT_SAO mappings in LPARs" 9299b725a90SShawn Anastasio depends on PPC_BOOK3S_64 9309b725a90SShawn Anastasio help 9319b725a90SShawn Anastasio This option adds support for PROT_SAO mappings from userspace 9329b725a90SShawn Anastasio inside LPARs on supported CPUs. 9339b725a90SShawn Anastasio 9349b725a90SShawn Anastasio This may cause issues when performing guest migration from 9359b725a90SShawn Anastasio a CPU that supports SAO to one that does not. 9369b725a90SShawn Anastasio 9379b725a90SShawn Anastasio If unsure, say N here. 9389b725a90SShawn Anastasio 939e83d0169SIan Munsieconfig PPC_COPRO_BASE 940e83d0169SIan Munsie bool 941e83d0169SIan Munsie 94214cf11afSPaul Mackerrasconfig SCHED_SMT 94314cf11afSPaul Mackerras bool "SMT (Hyperthreading) scheduler support" 94414cf11afSPaul Mackerras depends on PPC64 && SMP 94514cf11afSPaul Mackerras help 94614cf11afSPaul Mackerras SMT scheduler support improves the CPU scheduler's decision making 94714cf11afSPaul Mackerras when dealing with POWER5 cpus at a cost of slightly increased 94814cf11afSPaul Mackerras overhead in some places. If unsure say N here. 94914cf11afSPaul Mackerras 950b92a66a6SMichael Neulingconfig PPC_DENORMALISATION 951b92a66a6SMichael Neuling bool "PowerPC denormalisation exception handling" 952b92a66a6SMichael Neuling depends on PPC_BOOK3S_64 9534e90a2a7SAnton Blanchard default "y" if PPC_POWERNV 9544f44e8aeSEnrico Weigelt, metux IT consult help 955b92a66a6SMichael Neuling Add support for handling denormalisation of single precision 956b92a66a6SMichael Neuling values. Useful for bare metal only. If unsure say Y here. 957b92a66a6SMichael Neuling 95814cf11afSPaul Mackerrasconfig CMDLINE 959f134a7ceSChris Packham string "Initial kernel command string" 960cbe46bd4SChristophe Leroy default "" 96114cf11afSPaul Mackerras help 96214cf11afSPaul Mackerras On some platforms, there is currently no way for the boot loader to 96314cf11afSPaul Mackerras pass arguments to the kernel. For these platforms, you can supply 96414cf11afSPaul Mackerras some command-line options at build time by entering them here. In 96514cf11afSPaul Mackerras most cases you will need to specify the root device here. 96614cf11afSPaul Mackerras 967d79fbb3aSChris Packhamchoice 968d79fbb3aSChris Packham prompt "Kernel command line type" if CMDLINE != "" 969d79fbb3aSChris Packham default CMDLINE_FROM_BOOTLOADER 970d79fbb3aSChris Packham 971d79fbb3aSChris Packhamconfig CMDLINE_FROM_BOOTLOADER 972d79fbb3aSChris Packham bool "Use bootloader kernel arguments if available" 973d79fbb3aSChris Packham help 974d79fbb3aSChris Packham Uses the command-line options passed by the boot loader. If 975d79fbb3aSChris Packham the boot loader doesn't provide any, the default kernel command 976d79fbb3aSChris Packham string provided in CMDLINE will be used. 977d79fbb3aSChris Packham 978d79fbb3aSChris Packhamconfig CMDLINE_EXTEND 979d79fbb3aSChris Packham bool "Extend bootloader kernel arguments" 980d79fbb3aSChris Packham help 981d79fbb3aSChris Packham The command-line arguments provided by the boot loader will be 982d79fbb3aSChris Packham appended to the default kernel command string. 983d79fbb3aSChris Packham 984eb3b80f6SSebastian Siewiorconfig CMDLINE_FORCE 985eb3b80f6SSebastian Siewior bool "Always use the default kernel command string" 986eb3b80f6SSebastian Siewior help 987eb3b80f6SSebastian Siewior Always use the default kernel command string, even if the boot 988eb3b80f6SSebastian Siewior loader passes other arguments to the kernel. 989eb3b80f6SSebastian Siewior This is useful if you cannot or don't want to change the 990eb3b80f6SSebastian Siewior command-line options your boot loader passes to the kernel. 991eb3b80f6SSebastian Siewior 992d79fbb3aSChris Packhamendchoice 993d79fbb3aSChris Packham 994c356aa45SGrant Likelyconfig EXTRA_TARGETS 995c356aa45SGrant Likely string "Additional default image types" 996c356aa45SGrant Likely help 997c356aa45SGrant Likely List additional targets to be built by the bootwrapper here (separated 998c356aa45SGrant Likely by spaces). This is useful for targets that depend of device tree 999c356aa45SGrant Likely files in the .dts directory. 1000c356aa45SGrant Likely 1001c356aa45SGrant Likely Targets in this list will be build as part of the default build 1002c356aa45SGrant Likely target, or when the user does a 'make zImage' or a 1003c356aa45SGrant Likely 'make zImage.initrd'. 1004c356aa45SGrant Likely 1005c356aa45SGrant Likely If unsure, leave blank 1006c356aa45SGrant Likely 1007b28f5081SJohannes Bergconfig ARCH_WANTS_FREEZER_CONTROL 1008b28f5081SJohannes Berg def_bool y 1009b28f5081SJohannes Berg depends on ADB_PMU 1010b28f5081SJohannes Berg 10118636a1f9SMasahiro Yamadasource "kernel/power/Kconfig" 101214cf11afSPaul Mackerras 101392e3da3cSRam Paiconfig PPC_MEM_KEYS 101492e3da3cSRam Pai prompt "PowerPC Memory Protection Keys" 101592e3da3cSRam Pai def_bool y 101692e3da3cSRam Pai depends on PPC_BOOK3S_64 1017c2857374SNicholas Piggin depends on PPC_64S_HASH_MMU 101892e3da3cSRam Pai select ARCH_USES_HIGH_VMA_FLAGS 101992e3da3cSRam Pai select ARCH_HAS_PKEYS 102092e3da3cSRam Pai help 102192e3da3cSRam Pai Memory Protection Keys provides a mechanism for enforcing 102292e3da3cSRam Pai page-based protections, but without requiring modification of the 102392e3da3cSRam Pai page tables when an application changes protection domains. 102492e3da3cSRam Pai 10251eecbcdcSMauro Carvalho Chehab For details, see Documentation/core-api/protection-keys.rst 102692e3da3cSRam Pai 102792e3da3cSRam Pai If unsure, say y. 102892e3da3cSRam Pai 10291a8916eeSNayna Jainconfig PPC_SECURE_BOOT 10301a8916eeSNayna Jain prompt "Enable secure boot support" 10311a8916eeSNayna Jain bool 10325c5e46daSDaniel Axtens depends on PPC_POWERNV || PPC_PSERIES 10334238fad3SNayna Jain depends on IMA_ARCH_POLICY 10349e2b4be3SNayna Jain imply IMA_SECURE_AND_OR_TRUSTED_BOOT 103546b2cbebSAndrew Donnellan select PSERIES_PLPKS if PPC_PSERIES 10361a8916eeSNayna Jain help 10371a8916eeSNayna Jain Systems with firmware secure boot enabled need to define security 10381a8916eeSNayna Jain policies to extend secure boot to the OS. This config allows a user 10391a8916eeSNayna Jain to enable OS secure boot on systems that have firmware support for 10401a8916eeSNayna Jain it. If in doubt say N. 10411a8916eeSNayna Jain 1042bd5d9c74SNayna Jainconfig PPC_SECVAR_SYSFS 1043bd5d9c74SNayna Jain bool "Enable sysfs interface for POWER secure variables" 1044bd5d9c74SNayna Jain default y 1045bd5d9c74SNayna Jain depends on PPC_SECURE_BOOT 1046bd5d9c74SNayna Jain depends on SYSFS 1047bd5d9c74SNayna Jain help 1048bd5d9c74SNayna Jain POWER secure variables are managed and controlled by firmware. 1049bd5d9c74SNayna Jain These variables are exposed to userspace via sysfs to enable 1050bd5d9c74SNayna Jain read/write operations on these variables. Say Y if you have 1051bd5d9c74SNayna Jain secure boot enabled and want to expose variables to userspace. 1052bd5d9c74SNayna Jain 105314cf11afSPaul Mackerrasendmenu 105414cf11afSPaul Mackerras 105514cf11afSPaul Mackerrasconfig ISA_DMA_API 105614cf11afSPaul Mackerras bool 10573d066d77SStephen Rothwell default PCI 105814cf11afSPaul Mackerras 105914cf11afSPaul Mackerrasmenu "Bus options" 106014cf11afSPaul Mackerras 106114cf11afSPaul Mackerrasconfig ISA 106214cf11afSPaul Mackerras bool "Support for ISA-bus hardware" 1063933ee711SPaul Bolle depends on PPC_CHRP 1064f9bd170aSPaul Mackerras select PPC_I8259 106514cf11afSPaul Mackerras help 106614cf11afSPaul Mackerras Find out whether you have ISA slots on your motherboard. ISA is the 106714cf11afSPaul Mackerras name of a bus system, i.e. the way the CPU talks to the other stuff 106814cf11afSPaul Mackerras inside your box. If you have an Apple machine, say N here; if you 1069933ee711SPaul Bolle have an IBM RS/6000 or pSeries machine, say Y. If you have an 1070933ee711SPaul Bolle embedded board, consult your board documentation. 107114cf11afSPaul Mackerras 107214cf11afSPaul Mackerrasconfig GENERIC_ISA_DMA 107314cf11afSPaul Mackerras bool 10741927445aSAnton Vorontsov depends on ISA_DMA_API 107514cf11afSPaul Mackerras default y 107614cf11afSPaul Mackerras 107725635c71SPaul Mackerrasconfig PPC_INDIRECT_PCI 107825635c71SPaul Mackerras bool 107925635c71SPaul Mackerras depends on PCI 108063dafe57SBecky Bruce default y if 40x || 44x 108125635c71SPaul Mackerras 108214cf11afSPaul Mackerrasconfig SBUS 108314cf11afSPaul Mackerras bool 108414cf11afSPaul Mackerras 108508264cbcSKumar Galaconfig FSL_SOC 108608264cbcSKumar Gala bool 108708264cbcSKumar Gala 108855c44991SRoy Zangconfig FSL_PCI 108955c44991SRoy Zang bool 109011ddce15SChristoph Hellwig select ARCH_HAS_DMA_SET_MASK 109155c44991SRoy Zang select PPC_INDIRECT_PCI 1092d0839118SKumar Gala select PCI_QUIRKS 109355c44991SRoy Zang 10944ffd6952SAnton Vorontsovconfig FSL_PMC 10954ffd6952SAnton Vorontsov bool 10964ffd6952SAnton Vorontsov default y 10974ffd6952SAnton Vorontsov depends on SUSPEND && (PPC_85xx || PPC_86xx) 10984ffd6952SAnton Vorontsov help 10994ffd6952SAnton Vorontsov Freescale MPC85xx/MPC86xx power management controller support 11004ffd6952SAnton Vorontsov (suspend/resume). For MPC83xx see platforms/83xx/suspend.c 11014ffd6952SAnton Vorontsov 1102d164f6d4SVictor Gallardoconfig PPC4xx_CPM 1103d164f6d4SVictor Gallardo bool 1104d164f6d4SVictor Gallardo default y 1105d164f6d4SVictor Gallardo depends on SUSPEND && (44x || 40x) 1106d164f6d4SVictor Gallardo help 1107d164f6d4SVictor Gallardo PPC4xx Clock Power Management (CPM) support (suspend/resume). 1108d164f6d4SVictor Gallardo It also enables support for two different idle states (idle-wait 1109d164f6d4SVictor Gallardo and idle-doze). 1110d164f6d4SVictor Gallardo 11112a706919SStefan Roeseconfig 4xx_SOC 11122a706919SStefan Roese bool 11132a706919SStefan Roese 1114acaa7aa3SAnton Vorontsovconfig FSL_LBC 11153ab8f2a2SRoy Zang bool "Freescale Local Bus support" 1116acaa7aa3SAnton Vorontsov help 11173ab8f2a2SRoy Zang Enables reporting of errors from the Freescale local bus 11183ab8f2a2SRoy Zang controller. Also contains some common code used by 11193ab8f2a2SRoy Zang drivers for specific local bus peripherals. 1120acaa7aa3SAnton Vorontsov 112183ff9dcfSAnton Vorontsovconfig FSL_GTM 112283ff9dcfSAnton Vorontsov bool 112383ff9dcfSAnton Vorontsov depends on PPC_83xx || QUICC_ENGINE || CPM2 112483ff9dcfSAnton Vorontsov help 112583ff9dcfSAnton Vorontsov Freescale General-purpose Timers support 112683ff9dcfSAnton Vorontsov 1127388b78adSAlexandre Bounineconfig FSL_RIO 1128388b78adSAlexandre Bounine bool "Freescale Embedded SRIO Controller support" 11291753d50cSChristoph Hellwig depends on RAPIDIO = y && HAVE_RAPIDIO 1130388b78adSAlexandre Bounine default "n" 11314f44e8aeSEnrico Weigelt, metux IT consult help 1132388b78adSAlexandre Bounine Include support for RapidIO controller on Freescale embedded 1133388b78adSAlexandre Bounine processors (MPC8548, MPC8641, etc). 1134388b78adSAlexandre Bounine 113514cf11afSPaul Mackerrasendmenu 113614cf11afSPaul Mackerras 11370f890c8dSSuzuki Pouloseconfig NONSTATIC_KERNEL 11380f890c8dSSuzuki Poulose bool 11390f890c8dSSuzuki Poulose 114014cf11afSPaul Mackerrasmenu "Advanced setup" 114114cf11afSPaul Mackerras depends on PPC32 114214cf11afSPaul Mackerras 114314cf11afSPaul Mackerrasconfig ADVANCED_OPTIONS 114414cf11afSPaul Mackerras bool "Prompt for advanced kernel configuration options" 114514cf11afSPaul Mackerras help 114614cf11afSPaul Mackerras This option will enable prompting for a variety of advanced kernel 114714cf11afSPaul Mackerras configuration options. These options can cause the kernel to not 114814cf11afSPaul Mackerras work if they are set incorrectly, but can be used to optimize certain 114914cf11afSPaul Mackerras aspects of kernel memory management. 115014cf11afSPaul Mackerras 115114cf11afSPaul Mackerras Unless you know what you are doing, say N here. 115214cf11afSPaul Mackerras 115314cf11afSPaul Mackerrascomment "Default settings for advanced configuration options are used" 115414cf11afSPaul Mackerras depends on !ADVANCED_OPTIONS 115514cf11afSPaul Mackerras 115614cf11afSPaul Mackerrasconfig LOWMEM_SIZE_BOOL 115714cf11afSPaul Mackerras bool "Set maximum low memory" 115814cf11afSPaul Mackerras depends on ADVANCED_OPTIONS 115914cf11afSPaul Mackerras help 116014cf11afSPaul Mackerras This option allows you to set the maximum amount of memory which 116114cf11afSPaul Mackerras will be used as "low memory", that is, memory which the kernel can 116214cf11afSPaul Mackerras access directly, without having to set up a kernel virtual mapping. 116314cf11afSPaul Mackerras This can be useful in optimizing the layout of kernel virtual 116414cf11afSPaul Mackerras memory. 116514cf11afSPaul Mackerras 116614cf11afSPaul Mackerras Say N here unless you know what you are doing. 116714cf11afSPaul Mackerras 116814cf11afSPaul Mackerrasconfig LOWMEM_SIZE 116914cf11afSPaul Mackerras hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL 117014cf11afSPaul Mackerras default "0x30000000" 117114cf11afSPaul Mackerras 117296051465STrent Piephoconfig LOWMEM_CAM_NUM_BOOL 117396051465STrent Piepho bool "Set number of CAMs to use to map low memory" 1174dfc3095cSChristophe Leroy depends on ADVANCED_OPTIONS && PPC_85xx 117596051465STrent Piepho help 117696051465STrent Piepho This option allows you to set the maximum number of CAM slots that 117796051465STrent Piepho will be used to map low memory. There are a limited number of slots 117896051465STrent Piepho available and even more limited number that will fit in the L1 MMU. 117996051465STrent Piepho However, using more entries will allow mapping more low memory. This 118096051465STrent Piepho can be useful in optimizing the layout of kernel virtual memory. 118196051465STrent Piepho 118296051465STrent Piepho Say N here unless you know what you are doing. 118396051465STrent Piepho 118496051465STrent Piephoconfig LOWMEM_CAM_NUM 1185dfc3095cSChristophe Leroy depends on PPC_85xx 118696051465STrent Piepho int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL 118749e3d8eaSChristophe Leroy default 3 if !STRICT_KERNEL_RWX 118849e3d8eaSChristophe Leroy default 9 if DATA_SHIFT >= 24 118949e3d8eaSChristophe Leroy default 12 if DATA_SHIFT >= 22 119049e3d8eaSChristophe Leroy default 15 119196051465STrent Piepho 11920f890c8dSSuzuki Pouloseconfig DYNAMIC_MEMSTART 1193642e56ffSKees Cook bool "Enable page aligned dynamic load address for kernel" 1194dfc3095cSChristophe Leroy depends on ADVANCED_OPTIONS && FLATMEM && (PPC_85xx || 44x) 11950f890c8dSSuzuki Poulose select NONSTATIC_KERNEL 119637dd2badSKumar Gala help 11970f890c8dSSuzuki Poulose This option enables the kernel to be loaded at any page aligned 11980f890c8dSSuzuki Poulose physical address. The kernel creates a mapping from KERNELBASE to 11990f890c8dSSuzuki Poulose the address where the kernel is loaded. The page size here implies 12000f890c8dSSuzuki Poulose the TLB page size of the mapping for kernel on the particular platform. 12010f890c8dSSuzuki Poulose Please refer to the init code for finding the TLB page size. 120237dd2badSKumar Gala 12030f890c8dSSuzuki Poulose DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE 12040f890c8dSSuzuki Poulose kernel image, where the only restriction is the page aligned kernel 12050f890c8dSSuzuki Poulose load address. When this option is enabled, the compile time physical 12060f890c8dSSuzuki Poulose address CONFIG_PHYSICAL_START is ignored. 120737dd2badSKumar Gala 12089c5f7d39SSuzuki Poulose This option is overridden by CONFIG_RELOCATABLE 12099c5f7d39SSuzuki Poulose 121037dd2badSKumar Galaconfig PAGE_OFFSET_BOOL 121137dd2badSKumar Gala bool "Set custom page offset address" 121237dd2badSKumar Gala depends on ADVANCED_OPTIONS 121337dd2badSKumar Gala help 121437dd2badSKumar Gala This option allows you to set the kernel virtual address at which 121537dd2badSKumar Gala the kernel will map low memory. This can be useful in optimizing 121637dd2badSKumar Gala the virtual memory layout of the system. 121737dd2badSKumar Gala 121837dd2badSKumar Gala Say N here unless you know what you are doing. 121937dd2badSKumar Gala 122037dd2badSKumar Galaconfig PAGE_OFFSET 122137dd2badSKumar Gala hex "Virtual address of memory base" if PAGE_OFFSET_BOOL 122237dd2badSKumar Gala default "0xc0000000" 122337dd2badSKumar Gala 122414cf11afSPaul Mackerrasconfig KERNEL_START_BOOL 122514cf11afSPaul Mackerras bool "Set custom kernel base address" 122614cf11afSPaul Mackerras depends on ADVANCED_OPTIONS 122714cf11afSPaul Mackerras help 122814cf11afSPaul Mackerras This option allows you to set the kernel virtual address at which 122937dd2badSKumar Gala the kernel will be loaded. Normally this should match PAGE_OFFSET 123037dd2badSKumar Gala however there are times (like kdump) that one might not want them 123137dd2badSKumar Gala to be the same. 123214cf11afSPaul Mackerras 123314cf11afSPaul Mackerras Say N here unless you know what you are doing. 123414cf11afSPaul Mackerras 123514cf11afSPaul Mackerrasconfig KERNEL_START 123614cf11afSPaul Mackerras hex "Virtual address of kernel base" if KERNEL_START_BOOL 123737dd2badSKumar Gala default PAGE_OFFSET if PAGE_OFFSET_BOOL 12380f890c8dSSuzuki Poulose default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL 123914cf11afSPaul Mackerras default "0xc0000000" 124014cf11afSPaul Mackerras 124137dd2badSKumar Galaconfig PHYSICAL_START_BOOL 124237dd2badSKumar Gala bool "Set physical address where the kernel is loaded" 1243dfc3095cSChristophe Leroy depends on ADVANCED_OPTIONS && FLATMEM && PPC_85xx 124437dd2badSKumar Gala help 124537dd2badSKumar Gala This gives the physical address where the kernel is loaded. 124637dd2badSKumar Gala 124737dd2badSKumar Gala Say N here unless you know what you are doing. 124837dd2badSKumar Gala 124937dd2badSKumar Galaconfig PHYSICAL_START 125037dd2badSKumar Gala hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL 125126598f28SChristophe Leroy default "0x02000000" if PPC_BOOK3S && CRASH_DUMP && !NONSTATIC_KERNEL 125237dd2badSKumar Gala default "0x00000000" 125337dd2badSKumar Gala 125437dd2badSKumar Galaconfig PHYSICAL_ALIGN 125537dd2badSKumar Gala hex 1256dfc3095cSChristophe Leroy default "0x04000000" if PPC_85xx 125737dd2badSKumar Gala help 125837dd2badSKumar Gala This value puts the alignment restrictions on physical address 125937dd2badSKumar Gala where kernel is loaded and run from. Kernel is compiled for an 126037dd2badSKumar Gala address which meets above alignment restriction. 126137dd2badSKumar Gala 126214cf11afSPaul Mackerrasconfig TASK_SIZE_BOOL 126314cf11afSPaul Mackerras bool "Set custom user task size" 126414cf11afSPaul Mackerras depends on ADVANCED_OPTIONS 126514cf11afSPaul Mackerras help 126614cf11afSPaul Mackerras This option allows you to set the amount of virtual address space 126714cf11afSPaul Mackerras allocated to user tasks. This can be useful in optimizing the 126814cf11afSPaul Mackerras virtual memory layout of the system. 126914cf11afSPaul Mackerras 127014cf11afSPaul Mackerras Say N here unless you know what you are doing. 127114cf11afSPaul Mackerras 127214cf11afSPaul Mackerrasconfig TASK_SIZE 127314cf11afSPaul Mackerras hex "Size of user task space" if TASK_SIZE_BOOL 1274933ee711SPaul Bolle default "0x80000000" if PPC_8xx 127580edc68eSChristophe Leroy default "0xb0000000" if PPC_BOOK3S_32 12764d9e5510SKumar Gala default "0xc0000000" 127714cf11afSPaul Mackerrasendmenu 127814cf11afSPaul Mackerras 1279cabb5587SStephen Rothwellif PPC64 1280bdbc29c1SPaul Mackerras# This value must have zeroes in the bottom 60 bits otherwise lots will break 128137dd2badSKumar Galaconfig PAGE_OFFSET 1282cabb5587SStephen Rothwell hex 1283eeb2d218SStephen Rothwell default "0xc000000000000000" 128437dd2badSKumar Galaconfig KERNEL_START 128537dd2badSKumar Gala hex 128637dd2badSKumar Gala default "0xc000000000000000" 128737dd2badSKumar Galaconfig PHYSICAL_START 128837dd2badSKumar Gala hex 128937dd2badSKumar Gala default "0x00000000" 1290cabb5587SStephen Rothwellendif 1291cabb5587SStephen Rothwell 12921088a209SSylvain Munautconfig PPC_LIB_RHEAP 12931088a209SSylvain Munaut bool 12941088a209SSylvain Munaut 1295bbf45ba5SHollis Blanchardsource "arch/powerpc/kvm/Kconfig" 129685baa095SMichael Ellerman 129785baa095SMichael Ellermansource "kernel/livepatch/Kconfig" 1298