CONFIG_CC_HAS_ELFV2
CONFIG_CC_HAS_PREFIXED
CONFIG_CC_HAS_PCREL
CONFIG_32BIT
CONFIG_64BIT
CONFIG_LIVEPATCH_64
- Depends on
LIVEPATCH
CONFIG_MMU
CONFIG_ARCH_MMAP_RND_BITS_MAX
CONFIG_ARCH_MMAP_RND_BITS_MIN
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN
CONFIG_NR_IRQS Number of virtual interrupt numbers
This defines the number of virtual interrupt numbers the kernel can manage. Virtual interrupt numbers are what you see in /proc/interrupts. If you configure your system to have too few, drivers will fail to load or worse - handle with care.
- Range
32 1048576
CONFIG_NMI_IPI
- Depends on
&& (DEBUGGER || KEXEC_CORE || HARDLOCKUP_DETECTOR)
CONFIG_PPC_WATCHDOG
This is a placeholder when the powerpc hardlockup detector watchdog is selected (arch/powerpc/kernel/watchdog.c). It is selected via the generic lockup detector menu which is why we have no standalone config option for it here.
- Depends on
HARDLOCKUP_DETECTOR_ARCH
CONFIG_STACKTRACE_SUPPORT
CONFIG_LOCKDEP_SUPPORT
CONFIG_GENERIC_LOCKBREAK
- Depends on
&& PREEMPTION && !PPC_QUEUED_SPINLOCKS
CONFIG_GENERIC_HWEIGHT
CONFIG_PPC
- Selects
ARCH_32BIT_OFF_T if PPC32 - Selects
ARCH_NEEDS_DEFER_KASAN if PPC_RADIX_MMU - Selects
ARCH_DISABLE_KASAN_INLINE if PPC_RADIX_MMU - Selects
ARCH_DMA_DEFAULT_COHERENT if !NOT_COHERENT_CACHE - Selects
ARCH_ENABLE_MEMORY_HOTPLUG - Selects
ARCH_HAS_COPY_MC if PPC64 - Selects
ARCH_HAS_CURRENT_STACK_POINTER - Selects
ARCH_HAS_DEBUG_VIRTUAL - Selects
ARCH_HAS_DEBUG_VM_PGTABLE - Selects
ARCH_HAS_CHECK_WX if STRICT_KERNEL_RWX - Selects
ARCH_HAS_DEVMEM_IS_ALLOWED - Selects
ARCH_HAS_DMA_MAP_DIRECT if PPC_PSERIES - Selects
ARCH_HAS_DMA_OPS if PPC64 - Selects
ARCH_HAS_FORTIFY_SOURCE - Selects
ARCH_HAS_GCOV_PROFILE_ALL - Selects
ARCH_HAS_GIGANTIC_PAGE if ARCH_SUPPORTS_HUGETLBFS - Selects
ARCH_HAS_KCOV - Selects
ARCH_HAS_KERNEL_FPU_SUPPORT if PPC64 && PPC_FPU - Selects
ARCH_HAS_MEMBARRIER_CALLBACKS - Selects
ARCH_HAS_MEMBARRIER_SYNC_CORE - Selects
ARCH_HAS_MEMREMAP_COMPAT_ALIGN if PPC_64S_HASH_MMU - Selects
ARCH_HAS_MMIOWB if PPC64 - Selects
ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE - Selects
ARCH_HAS_PHYS_TO_DMA - Selects
ARCH_HAS_PMEM_API - Selects
ARCH_HAS_PREEMPT_LAZY - Selects
ARCH_HAS_PTDUMP - Selects
ARCH_HAS_PTE_SPECIAL - Selects
ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64 - Selects
ARCH_HAS_SET_MEMORY - Selects
ARCH_HAS_STRICT_KERNEL_RWX if (PPC_BOOK3S || PPC_8xx) && !HIBERNATION - Selects
ARCH_HAS_STRICT_KERNEL_RWX if PPC_85xx && !HIBERNATION && ! - Selects
ARCH_HAS_STRICT_MODULE_RWX if ARCH_HAS_STRICT_KERNEL_RWX - Selects
ARCH_HAS_SYSCALL_WRAPPER if !SPU_BASE && ! - Selects
ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST - Selects
ARCH_HAS_UACCESS_FLUSHCACHE - Selects
ARCH_HAS_UBSAN - Selects
ARCH_HAS_VDSO_ARCH_DATA - Selects
ARCH_HAVE_NMI_SAFE_CMPXCHG - Selects
ARCH_KEEP_MEMBLOCK - Selects
ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE if PPC_RADIX_MMU - Selects
ARCH_MIGHT_HAVE_PC_PARPORT - Selects
ARCH_MIGHT_HAVE_PC_SERIO - Selects
ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX - Selects
ARCH_OPTIONAL_KERNEL_RWX_DEFAULT - Selects
ARCH_SPLIT_ARG64 if PPC32 - Selects
ARCH_STACKWALK - Selects
ARCH_SUPPORTS_ATOMIC_RMW - Selects
ARCH_SUPPORTS_DEBUG_PAGEALLOC if PPC_BOOK3S || PPC_8xx - Selects
ARCH_SUPPORTS_HUGE_PFNMAP if PPC_BOOK3S_64 && TRANSPARENT_HUGEPAGE - Selects
ARCH_SUPPORTS_PAGE_TABLE_CHECK if !HUGETLB_PAGE - Selects
ARCH_SUPPORTS_SCHED_MC if - Selects
ARCH_SUPPORTS_SCHED_SMT if PPC64 && - Selects
if ARCH_SUPPORTS_SCHED_MC - Selects
ARCH_USE_BUILTIN_BSWAP - Selects
ARCH_USE_CMPXCHG_LOCKREF if PPC64 - Selects
ARCH_USE_MEMTEST - Selects
ARCH_USE_QUEUED_RWLOCKS if PPC_QUEUED_SPINLOCKS - Selects
ARCH_WANT_DEFAULT_BPF_JIT - Selects
ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT - Selects
ARCH_WANT_IPC_PARSE_VERSION - Selects
ARCH_WANT_IRQS_OFF_ACTIVATE_MM - Selects
ARCH_WANT_LD_ORPHAN_WARN - Selects
ARCH_WANT_OPTIMIZE_DAX_VMEMMAP if PPC_RADIX_MMU - Selects
ARCH_WANTS_MODULES_DATA_IN_VMALLOC if PPC_BOOK3S_32 || PPC_8xx - Selects
ARCH_WEAK_RELEASE_ACQUIRE - Selects
AUDIT_ARCH_COMPAT_GENERIC - Selects
BINFMT_ELF - Selects
BUILDTIME_TABLE_SORT - Selects
CLONE_BACKWARDS - Selects
CPUMASK_OFFSTACK if >= 8192 - Selects
DCACHE_WORD_ACCESS if PPC64 && - Selects
DMA_OPS_BYPASS if PPC64 - Selects
DYNAMIC_FTRACE if FUNCTION_TRACER - Selects
EDAC_ATOMIC_SCRUB - Selects
EDAC_SUPPORT - Selects
FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if ARCH_USING_PATCHABLE_FUNCTION_ENTRY - Selects
FUNCTION_ALIGNMENT_4B - Selects
GENERIC_ATOMIC64 if PPC32 - Selects
GENERIC_CLOCKEVENTS_BROADCAST if - Selects
GENERIC_CMOS_UPDATE - Selects
GENERIC_CPU_AUTOPROBE - Selects
GENERIC_CPU_VULNERABILITIES if PPC_BARRIER_NOSPEC - Selects
GENERIC_EARLY_IOREMAP - Selects
GENERIC_ENTRY - Selects
GENERIC_GETTIMEOFDAY - Selects
GENERIC_IDLE_POLL_SETUP - Selects
GENERIC_IOREMAP - Selects
GENERIC_IRQ_SHOW - Selects
GENERIC_IRQ_SHOW_LEVEL - Selects
GENERIC_PCI_IOMAP if PCI - Selects
GENERIC_SMP_IDLE_THREAD - Selects
HAS_IOPORT if PCI - Selects
HAVE_ARCH_AUDITSYSCALL - Selects
HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP - Selects
HAVE_ARCH_HUGE_VMAP if PPC_RADIX_MMU || PPC_8xx - Selects
HAVE_ARCH_JUMP_LABEL - Selects
HAVE_ARCH_JUMP_LABEL_RELATIVE - Selects
HAVE_ARCH_KASAN if PPC32 && PAGE_SHIFT <= 14 - Selects
HAVE_ARCH_KASAN if PPC_RADIX_MMU - Selects
HAVE_ARCH_KASAN if PPC_BOOK3E_64 - Selects
HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN - Selects
HAVE_ARCH_KCSAN - Selects
HAVE_ARCH_KFENCE if ARCH_SUPPORTS_DEBUG_PAGEALLOC - Selects
HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET - Selects
HAVE_ARCH_WITHIN_STACK_FRAMES - Selects
HAVE_ARCH_KGDB - Selects
HAVE_ARCH_MMAP_RND_BITS - Selects
HAVE_ARCH_MMAP_RND_COMPAT_BITS if - Selects
HAVE_ARCH_NVRAM_OPS - Selects
HAVE_ARCH_SECCOMP_FILTER - Selects
HAVE_ARCH_TRACEHOOK - Selects
HAVE_ASM_MODVERSIONS - Selects
HAVE_CONTEXT_TRACKING_USER - Selects
HAVE_C_RECORDMCOUNT - Selects
HAVE_DEBUG_KMEMLEAK - Selects
HAVE_DEBUG_STACKOVERFLOW - Selects
HAVE_DYNAMIC_FTRACE - Selects
HAVE_DYNAMIC_FTRACE_WITH_ARGS if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32 - Selects
HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS if PPC_FTRACE_OUT_OF_LINE || (PPC32 && ARCH_USING_PATCHABLE_FUNCTION_ENTRY) - Selects
HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS if HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS - Selects
HAVE_DYNAMIC_FTRACE_WITH_REGS if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32 - Selects
HAVE_EBPF_JIT - Selects
HAVE_EFFICIENT_UNALIGNED_ACCESS - Selects
HAVE_GUP_FAST - Selects
HAVE_FTRACE_GRAPH_FUNC - Selects
HAVE_FTRACE_REGS_HAVING_PT_REGS - Selects
HAVE_FUNCTION_ARG_ACCESS_API - Selects
HAVE_FUNCTION_DESCRIPTORS if PPC64_ELF_ABI_V1 - Selects
HAVE_FUNCTION_ERROR_INJECTION - Selects
HAVE_FUNCTION_GRAPH_FREGS - Selects
HAVE_FUNCTION_GRAPH_TRACER - Selects
HAVE_FUNCTION_TRACER if !COMPILE_TEST && (PPC64 || (PPC32 && CC_IS_GCC)) - Selects
HAVE_GCC_PLUGINS - Selects
HAVE_HARDLOCKUP_DETECTOR_ARCH if PPC_BOOK3S_64 && - Selects
HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI - Selects
HAVE_HW_BREAKPOINT if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx) - Selects
HAVE_IOREMAP_PROT - Selects
HAVE_IRQ_TIME_ACCOUNTING - Selects
HAVE_KERNEL_GZIP - Selects
HAVE_KERNEL_LZMA if DEFAULT_UIMAGE - Selects
HAVE_KERNEL_LZO if DEFAULT_UIMAGE - Selects
HAVE_KERNEL_XZ if PPC_BOOK3S || 44x - Selects
HAVE_KPROBES - Selects
HAVE_KPROBES_ON_FTRACE - Selects
HAVE_KRETPROBES - Selects
HAVE_LD_DEAD_CODE_DATA_ELIMINATION if HAVE_OBJTOOL_MCOUNT && (!ARCH_USING_PATCHABLE_FUNCTION_ENTRY || (!CC_IS_GCC || GCC_VERSION >= 110100)) - Selects
HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS - Selects
HAVE_MOD_ARCH_SPECIFIC - Selects
HAVE_NMI if PERF_EVENTS || (PPC64 && PPC_BOOK3S) - Selects
HAVE_OPTPROBES - Selects
HAVE_OBJTOOL if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32 - Selects
HAVE_OBJTOOL_MCOUNT if HAVE_OBJTOOL - Selects
HAVE_PERF_EVENTS - Selects
HAVE_PERF_EVENTS_NMI if PPC64 - Selects
HAVE_PERF_REGS - Selects
HAVE_PERF_USER_STACK_DUMP - Selects
HAVE_POSIX_CPU_TIMERS_TASK_WORK - Selects
HAVE_RETHOOK if KPROBES - Selects
HAVE_REGS_AND_STACK_ACCESS_API - Selects
HAVE_RELIABLE_STACKTRACE - Selects
HAVE_RSEQ - Selects
HAVE_RUST if PPC32 - Selects
HAVE_RUST if PPC64 && - Selects
HAVE_SAMPLE_FTRACE_DIRECT if HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS - Selects
HAVE_SAMPLE_FTRACE_DIRECT_MULTI if HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS - Selects
HAVE_SETUP_PER_CPU_AREA if PPC64 - Selects
HAVE_SOFTIRQ_ON_OWN_STACK - Selects
HAVE_STACKPROTECTOR if PPC32 && $(cc-option,$(m32-flag) -mstack-protector-guard=tls -mstack-protector-guard-reg=r2 -mstack-protector-guard-offset=0) - Selects
HAVE_STACKPROTECTOR if PPC64 && $(cc-option,$(m64-flag) -mstack-protector-guard=tls -mstack-protector-guard-reg=r13 -mstack-protector-guard-offset=0) - Selects
HAVE_STATIC_CALL if PPC32 - Selects
HAVE_STATIC_CALL_INLINE if PPC32 - Selects
HAVE_SYSCALL_TRACEPOINTS - Selects
HAVE_VIRT_CPU_ACCOUNTING - Selects
HAVE_VIRT_CPU_ACCOUNTING_GEN - Selects
HOTPLUG_SMT if - Selects
SMT_NUM_THREADS_DYNAMIC - Selects
HUGETLB_PAGE_SIZE_VARIABLE if PPC_BOOK3S_64 && HUGETLB_PAGE - Selects
IOMMU_HELPER if PPC64 - Selects
IRQ_DOMAIN - Selects
IRQ_FORCED_THREADING - Selects
KASAN_VMALLOC if KASAN && EXECMEM - Selects
LOCK_MM_AND_FIND_VMA - Selects
MMU_GATHER_PAGE_SIZE - Selects
HAVE_ARCH_TLB_REMOVE_TABLE - Selects
MMU_GATHER_MERGE_VMAS - Selects
MMU_LAZY_TLB_SHOOTDOWN if PPC_BOOK3S_64 - Selects
MODULES_USE_ELF_RELA - Selects
NEED_DMA_MAP_STATE if PPC64 || NOT_COHERENT_CACHE - Selects
NEED_PER_CPU_EMBED_FIRST_CHUNK if PPC64 - Selects
NEED_PER_CPU_PAGE_FIRST_CHUNK if PPC64 - Selects
NEED_SG_DMA_LENGTH - Selects
OF - Selects
OF_EARLY_FLATTREE - Selects
OLD_SIGACTION if PPC32 - Selects
OLD_SIGSUSPEND - Selects
PCI_DOMAINS if PCI - Selects
PCI_MSI_ARCH_FALLBACKS if PCI_MSI - Selects
PCI_SYSCALL if PCI - Selects
PPC_DAWR if PPC64 - Selects
RTC_LIB - Selects
SPARSE_IRQ - Selects
STRICT_KERNEL_RWX if STRICT_MODULE_RWX - Selects
SYSCTL_EXCEPTION_TRACE - Selects
THREAD_INFO_IN_TASK - Selects
TRACE_IRQFLAGS_SUPPORT - Selects
VDSO_DATASTORE - Selects
VDSO_GETRANDOM
CONFIG_PPC_BARRIER_NOSPEC
- Depends on
PPC_BOOK3S_64 || PPC_E500
CONFIG_PPC_HAS_LBARX_LHARX
CONFIG_EARLY_PRINTK
CONFIG_PANIC_TIMEOUT
CONFIG_COMPAT Enable support for 32bit binaries
- Depends on
PPC64 - Selects
ARCH_WANT_OLD_COMPAT_IPC - Selects
COMPAT_OLD_SIGACTION
CONFIG_SCHED_OMIT_FRAME_POINTER
CONFIG_ARCH_MAY_HAVE_PC_FDC
CONFIG_PPC_UDBG_16550
CONFIG_GENERIC_TBSYNC
CONFIG_GENERIC_BUG
- Depends on
BUG
CONFIG_GENERIC_BUG_RELATIVE_POINTERS
- Depends on
CONFIG_SYS_SUPPORTS_APM_EMULATION
CONFIG_EPAPR_BOOT
Used to allow a board to specify it wants an ePAPR compliant wrapper.
CONFIG_DEFAULT_UIMAGE
Used to allow a board to specify it wants a uImage built by default
CONFIG_ARCH_HIBERNATION_POSSIBLE
CONFIG_ARCH_SUSPEND_POSSIBLE
- Depends on
ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES || 44x
CONFIG_ARCH_SUSPEND_NONZERO_CPU
- Depends on
PPC_POWERNV || PPC_PSERIES
CONFIG_ARCH_HAS_ADD_PAGES
- Depends on
ARCH_ENABLE_MEMORY_HOTPLUG
CONFIG_PPC_DCR_NATIVE
CONFIG_PPC_DCR
- Depends on
PPC_DCR_NATIVE
CONFIG_PPC_PCI_OF_BUS_MAP Use pci_to_OF_bus_map (deprecated)
This option uses pci_to_OF_bus_map to map OF nodes to PCI devices, which restricts the system to only having 256 PCI buses. On CHRP it also causes the "pci-OF-bus-map" property to be created in the device tree.
If unsure, say "N".
CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT Assign PCI bus numbers from zero individually for each PCI domain
By default on PPC32 were PCI bus numbers unique across all PCI domains. So system could have only 256 PCI buses independently of available PCI domains. When this option is enabled then PCI bus numbers are PCI domain dependent and each PCI controller on own domain can have 256 PCI buses, like it is on other Linux architectures.
- Depends on
PPC32 - Depends on
!PPC_PCI_OF_BUS_MAP
CONFIG_ARCH_SUPPORTS_UPROBES
CONFIG_PPC_ADV_DEBUG_REGS
- Depends on
BOOKE
CONFIG_PPC_ADV_DEBUG_IACS
- Depends on
PPC_ADV_DEBUG_REGS
CONFIG_PPC_ADV_DEBUG_DACS
- Depends on
PPC_ADV_DEBUG_REGS
CONFIG_PPC_ADV_DEBUG_DVCS
- Depends on
PPC_ADV_DEBUG_REGS
CONFIG_PPC_ADV_DEBUG_DAC_RANGE
- Depends on
PPC_ADV_DEBUG_REGS && 44x
CONFIG_PPC_DAWR
CONFIG_PGTABLE_LEVELS
Kernel options
CONFIG_HIGHMEM High memory support
- Depends on
PPC32 - Selects
KMAP_LOCAL
CONFIG_MATH_EMULATION Math emulation
Some PowerPC chips designed for embedded applications do not have a floating-point unit and therefore do not implement the floating-point instructions in the PowerPC instruction set. If you say Y here, the kernel will include code to emulate a floating-point unit, which will allow programs that use floating-point instructions to run.
This is also useful to emulate missing (optional) instructions such as fsqrt on cores that do have an FPU but do not implement them (such as Freescale BookE).
- Depends on
44x || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT - Selects
PPC_FPU_REGS
Math emulation options
- Depends on
MATH_EMULATION
CONFIG_MATH_EMULATION_FULL Emulate all the floating point instructions
Select this option will enable the kernel to support to emulate all the floating point instructions. If your SoC doesn't have a FPU, you should select this.
CONFIG_MATH_EMULATION_HW_UNIMPLEMENTED Just emulate the FPU unimplemented instructions
Select this if you know there does have a hardware FPU on your SoC, but some floating point instructions are not implemented by that.
CONFIG_PPC_TRANSACTIONAL_MEM Transactional Memory support for POWERPC
Support user-mode Transactional Memory on POWERPC.
- Depends on
PPC_BOOK3S_64 - Depends on
- Selects
ALTIVEC - Selects
VSX
CONFIG_PPC_UV Ultravisor support
This option paravirtualizes the kernel to run in POWER platforms that supports the Protected Execution Facility (PEF). On such platforms, the ultravisor firmware runs at a privilege level above the hypervisor.
If unsure, say "N".
- Depends on
KVM_BOOK3S_HV_POSSIBLE - Depends on
DEVICE_PRIVATE
CONFIG_LD_HEAD_STUB_CATCH Reserve 256 bytes to cope with linker stubs in HEAD text
Very large kernels can cause linker branch stubs to be generated by code in head_64.S, which moves the head text sections out of their specified location. This option can work around the problem.
If unsure, say "N".
CONFIG_MPROFILE_KERNEL
- Depends on
PPC64_ELF_ABI_V2 && FUNCTION_TRACER
CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY
- Depends on
FUNCTION_TRACER && (PPC32 || PPC64_ELF_ABI_V2) - Depends on
$(cc-option,-fpatchable-function-entry=2)
CONFIG_PPC_FTRACE_OUT_OF_LINE
- Selects
ARCH_WANTS_PRE_LINK_VMLINUX
CONFIG_PPC_FTRACE_OUT_OF_LINE_NUM_RESERVE Number of ftrace out-of-line stubs to reserve within .text
Number of stubs to reserve for use by ftrace. This space is reserved within .text, and is distinct from any additional space added at the end of .text before the final vmlinux link. Set to zero to have stubs only be generated at the end of vmlinux (only if the size of vmlinux is less than 32MB). Set to a higher value if building vmlinux larger than 48MB.
- Depends on
PPC_FTRACE_OUT_OF_LINE
CONFIG_HOTPLUG_CPU Support for enabling/disabling CPUs
Say Y here to be able to disable and re-enable individual CPUs at runtime on SMP machines.
Say N if you are unsure.
- Depends on
&& (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE)
CONFIG_INTERRUPT_SANITIZE_REGISTERS Clear gprs on interrupt arrival
Reduce the influence of user register state on interrupt handlers and syscalls through clearing user state from registers before handling the exception.
- Depends on
PPC64 && ARCH_HAS_SYSCALL_WRAPPER
CONFIG_PPC_QUEUED_SPINLOCKS Queued spinlocks
Say Y here to use queued spinlocks which give better scalability and fairness on large SMP and NUMA systems without harming single threaded performance.
- Visible if
EXPERT - Depends on
CONFIG_ARCH_CPU_PROBE_RELEASE
- Depends on
CONFIG_PPC64_SUPPORTS_MEMORY_FAILURE Add support for memory hwpoison
- Depends on
PPC_BOOK3S_64 - Selects
ARCH_SUPPORTS_MEMORY_FAILURE
CONFIG_ARCH_SUPPORTS_KEXEC
CONFIG_ARCH_SUPPORTS_KEXEC_FILE
CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY
CONFIG_ARCH_SELECTS_KEXEC_FILE
- Depends on
KEXEC_FILE - Selects
KEXEC_ELF - Selects
HAVE_IMA_KEXEC if IMA
CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2 Build big-endian kernel using ELF ABI V2
This builds the kernel image using the "Power Architecture 64-Bit ELF V2 ABI Specification", which has a reduced stack overhead and faster function calls. This internal kernel ABI option does not affect userspace compatibility.
The V2 ABI is standard for 64-bit little-endian, but for big-endian it is less well tested by kernel and toolchain. However some distros build userspace this way, and it can produce a functioning kernel.
- Visible if
LD_IS_BFD && EXPERT - Depends on
PPC64 && - Depends on
CC_HAS_ELFV2
CONFIG_RELOCATABLE Build a relocatable kernel
This builds a kernel image that is capable of running at the location the kernel is loaded at. For ppc32, there is no any alignment restrictions, and this feature is a superset of DYNAMIC_MEMSTART and hence overrides it. For ppc64, we should use 16k-aligned base address. The kernel is linked as a position-independent executable (PIE) and contains dynamic relocations which are processed early in the bootup process.
One use is for the kexec on panic case where the recovery kernel must live at a different physical address than the primary kernel.
Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address it has been loaded at and the compile time physical addresses CONFIG_PHYSICAL_START is ignored. However CONFIG_PHYSICAL_START setting can still be useful to bootwrappers that need to know the load address of the kernel (eg. u-boot/mkimage).
- Depends on
PPC64 || (FLATMEM && (44x || PPC_85xx)) - Selects
NONSTATIC_KERNEL
CONFIG_RANDOMIZE_BASE Randomize the address of the kernel image
Randomizes the virtual address at which the kernel image is loaded, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals.
If unsure, say Y.
CONFIG_RELOCATABLE_TEST Test relocatable kernel
This runs the relocatable kernel at the address it was initially loaded at, which tends to be non-zero and therefore test the relocation code.
- Depends on
(PPC64 && )
CONFIG_ARCH_SUPPORTS_CRASH_DUMP
CONFIG_ARCH_DEFAULT_CRASH_DUMP
CONFIG_ARCH_SELECTS_CRASH_DUMP
- Depends on
CRASH_DUMP - Selects
if PPC64 || 44x || PPC_85xx
CONFIG_ARCH_SUPPORTS_CRASH_HOTPLUG
- Depends on
PPC64
CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
CONFIG_FA_DUMP Firmware-assisted dump
A robust mechanism to get reliable kernel crash dump with assistance from firmware. This approach does not use kexec, instead firmware assists in booting the capture kernel while preserving memory contents. Firmware-assisted dump is meant to be a kdump replacement offering robustness and speed not possible without system firmware assistance.
If unsure, say "y". Only special kernels like petitboot may need to say "N" here.
- Depends on
CRASH_DUMP && PPC64 && (PPC_RTAS || PPC_POWERNV)
CONFIG_PRESERVE_FA_DUMP Preserve Firmware-assisted dump
On a kernel with FA_DUMP disabled, this option helps to preserve crash data from a previously crash'ed kernel. Useful when the next memory preserving kernel boot would process this crash data. Petitboot kernel is the typical usecase for this option.
- Depends on
PPC64 && PPC_POWERNV && !FA_DUMP
CONFIG_OPAL_CORE Export OPAL memory as /sys/firmware/opal/core
This option uses the MPIPL support in firmware to provide an ELF core of OPAL memory after a crash. The ELF core is exported as /sys/firmware/opal/core file which is helpful in debugging OPAL crashes using GDB.
- Depends on
PPC64 && PPC_POWERNV
CONFIG_IRQ_ALL_CPUS Distribute interrupts on all CPUs by default
This option gives the kernel permission to distribute IRQs across multiple CPUs. Saying N here will route all IRQs to the first CPU. Generally saying Y is safe, although some problems have been reported with SMP Power Macintoshes with this option enabled.
- Depends on
CONFIG_NUMA NUMA Memory Allocation and Scheduler Support
Enable NUMA (Non-Uniform Memory Access) support.
The kernel will try to allocate memory used by a CPU on the local memory controller of the CPU and add some more NUMA awareness to the kernel.
- Depends on
PPC64 && - Selects
USE_PERCPU_NUMA_NODE_ID
CONFIG_NODES_SHIFT
- Depends on
CONFIG_HAVE_MEMORYLESS_NODES
- Depends on
CONFIG_ARCH_SELECT_MEMORY_MODEL
- Depends on
PPC64
CONFIG_ARCH_FLATMEM_ENABLE
CONFIG_ARCH_SPARSEMEM_ENABLE
- Depends on
PPC64 - Selects
SPARSEMEM_VMEMMAP_ENABLE
CONFIG_ARCH_SPARSEMEM_DEFAULT
- Depends on
PPC_BOOK3S_64
CONFIG_ILLEGAL_POINTER_VALUE
CONFIG_ARCH_MEMORY_PROBE
- Depends on
MEMORY_HOTPLUG
Page size
Select the kernel logical page size. Increasing the page size will reduce software overhead at each page boundary, allow hardware prefetch mechanisms to be more effective, and allow larger dma transfers increasing IO efficiency and reducing overhead. However the utilization of memory will increase. For example, each cached file will using a multiple of the page size to hold its contents and the difference between the end of file and the end of page is wasted.
Some dedicated systems, such as software raid serving with accelerated calculations, have shown significant increases.
If you configure a 64 bit kernel for 64k pages but the processor does not support them, then the kernel will simulate them with 4k pages, loading them on demand, but with the reduced software overhead and larger internal fragmentation. For the 32 bit kernel, a large page option will not be offered unless it is supported by the configured processor.
If unsure, choose 4K_PAGES.
CONFIG_PPC_4K_PAGES 4k page size
- Selects
HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64 - Selects
HAVE_PAGE_SIZE_4KB
CONFIG_PPC_16K_PAGES 16k page size
- Depends on
44x || PPC_8xx - Selects
HAVE_PAGE_SIZE_16KB
CONFIG_PPC_64K_PAGES 64k page size
- Depends on
44x || PPC_BOOK3S_64 - Selects
HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64 - Selects
HAVE_PAGE_SIZE_64KB
CONFIG_PPC_256K_PAGES 256k page size (Requires non-standard binutils settings)
Make the page size 256k.
The kernel will only be able to run applications that have been compiled with '-zmax-page-size' set to 256K (the default is 64K) using binutils later than 2.17.50.0.3, or by patching the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000 in older versions.
- Depends on
44x && !PPC_47x - Selects
HAVE_PAGE_SIZE_256KB
CONFIG_THREAD_SHIFT Thread shift
Used to define the stack size. The default is almost always what you want. Only change this if you know what you are doing.
- Visible if
EXPERT - Range
13 15
CONFIG_DATA_SHIFT_BOOL Set custom data alignment
This option allows you to set the kernel data alignment. When RAM is mapped by blocks, the alignment needs to fit the size and number of possible blocks. The default should be OK for most configs.
Say N here unless you know what you are doing.
- Depends on
- Depends on
STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE - Depends on
(PPC_8xx && !PIN_TLB_DATA && (!STRICT_KERNEL_RWX || !PIN_TLB_TEXT)) || PPC_BOOK3S_32 || PPC_85xx
CONFIG_DATA_SHIFT Data shift
On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO. Smaller is the alignment, greater is the number of necessary DBATs.
On 8xx, large pages (16kb or 512kb or 8M) are used to map kernel linear memory. Aligning to 8M reduces TLB misses as only 8M pages are used in that case. If PIN_TLB is selected, it must be aligned to 8M as 8M pages will be pinned.
- Visible if
DATA_SHIFT_BOOL - Range
17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32 - Range
14 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx - Range
20 24 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_85xx
CONFIG_ARCH_FORCE_MAX_ORDER Order of maximal physically contiguous allocations
The kernel page allocator limits the size of maximal physically contiguous allocations. The limit is called MAX_PAGE_ORDER and it defines the maximal power of two of number of pages that can be allocated as a single contiguous block. This option allows overriding the default setting when ability to allocate very large blocks of physically contiguous memory is required.
The page size is not necessarily 4KB. For example, on 64-bit systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep this in mind when choosing a value for this option.
Don't change if unsure.
- Range
7 8 if PPC64 && PPC_64K_PAGES - Range
12 12 if PPC64 && !PPC_64K_PAGES - Range
8 10 if PPC32 && PPC_16K_PAGES - Range
6 10 if PPC32 && PPC_64K_PAGES - Range
4 10 if PPC32 && PPC_256K_PAGES - Range
10 12
CONFIG_PPC_SUBPAGE_PROT Support setting protections for 4k subpages (subpage_prot syscall)
This option adds support for system call to allow user programs to set access permissions (read/write, readonly, or no access) on the 4k subpages of each 64k page.
If unsure, say N here.
- Depends on
PPC_64S_HASH_MMU && PPC_64K_PAGES
CONFIG_PPC_PROT_SAO_LPAR Support PROT_SAO mappings in LPARs
This option adds support for PROT_SAO mappings from userspace inside LPARs on supported CPUs.
This may cause issues when performing guest migration from a CPU that supports SAO to one that does not.
If unsure, say N here.
- Depends on
PPC_BOOK3S_64
CONFIG_PPC_COPRO_BASE
CONFIG_PPC_DENORMALISATION PowerPC denormalisation exception handling
Add support for handling denormalisation of single precision values. Useful for bare metal only. If unsure say Y here.
- Depends on
PPC_BOOK3S_64
CONFIG_CMDLINE Initial kernel command string
On some platforms, there is currently no way for the boot loader to pass arguments to the kernel. For these platforms, you can supply some command-line options at build time by entering them here. In most cases you will need to specify the root device here.
Kernel command line type
- Depends on
!= ""
CONFIG_CMDLINE_FROM_BOOTLOADER Use bootloader kernel arguments if available
Uses the command-line options passed by the boot loader. If the boot loader doesn't provide any, the default kernel command string provided in CMDLINE will be used.
CONFIG_CMDLINE_EXTEND Extend bootloader kernel arguments
The command-line arguments provided by the boot loader will be appended to the default kernel command string.
CONFIG_CMDLINE_FORCE Always use the default kernel command string
Always use the default kernel command string, even if the boot loader passes other arguments to the kernel. This is useful if you cannot or don't want to change the command-line options your boot loader passes to the kernel.
CONFIG_EXTRA_TARGETS Additional default image types
List additional targets to be built by the bootwrapper here (separated by spaces). This is useful for targets that depend of device tree files in the .dts directory.
Targets in this list will be build as part of the default build target, or when the user does a 'make zImage' or a 'make zImage.initrd'.
If unsure, leave blank
CONFIG_ARCH_WANTS_FREEZER_CONTROL
- Depends on
ADB_PMU
CONFIG_PPC_MEM_KEYS PowerPC Memory Protection Keys
Memory Protection Keys provides a mechanism for enforcing page-based protections, but without requiring modification of the page tables when an application changes protection domains.
For details, see Documentation/core-api/protection-keys.rst
If unsure, say y.
- Depends on
PPC_BOOK3S_64 - Depends on
PPC_64S_HASH_MMU - Selects
ARCH_USES_HIGH_VMA_FLAGS - Selects
ARCH_HAS_PKEYS
CONFIG_ARCH_PKEY_BITS
CONFIG_PPC_SECURE_BOOT Enable secure boot support
Systems with firmware secure boot enabled need to define security policies to extend secure boot to the OS. This config allows a user to enable OS secure boot on systems that have firmware support for it. If in doubt say N.
- Depends on
PPC_POWERNV || PPC_PSERIES - Depends on
IMA_ARCH_POLICY - Implies
IMA_SECURE_AND_OR_TRUSTED_BOOT - Selects
PSERIES_PLPKS if PPC_PSERIES - Selects
HAVE_ARCH_GET_SECUREBOOT
CONFIG_PPC_SECVAR_SYSFS Enable sysfs interface for POWER secure variables
POWER secure variables are managed and controlled by firmware. These variables are exposed to userspace via sysfs to enable read/write operations on these variables. Say Y if you have secure boot enabled and want to expose variables to userspace.
- Depends on
PPC_SECURE_BOOT - Depends on
SYSFS
CONFIG_ISA_DMA_API
Bus options
CONFIG_ISA Support for ISA-bus hardware
Find out whether you have ISA slots on your motherboard. ISA is the name of a bus system, i.e. the way the CPU talks to the other stuff inside your box. If you have an Apple machine, say N here; if you have an IBM RS/6000 or pSeries machine, say Y. If you have an embedded board, consult your board documentation.
CONFIG_GENERIC_ISA_DMA
- Depends on
CONFIG_PPC_INDIRECT_PCI
- Depends on
PCI
CONFIG_SBUS
CONFIG_FSL_SOC
CONFIG_FSL_PCI
- Selects
ARCH_HAS_DMA_SET_MASK - Selects
PPC_INDIRECT_PCI - Selects
PCI_QUIRKS
CONFIG_FSL_PMC
Freescale MPC85xx/MPC86xx power management controller support (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
CONFIG_PPC4xx_CPM
PPC4xx Clock Power Management (CPM) support (suspend/resume). It also enables support for two different idle states (idle-wait and idle-doze).
CONFIG_FSL_LBC Freescale Local Bus support
Enables reporting of errors from the Freescale local bus controller. Also contains some common code used by drivers for specific local bus peripherals.
CONFIG_FSL_GTM
Freescale General-purpose Timers support
- Depends on
PPC_83xx || QUICC_ENGINE || CPM2
CONFIG_FSL_RIO Freescale Embedded SRIO Controller support
Include support for RapidIO controller on Freescale embedded processors (MPC8548, MPC8641, etc).
- Depends on
RAPIDIO = y && HAVE_RAPIDIO
CONFIG_NONSTATIC_KERNEL
Advanced setup
- Depends on
PPC32
CONFIG_ADVANCED_OPTIONS Prompt for advanced kernel configuration options
This option will enable prompting for a variety of advanced kernel configuration options. These options can cause the kernel to not work if they are set incorrectly, but can be used to optimize certain aspects of kernel memory management.
Unless you know what you are doing, say N here.
Default settings for advanced configuration options are used
- Depends on
!
CONFIG_LOWMEM_SIZE_BOOL Set maximum low memory
This option allows you to set the maximum amount of memory which will be used as "low memory", that is, memory which the kernel can access directly, without having to set up a kernel virtual mapping. This can be useful in optimizing the layout of kernel virtual memory.
Say N here unless you know what you are doing.
- Depends on
CONFIG_LOWMEM_SIZE Maximum low memory size (in bytes)
- Visible if
CONFIG_LOWMEM_CAM_NUM_BOOL Set number of CAMs to use to map low memory
This option allows you to set the maximum number of CAM slots that will be used to map low memory. There are a limited number of slots available and even more limited number that will fit in the L1 MMU. However, using more entries will allow mapping more low memory. This can be useful in optimizing the layout of kernel virtual memory.
Say N here unless you know what you are doing.
- Depends on
&& PPC_85xx
CONFIG_LOWMEM_CAM_NUM Number of CAMs to use to map low memory
- Depends on
PPC_85xx - Visible if
LOWMEM_CAM_NUM_BOOL
CONFIG_DYNAMIC_MEMSTART Enable page aligned dynamic load address for kernel
This option enables the kernel to be loaded at any page aligned physical address. The kernel creates a mapping from KERNELBASE to the address where the kernel is loaded. The page size here implies the TLB page size of the mapping for kernel on the particular platform. Please refer to the init code for finding the TLB page size.
DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE kernel image, where the only restriction is the page aligned kernel load address. When this option is enabled, the compile time physical address CONFIG_PHYSICAL_START is ignored.
This option is overridden by CONFIG_RELOCATABLE
- Depends on
&& FLATMEM && (PPC_85xx || 44x) - Selects
NONSTATIC_KERNEL
CONFIG_PAGE_OFFSET_BOOL Set custom page offset address
This option allows you to set the kernel virtual address at which the kernel will map low memory. This can be useful in optimizing the virtual memory layout of the system.
Say N here unless you know what you are doing.
- Depends on
CONFIG_PAGE_OFFSET Virtual address of memory base
- Visible if
PAGE_OFFSET_BOOL
CONFIG_KERNEL_START_BOOL Set custom kernel base address
This option allows you to set the kernel virtual address at which the kernel will be loaded. Normally this should match PAGE_OFFSET however there are times (like kdump) that one might not want them to be the same.
Say N here unless you know what you are doing.
- Depends on
CONFIG_KERNEL_START Virtual address of kernel base
- Visible if
CONFIG_PHYSICAL_START_BOOL Set physical address where the kernel is loaded
This gives the physical address where the kernel is loaded.
Say N here unless you know what you are doing.
CONFIG_PHYSICAL_START Physical address where the kernel is loaded
- Visible if
PHYSICAL_START_BOOL
CONFIG_PHYSICAL_ALIGN
This value puts the alignment restrictions on physical address where kernel is loaded and run from. Kernel is compiled for an address which meets above alignment restriction.
CONFIG_TASK_SIZE_BOOL Set custom user task size
This option allows you to set the amount of virtual address space allocated to user tasks. This can be useful in optimizing the virtual memory layout of the system.
Say N here unless you know what you are doing.
- Depends on
CONFIG_TASK_SIZE Size of maximum user task space
- Visible if
CONFIG_MODULES_SIZE_BOOL Set custom size for modules/execmem area
This option allows you to set the size of kernel virtual address space dedicated for modules/execmem. For the time being it is only for 8xx and book3s/32. Other platform share it with vmalloc space.
Say N here unless you know what you are doing.
- Depends on
EXECMEM &&
CONFIG_MODULES_SIZE Size of modules/execmem area (In Mbytes)
- Visible if
MODULES_SIZE_BOOL - Range
1 256 if EXECMEM
CONFIG_PPC64_PROC_SYSTEMCFG
This option enables the presence of /proc/ppc64/systemcfg through which the systemcfg page can be accessed. This interface only exists for backwards-compatibility.
If PPC64
CONFIG_PAGE_OFFSET
CONFIG_KERNEL_START
CONFIG_PHYSICAL_START
CONFIG_PPC_LIB_RHEAP
- arch/alpha/Kconfig:465
- arch/arc/Kconfig:167
- arch/arm/Kconfig:910
- arch/arm64/Kconfig:358
- arch/csky/Kconfig:313
- arch/hexagon/Kconfig:104
- arch/loongarch/Kconfig:513
- arch/mips/Kconfig:2700
- arch/openrisc/Kconfig:191
- arch/parisc/Kconfig:314
- arch/powerpc/platforms/Kconfig.cputype:550
- arch/riscv/Kconfig:437
- arch/s390/Kconfig:530
- arch/sh/Kconfig:560
- arch/sparc/Kconfig:158
- arch/um/Kconfig:97
- arch/x86/Kconfig:437
- arch/xtensa/Kconfig:245
- arch/alpha/Kconfig:484
- arch/arc/Kconfig:175
- arch/arm/Kconfig:1063
- arch/arm64/Kconfig:1702
- arch/csky/Kconfig:318
- arch/hexagon/Kconfig:109
- arch/loongarch/Kconfig:542
- arch/m68k/Kconfig.cpu:552
- arch/microblaze/Kconfig:123
- arch/mips/Kconfig:2756
- arch/nios2/Kconfig:72
- arch/openrisc/Kconfig:185
- arch/parisc/Kconfig:367
- arch/powerpc/platforms/Kconfig.cputype:570
- arch/riscv/Kconfig:450
- arch/s390/Kconfig:533
- arch/sh/Kconfig:582
- arch/sparc/Kconfig:180
- arch/um/Kconfig:132
- arch/x86/Kconfig:1037
- arch/xtensa/Kconfig:253
- arch/arm/Kconfig:1508
- arch/arm64/Kconfig:2569
- arch/hexagon/Kconfig:94
- arch/loongarch/Kconfig:426
- arch/microblaze/Kconfig:101
- arch/mips/Kconfig.debug:48
- arch/nios2/Kconfig:92
- arch/openrisc/Kconfig:235
- arch/powerpc/Kconfig:978
- arch/riscv/Kconfig:1231
- arch/sh/Kconfig:730
- arch/sparc/Kconfig:300
- arch/x86/Kconfig:2250
- arch/xtensa/Kconfig:448