xref: /linux/arch/powerpc/Kconfig (revision 808094fcbf4196be0feb17afbbdc182ec95c8cec)
1# SPDX-License-Identifier: GPL-2.0
2source "arch/powerpc/platforms/Kconfig.cputype"
3
4config 32BIT
5	bool
6	default y if PPC32
7
8config 64BIT
9	bool
10	default y if PPC64
11
12config MMU
13	bool
14	default y
15
16config ARCH_MMAP_RND_BITS_MAX
17	# On Book3S 64, the default virtual address space for 64-bit processes
18	# is 2^47 (128TB). As a maximum, allow randomisation to consume up to
19	# 32T of address space (2^45), which should ensure a reasonable gap
20	# between bottom-up and top-down allocations for applications that
21	# consume "normal" amounts of address space. Book3S 64 only supports 64K
22	# and 4K page sizes.
23	default 29 if PPC_BOOK3S_64 && PPC_64K_PAGES # 29 = 45 (32T) - 16 (64K)
24	default 33 if PPC_BOOK3S_64		     # 33 = 45 (32T) - 12 (4K)
25	#
26	# On all other 64-bit platforms (currently only Book3E), the virtual
27	# address space is 2^46 (64TB). Allow randomisation to consume up to 16T
28	# of address space (2^44). Only 4K page sizes are supported.
29	default 32 if 64BIT	# 32 = 44 (16T) - 12 (4K)
30	#
31	# For 32-bit, use the compat values, as they're the same.
32	default ARCH_MMAP_RND_COMPAT_BITS_MAX
33
34config ARCH_MMAP_RND_BITS_MIN
35	# Allow randomisation to consume up to 1GB of address space (2^30).
36	default 14 if 64BIT && PPC_64K_PAGES	# 14 = 30 (1GB) - 16 (64K)
37	default 18 if 64BIT			# 18 = 30 (1GB) - 12 (4K)
38	#
39	# For 32-bit, use the compat values, as they're the same.
40	default ARCH_MMAP_RND_COMPAT_BITS_MIN
41
42config ARCH_MMAP_RND_COMPAT_BITS_MAX
43	# Total virtual address space for 32-bit processes is 2^31 (2GB).
44	# Allow randomisation to consume up to 512MB of address space (2^29).
45	default 11 if PPC_256K_PAGES	# 11 = 29 (512MB) - 18 (256K)
46	default 13 if PPC_64K_PAGES	# 13 = 29 (512MB) - 16 (64K)
47	default 15 if PPC_16K_PAGES	# 15 = 29 (512MB) - 14 (16K)
48	default 17			# 17 = 29 (512MB) - 12 (4K)
49
50config ARCH_MMAP_RND_COMPAT_BITS_MIN
51	# Total virtual address space for 32-bit processes is 2^31 (2GB).
52	# Allow randomisation to consume up to 8MB of address space (2^23).
53	default 5 if PPC_256K_PAGES	#  5 = 23 (8MB) - 18 (256K)
54	default 7 if PPC_64K_PAGES	#  7 = 23 (8MB) - 16 (64K)
55	default 9 if PPC_16K_PAGES	#  9 = 23 (8MB) - 14 (16K)
56	default 11			# 11 = 23 (8MB) - 12 (4K)
57
58config HAVE_SETUP_PER_CPU_AREA
59	def_bool PPC64
60
61config NEED_PER_CPU_EMBED_FIRST_CHUNK
62	def_bool y if PPC64
63
64config NEED_PER_CPU_PAGE_FIRST_CHUNK
65	def_bool y if PPC64
66
67config NR_IRQS
68	int "Number of virtual interrupt numbers"
69	range 32 1048576
70	default "512"
71	help
72	  This defines the number of virtual interrupt numbers the kernel
73	  can manage. Virtual interrupt numbers are what you see in
74	  /proc/interrupts. If you configure your system to have too few,
75	  drivers will fail to load or worse - handle with care.
76
77config NMI_IPI
78	bool
79	depends on SMP && (DEBUGGER || KEXEC_CORE || HARDLOCKUP_DETECTOR)
80	default y
81
82config PPC_WATCHDOG
83	bool
84	depends on HARDLOCKUP_DETECTOR
85	depends on HAVE_HARDLOCKUP_DETECTOR_ARCH
86	default y
87	help
88	  This is a placeholder when the powerpc hardlockup detector
89	  watchdog is selected (arch/powerpc/kernel/watchdog.c). It is
90	  selected via the generic lockup detector menu which is why we
91	  have no standalone config option for it here.
92
93config STACKTRACE_SUPPORT
94	bool
95	default y
96
97config TRACE_IRQFLAGS_SUPPORT
98	bool
99	default y
100
101config LOCKDEP_SUPPORT
102	bool
103	default y
104
105config GENERIC_LOCKBREAK
106	bool
107	default y
108	depends on SMP && PREEMPTION
109
110config GENERIC_HWEIGHT
111	bool
112	default y
113
114config PPC
115	bool
116	default y
117	#
118	# Please keep this list sorted alphabetically.
119	#
120	select ARCH_32BIT_OFF_T if PPC32
121	select ARCH_HAS_DEBUG_VIRTUAL
122	select ARCH_HAS_DEBUG_VM_PGTABLE
123	select ARCH_HAS_DEVMEM_IS_ALLOWED
124	select ARCH_HAS_ELF_RANDOMIZE
125	select ARCH_HAS_FORTIFY_SOURCE
126	select ARCH_HAS_GCOV_PROFILE_ALL
127	select ARCH_HAS_KCOV
128	select ARCH_HAS_HUGEPD			if HUGETLB_PAGE
129	select ARCH_HAS_MEMREMAP_COMPAT_ALIGN
130	select ARCH_HAS_MMIOWB			if PPC64
131	select ARCH_HAS_PHYS_TO_DMA
132	select ARCH_HAS_PMEM_API
133	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
134	select ARCH_HAS_PTE_DEVMAP		if PPC_BOOK3S_64
135	select ARCH_HAS_PTE_SPECIAL
136	select ARCH_HAS_MEMBARRIER_CALLBACKS
137	select ARCH_HAS_MEMBARRIER_SYNC_CORE
138	select ARCH_HAS_SCALED_CPUTIME		if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
139	select ARCH_HAS_STRICT_KERNEL_RWX	if ((PPC_BOOK3S_64 || PPC32) && !HIBERNATION)
140	select ARCH_HAS_TICK_BROADCAST		if GENERIC_CLOCKEVENTS_BROADCAST
141	select ARCH_HAS_UACCESS_FLUSHCACHE
142	select ARCH_HAS_COPY_MC			if PPC64
143	select ARCH_HAS_UBSAN_SANITIZE_ALL
144	select ARCH_HAVE_NMI_SAFE_CMPXCHG
145	select ARCH_KEEP_MEMBLOCK
146	select ARCH_MIGHT_HAVE_PC_PARPORT
147	select ARCH_MIGHT_HAVE_PC_SERIO
148	select ARCH_OPTIONAL_KERNEL_RWX		if ARCH_HAS_STRICT_KERNEL_RWX
149	select ARCH_STACKWALK
150	select ARCH_SUPPORTS_ATOMIC_RMW
151	select ARCH_SUPPORTS_DEBUG_PAGEALLOC	if PPC32 || PPC_BOOK3S_64
152	select ARCH_USE_BUILTIN_BSWAP
153	select ARCH_USE_CMPXCHG_LOCKREF		if PPC64
154	select ARCH_USE_QUEUED_RWLOCKS		if PPC_QUEUED_SPINLOCKS
155	select ARCH_USE_QUEUED_SPINLOCKS	if PPC_QUEUED_SPINLOCKS
156	select ARCH_WANT_IPC_PARSE_VERSION
157	select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
158	select ARCH_WANT_LD_ORPHAN_WARN
159	select ARCH_WEAK_RELEASE_ACQUIRE
160	select BINFMT_ELF
161	select BUILDTIME_TABLE_SORT
162	select CLONE_BACKWARDS
163	select DCACHE_WORD_ACCESS		if PPC64 && CPU_LITTLE_ENDIAN
164	select DMA_OPS				if PPC64
165	select DMA_OPS_BYPASS			if PPC64
166	select ARCH_HAS_DMA_MAP_DIRECT 		if PPC64 && PPC_PSERIES
167	select DYNAMIC_FTRACE			if FUNCTION_TRACER
168	select EDAC_ATOMIC_SCRUB
169	select EDAC_SUPPORT
170	select GENERIC_ATOMIC64			if PPC32
171	select GENERIC_CLOCKEVENTS_BROADCAST	if SMP
172	select GENERIC_CMOS_UPDATE
173	select GENERIC_CPU_AUTOPROBE
174	select GENERIC_CPU_VULNERABILITIES	if PPC_BARRIER_NOSPEC
175	select GENERIC_EARLY_IOREMAP
176	select GENERIC_IRQ_SHOW
177	select GENERIC_IRQ_SHOW_LEVEL
178	select GENERIC_PCI_IOMAP		if PCI
179	select GENERIC_SMP_IDLE_THREAD
180	select GENERIC_STRNCPY_FROM_USER
181	select GENERIC_STRNLEN_USER
182	select GENERIC_TIME_VSYSCALL
183	select GENERIC_GETTIMEOFDAY
184	select HAVE_ARCH_AUDITSYSCALL
185	select HAVE_ARCH_HUGE_VMAP		if PPC_BOOK3S_64 && PPC_RADIX_MMU
186	select HAVE_ARCH_JUMP_LABEL
187	select HAVE_ARCH_JUMP_LABEL_RELATIVE
188	select HAVE_ARCH_KASAN			if PPC32 && PPC_PAGE_SHIFT <= 14
189	select HAVE_ARCH_KASAN_VMALLOC		if PPC32 && PPC_PAGE_SHIFT <= 14
190	select HAVE_ARCH_KGDB
191	select HAVE_ARCH_KFENCE			if PPC32
192	select HAVE_ARCH_MMAP_RND_BITS
193	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if COMPAT
194	select HAVE_ARCH_NVRAM_OPS
195	select HAVE_ARCH_SECCOMP_FILTER
196	select HAVE_ARCH_TRACEHOOK
197	select HAVE_ASM_MODVERSIONS
198	select HAVE_C_RECORDMCOUNT
199	select HAVE_STACKPROTECTOR		if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13)
200	select HAVE_STACKPROTECTOR		if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2)
201	select HAVE_CONTEXT_TRACKING		if PPC64
202	select HAVE_DEBUG_KMEMLEAK
203	select HAVE_DEBUG_STACKOVERFLOW
204	select HAVE_DYNAMIC_FTRACE
205	select HAVE_DYNAMIC_FTRACE_WITH_REGS	if MPROFILE_KERNEL
206	select HAVE_EBPF_JIT
207	select HAVE_EFFICIENT_UNALIGNED_ACCESS	if !(CPU_LITTLE_ENDIAN && POWER7_CPU)
208	select HAVE_FAST_GUP
209	select HAVE_FTRACE_MCOUNT_RECORD
210	select HAVE_FUNCTION_ERROR_INJECTION
211	select HAVE_FUNCTION_GRAPH_TRACER
212	select HAVE_FUNCTION_TRACER
213	select HAVE_GCC_PLUGINS			if GCC_VERSION >= 50200   # plugin support on gcc <= 5.1 is buggy on PPC
214	select HAVE_GENERIC_VDSO
215	select HAVE_HW_BREAKPOINT		if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx)
216	select HAVE_IDE
217	select HAVE_IOREMAP_PROT
218	select HAVE_IRQ_EXIT_ON_IRQ_STACK
219	select HAVE_KERNEL_GZIP
220	select HAVE_KERNEL_LZMA			if DEFAULT_UIMAGE
221	select HAVE_KERNEL_LZO			if DEFAULT_UIMAGE
222	select HAVE_KERNEL_XZ			if PPC_BOOK3S || 44x
223	select HAVE_KPROBES
224	select HAVE_KPROBES_ON_FTRACE
225	select HAVE_KRETPROBES
226	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
227	select HAVE_LIVEPATCH			if HAVE_DYNAMIC_FTRACE_WITH_REGS
228	select HAVE_MOD_ARCH_SPECIFIC
229	select HAVE_NMI				if PERF_EVENTS || (PPC64 && PPC_BOOK3S)
230	select HAVE_HARDLOCKUP_DETECTOR_ARCH	if PPC64 && PPC_BOOK3S && SMP
231	select HAVE_OPTPROBES			if PPC64
232	select HAVE_PERF_EVENTS
233	select HAVE_PERF_EVENTS_NMI		if PPC64
234	select HAVE_HARDLOCKUP_DETECTOR_PERF	if PERF_EVENTS && HAVE_PERF_EVENTS_NMI && !HAVE_HARDLOCKUP_DETECTOR_ARCH
235	select HAVE_PERF_REGS
236	select HAVE_PERF_USER_STACK_DUMP
237	select MMU_GATHER_RCU_TABLE_FREE
238	select MMU_GATHER_PAGE_SIZE
239	select HAVE_REGS_AND_STACK_ACCESS_API
240	select HAVE_RELIABLE_STACKTRACE
241	select HAVE_SOFTIRQ_ON_OWN_STACK
242	select HAVE_SYSCALL_TRACEPOINTS
243	select HAVE_VIRT_CPU_ACCOUNTING
244	select HAVE_IRQ_TIME_ACCOUNTING
245	select HAVE_RSEQ
246	select IOMMU_HELPER			if PPC64
247	select IRQ_DOMAIN
248	select IRQ_FORCED_THREADING
249	select MODULES_USE_ELF_RELA
250	select NEED_DMA_MAP_STATE		if PPC64 || NOT_COHERENT_CACHE
251	select NEED_SG_DMA_LENGTH
252	select OF
253	select OF_DMA_DEFAULT_COHERENT		if !NOT_COHERENT_CACHE
254	select OF_EARLY_FLATTREE
255	select OLD_SIGACTION			if PPC32
256	select OLD_SIGSUSPEND
257	select PCI_DOMAINS			if PCI
258	select PCI_MSI_ARCH_FALLBACKS		if PCI_MSI
259	select PCI_SYSCALL			if PCI
260	select PPC_DAWR				if PPC64
261	select RTC_LIB
262	select SPARSE_IRQ
263	select SYSCTL_EXCEPTION_TRACE
264	select THREAD_INFO_IN_TASK
265	select VIRT_TO_BUS			if !PPC64
266	#
267	# Please keep this list sorted alphabetically.
268	#
269
270config PPC_BARRIER_NOSPEC
271	bool
272	default y
273	depends on PPC_BOOK3S_64 || PPC_FSL_BOOK3E
274
275config EARLY_PRINTK
276	bool
277	default y
278
279config PANIC_TIMEOUT
280	int
281	default 180
282
283config COMPAT
284	bool "Enable support for 32bit binaries"
285	depends on PPC64
286	default y if !CPU_LITTLE_ENDIAN
287	select ARCH_WANT_OLD_COMPAT_IPC
288	select COMPAT_OLD_SIGACTION
289
290config SYSVIPC_COMPAT
291	bool
292	depends on COMPAT && SYSVIPC
293	default y
294
295config SCHED_OMIT_FRAME_POINTER
296	bool
297	default y
298
299config ARCH_MAY_HAVE_PC_FDC
300	bool
301	default PCI
302
303config PPC_UDBG_16550
304	bool
305
306config GENERIC_TBSYNC
307	bool
308	default y if PPC32 && SMP
309
310config AUDIT_ARCH
311	bool
312	default y
313
314config GENERIC_BUG
315	bool
316	default y
317	depends on BUG
318
319config GENERIC_BUG_RELATIVE_POINTERS
320	def_bool y
321	depends on GENERIC_BUG
322
323config SYS_SUPPORTS_APM_EMULATION
324	default y if PMAC_APM_EMU
325	bool
326
327config EPAPR_BOOT
328	bool
329	help
330	  Used to allow a board to specify it wants an ePAPR compliant wrapper.
331
332config DEFAULT_UIMAGE
333	bool
334	help
335	  Used to allow a board to specify it wants a uImage built by default
336
337config ARCH_HIBERNATION_POSSIBLE
338	bool
339	default y
340
341config ARCH_SUSPEND_POSSIBLE
342	def_bool y
343	depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
344		   (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
345		   || 44x || 40x
346
347config ARCH_SUSPEND_NONZERO_CPU
348	def_bool y
349	depends on PPC_POWERNV || PPC_PSERIES
350
351config PPC_DCR_NATIVE
352	bool
353
354config PPC_DCR_MMIO
355	bool
356
357config PPC_DCR
358	bool
359	depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
360	default y
361
362config PPC_OF_PLATFORM_PCI
363	bool
364	depends on PCI
365	depends on PPC64 # not supported on 32 bits yet
366
367config ARCH_SUPPORTS_UPROBES
368	def_bool y
369
370config PPC_ADV_DEBUG_REGS
371	bool
372	depends on 40x || BOOKE
373	default y
374
375config PPC_ADV_DEBUG_IACS
376	int
377	depends on PPC_ADV_DEBUG_REGS
378	default 4 if 44x
379	default 2
380
381config PPC_ADV_DEBUG_DACS
382	int
383	depends on PPC_ADV_DEBUG_REGS
384	default 2
385
386config PPC_ADV_DEBUG_DVCS
387	int
388	depends on PPC_ADV_DEBUG_REGS
389	default 2 if 44x
390	default 0
391
392config PPC_ADV_DEBUG_DAC_RANGE
393	bool
394	depends on PPC_ADV_DEBUG_REGS && 44x
395	default y
396
397config PPC_DAWR
398	bool
399
400config ZONE_DMA
401	bool
402	default y if PPC_BOOK3E_64
403
404config PGTABLE_LEVELS
405	int
406	default 2 if !PPC64
407	default 4
408
409source "arch/powerpc/sysdev/Kconfig"
410source "arch/powerpc/platforms/Kconfig"
411
412menu "Kernel options"
413
414config HIGHMEM
415	bool "High memory support"
416	depends on PPC32
417	select KMAP_LOCAL
418
419source "kernel/Kconfig.hz"
420
421config HUGETLB_PAGE_SIZE_VARIABLE
422	bool
423	depends on HUGETLB_PAGE && PPC_BOOK3S_64
424	default y
425
426config MATH_EMULATION
427	bool "Math emulation"
428	depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE
429	select PPC_FPU_REGS
430	help
431	  Some PowerPC chips designed for embedded applications do not have
432	  a floating-point unit and therefore do not implement the
433	  floating-point instructions in the PowerPC instruction set.  If you
434	  say Y here, the kernel will include code to emulate a floating-point
435	  unit, which will allow programs that use floating-point
436	  instructions to run.
437
438	  This is also useful to emulate missing (optional) instructions
439	  such as fsqrt on cores that do have an FPU but do not implement
440	  them (such as Freescale BookE).
441
442choice
443	prompt "Math emulation options"
444	default MATH_EMULATION_FULL
445	depends on MATH_EMULATION
446
447config	MATH_EMULATION_FULL
448	bool "Emulate all the floating point instructions"
449	help
450	  Select this option will enable the kernel to support to emulate
451	  all the floating point instructions. If your SoC doesn't have
452	  a FPU, you should select this.
453
454config MATH_EMULATION_HW_UNIMPLEMENTED
455	bool "Just emulate the FPU unimplemented instructions"
456	help
457	  Select this if you know there does have a hardware FPU on your
458	  SoC, but some floating point instructions are not implemented by that.
459
460endchoice
461
462config PPC_TRANSACTIONAL_MEM
463	bool "Transactional Memory support for POWERPC"
464	depends on PPC_BOOK3S_64
465	depends on SMP
466	select ALTIVEC
467	select VSX
468	help
469	  Support user-mode Transactional Memory on POWERPC.
470
471config PPC_UV
472	bool "Ultravisor support"
473	depends on KVM_BOOK3S_HV_POSSIBLE
474	depends on DEVICE_PRIVATE
475	default n
476	help
477	  This option paravirtualizes the kernel to run in POWER platforms that
478	  supports the Protected Execution Facility (PEF). On such platforms,
479	  the ultravisor firmware runs at a privilege level above the
480	  hypervisor.
481
482	  If unsure, say "N".
483
484config LD_HEAD_STUB_CATCH
485	bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT
486	depends on PPC64
487	help
488	  Very large kernels can cause linker branch stubs to be generated by
489	  code in head_64.S, which moves the head text sections out of their
490	  specified location. This option can work around the problem.
491
492	  If unsure, say "N".
493
494config MPROFILE_KERNEL
495	depends on PPC64 && CPU_LITTLE_ENDIAN && FUNCTION_TRACER
496	def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -I$(srctree)/include -D__KERNEL__)
497
498config HOTPLUG_CPU
499	bool "Support for enabling/disabling CPUs"
500	depends on SMP && (PPC_PSERIES || \
501		PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE)
502	help
503	  Say Y here to be able to disable and re-enable individual
504	  CPUs at runtime on SMP machines.
505
506	  Say N if you are unsure.
507
508config PPC_QUEUED_SPINLOCKS
509	bool "Queued spinlocks" if EXPERT
510	depends on SMP
511	default PPC_BOOK3S_64
512	help
513	  Say Y here to use queued spinlocks which give better scalability and
514	  fairness on large SMP and NUMA systems without harming single threaded
515	  performance.
516
517config ARCH_CPU_PROBE_RELEASE
518	def_bool y
519	depends on HOTPLUG_CPU
520
521config ARCH_ENABLE_MEMORY_HOTPLUG
522	def_bool y
523
524config ARCH_ENABLE_MEMORY_HOTREMOVE
525	def_bool y
526
527config PPC64_SUPPORTS_MEMORY_FAILURE
528	bool "Add support for memory hwpoison"
529	depends on PPC_BOOK3S_64
530	default "y" if PPC_POWERNV
531	select ARCH_SUPPORTS_MEMORY_FAILURE
532
533config KEXEC
534	bool "kexec system call"
535	depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP)) || PPC_BOOK3E
536	select KEXEC_CORE
537	help
538	  kexec is a system call that implements the ability to shutdown your
539	  current kernel, and to start another kernel.  It is like a reboot
540	  but it is independent of the system firmware.   And like a reboot
541	  you can start any kernel with it, not just Linux.
542
543	  The name comes from the similarity to the exec system call.
544
545	  It is an ongoing process to be certain the hardware in a machine
546	  is properly shutdown, so do not be surprised if this code does not
547	  initially work for you.  As of this writing the exact hardware
548	  interface is strongly in flux, so no good recommendation can be
549	  made.
550
551config KEXEC_FILE
552	bool "kexec file based system call"
553	select KEXEC_CORE
554	select HAVE_IMA_KEXEC
555	select BUILD_BIN2C
556	select KEXEC_ELF
557	depends on PPC64
558	depends on CRYPTO=y
559	depends on CRYPTO_SHA256=y
560	help
561	  This is a new version of the kexec system call. This call is
562	  file based and takes in file descriptors as system call arguments
563	  for kernel and initramfs as opposed to a list of segments as is the
564	  case for the older kexec call.
565
566config ARCH_HAS_KEXEC_PURGATORY
567	def_bool KEXEC_FILE
568
569config RELOCATABLE
570	bool "Build a relocatable kernel"
571	depends on PPC64 || (FLATMEM && (44x || FSL_BOOKE))
572	select NONSTATIC_KERNEL
573	select MODULE_REL_CRCS if MODVERSIONS
574	help
575	  This builds a kernel image that is capable of running at the
576	  location the kernel is loaded at. For ppc32, there is no any
577	  alignment restrictions, and this feature is a superset of
578	  DYNAMIC_MEMSTART and hence overrides it. For ppc64, we should use
579	  16k-aligned base address. The kernel is linked as a
580	  position-independent executable (PIE) and contains dynamic relocations
581	  which are processed early in the bootup process.
582
583	  One use is for the kexec on panic case where the recovery kernel
584	  must live at a different physical address than the primary
585	  kernel.
586
587	  Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
588	  it has been loaded at and the compile time physical addresses
589	  CONFIG_PHYSICAL_START is ignored.  However CONFIG_PHYSICAL_START
590	  setting can still be useful to bootwrappers that need to know the
591	  load address of the kernel (eg. u-boot/mkimage).
592
593config RANDOMIZE_BASE
594	bool "Randomize the address of the kernel image"
595	depends on (FSL_BOOKE && FLATMEM && PPC32)
596	depends on RELOCATABLE
597	help
598	  Randomizes the virtual address at which the kernel image is
599	  loaded, as a security feature that deters exploit attempts
600	  relying on knowledge of the location of kernel internals.
601
602	  If unsure, say Y.
603
604config RELOCATABLE_TEST
605	bool "Test relocatable kernel"
606	depends on (PPC64 && RELOCATABLE)
607	help
608	  This runs the relocatable kernel at the address it was initially
609	  loaded at, which tends to be non-zero and therefore test the
610	  relocation code.
611
612config CRASH_DUMP
613	bool "Build a dump capture kernel"
614	depends on PPC64 || PPC_BOOK3S_32 || FSL_BOOKE || (44x && !SMP)
615	select RELOCATABLE if PPC64 || 44x || FSL_BOOKE
616	help
617	  Build a kernel suitable for use as a dump capture kernel.
618	  The same kernel binary can be used as production kernel and dump
619	  capture kernel.
620
621config FA_DUMP
622	bool "Firmware-assisted dump"
623	depends on PPC64 && (PPC_RTAS || PPC_POWERNV)
624	select CRASH_CORE
625	select CRASH_DUMP
626	help
627	  A robust mechanism to get reliable kernel crash dump with
628	  assistance from firmware. This approach does not use kexec,
629	  instead firmware assists in booting the capture kernel
630	  while preserving memory contents. Firmware-assisted dump
631	  is meant to be a kdump replacement offering robustness and
632	  speed not possible without system firmware assistance.
633
634	  If unsure, say "y". Only special kernels like petitboot may
635	  need to say "N" here.
636
637config PRESERVE_FA_DUMP
638	bool "Preserve Firmware-assisted dump"
639	depends on PPC64 && PPC_POWERNV && !FA_DUMP
640	help
641	  On a kernel with FA_DUMP disabled, this option helps to preserve
642	  crash data from a previously crash'ed kernel. Useful when the next
643	  memory preserving kernel boot would process this crash data.
644	  Petitboot kernel is the typical usecase for this option.
645
646config OPAL_CORE
647	bool "Export OPAL memory as /sys/firmware/opal/core"
648	depends on PPC64 && PPC_POWERNV
649	help
650	  This option uses the MPIPL support in firmware to provide an
651	  ELF core of OPAL memory after a crash. The ELF core is exported
652	  as /sys/firmware/opal/core file which is helpful in debugging
653	  OPAL crashes using GDB.
654
655config IRQ_ALL_CPUS
656	bool "Distribute interrupts on all CPUs by default"
657	depends on SMP
658	help
659	  This option gives the kernel permission to distribute IRQs across
660	  multiple CPUs.  Saying N here will route all IRQs to the first
661	  CPU.  Generally saying Y is safe, although some problems have been
662	  reported with SMP Power Macintoshes with this option enabled.
663
664config NUMA
665	bool "NUMA Memory Allocation and Scheduler Support"
666	depends on PPC64 && SMP
667	default y if PPC_PSERIES || PPC_POWERNV
668	help
669	  Enable NUMA (Non-Uniform Memory Access) support.
670
671	  The kernel will try to allocate memory used by a CPU on the
672	  local memory controller of the CPU and add some more
673	  NUMA awareness to the kernel.
674
675config NODES_SHIFT
676	int
677	default "8" if PPC64
678	default "4"
679	depends on NEED_MULTIPLE_NODES
680
681config USE_PERCPU_NUMA_NODE_ID
682	def_bool y
683	depends on NUMA
684
685config HAVE_MEMORYLESS_NODES
686	def_bool y
687	depends on NUMA
688
689config ARCH_SELECT_MEMORY_MODEL
690	def_bool y
691	depends on PPC64
692
693config ARCH_FLATMEM_ENABLE
694	def_bool y
695	depends on (PPC64 && !NUMA) || PPC32
696
697config ARCH_SPARSEMEM_ENABLE
698	def_bool y
699	depends on PPC64
700	select SPARSEMEM_VMEMMAP_ENABLE
701
702config ARCH_SPARSEMEM_DEFAULT
703	def_bool y
704	depends on PPC_BOOK3S_64
705
706config SYS_SUPPORTS_HUGETLBFS
707	bool
708
709config ILLEGAL_POINTER_VALUE
710	hex
711	# This is roughly half way between the top of user space and the bottom
712	# of kernel space, which seems about as good as we can get.
713	default 0x5deadbeef0000000 if PPC64
714	default 0
715
716config ARCH_MEMORY_PROBE
717	def_bool y
718	depends on MEMORY_HOTPLUG
719
720choice
721	prompt "Page size"
722	default PPC_4K_PAGES
723	help
724	  Select the kernel logical page size. Increasing the page size
725	  will reduce software overhead at each page boundary, allow
726	  hardware prefetch mechanisms to be more effective, and allow
727	  larger dma transfers increasing IO efficiency and reducing
728	  overhead. However the utilization of memory will increase.
729	  For example, each cached file will using a multiple of the
730	  page size to hold its contents and the difference between the
731	  end of file and the end of page is wasted.
732
733	  Some dedicated systems, such as software raid serving with
734	  accelerated calculations, have shown significant increases.
735
736	  If you configure a 64 bit kernel for 64k pages but the
737	  processor does not support them, then the kernel will simulate
738	  them with 4k pages, loading them on demand, but with the
739	  reduced software overhead and larger internal fragmentation.
740	  For the 32 bit kernel, a large page option will not be offered
741	  unless it is supported by the configured processor.
742
743	  If unsure, choose 4K_PAGES.
744
745config PPC_4K_PAGES
746	bool "4k page size"
747	select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
748
749config PPC_16K_PAGES
750	bool "16k page size"
751	depends on 44x || PPC_8xx
752
753config PPC_64K_PAGES
754	bool "64k page size"
755	depends on 44x || PPC_BOOK3S_64
756	select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
757
758config PPC_256K_PAGES
759	bool "256k page size (Requires non-standard binutils settings)"
760	depends on 44x && !PPC_47x
761	help
762	  Make the page size 256k.
763
764	  The kernel will only be able to run applications that have been
765	  compiled with '-zmax-page-size' set to 256K (the default is 64K) using
766	  binutils later than 2.17.50.0.3, or by patching the ELF_MAXPAGESIZE
767	  definition from 0x10000 to 0x40000 in older versions.
768
769endchoice
770
771config PPC_PAGE_SHIFT
772	int
773	default 18 if PPC_256K_PAGES
774	default 16 if PPC_64K_PAGES
775	default 14 if PPC_16K_PAGES
776	default 12
777
778config THREAD_SHIFT
779	int "Thread shift" if EXPERT
780	range 13 15
781	default "15" if PPC_256K_PAGES
782	default "14" if PPC64
783	default "14" if KASAN
784	default "13"
785	help
786	  Used to define the stack size. The default is almost always what you
787	  want. Only change this if you know what you are doing.
788
789config DATA_SHIFT_BOOL
790	bool "Set custom data alignment"
791	depends on ADVANCED_OPTIONS
792	depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE
793	depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && !STRICT_KERNEL_RWX)
794	help
795	  This option allows you to set the kernel data alignment. When
796	  RAM is mapped by blocks, the alignment needs to fit the size and
797	  number of possible blocks. The default should be OK for most configs.
798
799	  Say N here unless you know what you are doing.
800
801config DATA_SHIFT
802	int "Data shift" if DATA_SHIFT_BOOL
803	default 24 if STRICT_KERNEL_RWX && PPC64
804	range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
805	range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
806	default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32
807	default 18 if (DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
808	default 23 if STRICT_KERNEL_RWX && PPC_8xx
809	default 23 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx && PIN_TLB_DATA
810	default 19 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
811	default PPC_PAGE_SHIFT
812	help
813	  On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO.
814	  Smaller is the alignment, greater is the number of necessary DBATs.
815
816	  On 8xx, large pages (512kb or 8M) are used to map kernel linear
817	  memory. Aligning to 8M reduces TLB misses as only 8M pages are used
818	  in that case. If PIN_TLB is selected, it must be aligned to 8M as
819	  8M pages will be pinned.
820
821config FORCE_MAX_ZONEORDER
822	int "Maximum zone order"
823	range 8 9 if PPC64 && PPC_64K_PAGES
824	default "9" if PPC64 && PPC_64K_PAGES
825	range 13 13 if PPC64 && !PPC_64K_PAGES
826	default "13" if PPC64 && !PPC_64K_PAGES
827	range 9 64 if PPC32 && PPC_16K_PAGES
828	default "9" if PPC32 && PPC_16K_PAGES
829	range 7 64 if PPC32 && PPC_64K_PAGES
830	default "7" if PPC32 && PPC_64K_PAGES
831	range 5 64 if PPC32 && PPC_256K_PAGES
832	default "5" if PPC32 && PPC_256K_PAGES
833	range 11 64
834	default "11"
835	help
836	  The kernel memory allocator divides physically contiguous memory
837	  blocks into "zones", where each zone is a power of two number of
838	  pages.  This option selects the largest power of two that the kernel
839	  keeps in the memory allocator.  If you need to allocate very large
840	  blocks of physically contiguous memory, then you may need to
841	  increase this value.
842
843	  This config option is actually maximum order plus one. For example,
844	  a value of 11 means that the largest free memory block is 2^10 pages.
845
846	  The page size is not necessarily 4KB.  For example, on 64-bit
847	  systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES.  Keep
848	  this in mind when choosing a value for this option.
849
850config PPC_SUBPAGE_PROT
851	bool "Support setting protections for 4k subpages (subpage_prot syscall)"
852	default n
853	depends on PPC_BOOK3S_64 && PPC_64K_PAGES
854	help
855	  This option adds support for system call to allow user programs
856	  to set access permissions (read/write, readonly, or no access)
857	  on the 4k subpages of each 64k page.
858
859	  If unsure, say N here.
860
861config PPC_PROT_SAO_LPAR
862	bool "Support PROT_SAO mappings in LPARs"
863	depends on PPC_BOOK3S_64
864	help
865	  This option adds support for PROT_SAO mappings from userspace
866	  inside LPARs on supported CPUs.
867
868	  This may cause issues when performing guest migration from
869	  a CPU that supports SAO to one that does not.
870
871	  If unsure, say N here.
872
873config PPC_COPRO_BASE
874	bool
875
876config SCHED_SMT
877	bool "SMT (Hyperthreading) scheduler support"
878	depends on PPC64 && SMP
879	help
880	  SMT scheduler support improves the CPU scheduler's decision making
881	  when dealing with POWER5 cpus at a cost of slightly increased
882	  overhead in some places. If unsure say N here.
883
884config PPC_DENORMALISATION
885	bool "PowerPC denormalisation exception handling"
886	depends on PPC_BOOK3S_64
887	default "y" if PPC_POWERNV
888	help
889	  Add support for handling denormalisation of single precision
890	  values.  Useful for bare metal only.  If unsure say Y here.
891
892config CMDLINE
893	string "Initial kernel command string"
894	default ""
895	help
896	  On some platforms, there is currently no way for the boot loader to
897	  pass arguments to the kernel. For these platforms, you can supply
898	  some command-line options at build time by entering them here.  In
899	  most cases you will need to specify the root device here.
900
901choice
902	prompt "Kernel command line type" if CMDLINE != ""
903	default CMDLINE_FROM_BOOTLOADER
904
905config CMDLINE_FROM_BOOTLOADER
906	bool "Use bootloader kernel arguments if available"
907	help
908	  Uses the command-line options passed by the boot loader. If
909	  the boot loader doesn't provide any, the default kernel command
910	  string provided in CMDLINE will be used.
911
912config CMDLINE_EXTEND
913	bool "Extend bootloader kernel arguments"
914	help
915	  The command-line arguments provided by the boot loader will be
916	  appended to the default kernel command string.
917
918config CMDLINE_FORCE
919	bool "Always use the default kernel command string"
920	help
921	  Always use the default kernel command string, even if the boot
922	  loader passes other arguments to the kernel.
923	  This is useful if you cannot or don't want to change the
924	  command-line options your boot loader passes to the kernel.
925
926endchoice
927
928config EXTRA_TARGETS
929	string "Additional default image types"
930	help
931	  List additional targets to be built by the bootwrapper here (separated
932	  by spaces).  This is useful for targets that depend of device tree
933	  files in the .dts directory.
934
935	  Targets in this list will be build as part of the default build
936	  target, or when the user does a 'make zImage' or a
937	  'make zImage.initrd'.
938
939	  If unsure, leave blank
940
941config ARCH_WANTS_FREEZER_CONTROL
942	def_bool y
943	depends on ADB_PMU
944
945source "kernel/power/Kconfig"
946
947config PPC_MEM_KEYS
948	prompt "PowerPC Memory Protection Keys"
949	def_bool y
950	depends on PPC_BOOK3S_64
951	select ARCH_USES_HIGH_VMA_FLAGS
952	select ARCH_HAS_PKEYS
953	help
954	  Memory Protection Keys provides a mechanism for enforcing
955	  page-based protections, but without requiring modification of the
956	  page tables when an application changes protection domains.
957
958	  For details, see Documentation/core-api/protection-keys.rst
959
960	  If unsure, say y.
961
962config PPC_SECURE_BOOT
963	prompt "Enable secure boot support"
964	bool
965	depends on PPC_POWERNV || PPC_PSERIES
966	depends on IMA_ARCH_POLICY
967	imply IMA_SECURE_AND_OR_TRUSTED_BOOT
968	help
969	  Systems with firmware secure boot enabled need to define security
970	  policies to extend secure boot to the OS. This config allows a user
971	  to enable OS secure boot on systems that have firmware support for
972	  it. If in doubt say N.
973
974config PPC_SECVAR_SYSFS
975	bool "Enable sysfs interface for POWER secure variables"
976	default y
977	depends on PPC_SECURE_BOOT
978	depends on SYSFS
979	help
980	  POWER secure variables are managed and controlled by firmware.
981	  These variables are exposed to userspace via sysfs to enable
982	  read/write operations on these variables. Say Y if you have
983	  secure boot enabled and want to expose variables to userspace.
984
985config PPC_RTAS_FILTER
986	bool "Enable filtering of RTAS syscalls"
987	default y
988	depends on PPC_RTAS
989	help
990	  The RTAS syscall API has security issues that could be used to
991	  compromise system integrity. This option enforces restrictions on the
992	  RTAS calls and arguments passed by userspace programs to mitigate
993	  these issues.
994
995	  Say Y unless you know what you are doing and the filter is causing
996	  problems for you.
997
998endmenu
999
1000config ISA_DMA_API
1001	bool
1002	default PCI
1003
1004menu "Bus options"
1005
1006config ISA
1007	bool "Support for ISA-bus hardware"
1008	depends on PPC_CHRP
1009	select PPC_I8259
1010	help
1011	  Find out whether you have ISA slots on your motherboard.  ISA is the
1012	  name of a bus system, i.e. the way the CPU talks to the other stuff
1013	  inside your box.  If you have an Apple machine, say N here; if you
1014	  have an IBM RS/6000 or pSeries machine, say Y.  If you have an
1015	  embedded board, consult your board documentation.
1016
1017config GENERIC_ISA_DMA
1018	bool
1019	depends on ISA_DMA_API
1020	default y
1021
1022config PPC_INDIRECT_PCI
1023	bool
1024	depends on PCI
1025	default y if 40x || 44x
1026
1027config SBUS
1028	bool
1029
1030config FSL_SOC
1031	bool
1032
1033config FSL_PCI
1034	bool
1035	select ARCH_HAS_DMA_SET_MASK
1036	select PPC_INDIRECT_PCI
1037	select PCI_QUIRKS
1038
1039config FSL_PMC
1040	bool
1041	default y
1042	depends on SUSPEND && (PPC_85xx || PPC_86xx)
1043	help
1044	  Freescale MPC85xx/MPC86xx power management controller support
1045	  (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
1046
1047config PPC4xx_CPM
1048	bool
1049	default y
1050	depends on SUSPEND && (44x || 40x)
1051	help
1052	  PPC4xx Clock Power Management (CPM) support (suspend/resume).
1053	  It also enables support for two different idle states (idle-wait
1054	  and idle-doze).
1055
1056config 4xx_SOC
1057	bool
1058
1059config FSL_LBC
1060	bool "Freescale Local Bus support"
1061	help
1062	  Enables reporting of errors from the Freescale local bus
1063	  controller.  Also contains some common code used by
1064	  drivers for specific local bus peripherals.
1065
1066config FSL_GTM
1067	bool
1068	depends on PPC_83xx || QUICC_ENGINE || CPM2
1069	help
1070	  Freescale General-purpose Timers support
1071
1072config PCI_8260
1073	bool
1074	depends on PCI && 8260
1075	select PPC_INDIRECT_PCI
1076	default y
1077
1078config FSL_RIO
1079	bool "Freescale Embedded SRIO Controller support"
1080	depends on RAPIDIO = y && HAVE_RAPIDIO
1081	default "n"
1082	help
1083	  Include support for RapidIO controller on Freescale embedded
1084	  processors (MPC8548, MPC8641, etc).
1085
1086endmenu
1087
1088config NONSTATIC_KERNEL
1089	bool
1090
1091menu "Advanced setup"
1092	depends on PPC32
1093
1094config ADVANCED_OPTIONS
1095	bool "Prompt for advanced kernel configuration options"
1096	help
1097	  This option will enable prompting for a variety of advanced kernel
1098	  configuration options.  These options can cause the kernel to not
1099	  work if they are set incorrectly, but can be used to optimize certain
1100	  aspects of kernel memory management.
1101
1102	  Unless you know what you are doing, say N here.
1103
1104comment "Default settings for advanced configuration options are used"
1105	depends on !ADVANCED_OPTIONS
1106
1107config LOWMEM_SIZE_BOOL
1108	bool "Set maximum low memory"
1109	depends on ADVANCED_OPTIONS
1110	help
1111	  This option allows you to set the maximum amount of memory which
1112	  will be used as "low memory", that is, memory which the kernel can
1113	  access directly, without having to set up a kernel virtual mapping.
1114	  This can be useful in optimizing the layout of kernel virtual
1115	  memory.
1116
1117	  Say N here unless you know what you are doing.
1118
1119config LOWMEM_SIZE
1120	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
1121	default "0x30000000"
1122
1123config LOWMEM_CAM_NUM_BOOL
1124	bool "Set number of CAMs to use to map low memory"
1125	depends on ADVANCED_OPTIONS && FSL_BOOKE
1126	help
1127	  This option allows you to set the maximum number of CAM slots that
1128	  will be used to map low memory.  There are a limited number of slots
1129	  available and even more limited number that will fit in the L1 MMU.
1130	  However, using more entries will allow mapping more low memory.  This
1131	  can be useful in optimizing the layout of kernel virtual memory.
1132
1133	  Say N here unless you know what you are doing.
1134
1135config LOWMEM_CAM_NUM
1136	depends on FSL_BOOKE
1137	int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
1138	default 3
1139
1140config DYNAMIC_MEMSTART
1141	bool "Enable page aligned dynamic load address for kernel"
1142	depends on ADVANCED_OPTIONS && FLATMEM && (FSL_BOOKE || 44x)
1143	select NONSTATIC_KERNEL
1144	help
1145	  This option enables the kernel to be loaded at any page aligned
1146	  physical address. The kernel creates a mapping from KERNELBASE to
1147	  the address where the kernel is loaded. The page size here implies
1148	  the TLB page size of the mapping for kernel on the particular platform.
1149	  Please refer to the init code for finding the TLB page size.
1150
1151	  DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE
1152	  kernel image, where the only restriction is the page aligned kernel
1153	  load address. When this option is enabled, the compile time physical
1154	  address CONFIG_PHYSICAL_START is ignored.
1155
1156	  This option is overridden by CONFIG_RELOCATABLE
1157
1158config PAGE_OFFSET_BOOL
1159	bool "Set custom page offset address"
1160	depends on ADVANCED_OPTIONS
1161	help
1162	  This option allows you to set the kernel virtual address at which
1163	  the kernel will map low memory.  This can be useful in optimizing
1164	  the virtual memory layout of the system.
1165
1166	  Say N here unless you know what you are doing.
1167
1168config PAGE_OFFSET
1169	hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
1170	default "0xc0000000"
1171
1172config KERNEL_START_BOOL
1173	bool "Set custom kernel base address"
1174	depends on ADVANCED_OPTIONS
1175	help
1176	  This option allows you to set the kernel virtual address at which
1177	  the kernel will be loaded.  Normally this should match PAGE_OFFSET
1178	  however there are times (like kdump) that one might not want them
1179	  to be the same.
1180
1181	  Say N here unless you know what you are doing.
1182
1183config KERNEL_START
1184	hex "Virtual address of kernel base" if KERNEL_START_BOOL
1185	default PAGE_OFFSET if PAGE_OFFSET_BOOL
1186	default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL
1187	default "0xc0000000"
1188
1189config PHYSICAL_START_BOOL
1190	bool "Set physical address where the kernel is loaded"
1191	depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
1192	help
1193	  This gives the physical address where the kernel is loaded.
1194
1195	  Say N here unless you know what you are doing.
1196
1197config PHYSICAL_START
1198	hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
1199	default "0x02000000" if PPC_BOOK3S && CRASH_DUMP && !NONSTATIC_KERNEL
1200	default "0x00000000"
1201
1202config PHYSICAL_ALIGN
1203	hex
1204	default "0x04000000" if FSL_BOOKE
1205	help
1206	  This value puts the alignment restrictions on physical address
1207	  where kernel is loaded and run from. Kernel is compiled for an
1208	  address which meets above alignment restriction.
1209
1210config TASK_SIZE_BOOL
1211	bool "Set custom user task size"
1212	depends on ADVANCED_OPTIONS
1213	help
1214	  This option allows you to set the amount of virtual address space
1215	  allocated to user tasks.  This can be useful in optimizing the
1216	  virtual memory layout of the system.
1217
1218	  Say N here unless you know what you are doing.
1219
1220config TASK_SIZE
1221	hex "Size of user task space" if TASK_SIZE_BOOL
1222	default "0x80000000" if PPC_8xx
1223	default "0xb0000000" if PPC_BOOK3S_32
1224	default "0xc0000000"
1225endmenu
1226
1227if PPC64
1228# This value must have zeroes in the bottom 60 bits otherwise lots will break
1229config PAGE_OFFSET
1230	hex
1231	default "0xc000000000000000"
1232config KERNEL_START
1233	hex
1234	default "0xc000000000000000"
1235config PHYSICAL_START
1236	hex
1237	default "0x00000000"
1238endif
1239
1240config	ARCH_RANDOM
1241	def_bool n
1242
1243config PPC_LIB_RHEAP
1244	bool
1245
1246source "arch/powerpc/kvm/Kconfig"
1247
1248source "kernel/livepatch/Kconfig"
1249