Kconfig
Includearch/powerpc/platforms/Kconfig.cputype Open file

CONFIG_CC_HAS_ELFV2

Unknown
Default
  • PPC64 && $(cc-option, -mabi=elfv2)

CONFIG_CC_HAS_PREFIXED

Unknown
Default
  • PPC64 && $(cc-option, -mcpu=power10 -mprefixed)

CONFIG_CC_HAS_PCREL

Unknown
Default
  • PPC64 && CC_IS_GCC && $(cc-option, -mcpu=power10 -mpcrel)

CONFIG_32BIT

Unknown

CONFIG_64BIT

On

CONFIG_MMU

On
Default
  • y

CONFIG_ARCH_MMAP_RND_BITS_MAX

32

CONFIG_ARCH_MMAP_RND_BITS_MIN

28
Defaults
  • 14 if && PPC_64K_PAGES # 14 = 30 (1GB) - 16 (64K)
  • 18 if # 18 = 30 (1GB) - 12 (4K)

CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX

16

CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN

8

CONFIG_NR_IRQS Number of virtual interrupt numbers

Unknown

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.

  • Range32 1048576
Default
  • "512"

CONFIG_PPC_WATCHDOG

Unknown

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.

Default
  • y

CONFIG_STACKTRACE_SUPPORT

On
Default
  • y

CONFIG_LOCKDEP_SUPPORT

On
Default
  • y

CONFIG_GENERIC_HWEIGHT

Unknown
Default
  • y

CONFIG_PPC

Unknown
Default
  • y

CONFIG_PPC_HAS_LBARX_LHARX

Unknown

CONFIG_EARLY_PRINTK

On
Default
  • y

CONFIG_PANIC_TIMEOUT

Default
  • 180

CONFIG_SCHED_OMIT_FRAME_POINTER

On
Default
  • y

CONFIG_ARCH_MAY_HAVE_PC_FDC

On

CONFIG_PPC_UDBG_16550

Unknown

CONFIG_GENERIC_TBSYNC

Unknown

CONFIG_GENERIC_BUG

On
Default
  • y

CONFIG_GENERIC_BUG_RELATIVE_POINTERS

On
  • Depends on
Default
  • y

CONFIG_SYS_SUPPORTS_APM_EMULATION

Unknown

CONFIG_EPAPR_BOOT

Unknown

Used to allow a board to specify it wants an ePAPR compliant wrapper.

CONFIG_DEFAULT_UIMAGE

Unknown

Used to allow a board to specify it wants a uImage built by default

CONFIG_ARCH_HIBERNATION_POSSIBLE

On
Default
  • y

CONFIG_PPC_DCR_NATIVE

Unknown

CONFIG_PPC_PCI_OF_BUS_MAP Use pci_to_OF_bus_map (deprecated)

Unknown

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

Unknown

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.

Default
  • y

CONFIG_ARCH_SUPPORTS_UPROBES

On
Default
  • y

CONFIG_PPC_ADV_DEBUG_REGS

Unknown
Default
  • y

CONFIG_PPC_DAWR

Unknown

CONFIG_PGTABLE_LEVELS

Includearch/powerpc/sysdev/Kconfig Open file
Includearch/powerpc/platforms/Kconfig Open file

Kernel options

Includekernel/Kconfig.hz Open file

CONFIG_MATH_EMULATION Math emulation

Unknown

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).

Math emulation options

CONFIG_MATH_EMULATION_FULL Emulate all the floating point instructions

Unknown

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

Unknown

Select this if you know there does have a hardware FPU on your SoC, but some floating point instructions are not implemented by that.

End of Math emulation options

CONFIG_PPC_TRANSACTIONAL_MEM Transactional Memory support for POWERPC

Unknown

Support user-mode Transactional Memory on POWERPC.

CONFIG_PPC_UV Ultravisor support

Unknown

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".

Default
  • n

CONFIG_LD_HEAD_STUB_CATCH Reserve 256 bytes to cope with linker stubs in HEAD text

Unknown

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

Unknown
Defaults
  • $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -mlittle-endian) if CPU_LITTLE_ENDIAN
  • $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -mbig-endian) if CPU_BIG_ENDIAN

CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY

Unknown
Defaults
  • y if PPC32
  • $(success,$(srctree)/arch/powerpc/tools/check-fpatchable-function-entry.sh $(CC) $(CLANG_FLAGS) -mlittle-endian) if PPC64 && CPU_LITTLE_ENDIAN
  • $(success,$(srctree)/arch/powerpc/tools/check-fpatchable-function-entry.sh $(CC) -mbig-endian) if PPC64 && CPU_BIG_ENDIAN

CONFIG_PPC_FTRACE_OUT_OF_LINE_NUM_RESERVE Number of ftrace out-of-line stubs to reserve within .text

Unknown

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.

Default
  • 32768

CONFIG_HOTPLUG_CPU Support for enabling/disabling CPUs

On

Say Y here to be able to disable and re-enable individual CPUs at runtime on SMP machines.

Say N if you are unsure.

CONFIG_INTERRUPT_SANITIZE_REGISTERS Clear gprs on interrupt arrival

Unknown

Reduce the influence of user register state on interrupt handlers and syscalls through clearing user state from registers before handling the exception.

CONFIG_PPC_QUEUED_SPINLOCKS Queued spinlocks

Unknown

Say Y here to use queued spinlocks which give better scalability and fairness on large SMP and NUMA systems without harming single threaded performance.

CONFIG_ARCH_CPU_PROBE_RELEASE

Unknown
  • Depends on
Default
  • y

CONFIG_ARCH_SUPPORTS_KEXEC_FILE

On

CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY

On
Default
  • y

CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2 Build big-endian kernel using ELF ABI V2

Unknown

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.

Default
  • y

CONFIG_RELOCATABLE Build a relocatable kernel

On

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).

CONFIG_RANDOMIZE_BASE Randomize the address of the kernel image

On

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

Unknown

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_HOTPLUG

On
Default
  • y

CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION

On

CONFIG_FA_DUMP Firmware-assisted dump

Unknown

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.

CONFIG_PRESERVE_FA_DUMP Preserve Firmware-assisted dump

Unknown

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.

CONFIG_OPAL_CORE Export OPAL memory as /sys/firmware/opal/core

Unknown

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.

CONFIG_IRQ_ALL_CPUS Distribute interrupts on all CPUs by default

Unknown

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

On

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.

CONFIG_NODES_SHIFT

  • Depends on

CONFIG_HAVE_MEMORYLESS_NODES

Unknown
  • Depends on
Default
  • y

CONFIG_ARCH_SELECT_MEMORY_MODEL

Unknown
Default
  • y

CONFIG_ARCH_FLATMEM_ENABLE

Unknown
Default
  • y

CONFIG_ILLEGAL_POINTER_VALUE

Defaults
  • 0x5deadbeef0000000 if PPC64
  • 0

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_256K_PAGES 256k page size (Requires non-standard binutils settings)

Unknown

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.

End of Page size

CONFIG_THREAD_SHIFT Thread shift

Unknown

Used to define the stack size. The default is almost always what you want. Only change this if you know what you are doing.

CONFIG_DATA_SHIFT Data shift

Unknown

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.

CONFIG_ARCH_FORCE_MAX_ORDER Order of maximal physically contiguous allocations

Unknown

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.

CONFIG_PPC_SUBPAGE_PROT Support setting protections for 4k subpages (subpage_prot syscall)

Unknown

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.

Default
  • n

CONFIG_PPC_PROT_SAO_LPAR Support PROT_SAO mappings in LPARs

Unknown

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.

CONFIG_PPC_COPRO_BASE

Unknown

CONFIG_PPC_DENORMALISATION PowerPC denormalisation exception handling

Unknown

Add support for handling denormalisation of single precision values. Useful for bare metal only. If unsure say Y here.

CONFIG_CMDLINE Initial kernel command string

Empty

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.

Default
  • ""

Kernel command line type

  • Depends on != ""
Default

CONFIG_CMDLINE_FROM_BOOTLOADER Use bootloader kernel arguments if available

Unknown

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

Unknown

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

Unknown

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.

End of Kernel command line type

CONFIG_EXTRA_TARGETS Additional default image types

Unknown

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

Unknown
Default
  • y
Includekernel/power/Kconfig Open file

CONFIG_ARCH_PKEY_BITS

Default
  • 5

CONFIG_PPC_SECVAR_SYSFS Enable sysfs interface for POWER secure variables

Unknown

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.

Default
  • y
End of Kernel options

CONFIG_ISA_DMA_API

On

Bus options

CONFIG_ISA Support for ISA-bus hardware

Unknown

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

On
  • Depends on
Default
  • y

CONFIG_PPC_INDIRECT_PCI

Unknown
Default

CONFIG_SBUS

Unknown

CONFIG_FSL_SOC

Unknown

CONFIG_PPC4xx_CPM

Unknown

PPC4xx Clock Power Management (CPM) support (suspend/resume). It also enables support for two different idle states (idle-wait and idle-doze).

Default
  • y

CONFIG_FSL_LBC Freescale Local Bus support

Unknown

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_RIO Freescale Embedded SRIO Controller support

Unknown

Include support for RapidIO controller on Freescale embedded processors (MPC8548, MPC8641, etc).

Default
  • "n"
End of Bus options

CONFIG_NONSTATIC_KERNEL

Unknown

Advanced setup

CONFIG_ADVANCED_OPTIONS Prompt for advanced kernel configuration options

Unknown

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

Unknown

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)

Unknown
  • Visible if
Default
  • "0x30000000"

CONFIG_LOWMEM_CAM_NUM_BOOL Set number of CAMs to use to map low memory

Unknown

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.

CONFIG_DYNAMIC_MEMSTART Enable page aligned dynamic load address for kernel

Unknown

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

CONFIG_PAGE_OFFSET_BOOL Set custom page offset address

Unknown

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

Unknown
Default
  • "0xc0000000"

CONFIG_KERNEL_START_BOOL Set custom kernel base address

Unknown

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_PHYSICAL_START_BOOL Set physical address where the kernel is loaded

Unknown

This gives the physical address where the kernel is loaded.

Say N here unless you know what you are doing.

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

Unknown

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

Unknown
  • Visible if
Defaults
  • "0x80000000" if PPC_8xx
  • "0xc0000000"

CONFIG_MODULES_SIZE_BOOL Set custom size for modules/execmem area

Unknown

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 onEXECMEM &&
End of Advanced setup

CONFIG_PPC64_PROC_SYSTEMCFG

Unknown

This option enables the presence of /proc/ppc64/systemcfg through which the systemcfg page can be accessed. This interface only exists for backwards-compatibility.

Default
  • y

If PPC64

CONFIG_PAGE_OFFSET

Unknown
Default
  • "0xc000000000000000"

CONFIG_KERNEL_START

Unknown
Default
  • "0xc000000000000000"

CONFIG_PHYSICAL_START

Default
  • "0x00000000"

CONFIG_PPC_LIB_RHEAP

Unknown
Includearch/powerpc/kvm/Kconfig Open file
Includekernel/livepatch/Kconfig Open file
CONFIG_SCHED_MC declarations
CONFIG_LOWMEM_SIZE_BOOL declarations
CONFIG_KERNEL_START_BOOL declarations