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
14 menu "Processor support"
16 prompt "Processor Type"
19 There are five families of 32 bit PowerPC chips supported.
20 The most common ones are the desktop and server CPUs (603,
21 604, 740, 750, 74xx) CPUs from Freescale and IBM, with their
22 embedded 512x/52xx/82xx/83xx/86xx counterparts.
23 The other embedded parts, namely 4xx, 8xx and e500
24 (85xx) each form a family of their own that is not compatible
27 If unsure, select 52xx/6xx/7xx/74xx/82xx/83xx/86xx.
30 bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx"
32 select PPC_HAVE_PMU_SUPPORT
35 select HAVE_ARCH_VMAP_STACK
43 select ARCH_SUPPORTS_HUGETLBFS
47 select HAVE_ARCH_VMAP_STACK
58 bool "AMCC 44x, 46x or 47x"
68 bool "Support for 603 SW loaded TLB"
69 depends on PPC_BOOK3S_32
72 Provide support for processors based on the 603 cores. Those
73 processors don't have a HASH MMU and provide SW TLB loading.
76 bool "Support for 604+ HASH MMU" if PPC_BOOK3S_603
77 depends on PPC_BOOK3S_32
80 Provide support for processors not based on the 603 cores.
81 Those processors have a HASH MMU.
84 prompt "Processor Type"
87 There are two families of 64 bit PowerPC chips supported.
88 The most common ones are the desktop and server CPUs
89 (POWER5, 970, POWER5+, POWER6, POWER7, POWER8, POWER9 ...)
91 The other are the "embedded" processors compliant with the
92 "Book 3E" variant of the architecture
95 bool "Server processors"
97 select PPC_HAVE_PMU_SUPPORT
98 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
99 select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
100 select ARCH_ENABLE_PMD_SPLIT_PTLOCK
101 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
102 select ARCH_SUPPORTS_HUGETLBFS
103 select ARCH_SUPPORTS_NUMA_BALANCING
110 bool "Embedded processors"
111 select PPC_FPU # Make it a choice ?
112 select PPC_SMP_MUXED_IPI
118 prompt "CPU selection"
121 This will create a kernel which is optimised for a particular CPU.
122 The resulting kernel may not run on other CPUs, so use this with care.
124 If unsure, select Generic.
127 bool "Generic (POWER4 and above)"
128 depends on PPC64 && !CPU_LITTLE_ENDIAN
131 bool "Generic (POWER8 and above)"
132 depends on PPC64 && CPU_LITTLE_ENDIAN
133 select ARCH_HAS_FAST_MULTIPLIER
136 bool "Generic 32 bits powerpc"
137 depends on PPC32 && !PPC_8xx
140 bool "Cell Broadband Engine"
141 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
145 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
149 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
153 depends on PPC_BOOK3S_64
154 select ARCH_HAS_FAST_MULTIPLIER
158 depends on PPC_BOOK3S_64
159 select ARCH_HAS_FAST_MULTIPLIER
163 depends on PPC_BOOK3S_64
164 select ARCH_HAS_FAST_MULTIPLIER
167 bool "Freescale e5500"
171 bool "Freescale e6500"
180 depends on PPC_BOOK3S_32
184 depends on PPC_BOOK3S_32
188 depends on PPC_BOOK3S_32
193 config TARGET_CPU_BOOL
199 depends on TARGET_CPU_BOOL
200 default "cell" if CELL_CPU
201 default "power5" if POWER5_CPU
202 default "power6" if POWER6_CPU
203 default "power7" if POWER7_CPU
204 default "power8" if POWER8_CPU
205 default "power9" if POWER9_CPU
206 default "860" if 860_CPU
207 default "e300c2" if E300C2_CPU
208 default "e300c3" if E300C3_CPU
209 default "G4" if G4_CPU
213 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
217 depends on PPC_BOOK3E_64
220 select FSL_EMB_PERFMON
221 select PPC_FSL_BOOK3E
225 bool "e500mc Support"
230 This must be enabled for running on e500mc (and derivatives
231 such as e5500/e6500), and must be disabled for running on
238 bool "Support for Floating Point Unit (FPU)" if PPC_MPC832x
242 This must be enabled to support the Floating Point Unit
243 Most 6xx have an FPU but e300c2 core (mpc832x) don't have
244 an FPU, so when building an embedded kernel for that target
245 you can disable FPU support.
249 config FSL_EMB_PERFMON
250 bool "Freescale Embedded Perfmon"
251 depends on E500 || PPC_83xx
253 This is the Performance Monitor support found on the e500 core
254 and some e300 cores (c3 and c4). Select this only if your
255 core supports the Embedded Performance Monitor APU
257 config FSL_EMB_PERF_EVENT
259 depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS
262 config FSL_EMB_PERF_EVENT_E500
264 depends on FSL_EMB_PERF_EVENT && E500
269 depends on 40x || 44x
274 depends on E500 || 44x || PPC_BOOK3E
279 depends on E500 && PPC32
282 # this is for common code between PPC32 & PPC64 FSL BOOKE
283 config PPC_FSL_BOOK3E
285 select ARCH_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
286 select FSL_EMB_PERFMON
287 select PPC_SMP_MUXED_IPI
289 default y if FSL_BOOKE
293 depends on 44x || E500 || PPC_86xx
294 default y if PHYS_64BIT
297 bool 'Large physical address support' if E500 || PPC_86xx
298 depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
299 select PHYS_ADDR_T_64BIT
301 This option enables kernel support for larger than 32-bit physical
302 addresses. This feature may not be available on all cores.
304 If you have more than 3.5GB of RAM or so, you also need to enable
305 SWIOTLB under Kernel Options for this to work. The actual number
306 is platform-dependent.
308 If in doubt, say N here.
311 bool "AltiVec Support"
312 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 || (PPC_E500MC && PPC64)
315 This option enables kernel support for the Altivec extensions to the
316 PowerPC processor. The kernel currently supports saving and restoring
317 altivec registers, and turning on the 'altivec enable' bit so user
318 processes can execute altivec instructions.
320 This option is only usefully if you have a processor that supports
321 altivec (G4, otherwise known as 74xx series), but does not have
322 any affect on a non-altivec cpu (it does, however add code to the
325 If in doubt, say Y here.
329 depends on PPC_BOOK3S_64 && ALTIVEC && PPC_FPU
332 This option enables kernel support for the Vector Scaler extensions
333 to the PowerPC processor. The kernel currently supports saving and
334 restoring VSX registers, and turning on the 'VSX enable' bit so user
335 processes can execute VSX instructions.
337 This option is only useful if you have a processor that supports
338 VSX (P7 and above), but does not have any affect on a non-VSX
339 CPUs (it does, however add code to the kernel).
341 If in doubt, say Y here.
345 depends on E500 && !PPC_E500MC
349 depends on SPE_POSSIBLE
352 This option enables kernel support for the Signal Processing
353 Extensions (SPE) to the PowerPC processor. The kernel currently
354 supports saving and restoring SPE registers, and turning on the
355 'spe enable' bit so user processes can execute SPE instructions.
357 This option is only useful if you have a processor that supports
358 SPE (e500, otherwise known as 85xx series), but does not have any
359 effect on a non-spe cpu (it does, however add code to the kernel).
361 If in doubt, say Y here.
364 bool "Radix MMU Support"
365 depends on PPC_BOOK3S_64
366 select ARCH_HAS_GIGANTIC_PAGE
369 Enable support for the Power ISA 3.0 Radix style MMU. Currently this
370 is only implemented by IBM Power9 CPUs, if you don't have one of them
371 you can probably disable this.
373 config PPC_RADIX_MMU_DEFAULT
374 bool "Default to using the Radix MMU when possible"
375 depends on PPC_RADIX_MMU
378 When the hardware supports the Radix MMU, default to using it unless
379 "disable_radix[=yes]" is specified on the kernel command line.
381 If this option is disabled, the Hash MMU will be used by default,
382 unless "disable_radix=no" is specified on the kernel command line.
384 If you're unsure, say Y.
390 bool "Kernel Userspace Execution Prevention"
391 depends on PPC_HAVE_KUEP
392 default y if !PPC_BOOK3S_32
394 Enable support for Kernel Userspace Execution Prevention (KUEP)
396 If you're unsure, say Y.
402 bool "Kernel Userspace Access Protection"
403 depends on PPC_HAVE_KUAP
404 default y if !PPC_BOOK3S_32
406 Enable support for Kernel Userspace Access Protection (KUAP)
408 If you're unsure, say Y.
410 config PPC_KUAP_DEBUG
411 bool "Extra debugging for Kernel Userspace Access Protection"
412 depends on PPC_KUAP && (PPC_RADIX_MMU || PPC32)
414 Add extra debugging for Kernel Userspace Access Protection (KUAP)
415 If you're unsure, say N.
419 depends on PPC_BOOK3S_64
420 depends on PPC_MEM_KEYS || PPC_KUAP || PPC_KUEP
423 config PPC_MMU_NOHASH
425 depends on !PPC_BOOK3S
427 config PPC_MMU_NOHASH_32
429 depends on PPC_MMU_NOHASH && PPC32
431 config PPC_BOOK3E_MMU
433 depends on FSL_BOOKE || PPC_BOOK3E
438 config PPC_HAVE_PMU_SUPPORT
442 bool "Create PMU SPRs sysfs file"
445 This option enables sysfs file creation for PMU SPRs like MMCR* and PMC*.
449 depends on PERF_EVENTS && PPC_HAVE_PMU_SUPPORT
451 This enables the powerpc-specific perf_event back-end.
454 # Allow platforms to force SMP=y by selecting this
459 depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x
460 select GENERIC_IRQ_MIGRATION
461 bool "Symmetric multi-processing support" if !FORCE_SMP
463 This enables support for systems with more than one CPU. If you have
464 a system with only one CPU, say N. If you have a system with more
465 than one CPU, say Y. Note that the kernel does not currently
466 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
467 since they have inadequate hardware support for multiprocessor
470 If you say N here, the kernel will run on single and multiprocessor
471 machines, but will use only one CPU of a multiprocessor machine. If
472 you say Y here, the kernel will run on single-processor machines.
473 On a single-processor machine, the kernel will run faster if you say
476 If you don't know what to do here, say N.
479 int "Maximum number of CPUs (2-8192)"
482 default "32" if PPC64
485 config NOT_COHERENT_CACHE
487 depends on 4xx || PPC_8xx || PPC_MPC512x || \
488 GAMECUBE_COMMON || AMIGAONE
489 select ARCH_HAS_DMA_PREP_COHERENT
490 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
491 select ARCH_HAS_SYNC_DMA_FOR_CPU
492 select DMA_DIRECT_REMAP
496 config CHECK_CACHE_COHERENCY
506 depends on PPC32 || COMPAT
508 This symbol controls whether we build the 32-bit VDSO. We obviously
509 want to do that if we're building a 32-bit kernel. If we're building
510 a 64-bit kernel then we only want a 32-bit VDSO if we're also enabling
514 prompt "Endianness selection"
515 default CPU_BIG_ENDIAN
517 This option selects whether a big endian or little endian kernel will
520 config CPU_BIG_ENDIAN
521 bool "Build big endian kernel"
523 Build a big endian kernel.
525 If unsure, select this option.
527 config CPU_LITTLE_ENDIAN
528 bool "Build little endian kernel"
529 depends on PPC_BOOK3S_64
530 select PPC64_BOOT_WRAPPER
532 Build a little endian kernel.
534 Note that if cross compiling a little endian kernel,
535 CROSS_COMPILE must point to a toolchain capable of targeting
536 little endian powerpc.
540 config PPC64_BOOT_WRAPPER
542 depends on CPU_LITTLE_ENDIAN