# SPDX-License-Identifier: GPL-2.0
config [31mCONFIG_PPC64[0m
bool "64-bit kernel"
select [31mCONFIG_ZLIB_DEFLATE[0m
help
This option selects whether a 32-bit or a 64-bit kernel
will be built.
config [31mCONFIG_PPC_BOOK3S_32[0m
bool
menu "Processor support"
choice
prompt "Processor Type"
depends on [31mCONFIG_PPC32[0m
help
There are five families of 32 bit PowerPC chips supported.
The most common ones are the desktop and server CPUs (601, 603,
604, 740, 750, 74xx) CPUs from Freescale and IBM, with their
embedded 512x/52xx/82xx/83xx/86xx counterparts.
The other embedded parts, namely [31mCONFIG_4xx[0m, [31mCONFIG_8xx[0m, e200 (55xx) and e500
(85xx) each form a family of their own that is not compatible
with the others.
If unsure, select 52xx/[31mCONFIG_6xx[0m/7xx/74xx/82xx/83xx/86xx.
config [31mCONFIG_PPC_BOOK3S_6xx[0m
bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx except 601"
select [31mCONFIG_PPC_BOOK3S_32[0m
select [31mCONFIG_PPC_FPU[0m
select [31mCONFIG_PPC_HAVE_PMU_SUPPORT[0m
select [31mCONFIG_PPC_HAVE_KUEP[0m
select [31mCONFIG_PPC_HAVE_KUAP[0m
config [31mCONFIG_PPC_BOOK3S_601[0m
bool "PowerPC 601"
select [31mCONFIG_PPC_BOOK3S_32[0m
select [31mCONFIG_PPC_FPU[0m
select [31mCONFIG_PPC_HAVE_KUAP[0m
config [31mCONFIG_PPC_85xx[0m
bool "Freescale 85xx"
select [31mCONFIG_E500[0m
config [31mCONFIG_PPC_8xx[0m
bool "Freescale 8xx"
select [31mCONFIG_FSL_SOC[0m
select [31mCONFIG_SYS_SUPPORTS_HUGETLBFS[0m
select [31mCONFIG_PPC_HAVE_KUEP[0m
select [31mCONFIG_PPC_HAVE_KUAP[0m
select [31mCONFIG_PPC_MM_SLICES[0m if [31mCONFIG_HUGETLB_PAGE[0m
config [31mCONFIG_40x[0m
bool "AMCC 40x"
select [31mCONFIG_PPC_DCR_NATIVE[0m
select [31mCONFIG_PPC_UDBG_16550[0m
select [31mCONFIG_4xx_SOC[0m
select [31mCONFIG_HAVE_PCI[0m
config [31mCONFIG_44x[0m
bool "AMCC 44x, 46x or 47x"
select [31mCONFIG_PPC_DCR_NATIVE[0m
select [31mCONFIG_PPC_UDBG_16550[0m
select [31mCONFIG_4xx_SOC[0m
select [31mCONFIG_HAVE_PCI[0m
select [31mCONFIG_PHYS_64BIT[0m
config [31mCONFIG_E200[0m
bool "Freescale e200"
endchoice
choice
prompt "Processor Type"
depends on [31mCONFIG_PPC64[0m
help
There are two families of 64 bit PowerPC chips supported.
The most common ones are the desktop and server CPUs
(POWER5, 970, POWER5+, POWER6, POWER7, POWER8, POWER9 ...)
The other are the "embedded" processors compliant with the
"Book 3E" variant of the architecture
config [31mCONFIG_PPC_BOOK3S_64[0m
bool "Server processors"
select [31mCONFIG_PPC_FPU[0m
select [31mCONFIG_PPC_HAVE_PMU_SUPPORT[0m
select [31mCONFIG_SYS_SUPPORTS_HUGETLBFS[0m
select [31mCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE[0m
select [31mCONFIG_ARCH_ENABLE_THP_MIGRATION[0m if [31mCONFIG_TRANSPARENT_HUGEPAGE[0m
select [31mCONFIG_ARCH_SUPPORTS_NUMA_BALANCING[0m
select [31mCONFIG_IRQ_WORK[0m
select [31mCONFIG_PPC_MM_SLICES[0m
config [31mCONFIG_PPC_BOOK3E_64[0m
bool "Embedded processors"
select [31mCONFIG_PPC_FPU[0m # Make it a choice ?
select [31mCONFIG_PPC_SMP_MUXED_IPI[0m
select [31mCONFIG_PPC_DOORBELL[0m
endchoice
choice
prompt "CPU selection"
default [31mCONFIG_GENERIC_CPU[0m
help
This will create a kernel which is optimised for a particular CPU.
The resulting kernel may not run on other CPUs, so use this with care.
If unsure, select Generic.
config [31mCONFIG_GENERIC_CPU[0m
bool "Generic (POWER4 and above)"
depends on [31mCONFIG_PPC64[0m && ![31mCONFIG_CPU_LITTLE_ENDIAN[0m
config [31mCONFIG_GENERIC_CPU[0m
bool "Generic (POWER8 and above)"
depends on [31mCONFIG_PPC64[0m && [31mCONFIG_CPU_LITTLE_ENDIAN[0m
select [31mCONFIG_ARCH_HAS_FAST_MULTIPLIER[0m
config [31mCONFIG_GENERIC_CPU[0m
bool "Generic 32 bits powerpc"
depends on [31mCONFIG_PPC32[0m && ![31mCONFIG_PPC_8xx[0m
config [31mCONFIG_CELL_CPU[0m
bool "Cell Broadband Engine"
depends on [31mCONFIG_PPC_BOOK3S_64[0m && ![31mCONFIG_CPU_LITTLE_ENDIAN[0m
config [31mCONFIG_POWER5_CPU[0m
bool "POWER5"
depends on [31mCONFIG_PPC_BOOK3S_64[0m && ![31mCONFIG_CPU_LITTLE_ENDIAN[0m
config [31mCONFIG_POWER6_CPU[0m
bool "POWER6"
depends on [31mCONFIG_PPC_BOOK3S_64[0m && ![31mCONFIG_CPU_LITTLE_ENDIAN[0m
config [31mCONFIG_POWER7_CPU[0m
bool "POWER7"
depends on [31mCONFIG_PPC_BOOK3S_64[0m
select [31mCONFIG_ARCH_HAS_FAST_MULTIPLIER[0m
config [31mCONFIG_POWER8_CPU[0m
bool "POWER8"
depends on [31mCONFIG_PPC_BOOK3S_64[0m
select [31mCONFIG_ARCH_HAS_FAST_MULTIPLIER[0m
config [31mCONFIG_POWER9_CPU[0m
bool "POWER9"
depends on [31mCONFIG_PPC_BOOK3S_64[0m
select [31mCONFIG_ARCH_HAS_FAST_MULTIPLIER[0m
config [31mCONFIG_E5500_CPU[0m
bool "Freescale e5500"
depends on [31mCONFIG_E500[0m
config [31mCONFIG_E6500_CPU[0m
bool "Freescale e6500"
depends on [31mCONFIG_E500[0m
config [31mCONFIG_860_CPU[0m
bool "8xx family"
depends on [31mCONFIG_PPC_8xx[0m
config [31mCONFIG_E300C2_CPU[0m
bool "e300c2 (832x)"
depends on [31mCONFIG_PPC_BOOK3S_32[0m
config [31mCONFIG_E300C3_CPU[0m
bool "e300c3 (831x)"
depends on [31mCONFIG_PPC_BOOK3S_32[0m
config [31mCONFIG_G4_CPU[0m
bool "G4 (74xx)"
depends on [31mCONFIG_PPC_BOOK3S_32[0m
select [31mCONFIG_ALTIVEC[0m
endchoice
config [31mCONFIG_TARGET_CPU_BOOL[0m
bool
default ![31mCONFIG_GENERIC_CPU[0m
config [31mCONFIG_TARGET_CPU[0m
string
depends on [31mCONFIG_TARGET_CPU_BOOL[0m
default "cell" if [31mCONFIG_CELL_CPU[0m
default "power5" if [31mCONFIG_POWER5_CPU[0m
default "power6" if [31mCONFIG_POWER6_CPU[0m
default "power7" if [31mCONFIG_POWER7_CPU[0m
default "power8" if [31mCONFIG_POWER8_CPU[0m
default "power9" if [31mCONFIG_POWER9_CPU[0m
default "860" if [31mCONFIG_860_CPU[0m
default "e300c2" if [31mCONFIG_E300C2_CPU[0m
default "e300c3" if [31mCONFIG_E300C3_CPU[0m
default "G4" if [31mCONFIG_G4_CPU[0m
config [31mCONFIG_PPC_BOOK3S[0m
def_bool y
depends on [31mCONFIG_PPC_BOOK3S_32[0m || [31mCONFIG_PPC_BOOK3S_64[0m
config [31mCONFIG_PPC_BOOK3E[0m
def_bool y
depends on [31mCONFIG_PPC_BOOK3E_64[0m
config [31mCONFIG_E500[0m
select [31mCONFIG_FSL_EMB_PERFMON[0m
select [31mCONFIG_PPC_FSL_BOOK3E[0m
bool
config [31mCONFIG_PPC_E500MC[0m
bool "e500mc Support"
select [31mCONFIG_PPC_FPU[0m
select [31mCONFIG_COMMON_CLK[0m
depends on [31mCONFIG_E500[0m
help
This must be enabled for running on e500mc (and derivatives
such as e5500/e6500), and must be disabled for running on
e500v1 or e500v2.
config [31mCONFIG_PPC_FPU[0m
bool
default y if [31mCONFIG_PPC64[0m
config [31mCONFIG_FSL_EMB_PERFMON[0m
bool "Freescale Embedded Perfmon"
depends on [31mCONFIG_E500[0m || [31mCONFIG_PPC_83xx[0m
help
This is the Performance Monitor support found on the e500 core
and some e300 cores (c3 and c4). Select this only if your
core supports the Embedded Performance Monitor APU
config [31mCONFIG_FSL_EMB_PERF_EVENT[0m
bool
depends on [31mCONFIG_FSL_EMB_PERFMON[0m && [31mCONFIG_PERF_EVENTS[0m && ![31mCONFIG_PPC_PERF_CTRS[0m
default y
config [31mCONFIG_FSL_EMB_PERF_EVENT_E500[0m
bool
depends on [31mCONFIG_FSL_EMB_PERF_EVENT[0m && [31mCONFIG_E500[0m
default y
config [31mCONFIG_4xx[0m
bool
depends on [31mCONFIG_40x[0m || [31mCONFIG_44x[0m
default y
config [31mCONFIG_BOOKE[0m
bool
depends on [31mCONFIG_E200[0m || [31mCONFIG_E500[0m || [31mCONFIG_44x[0m || [31mCONFIG_PPC_BOOK3E[0m
default y
config [31mCONFIG_FSL_BOOKE[0m
bool
depends on ([31mCONFIG_E200[0m || [31mCONFIG_E500[0m) && [31mCONFIG_PPC32[0m
default y
# this is for common code between [31mCONFIG_PPC32[0m & [31mCONFIG_PPC64[0m FSL [31mCONFIG_BOOKE[0m
config [31mCONFIG_PPC_FSL_BOOK3E[0m
bool
select [31mCONFIG_FSL_EMB_PERFMON[0m
select [31mCONFIG_PPC_SMP_MUXED_IPI[0m
select [31mCONFIG_SYS_SUPPORTS_HUGETLBFS[0m if [31mCONFIG_PHYS_64BIT[0m || [31mCONFIG_PPC64[0m
select [31mCONFIG_PPC_DOORBELL[0m
default y if [31mCONFIG_FSL_BOOKE[0m
config [31mCONFIG_PTE_64BIT[0m
bool
depends on [31mCONFIG_44x[0m || [31mCONFIG_E500[0m || [31mCONFIG_PPC_86xx[0m
default y if [31mCONFIG_PHYS_64BIT[0m
config [31mCONFIG_PHYS_64BIT[0m
bool 'Large physical address support' if [31mCONFIG_E500[0m || [31mCONFIG_PPC_86xx[0m
depends on ([31mCONFIG_44x[0m || [31mCONFIG_E500[0m || [31mCONFIG_PPC_86xx[0m) && ![31mCONFIG_PPC_83xx[0m && ![31mCONFIG_PPC_82xx[0m
select [31mCONFIG_PHYS_ADDR_T_64BIT[0m
---help---
This option enables kernel support for larger than 32-bit physical
addresses. This feature may not be available on all cores.
If you have more than 3.5GB of RAM or so, you also need to enable
[31mCONFIG_SWIOTLB[0m under Kernel Options for this to work. The actual number
is platform-dependent.
If in doubt, say N here.
config [31mCONFIG_ALTIVEC[0m
bool "AltiVec Support"
depends on [31mCONFIG_PPC_BOOK3S_32[0m || [31mCONFIG_PPC_BOOK3S_64[0m || ([31mCONFIG_PPC_E500MC[0m && [31mCONFIG_PPC64[0m)
---help---
This option enables kernel support for the Altivec extensions to the
PowerPC processor. The kernel currently supports saving and restoring
altivec registers, and turning on the 'altivec enable' bit so user
processes can execute altivec instructions.
This option is only usefully if you have a processor that supports
altivec (G4, otherwise known as 74xx series), but does not have
any affect on a non-altivec cpu (it does, however add code to the
kernel).
If in doubt, say Y here.
config [31mCONFIG_VSX[0m
bool "VSX Support"
depends on [31mCONFIG_PPC_BOOK3S_64[0m && [31mCONFIG_ALTIVEC[0m && [31mCONFIG_PPC_FPU[0m
---help---
This option enables kernel support for the Vector Scaler extensions
to the PowerPC processor. The kernel currently supports saving and
restoring [31mCONFIG_VSX[0m registers, and turning on the '[31mCONFIG_VSX[0m enable' bit so user
processes can execute [31mCONFIG_VSX[0m instructions.
This option is only useful if you have a processor that supports
[31mCONFIG_VSX[0m (P7 and above), but does not have any affect on a non-[31mCONFIG_VSX[0m
CPUs (it does, however add code to the kernel).
If in doubt, say Y here.
config [31mCONFIG_SPE_POSSIBLE[0m
def_bool y
depends on [31mCONFIG_E200[0m || ([31mCONFIG_E500[0m && ![31mCONFIG_PPC_E500MC[0m)
config [31mCONFIG_SPE[0m
bool "SPE Support"
depends on [31mCONFIG_SPE_POSSIBLE[0m
default y
---help---
This option enables kernel support for the Signal Processing
Extensions ([31mCONFIG_SPE[0m) to the PowerPC processor. The kernel currently
supports saving and restoring [31mCONFIG_SPE[0m registers, and turning on the
'spe enable' bit so user processes can execute [31mCONFIG_SPE[0m instructions.
This option is only useful if you have a processor that supports
[31mCONFIG_SPE[0m (e500, otherwise known as 85xx series), but does not have any
effect on a non-spe cpu (it does, however add code to the kernel).
If in doubt, say Y here.
config [31mCONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK[0m
def_bool y
depends on [31mCONFIG_PPC_BOOK3S_64[0m
config [31mCONFIG_PPC_RADIX_MMU[0m
bool "Radix MMU Support"
depends on [31mCONFIG_PPC_BOOK3S_64[0m
select [31mCONFIG_ARCH_HAS_GIGANTIC_PAGE[0m
select [31mCONFIG_PPC_HAVE_KUEP[0m
select [31mCONFIG_PPC_HAVE_KUAP[0m
default y
help
Enable support for the Power [31mCONFIG_ISA[0m 3.0 Radix style [31mCONFIG_MMU[0m. Currently this
is only implemented by IBM Power9 CPUs, if you don't have one of them
you can probably disable this.
config [31mCONFIG_PPC_RADIX_MMU_DEFAULT[0m
bool "Default to using the Radix MMU when possible"
depends on [31mCONFIG_PPC_RADIX_MMU[0m
default y
help
When the hardware supports the Radix [31mCONFIG_MMU[0m, default to using it unless
"disable_radix[=yes]" is specified on the kernel command line.
If this option is disabled, the Hash [31mCONFIG_MMU[0m will be used by default,
unless "disable_radix=no" is specified on the kernel command line.
If you're unsure, say Y.
config [31mCONFIG_PPC_HAVE_KUEP[0m
bool
config [31mCONFIG_PPC_KUEP[0m
bool "Kernel Userspace Execution Prevention"
depends on [31mCONFIG_PPC_HAVE_KUEP[0m
default y
help
Enable support for Kernel Userspace Execution Prevention (KUEP)
If you're unsure, say Y.
config [31mCONFIG_PPC_HAVE_KUAP[0m
bool
config [31mCONFIG_PPC_KUAP[0m
bool "Kernel Userspace Access Protection"
depends on [31mCONFIG_PPC_HAVE_KUAP[0m
default y
help
Enable support for Kernel Userspace Access Protection (KUAP)
If you're unsure, say Y.
config [31mCONFIG_PPC_KUAP_DEBUG[0m
bool "Extra debugging for Kernel Userspace Access Protection"
depends on [31mCONFIG_PPC_HAVE_KUAP[0m && ([31mCONFIG_PPC_RADIX_MMU[0m || PPC_32)
help
Add extra debugging for Kernel Userspace Access Protection (KUAP)
If you're unsure, say N.
config [31mCONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION[0m
def_bool y
depends on [31mCONFIG_PPC_BOOK3S_64[0m && [31mCONFIG_HUGETLB_PAGE[0m && [31mCONFIG_MIGRATION[0m
config [31mCONFIG_PPC_MMU_NOHASH[0m
def_bool y
depends on ![31mCONFIG_PPC_BOOK3S[0m
config [31mCONFIG_PPC_MMU_NOHASH_32[0m
def_bool y
depends on [31mCONFIG_PPC_MMU_NOHASH[0m && [31mCONFIG_PPC32[0m
config [31mCONFIG_PPC_BOOK3E_MMU[0m
def_bool y
depends on [31mCONFIG_FSL_BOOKE[0m || [31mCONFIG_PPC_BOOK3E[0m
config [31mCONFIG_PPC_MM_SLICES[0m
bool
config [31mCONFIG_PPC_HAVE_PMU_SUPPORT[0m
bool
config [31mCONFIG_PPC_PERF_CTRS[0m
def_bool y
depends on [31mCONFIG_PERF_EVENTS[0m && [31mCONFIG_PPC_HAVE_PMU_SUPPORT[0m
help
This enables the powerpc-specific perf_event back-end.
config [31mCONFIG_FORCE_SMP[0m
# Allow platforms to force [31mCONFIG_SMP[0m=y by selecting this
bool
select [31mCONFIG_SMP[0m
config [31mCONFIG_SMP[0m
depends on [31mCONFIG_PPC_BOOK3S[0m || [31mCONFIG_PPC_BOOK3E[0m || [31mCONFIG_FSL_BOOKE[0m || [31mCONFIG_PPC_47x[0m
select [31mCONFIG_GENERIC_IRQ_MIGRATION[0m
bool "Symmetric multi-processing support" if ![31mCONFIG_FORCE_SMP[0m
---help---
This enables support for systems with more than one CPU. If you have
a system with only one CPU, say N. If you have a system with more
than one CPU, say Y. Note that the kernel does not currently
support [31mCONFIG_SMP[0m machines with 603/603e/603ev or PPC750 ("G3") processors
since they have inadequate hardware support for multiprocessor
operation.
If you say N here, the kernel will run on single and multiprocessor
machines, but will use only one CPU of a multiprocessor machine. If
you say Y here, the kernel will run on single-processor machines.
On a single-processor machine, the kernel will run faster if you say
N here.
If you don't know what to do here, say N.
config [31mCONFIG_NR_CPUS[0m
int "Maximum number of CPUs (2-8192)"
range 2 8192
depends on [31mCONFIG_SMP[0m
default "32" if [31mCONFIG_PPC64[0m
default "4"
config [31mCONFIG_NOT_COHERENT_CACHE[0m
bool
depends on [31mCONFIG_4xx[0m || [31mCONFIG_PPC_8xx[0m || [31mCONFIG_E200[0m || [31mCONFIG_PPC_MPC512x[0m || \
[31mCONFIG_GAMECUBE_COMMON[0m || [31mCONFIG_AMIGAONE[0m
select [31mCONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN[0m
select [31mCONFIG_ARCH_HAS_DMA_PREP_COHERENT[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU[0m
select [31mCONFIG_DMA_DIRECT_REMAP[0m
default n if [31mCONFIG_PPC_47x[0m
default y
config [31mCONFIG_CHECK_CACHE_COHERENCY[0m
bool
config [31mCONFIG_PPC_DOORBELL[0m
bool
endmenu
config [31mCONFIG_VDSO32[0m
def_bool y
depends on [31mCONFIG_PPC32[0m || [31mCONFIG_CPU_BIG_ENDIAN[0m
help
This symbol controls whether we build the 32-bit [31mCONFIG_VDSO[0m. We obviously
want to do that if we're building a 32-bit kernel. If we're building
a 64-bit kernel then we only want a 32-bit [31mCONFIG_VDSO[0m if we're building for
big endian. That is because the only little endian configuration we
support is ppc64le which is 64-bit only.
choice
prompt "Endianness selection"
default [31mCONFIG_CPU_BIG_ENDIAN[0m
help
This option selects whether a big endian or little endian kernel will
be built.
config [31mCONFIG_CPU_BIG_ENDIAN[0m
bool "Build big endian kernel"
help
Build a big endian kernel.
If unsure, select this option.
config [31mCONFIG_CPU_LITTLE_ENDIAN[0m
bool "Build little endian kernel"
depends on [31mCONFIG_PPC_BOOK3S_64[0m
select [31mCONFIG_PPC64_BOOT_WRAPPER[0m
help
Build a little endian kernel.
Note that if cross compiling a little endian kernel,
[31mCONFIG_CROSS_COMPILE[0m must point to a toolchain capable of targeting
little endian powerpc.
endchoice
config [31mCONFIG_PPC64_BOOT_WRAPPER[0m
def_bool n
depends on [31mCONFIG_CPU_LITTLE_ENDIAN[0m