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
68 bool "AMCC 44x, 46x or 47x"
81 prompt "Processor Type"
84 There are two families of 64 bit PowerPC chips supported.
85 The most common ones are the desktop and server CPUs
86 (POWER5, 970, POWER5+, POWER6, POWER7, POWER8, POWER9 ...)
88 The other are the "embedded" processors compliant with the
89 "Book 3E" variant of the architecture
92 bool "Server processors"
94 select PPC_HAVE_PMU_SUPPORT
95 select SYS_SUPPORTS_HUGETLBFS
96 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
97 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
98 select ARCH_SUPPORTS_NUMA_BALANCING
103 bool "Embedded processors"
104 select PPC_FPU # Make it a choice ?
105 select PPC_SMP_MUXED_IPI
111 prompt "CPU selection"
114 This will create a kernel which is optimised for a particular CPU.
115 The resulting kernel may not run on other CPUs, so use this with care.
117 If unsure, select Generic.
120 bool "Generic (POWER4 and above)"
121 depends on PPC64 && !CPU_LITTLE_ENDIAN
124 bool "Generic (POWER8 and above)"
125 depends on PPC64 && CPU_LITTLE_ENDIAN
126 select ARCH_HAS_FAST_MULTIPLIER
129 bool "Generic 32 bits powerpc"
130 depends on PPC32 && !PPC_8xx
133 bool "Cell Broadband Engine"
134 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
138 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
142 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
146 depends on PPC_BOOK3S_64
147 select ARCH_HAS_FAST_MULTIPLIER
151 depends on PPC_BOOK3S_64
152 select ARCH_HAS_FAST_MULTIPLIER
156 depends on PPC_BOOK3S_64
157 select ARCH_HAS_FAST_MULTIPLIER
160 bool "Freescale e5500"
164 bool "Freescale e6500"
173 depends on PPC_BOOK3S_32
177 depends on PPC_BOOK3S_32
181 depends on PPC_BOOK3S_32
186 config TARGET_CPU_BOOL
192 depends on TARGET_CPU_BOOL
193 default "cell" if CELL_CPU
194 default "power5" if POWER5_CPU
195 default "power6" if POWER6_CPU
196 default "power7" if POWER7_CPU
197 default "power8" if POWER8_CPU
198 default "power9" if POWER9_CPU
199 default "860" if 860_CPU
200 default "e300c2" if E300C2_CPU
201 default "e300c3" if E300C3_CPU
202 default "G4" if G4_CPU
206 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
210 depends on PPC_BOOK3E_64
213 select FSL_EMB_PERFMON
214 select PPC_FSL_BOOK3E
218 bool "e500mc Support"
223 This must be enabled for running on e500mc (and derivatives
224 such as e5500/e6500), and must be disabled for running on
231 config FSL_EMB_PERFMON
232 bool "Freescale Embedded Perfmon"
233 depends on E500 || PPC_83xx
235 This is the Performance Monitor support found on the e500 core
236 and some e300 cores (c3 and c4). Select this only if your
237 core supports the Embedded Performance Monitor APU
239 config FSL_EMB_PERF_EVENT
241 depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS
244 config FSL_EMB_PERF_EVENT_E500
246 depends on FSL_EMB_PERF_EVENT && E500
251 depends on 40x || 44x
256 depends on E200 || E500 || 44x || PPC_BOOK3E
261 depends on (E200 || E500) && PPC32
264 # this is for common code between PPC32 & PPC64 FSL BOOKE
265 config PPC_FSL_BOOK3E
267 select FSL_EMB_PERFMON
268 select PPC_SMP_MUXED_IPI
269 select SYS_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
271 default y if FSL_BOOKE
275 depends on 44x || E500 || PPC_86xx
276 default y if PHYS_64BIT
279 bool 'Large physical address support' if E500 || PPC_86xx
280 depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
281 select PHYS_ADDR_T_64BIT
283 This option enables kernel support for larger than 32-bit physical
284 addresses. This feature may not be available on all cores.
286 If you have more than 3.5GB of RAM or so, you also need to enable
287 SWIOTLB under Kernel Options for this to work. The actual number
288 is platform-dependent.
290 If in doubt, say N here.
293 bool "AltiVec Support"
294 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 || (PPC_E500MC && PPC64)
296 This option enables kernel support for the Altivec extensions to the
297 PowerPC processor. The kernel currently supports saving and restoring
298 altivec registers, and turning on the 'altivec enable' bit so user
299 processes can execute altivec instructions.
301 This option is only usefully if you have a processor that supports
302 altivec (G4, otherwise known as 74xx series), but does not have
303 any affect on a non-altivec cpu (it does, however add code to the
306 If in doubt, say Y here.
310 depends on PPC_BOOK3S_64 && ALTIVEC && PPC_FPU
313 This option enables kernel support for the Vector Scaler extensions
314 to the PowerPC processor. The kernel currently supports saving and
315 restoring VSX registers, and turning on the 'VSX enable' bit so user
316 processes can execute VSX instructions.
318 This option is only useful if you have a processor that supports
319 VSX (P7 and above), but does not have any affect on a non-VSX
320 CPUs (it does, however add code to the kernel).
322 If in doubt, say Y here.
326 depends on E200 || (E500 && !PPC_E500MC)
330 depends on SPE_POSSIBLE
333 This option enables kernel support for the Signal Processing
334 Extensions (SPE) to the PowerPC processor. The kernel currently
335 supports saving and restoring SPE registers, and turning on the
336 'spe enable' bit so user processes can execute SPE instructions.
338 This option is only useful if you have a processor that supports
339 SPE (e500, otherwise known as 85xx series), but does not have any
340 effect on a non-spe cpu (it does, however add code to the kernel).
342 If in doubt, say Y here.
344 config ARCH_ENABLE_SPLIT_PMD_PTLOCK
346 depends on PPC_BOOK3S_64
349 bool "Radix MMU Support"
350 depends on PPC_BOOK3S_64
351 select ARCH_HAS_GIGANTIC_PAGE
356 Enable support for the Power ISA 3.0 Radix style MMU. Currently this
357 is only implemented by IBM Power9 CPUs, if you don't have one of them
358 you can probably disable this.
360 config PPC_RADIX_MMU_DEFAULT
361 bool "Default to using the Radix MMU when possible"
362 depends on PPC_RADIX_MMU
365 When the hardware supports the Radix MMU, default to using it unless
366 "disable_radix[=yes]" is specified on the kernel command line.
368 If this option is disabled, the Hash MMU will be used by default,
369 unless "disable_radix=no" is specified on the kernel command line.
371 If you're unsure, say Y.
377 bool "Kernel Userspace Execution Prevention"
378 depends on PPC_HAVE_KUEP
381 Enable support for Kernel Userspace Execution Prevention (KUEP)
383 If you're unsure, say Y.
389 bool "Kernel Userspace Access Protection"
390 depends on PPC_HAVE_KUAP
393 Enable support for Kernel Userspace Access Protection (KUAP)
395 If you're unsure, say Y.
397 config PPC_KUAP_DEBUG
398 bool "Extra debugging for Kernel Userspace Access Protection"
399 depends on PPC_KUAP && (PPC_RADIX_MMU || PPC_32)
401 Add extra debugging for Kernel Userspace Access Protection (KUAP)
402 If you're unsure, say N.
404 config ARCH_ENABLE_HUGEPAGE_MIGRATION
406 depends on PPC_BOOK3S_64 && HUGETLB_PAGE && MIGRATION
409 config PPC_MMU_NOHASH
411 depends on !PPC_BOOK3S
413 config PPC_MMU_NOHASH_32
415 depends on PPC_MMU_NOHASH && PPC32
417 config PPC_BOOK3E_MMU
419 depends on FSL_BOOKE || PPC_BOOK3E
424 config PPC_HAVE_PMU_SUPPORT
428 bool "Create PMU SPRs sysfs file"
431 This option enables sysfs file creation for PMU SPRs like MMCR* and PMC*.
435 depends on PERF_EVENTS && PPC_HAVE_PMU_SUPPORT
437 This enables the powerpc-specific perf_event back-end.
440 # Allow platforms to force SMP=y by selecting this
445 depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x
446 select GENERIC_IRQ_MIGRATION
447 bool "Symmetric multi-processing support" if !FORCE_SMP
449 This enables support for systems with more than one CPU. If you have
450 a system with only one CPU, say N. If you have a system with more
451 than one CPU, say Y. Note that the kernel does not currently
452 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
453 since they have inadequate hardware support for multiprocessor
456 If you say N here, the kernel will run on single and multiprocessor
457 machines, but will use only one CPU of a multiprocessor machine. If
458 you say Y here, the kernel will run on single-processor machines.
459 On a single-processor machine, the kernel will run faster if you say
462 If you don't know what to do here, say N.
465 int "Maximum number of CPUs (2-8192)"
468 default "32" if PPC64
471 config NOT_COHERENT_CACHE
473 depends on 4xx || PPC_8xx || E200 || PPC_MPC512x || \
474 GAMECUBE_COMMON || AMIGAONE
475 select ARCH_HAS_DMA_PREP_COHERENT
476 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
477 select ARCH_HAS_SYNC_DMA_FOR_CPU
478 select DMA_DIRECT_REMAP
482 config CHECK_CACHE_COHERENCY
492 depends on PPC32 || CPU_BIG_ENDIAN
494 This symbol controls whether we build the 32-bit VDSO. We obviously
495 want to do that if we're building a 32-bit kernel. If we're building
496 a 64-bit kernel then we only want a 32-bit VDSO if we're building for
497 big endian. That is because the only little endian configuration we
498 support is ppc64le which is 64-bit only.
501 prompt "Endianness selection"
502 default CPU_BIG_ENDIAN
504 This option selects whether a big endian or little endian kernel will
507 config CPU_BIG_ENDIAN
508 bool "Build big endian kernel"
510 Build a big endian kernel.
512 If unsure, select this option.
514 config CPU_LITTLE_ENDIAN
515 bool "Build little endian kernel"
516 depends on PPC_BOOK3S_64
517 select PPC64_BOOT_WRAPPER
519 Build a little endian kernel.
521 Note that if cross compiling a little endian kernel,
522 CROSS_COMPILE must point to a toolchain capable of targeting
523 little endian powerpc.
527 config PPC64_BOOT_WRAPPER
529 depends on CPU_LITTLE_ENDIAN