1 # SPDX-License-Identifier: GPL-2.0
5 select KASAN_VMALLOC if KASAN && MODULES
11 This option selects whether a 32-bit or a 64-bit kernel
17 menu "Processor support"
19 prompt "Processor Type"
22 There are five families of 32 bit PowerPC chips supported.
23 The most common ones are the desktop and server CPUs (601, 603,
24 604, 740, 750, 74xx) CPUs from Freescale and IBM, with their
25 embedded 512x/52xx/82xx/83xx/86xx counterparts.
26 The other embedded parts, namely 4xx, 8xx, e200 (55xx) and e500
27 (85xx) each form a family of their own that is not compatible
30 If unsure, select 52xx/6xx/7xx/74xx/82xx/83xx/86xx.
33 bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx except 601"
36 select PPC_HAVE_PMU_SUPPORT
39 select HAVE_ARCH_VMAP_STACK
46 select HAVE_ARCH_VMAP_STACK
55 select SYS_SUPPORTS_HUGETLBFS
58 select HAVE_ARCH_VMAP_STACK
69 bool "AMCC 44x, 46x or 47x"
82 prompt "Processor Type"
85 There are two families of 64 bit PowerPC chips supported.
86 The most common ones are the desktop and server CPUs
87 (POWER5, 970, POWER5+, POWER6, POWER7, POWER8, POWER9 ...)
89 The other are the "embedded" processors compliant with the
90 "Book 3E" variant of the architecture
93 bool "Server processors"
95 select PPC_HAVE_PMU_SUPPORT
96 select SYS_SUPPORTS_HUGETLBFS
97 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
98 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
99 select ARCH_SUPPORTS_NUMA_BALANCING
104 bool "Embedded processors"
105 select PPC_FPU # Make it a choice ?
106 select PPC_SMP_MUXED_IPI
112 prompt "CPU selection"
115 This will create a kernel which is optimised for a particular CPU.
116 The resulting kernel may not run on other CPUs, so use this with care.
118 If unsure, select Generic.
121 bool "Generic (POWER4 and above)"
122 depends on PPC64 && !CPU_LITTLE_ENDIAN
125 bool "Generic (POWER8 and above)"
126 depends on PPC64 && CPU_LITTLE_ENDIAN
127 select ARCH_HAS_FAST_MULTIPLIER
130 bool "Generic 32 bits powerpc"
131 depends on PPC32 && !PPC_8xx
134 bool "Cell Broadband Engine"
135 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
139 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
143 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
147 depends on PPC_BOOK3S_64
148 select ARCH_HAS_FAST_MULTIPLIER
152 depends on PPC_BOOK3S_64
153 select ARCH_HAS_FAST_MULTIPLIER
157 depends on PPC_BOOK3S_64
158 select ARCH_HAS_FAST_MULTIPLIER
161 bool "Freescale e5500"
165 bool "Freescale e6500"
174 depends on PPC_BOOK3S_32
178 depends on PPC_BOOK3S_32
182 depends on PPC_BOOK3S_32
187 config TARGET_CPU_BOOL
193 depends on TARGET_CPU_BOOL
194 default "cell" if CELL_CPU
195 default "power5" if POWER5_CPU
196 default "power6" if POWER6_CPU
197 default "power7" if POWER7_CPU
198 default "power8" if POWER8_CPU
199 default "power9" if POWER9_CPU
200 default "860" if 860_CPU
201 default "e300c2" if E300C2_CPU
202 default "e300c3" if E300C3_CPU
203 default "G4" if G4_CPU
207 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
211 depends on PPC_BOOK3E_64
214 select FSL_EMB_PERFMON
215 select PPC_FSL_BOOK3E
219 bool "e500mc Support"
224 This must be enabled for running on e500mc (and derivatives
225 such as e5500/e6500), and must be disabled for running on
232 config FSL_EMB_PERFMON
233 bool "Freescale Embedded Perfmon"
234 depends on E500 || PPC_83xx
236 This is the Performance Monitor support found on the e500 core
237 and some e300 cores (c3 and c4). Select this only if your
238 core supports the Embedded Performance Monitor APU
240 config FSL_EMB_PERF_EVENT
242 depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS
245 config FSL_EMB_PERF_EVENT_E500
247 depends on FSL_EMB_PERF_EVENT && E500
252 depends on 40x || 44x
257 depends on E200 || E500 || 44x || PPC_BOOK3E
262 depends on (E200 || E500) && PPC32
265 # this is for common code between PPC32 & PPC64 FSL BOOKE
266 config PPC_FSL_BOOK3E
268 select FSL_EMB_PERFMON
269 select PPC_SMP_MUXED_IPI
270 select SYS_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
272 default y if FSL_BOOKE
276 depends on 44x || E500 || PPC_86xx
277 default y if PHYS_64BIT
280 bool 'Large physical address support' if E500 || PPC_86xx
281 depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
282 select PHYS_ADDR_T_64BIT
284 This option enables kernel support for larger than 32-bit physical
285 addresses. This feature may not be available on all cores.
287 If you have more than 3.5GB of RAM or so, you also need to enable
288 SWIOTLB under Kernel Options for this to work. The actual number
289 is platform-dependent.
291 If in doubt, say N here.
294 bool "AltiVec Support"
295 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 || (PPC_E500MC && PPC64)
297 This option enables kernel support for the Altivec extensions to the
298 PowerPC processor. The kernel currently supports saving and restoring
299 altivec registers, and turning on the 'altivec enable' bit so user
300 processes can execute altivec instructions.
302 This option is only usefully if you have a processor that supports
303 altivec (G4, otherwise known as 74xx series), but does not have
304 any affect on a non-altivec cpu (it does, however add code to the
307 If in doubt, say Y here.
311 depends on PPC_BOOK3S_64 && ALTIVEC && PPC_FPU
314 This option enables kernel support for the Vector Scaler extensions
315 to the PowerPC processor. The kernel currently supports saving and
316 restoring VSX registers, and turning on the 'VSX enable' bit so user
317 processes can execute VSX instructions.
319 This option is only useful if you have a processor that supports
320 VSX (P7 and above), but does not have any affect on a non-VSX
321 CPUs (it does, however add code to the kernel).
323 If in doubt, say Y here.
327 depends on E200 || (E500 && !PPC_E500MC)
331 depends on SPE_POSSIBLE
334 This option enables kernel support for the Signal Processing
335 Extensions (SPE) to the PowerPC processor. The kernel currently
336 supports saving and restoring SPE registers, and turning on the
337 'spe enable' bit so user processes can execute SPE instructions.
339 This option is only useful if you have a processor that supports
340 SPE (e500, otherwise known as 85xx series), but does not have any
341 effect on a non-spe cpu (it does, however add code to the kernel).
343 If in doubt, say Y here.
345 config ARCH_ENABLE_SPLIT_PMD_PTLOCK
347 depends on PPC_BOOK3S_64
350 bool "Radix MMU Support"
351 depends on PPC_BOOK3S_64
352 select ARCH_HAS_GIGANTIC_PAGE
357 Enable support for the Power ISA 3.0 Radix style MMU. Currently this
358 is only implemented by IBM Power9 CPUs, if you don't have one of them
359 you can probably disable this.
361 config PPC_RADIX_MMU_DEFAULT
362 bool "Default to using the Radix MMU when possible"
363 depends on PPC_RADIX_MMU
366 When the hardware supports the Radix MMU, default to using it unless
367 "disable_radix[=yes]" is specified on the kernel command line.
369 If this option is disabled, the Hash MMU will be used by default,
370 unless "disable_radix=no" is specified on the kernel command line.
372 If you're unsure, say Y.
378 bool "Kernel Userspace Execution Prevention"
379 depends on PPC_HAVE_KUEP
380 default y if !PPC_BOOK3S_32
382 Enable support for Kernel Userspace Execution Prevention (KUEP)
384 If you're unsure, say Y.
390 bool "Kernel Userspace Access Protection"
391 depends on PPC_HAVE_KUAP
392 default y if !PPC_BOOK3S_32
394 Enable support for Kernel Userspace Access Protection (KUAP)
396 If you're unsure, say Y.
398 config PPC_KUAP_DEBUG
399 bool "Extra debugging for Kernel Userspace Access Protection"
400 depends on PPC_KUAP && (PPC_RADIX_MMU || PPC32)
402 Add extra debugging for Kernel Userspace Access Protection (KUAP)
403 If you're unsure, say N.
405 config ARCH_ENABLE_HUGEPAGE_MIGRATION
407 depends on PPC_BOOK3S_64 && HUGETLB_PAGE && MIGRATION
410 config PPC_MMU_NOHASH
412 depends on !PPC_BOOK3S
414 config PPC_MMU_NOHASH_32
416 depends on PPC_MMU_NOHASH && PPC32
418 config PPC_BOOK3E_MMU
420 depends on FSL_BOOKE || PPC_BOOK3E
425 config PPC_HAVE_PMU_SUPPORT
429 bool "Create PMU SPRs sysfs file"
432 This option enables sysfs file creation for PMU SPRs like MMCR* and PMC*.
436 depends on PERF_EVENTS && PPC_HAVE_PMU_SUPPORT
438 This enables the powerpc-specific perf_event back-end.
441 # Allow platforms to force SMP=y by selecting this
446 depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x
447 select GENERIC_IRQ_MIGRATION
448 bool "Symmetric multi-processing support" if !FORCE_SMP
450 This enables support for systems with more than one CPU. If you have
451 a system with only one CPU, say N. If you have a system with more
452 than one CPU, say Y. Note that the kernel does not currently
453 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
454 since they have inadequate hardware support for multiprocessor
457 If you say N here, the kernel will run on single and multiprocessor
458 machines, but will use only one CPU of a multiprocessor machine. If
459 you say Y here, the kernel will run on single-processor machines.
460 On a single-processor machine, the kernel will run faster if you say
463 If you don't know what to do here, say N.
466 int "Maximum number of CPUs (2-8192)"
469 default "32" if PPC64
472 config NOT_COHERENT_CACHE
474 depends on 4xx || PPC_8xx || E200 || PPC_MPC512x || \
475 GAMECUBE_COMMON || AMIGAONE
476 select ARCH_HAS_DMA_PREP_COHERENT
477 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
478 select ARCH_HAS_SYNC_DMA_FOR_CPU
479 select DMA_DIRECT_REMAP
483 config CHECK_CACHE_COHERENCY
493 depends on PPC32 || CPU_BIG_ENDIAN
495 This symbol controls whether we build the 32-bit VDSO. We obviously
496 want to do that if we're building a 32-bit kernel. If we're building
497 a 64-bit kernel then we only want a 32-bit VDSO if we're building for
498 big endian. That is because the only little endian configuration we
499 support is ppc64le which is 64-bit only.
502 prompt "Endianness selection"
503 default CPU_BIG_ENDIAN
505 This option selects whether a big endian or little endian kernel will
508 config CPU_BIG_ENDIAN
509 bool "Build big endian kernel"
511 Build a big endian kernel.
513 If unsure, select this option.
515 config CPU_LITTLE_ENDIAN
516 bool "Build little endian kernel"
517 depends on PPC_BOOK3S_64
518 select PPC64_BOOT_WRAPPER
520 Build a little endian kernel.
522 Note that if cross compiling a little endian kernel,
523 CROSS_COMPILE must point to a toolchain capable of targeting
524 little endian powerpc.
528 config PPC64_BOOT_WRAPPER
530 depends on CPU_LITTLE_ENDIAN