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"
69 bool "Support for 603 SW loaded TLB"
70 depends on PPC_BOOK3S_32
73 Provide support for processors based on the 603 cores. Those
74 processors don't have a HASH MMU and provide SW TLB loading.
77 bool "Support for 604+ HASH MMU" if PPC_BOOK3S_603
78 depends on PPC_BOOK3S_32
81 Provide support for processors not based on the 603 cores.
82 Those processors have a HASH MMU.
85 prompt "Processor Type"
88 There are two families of 64 bit PowerPC chips supported.
89 The most common ones are the desktop and server CPUs
90 (POWER5, 970, POWER5+, POWER6, POWER7, POWER8, POWER9 ...)
92 The other are the "embedded" processors compliant with the
93 "Book 3E" variant of the architecture
96 bool "Server processors"
98 select PPC_HAVE_PMU_SUPPORT
99 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
100 select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
101 select ARCH_ENABLE_PMD_SPLIT_PTLOCK
102 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
103 select ARCH_SUPPORTS_HUGETLBFS
104 select ARCH_SUPPORTS_NUMA_BALANCING
113 bool "Embedded processors"
114 select PPC_FPU # Make it a choice ?
115 select PPC_SMP_MUXED_IPI
122 prompt "CPU selection"
125 This will create a kernel which is optimised for a particular CPU.
126 The resulting kernel may not run on other CPUs, so use this with care.
128 If unsure, select Generic.
131 bool "Generic (POWER4 and above)"
132 depends on PPC64 && !CPU_LITTLE_ENDIAN
135 bool "Generic (POWER8 and above)"
136 depends on PPC64 && CPU_LITTLE_ENDIAN
137 select ARCH_HAS_FAST_MULTIPLIER
140 bool "Generic 32 bits powerpc"
141 depends on PPC32 && !PPC_8xx
144 bool "Cell Broadband Engine"
145 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
149 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
153 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
157 depends on PPC_BOOK3S_64
158 select ARCH_HAS_FAST_MULTIPLIER
162 depends on PPC_BOOK3S_64
163 select ARCH_HAS_FAST_MULTIPLIER
167 depends on PPC_BOOK3S_64
168 select ARCH_HAS_FAST_MULTIPLIER
171 bool "Freescale e5500"
175 bool "Freescale e6500"
184 depends on PPC_BOOK3S_32
188 depends on PPC_BOOK3S_32
192 depends on PPC_BOOK3S_32
197 config TARGET_CPU_BOOL
203 depends on TARGET_CPU_BOOL
204 default "cell" if CELL_CPU
205 default "power5" if POWER5_CPU
206 default "power6" if POWER6_CPU
207 default "power7" if POWER7_CPU
208 default "power8" if POWER8_CPU
209 default "power9" if POWER9_CPU
210 default "860" if 860_CPU
211 default "e300c2" if E300C2_CPU
212 default "e300c3" if E300C3_CPU
213 default "G4" if G4_CPU
217 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
221 depends on PPC_BOOK3E_64
224 select FSL_EMB_PERFMON
225 select PPC_FSL_BOOK3E
229 bool "e500mc Support"
234 This must be enabled for running on e500mc (and derivatives
235 such as e5500/e6500), and must be disabled for running on
242 bool "Support for Floating Point Unit (FPU)" if PPC_MPC832x
246 This must be enabled to support the Floating Point Unit
247 Most 6xx have an FPU but e300c2 core (mpc832x) don't have
248 an FPU, so when building an embedded kernel for that target
249 you can disable FPU support.
253 config FSL_EMB_PERFMON
254 bool "Freescale Embedded Perfmon"
255 depends on E500 || PPC_83xx
257 This is the Performance Monitor support found on the e500 core
258 and some e300 cores (c3 and c4). Select this only if your
259 core supports the Embedded Performance Monitor APU
261 config FSL_EMB_PERF_EVENT
263 depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS
266 config FSL_EMB_PERF_EVENT_E500
268 depends on FSL_EMB_PERF_EVENT && E500
273 depends on 40x || 44x
278 depends on E500 || 44x || PPC_BOOK3E
283 depends on E500 && PPC32
286 # this is for common code between PPC32 & PPC64 FSL BOOKE
287 config PPC_FSL_BOOK3E
289 select ARCH_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
290 select FSL_EMB_PERFMON
291 select PPC_SMP_MUXED_IPI
293 default y if FSL_BOOKE
297 depends on 44x || E500 || PPC_86xx
298 default y if PHYS_64BIT
301 bool 'Large physical address support' if E500 || PPC_86xx
302 depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
303 select PHYS_ADDR_T_64BIT
305 This option enables kernel support for larger than 32-bit physical
306 addresses. This feature may not be available on all cores.
308 If you have more than 3.5GB of RAM or so, you also need to enable
309 SWIOTLB under Kernel Options for this to work. The actual number
310 is platform-dependent.
312 If in doubt, say N here.
315 bool "AltiVec Support"
316 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 || (PPC_E500MC && PPC64)
319 This option enables kernel support for the Altivec extensions to the
320 PowerPC processor. The kernel currently supports saving and restoring
321 altivec registers, and turning on the 'altivec enable' bit so user
322 processes can execute altivec instructions.
324 This option is only usefully if you have a processor that supports
325 altivec (G4, otherwise known as 74xx series), but does not have
326 any affect on a non-altivec cpu (it does, however add code to the
329 If in doubt, say Y here.
333 depends on PPC_BOOK3S_64 && ALTIVEC && PPC_FPU
336 This option enables kernel support for the Vector Scaler extensions
337 to the PowerPC processor. The kernel currently supports saving and
338 restoring VSX registers, and turning on the 'VSX enable' bit so user
339 processes can execute VSX instructions.
341 This option is only useful if you have a processor that supports
342 VSX (P7 and above), but does not have any affect on a non-VSX
343 CPUs (it does, however add code to the kernel).
345 If in doubt, say Y here.
349 depends on E500 && !PPC_E500MC
353 depends on SPE_POSSIBLE
356 This option enables kernel support for the Signal Processing
357 Extensions (SPE) to the PowerPC processor. The kernel currently
358 supports saving and restoring SPE registers, and turning on the
359 'spe enable' bit so user processes can execute SPE instructions.
361 This option is only useful if you have a processor that supports
362 SPE (e500, otherwise known as 85xx series), but does not have any
363 effect on a non-spe cpu (it does, however add code to the kernel).
365 If in doubt, say Y here.
368 bool "Radix MMU Support"
369 depends on PPC_BOOK3S_64
370 select ARCH_HAS_GIGANTIC_PAGE
373 Enable support for the Power ISA 3.0 Radix style MMU. Currently this
374 is only implemented by IBM Power9 CPUs, if you don't have one of them
375 you can probably disable this.
377 config PPC_RADIX_MMU_DEFAULT
378 bool "Default to using the Radix MMU when possible"
379 depends on PPC_RADIX_MMU
382 When the hardware supports the Radix MMU, default to using it unless
383 "disable_radix[=yes]" is specified on the kernel command line.
385 If this option is disabled, the Hash MMU will be used by default,
386 unless "disable_radix=no" is specified on the kernel command line.
388 If you're unsure, say Y.
394 bool "Kernel Userspace Execution Prevention"
395 depends on PPC_HAVE_KUEP
398 Enable support for Kernel Userspace Execution Prevention (KUEP)
400 If you're unsure, say Y.
406 bool "Kernel Userspace Access Protection"
407 depends on PPC_HAVE_KUAP
410 Enable support for Kernel Userspace Access Protection (KUAP)
412 If you're unsure, say Y.
414 config PPC_KUAP_DEBUG
415 bool "Extra debugging for Kernel Userspace Access Protection"
416 depends on PPC_KUAP && (PPC_RADIX_MMU || PPC32)
418 Add extra debugging for Kernel Userspace Access Protection (KUAP)
419 If you're unsure, say N.
423 depends on PPC_BOOK3S_64
424 depends on PPC_MEM_KEYS || PPC_KUAP || PPC_KUEP
427 config PPC_MMU_NOHASH
429 depends on !PPC_BOOK3S
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)" if SMP
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