xref: /openbmc/linux/arch/powerpc/Kconfig (revision b3801487)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2a0ae9c7cSArnd Bergmannsource "arch/powerpc/platforms/Kconfig.cputype"
317e638bcSJohannes Berg
45017b459SNicholas Pigginconfig CC_HAS_ELFV2
55017b459SNicholas Piggin	def_bool PPC64 && $(cc-option, -mabi=elfv2)
65017b459SNicholas Piggin
7dc5dac74SNicholas Pigginconfig CC_HAS_PREFIXED
8dc5dac74SNicholas Piggin	def_bool PPC64 && $(cc-option, -mcpu=power10 -mprefixed)
9dc5dac74SNicholas Piggin
107e3a68beSNicholas Pigginconfig CC_HAS_PCREL
11169f8997SNicholas Piggin	# Clang has a bug (https://github.com/llvm/llvm-project/issues/62372)
12169f8997SNicholas Piggin	# where pcrel code is not generated if -msoft-float, -mno-altivec, or
13169f8997SNicholas Piggin	# -mno-vsx options are also given. Without these options, fp/vec
14169f8997SNicholas Piggin	# instructions are generated from regular kernel code. So Clang can't
15169f8997SNicholas Piggin	# do pcrel yet.
16169f8997SNicholas Piggin	def_bool PPC64 && CC_IS_GCC && $(cc-option, -mcpu=power10 -mpcrel)
177e3a68beSNicholas Piggin
18234a71a7Skerstin jonssonconfig 32BIT
19234a71a7Skerstin jonsson	bool
20234a71a7Skerstin jonsson	default y if PPC32
21234a71a7Skerstin jonsson
2214cf11afSPaul Mackerrasconfig 64BIT
2314cf11afSPaul Mackerras	bool
2414cf11afSPaul Mackerras	default y if PPC64
2514cf11afSPaul Mackerras
26a4520b25SChristophe Leroyconfig LIVEPATCH_64
27a4520b25SChristophe Leroy	def_bool PPC64
28a4520b25SChristophe Leroy	depends on LIVEPATCH
29a4520b25SChristophe Leroy
3014cf11afSPaul Mackerrasconfig MMU
3114cf11afSPaul Mackerras	bool
3214cf11afSPaul Mackerras	default y
3314cf11afSPaul Mackerras
349fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_BITS_MAX
359fea59bdSMichael Ellerman	# On Book3S 64, the default virtual address space for 64-bit processes
369fea59bdSMichael Ellerman	# is 2^47 (128TB). As a maximum, allow randomisation to consume up to
379fea59bdSMichael Ellerman	# 32T of address space (2^45), which should ensure a reasonable gap
389fea59bdSMichael Ellerman	# between bottom-up and top-down allocations for applications that
399fea59bdSMichael Ellerman	# consume "normal" amounts of address space. Book3S 64 only supports 64K
409fea59bdSMichael Ellerman	# and 4K page sizes.
419fea59bdSMichael Ellerman	default 29 if PPC_BOOK3S_64 && PPC_64K_PAGES # 29 = 45 (32T) - 16 (64K)
429fea59bdSMichael Ellerman	default 33 if PPC_BOOK3S_64		     # 33 = 45 (32T) - 12 (4K)
439fea59bdSMichael Ellerman	#
449fea59bdSMichael Ellerman	# On all other 64-bit platforms (currently only Book3E), the virtual
459fea59bdSMichael Ellerman	# address space is 2^46 (64TB). Allow randomisation to consume up to 16T
469fea59bdSMichael Ellerman	# of address space (2^44). Only 4K page sizes are supported.
479fea59bdSMichael Ellerman	default 32 if 64BIT	# 32 = 44 (16T) - 12 (4K)
489fea59bdSMichael Ellerman	#
499fea59bdSMichael Ellerman	# For 32-bit, use the compat values, as they're the same.
509fea59bdSMichael Ellerman	default ARCH_MMAP_RND_COMPAT_BITS_MAX
519fea59bdSMichael Ellerman
529fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_BITS_MIN
539fea59bdSMichael Ellerman	# Allow randomisation to consume up to 1GB of address space (2^30).
549fea59bdSMichael Ellerman	default 14 if 64BIT && PPC_64K_PAGES	# 14 = 30 (1GB) - 16 (64K)
559fea59bdSMichael Ellerman	default 18 if 64BIT			# 18 = 30 (1GB) - 12 (4K)
569fea59bdSMichael Ellerman	#
579fea59bdSMichael Ellerman	# For 32-bit, use the compat values, as they're the same.
589fea59bdSMichael Ellerman	default ARCH_MMAP_RND_COMPAT_BITS_MIN
599fea59bdSMichael Ellerman
609fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
619fea59bdSMichael Ellerman	# Total virtual address space for 32-bit processes is 2^31 (2GB).
629fea59bdSMichael Ellerman	# Allow randomisation to consume up to 512MB of address space (2^29).
639fea59bdSMichael Ellerman	default 11 if PPC_256K_PAGES	# 11 = 29 (512MB) - 18 (256K)
649fea59bdSMichael Ellerman	default 13 if PPC_64K_PAGES	# 13 = 29 (512MB) - 16 (64K)
659fea59bdSMichael Ellerman	default 15 if PPC_16K_PAGES	# 15 = 29 (512MB) - 14 (16K)
669fea59bdSMichael Ellerman	default 17			# 17 = 29 (512MB) - 12 (4K)
679fea59bdSMichael Ellerman
689fea59bdSMichael Ellermanconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
699fea59bdSMichael Ellerman	# Total virtual address space for 32-bit processes is 2^31 (2GB).
709fea59bdSMichael Ellerman	# Allow randomisation to consume up to 8MB of address space (2^23).
719fea59bdSMichael Ellerman	default 5 if PPC_256K_PAGES	#  5 = 23 (8MB) - 18 (256K)
729fea59bdSMichael Ellerman	default 7 if PPC_64K_PAGES	#  7 = 23 (8MB) - 16 (64K)
739fea59bdSMichael Ellerman	default 9 if PPC_16K_PAGES	#  9 = 23 (8MB) - 14 (16K)
749fea59bdSMichael Ellerman	default 11			# 11 = 23 (8MB) - 12 (4K)
759fea59bdSMichael Ellerman
76551b81f2SMichael Ellermanconfig NR_IRQS
77551b81f2SMichael Ellerman	int "Number of virtual interrupt numbers"
787b3b3de3SCédric Le Goater	range 32 1048576
79551b81f2SMichael Ellerman	default "512"
80551b81f2SMichael Ellerman	help
81551b81f2SMichael Ellerman	  This defines the number of virtual interrupt numbers the kernel
82551b81f2SMichael Ellerman	  can manage. Virtual interrupt numbers are what you see in
83551b81f2SMichael Ellerman	  /proc/interrupts. If you configure your system to have too few,
84551b81f2SMichael Ellerman	  drivers will fail to load or worse - handle with care.
85551b81f2SMichael Ellerman
86ddd703caSNicholas Pigginconfig NMI_IPI
87ddd703caSNicholas Piggin	bool
882104180aSNicholas Piggin	depends on SMP && (DEBUGGER || KEXEC_CORE || HARDLOCKUP_DETECTOR)
89ddd703caSNicholas Piggin	default y
90ddd703caSNicholas Piggin
9175eb767eSNicholas Pigginconfig PPC_WATCHDOG
9275eb767eSNicholas Piggin	bool
937ca8fe94SPetr Mladek	depends on HARDLOCKUP_DETECTOR_ARCH
9475eb767eSNicholas Piggin	default y
9575eb767eSNicholas Piggin	help
9675eb767eSNicholas Piggin	  This is a placeholder when the powerpc hardlockup detector
9775eb767eSNicholas Piggin	  watchdog is selected (arch/powerpc/kernel/watchdog.c). It is
98f8a4b277SColin Ian King	  selected via the generic lockup detector menu which is why we
9975eb767eSNicholas Piggin	  have no standalone config option for it here.
10075eb767eSNicholas Piggin
101fd3e0bbcSChristoph Hellwigconfig STACKTRACE_SUPPORT
102fd3e0bbcSChristoph Hellwig	bool
103fd3e0bbcSChristoph Hellwig	default y
104fd3e0bbcSChristoph Hellwig
105945feb17SBenjamin Herrenschmidtconfig LOCKDEP_SUPPORT
106945feb17SBenjamin Herrenschmidt	bool
107945feb17SBenjamin Herrenschmidt	default y
108945feb17SBenjamin Herrenschmidt
10995c354feSNick Pigginconfig GENERIC_LOCKBREAK
11095c354feSNick Piggin	bool
11195c354feSNick Piggin	default y
1129f61521cSNicholas Piggin	depends on SMP && PREEMPTION && !PPC_QUEUED_SPINLOCKS
11395c354feSNick Piggin
114e779b2f9SAkinobu Mitaconfig GENERIC_HWEIGHT
115e779b2f9SAkinobu Mita	bool
116e779b2f9SAkinobu Mita	default y
117e779b2f9SAkinobu Mita
11814cf11afSPaul Mackerrasconfig PPC
11914cf11afSPaul Mackerras	bool
12014cf11afSPaul Mackerras	default y
121a7d2475aSMichael Ellerman	#
122a7d2475aSMichael Ellerman	# Please keep this list sorted alphabetically.
123a7d2475aSMichael Ellerman	#
124942fa985SYury Norov	select ARCH_32BIT_OFF_T if PPC32
12541b7a347SDaniel Axtens	select ARCH_DISABLE_KASAN_INLINE	if PPC_RADIX_MMU
126c00a60d6SJiaxun Yang	select ARCH_DMA_DEFAULT_COHERENT	if !NOT_COHERENT_CACHE
12791024b3cSAnshuman Khandual	select ARCH_ENABLE_MEMORY_HOTPLUG
12891024b3cSAnshuman Khandual	select ARCH_ENABLE_MEMORY_HOTREMOVE
129c6b05f4eSChristophe Leroy	select ARCH_HAS_COPY_MC			if PPC64
1302792d84eSKees Cook	select ARCH_HAS_CURRENT_STACK_POINTER
1316bf752daSChristophe Leroy	select ARCH_HAS_DEBUG_VIRTUAL
132937c49d1SAneesh Kumar K.V	select ARCH_HAS_DEBUG_VM_PGTABLE
133e0847283SChristophe Leroy	select ARCH_HAS_DEBUG_WX		if STRICT_KERNEL_RWX
134a7d2475aSMichael Ellerman	select ARCH_HAS_DEVMEM_IS_ALLOWED
135c6b05f4eSChristophe Leroy	select ARCH_HAS_DMA_MAP_DIRECT 		if PPC_PSERIES
1366974f0c4SDaniel Micay	select ARCH_HAS_FORTIFY_SOURCE
137a7d2475aSMichael Ellerman	select ARCH_HAS_GCOV_PROFILE_ALL
138cbd34da7SChristoph Hellwig	select ARCH_HAS_HUGEPD			if HUGETLB_PAGE
139c6b05f4eSChristophe Leroy	select ARCH_HAS_KCOV
1403ccfebedSMathieu Desnoyers	select ARCH_HAS_MEMBARRIER_CALLBACKS
1412384b36fSNicholas Piggin	select ARCH_HAS_MEMBARRIER_SYNC_CORE
142387e220aSNicholas Piggin	select ARCH_HAS_MEMREMAP_COMPAT_ALIGN	if PPC_64S_HASH_MMU
143c6b05f4eSChristophe Leroy	select ARCH_HAS_MMIOWB			if PPC64
144c6b05f4eSChristophe Leroy	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
145c6b05f4eSChristophe Leroy	select ARCH_HAS_PHYS_TO_DMA
146c6b05f4eSChristophe Leroy	select ARCH_HAS_PMEM_API
147c6b05f4eSChristophe Leroy	select ARCH_HAS_PTE_DEVMAP		if PPC_BOOK3S_64
148c6b05f4eSChristophe Leroy	select ARCH_HAS_PTE_SPECIAL
149b4645ffcSChristophe Leroy	select ARCH_HAS_SCALED_CPUTIME		if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
1501f9ad21cSRussell Currey	select ARCH_HAS_SET_MEMORY
15168b44f94SChristophe Leroy	select ARCH_HAS_STRICT_KERNEL_RWX	if (PPC_BOOK3S || PPC_8xx || 40x) && !HIBERNATION
152dfc3095cSChristophe Leroy	select ARCH_HAS_STRICT_KERNEL_RWX	if PPC_85xx && !HIBERNATION && !RANDOMIZE_BASE
1530670010fSChristophe Leroy	select ARCH_HAS_STRICT_MODULE_RWX	if ARCH_HAS_STRICT_KERNEL_RWX
1547e92e01bSRohan McLure	select ARCH_HAS_SYSCALL_WRAPPER		if !SPU_BASE && !COMPAT
155a7d2475aSMichael Ellerman	select ARCH_HAS_TICK_BROADCAST		if GENERIC_CLOCKEVENTS_BROADCAST
156461cef2aSChristophe Leroy	select ARCH_HAS_UACCESS_FLUSHCACHE
157a7d2475aSMichael Ellerman	select ARCH_HAS_UBSAN_SANITIZE_ALL
158a7d2475aSMichael Ellerman	select ARCH_HAVE_NMI_SAFE_CMPXCHG
159350e88baSMike Rapoport	select ARCH_KEEP_MEMBLOCK
160603fd64dSAneesh Kumar K.V	select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE	if PPC_RADIX_MMU
161b7e7c37bSMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT
162c74e6d3dSMark Salter	select ARCH_MIGHT_HAVE_PC_SERIO
1634ec591e5SChristophe Leroy	select ARCH_OPTIONAL_KERNEL_RWX		if ARCH_HAS_STRICT_KERNEL_RWX
164fdacae8aSChristophe Leroy	select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT
16502a771c9SMichael Ellerman	select ARCH_SPLIT_ARG64			if PPC32
166a1cdef04SChristophe Leroy	select ARCH_STACKWALK
167a7d2475aSMichael Ellerman	select ARCH_SUPPORTS_ATOMIC_RMW
16868b44f94SChristophe Leroy	select ARCH_SUPPORTS_DEBUG_PAGEALLOC	if PPC_BOOK3S || PPC_8xx || 40x
169a7d2475aSMichael Ellerman	select ARCH_USE_BUILTIN_BSWAP
170a7d2475aSMichael Ellerman	select ARCH_USE_CMPXCHG_LOCKREF		if PPC64
171dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
172aa65ff6bSNicholas Piggin	select ARCH_USE_QUEUED_RWLOCKS		if PPC_QUEUED_SPINLOCKS
173e0fe568eSMichael Ellerman	select ARCH_WANT_DEFAULT_BPF_JIT
17436e5f9eeSChristophe Leroy	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
175a7d2475aSMichael Ellerman	select ARCH_WANT_IPC_PARSE_VERSION
17666acd460SNicholas Piggin	select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
17759612b24SNathan Chancellor	select ARCH_WANT_LD_ORPHAN_WARN
178f2b79c0dSAneesh Kumar K.V	select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP	if PPC_RADIX_MMU
179eeaec780SChristophe Leroy	select ARCH_WANTS_MODULES_DATA_IN_VMALLOC	if PPC_BOOK3S_32 || PPC_8xx
18077e58496SPaul E. McKenney	select ARCH_WEAK_RELEASE_ACQUIRE
181d812c0e1SStephen Rothwell	select BINFMT_ELF
18210916706SShile Zhang	select BUILDTIME_TABLE_SORT
183a7d2475aSMichael Ellerman	select CLONE_BACKWARDS
1842eafc474SNicholas Piggin	select CPUMASK_OFFSTACK			if NR_CPUS >= 8192
185a7d2475aSMichael Ellerman	select DCACHE_WORD_ACCESS		if PPC64 && CPU_LITTLE_ENDIAN
186f1565c24SChristoph Hellwig	select DMA_OPS_BYPASS			if PPC64
187c6b05f4eSChristophe Leroy	select DMA_OPS				if PPC64
1880c0c5230SMichael Ellerman	select DYNAMIC_FTRACE			if FUNCTION_TRACER
189a7d2475aSMichael Ellerman	select EDAC_ATOMIC_SCRUB
190a7d2475aSMichael Ellerman	select EDAC_SUPPORT
1910f71dcfbSNaveen N Rao	select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if ARCH_USING_PATCHABLE_FUNCTION_ENTRY
192a7d2475aSMichael Ellerman	select GENERIC_ATOMIC64			if PPC32
193a7d2475aSMichael Ellerman	select GENERIC_CLOCKEVENTS_BROADCAST	if SMP
194a7d2475aSMichael Ellerman	select GENERIC_CMOS_UPDATE
195a7d2475aSMichael Ellerman	select GENERIC_CPU_AUTOPROBE
196179ab1cbSMichael Ellerman	select GENERIC_CPU_VULNERABILITIES	if PPC_BARRIER_NOSPEC
197265c3491SChristophe Leroy	select GENERIC_EARLY_IOREMAP
19874205b3fSChristophe Leroy	select GENERIC_GETTIMEOFDAY
1990ceef6e9SVaibhav Jain	select GENERIC_IDLE_POLL_SETUP
2008d05554dSChristophe Leroy	select GENERIC_IOREMAP
201a7d2475aSMichael Ellerman	select GENERIC_IRQ_SHOW
202a7d2475aSMichael Ellerman	select GENERIC_IRQ_SHOW_LEVEL
203eb01d42aSChristoph Hellwig	select GENERIC_PCI_IOMAP		if PCI
204e0847283SChristophe Leroy	select GENERIC_PTDUMP
205a7d2475aSMichael Ellerman	select GENERIC_SMP_IDLE_THREAD
206d4cfb113SPaul Mackerras	select GENERIC_TIME_VSYSCALL
20774205b3fSChristophe Leroy	select GENERIC_VDSO_TIME_NS
208fcbfe812SNiklas Schnelle	select HAS_IOPORT			if PCI
209a7d2475aSMichael Ellerman	select HAVE_ARCH_AUDITSYSCALL
2108abddd96SNicholas Piggin	select HAVE_ARCH_HUGE_VMALLOC		if HAVE_ARCH_HUGE_VMAP
211a6a8f7c4SChristophe Leroy	select HAVE_ARCH_HUGE_VMAP		if PPC_RADIX_MMU || PPC_8xx
212a7d2475aSMichael Ellerman	select HAVE_ARCH_JUMP_LABEL
213b0b3b2c7SChristophe Leroy	select HAVE_ARCH_JUMP_LABEL_RELATIVE
214888468ceSChristophe Leroy	select HAVE_ARCH_KASAN			if PPC32 && PPC_PAGE_SHIFT <= 14
21541b7a347SDaniel Axtens	select HAVE_ARCH_KASAN			if PPC_RADIX_MMU
216c7b9ed7cSChristophe Leroy	select HAVE_ARCH_KASAN			if PPC_BOOK3E_64
21741b7a347SDaniel Axtens	select HAVE_ARCH_KASAN_VMALLOC		if HAVE_ARCH_KASAN
21895567f46SRohan McLure	select HAVE_ARCH_KCSAN
219a5edf981SNicholas Miehlbradt	select HAVE_ARCH_KFENCE			if ARCH_SUPPORTS_DEBUG_PAGEALLOC
220f4a0318fSXiu Jianfeng	select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
221ac9c8901SNicholas Miehlbradt	select HAVE_ARCH_WITHIN_STACK_FRAMES
222c6b05f4eSChristophe Leroy	select HAVE_ARCH_KGDB
2239fea59bdSMichael Ellerman	select HAVE_ARCH_MMAP_RND_BITS
2249fea59bdSMichael Ellerman	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if COMPAT
22520e07af7SFinn Thain	select HAVE_ARCH_NVRAM_OPS
226a7d2475aSMichael Ellerman	select HAVE_ARCH_SECCOMP_FILTER
227a7d2475aSMichael Ellerman	select HAVE_ARCH_TRACEHOOK
2282ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
2295c4b710aSNicholas Piggin	select HAVE_CONTEXT_TRACKING_USER
230c6b05f4eSChristophe Leroy	select HAVE_C_RECORDMCOUNT
231a7d2475aSMichael Ellerman	select HAVE_DEBUG_KMEMLEAK
232a7d2475aSMichael Ellerman	select HAVE_DEBUG_STACKOVERFLOW
233a7d2475aSMichael Ellerman	select HAVE_DYNAMIC_FTRACE
2340f71dcfbSNaveen N Rao	select HAVE_DYNAMIC_FTRACE_WITH_ARGS	if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32
2350f71dcfbSNaveen N Rao	select HAVE_DYNAMIC_FTRACE_WITH_REGS	if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32
23651c66ad8SChristophe Leroy	select HAVE_EBPF_JIT
237ecf8f364SMichael Ellerman	select HAVE_EFFICIENT_UNALIGNED_ACCESS
23867a929e0SChristoph Hellwig	select HAVE_FAST_GUP
239a7d2475aSMichael Ellerman	select HAVE_FTRACE_MCOUNT_RECORD
2405b89492cSChristophe Leroy	select HAVE_FUNCTION_DESCRIPTORS	if PPC64_ELF_ABI_V1
2417cd01b08SNaveen N. Rao	select HAVE_FUNCTION_ERROR_INJECTION
242a7d2475aSMichael Ellerman	select HAVE_FUNCTION_GRAPH_TRACER
243d24da1f8SNaveen N Rao	select HAVE_FUNCTION_TRACER		if PPC64 || (PPC32 && CC_IS_GCC)
2448034c2fbSMasahiro Yamada	select HAVE_GCC_PLUGINS			if GCC_VERSION >= 50200   # plugin support on gcc <= 5.1 is buggy on PPC
245ab037dd8SChristophe Leroy	select HAVE_GENERIC_VDSO
246c6b05f4eSChristophe Leroy	select HAVE_HARDLOCKUP_DETECTOR_ARCH	if PPC_BOOK3S_64 && SMP
2477ca8fe94SPetr Mladek	select HAVE_HARDLOCKUP_DETECTOR_PERF	if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
248a7d2475aSMichael Ellerman	select HAVE_HW_BREAKPOINT		if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx)
249a7d2475aSMichael Ellerman	select HAVE_IOREMAP_PROT
250c6b05f4eSChristophe Leroy	select HAVE_IRQ_TIME_ACCOUNTING
251a7d2475aSMichael Ellerman	select HAVE_KERNEL_GZIP
2521cc9a21bSChristophe Leroy	select HAVE_KERNEL_LZMA			if DEFAULT_UIMAGE
253264bffadSChristophe Leroy	select HAVE_KERNEL_LZO			if DEFAULT_UIMAGE
254423bfc69SChristian Lamparter	select HAVE_KERNEL_XZ			if PPC_BOOK3S || 44x
255a7d2475aSMichael Ellerman	select HAVE_KPROBES
256ead514d5SNaveen N. Rao	select HAVE_KPROBES_ON_FTRACE
257a7d2475aSMichael Ellerman	select HAVE_KRETPROBES
25860d77ed2SNaveen N Rao	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if HAVE_OBJTOOL_MCOUNT && (!ARCH_USING_PATCHABLE_FUNCTION_ENTRY || (!CC_IS_GCC || GCC_VERSION >= 110100))
259a4520b25SChristophe Leroy	select HAVE_LIVEPATCH			if HAVE_DYNAMIC_FTRACE_WITH_REGS
260a7d2475aSMichael Ellerman	select HAVE_MOD_ARCH_SPECIFIC
2612104180aSNicholas Piggin	select HAVE_NMI				if PERF_EVENTS || (PPC64 && PPC_BOOK3S)
262eacf4c02SChristophe Leroy	select HAVE_OPTPROBES
2630f71dcfbSNaveen N Rao	select HAVE_OBJTOOL			if ARCH_USING_PATCHABLE_FUNCTION_ENTRY || MPROFILE_KERNEL || PPC32
264c984aef8SSathvika Vasireddy	select HAVE_OBJTOOL_MCOUNT		if HAVE_OBJTOOL
265a7d2475aSMichael Ellerman	select HAVE_PERF_EVENTS
266a7d2475aSMichael Ellerman	select HAVE_PERF_EVENTS_NMI		if PPC64
267a7d2475aSMichael Ellerman	select HAVE_PERF_REGS
268a7d2475aSMichael Ellerman	select HAVE_PERF_USER_STACK_DUMP
269a7d2475aSMichael Ellerman	select HAVE_REGS_AND_STACK_ACCESS_API
270accdd093SChristophe Leroy	select HAVE_RELIABLE_STACKTRACE
271c6b05f4eSChristophe Leroy	select HAVE_RSEQ
2727ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA		if PPC64
273cd1a41ceSThomas Gleixner	select HAVE_SOFTIRQ_ON_OWN_STACK
274c6b05f4eSChristophe Leroy	select HAVE_STACKPROTECTOR		if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2)
275c6b05f4eSChristophe Leroy	select HAVE_STACKPROTECTOR		if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13)
2765c810cedSChristophe Leroy	select HAVE_STATIC_CALL			if PPC32
277a7d2475aSMichael Ellerman	select HAVE_SYSCALL_TRACEPOINTS
278a7d2475aSMichael Ellerman	select HAVE_VIRT_CPU_ACCOUNTING
27901f13550SNicholas Piggin	select HAVE_VIRT_CPU_ACCOUNTING_GEN
28073c58e7eSMichael Ellerman	select HOTPLUG_SMT			if HOTPLUG_CPU
28173c58e7eSMichael Ellerman	select SMT_NUM_THREADS_DYNAMIC
282f96271ceSMichael Ellerman	select HUGETLB_PAGE_SIZE_VARIABLE	if PPC_BOOK3S_64 && HUGETLB_PAGE
283a4ce5a48SChristoph Hellwig	select IOMMU_HELPER			if PPC64
284a7d2475aSMichael Ellerman	select IRQ_DOMAIN
285a7d2475aSMichael Ellerman	select IRQ_FORCED_THREADING
286c7b9ed7cSChristophe Leroy	select KASAN_VMALLOC			if KASAN && MODULES
287e6fe228cSMichael Ellerman	select LOCK_MM_AND_FIND_VMA
288c6b05f4eSChristophe Leroy	select MMU_GATHER_PAGE_SIZE
289c6b05f4eSChristophe Leroy	select MMU_GATHER_RCU_TABLE_FREE
2901e9fdf21SPeter Zijlstra	select MMU_GATHER_MERGE_VMAS
29177f68ebeSNicholas Piggin	select MMU_LAZY_TLB_SHOOTDOWN		if PPC_BOOK3S_64
292a7d2475aSMichael Ellerman	select MODULES_USE_ELF_RELA
29306832fc0SChristoph Hellwig	select NEED_DMA_MAP_STATE		if PPC64 || NOT_COHERENT_CACHE
2947ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK	if PPC64
2957ecd19cfSKefeng Wang	select NEED_PER_CPU_PAGE_FIRST_CHUNK	if PPC64
29686596f0aSChristoph Hellwig	select NEED_SG_DMA_LENGTH
29710f85f43SStephen Rothwell	select OF
298e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
299a7d2475aSMichael Ellerman	select OLD_SIGACTION			if PPC32
300a7d2475aSMichael Ellerman	select OLD_SIGSUSPEND
3012eac9c2dSChristoph Hellwig	select PCI_DOMAINS			if PCI
302981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS		if PCI_MSI
30320f1b79dSChristoph Hellwig	select PCI_SYSCALL			if PCI
304a278e7eaSMichael Neuling	select PPC_DAWR				if PPC64
3056e8cef38SArnd Bergmann	select RTC_LIB
306a7d2475aSMichael Ellerman	select SPARSE_IRQ
307c35717c7SRussell Currey	select STRICT_KERNEL_RWX if STRICT_MODULE_RWX
3087ac57a89SCatalin Marinas	select SYSCTL_EXCEPTION_TRACE
309ed1cd6deSChristophe Leroy	select THREAD_INFO_IN_TASK
3104aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
311a7d2475aSMichael Ellerman	#
312a7d2475aSMichael Ellerman	# Please keep this list sorted alphabetically.
313a7d2475aSMichael Ellerman	#
31414cf11afSPaul Mackerras
315179ab1cbSMichael Ellermanconfig PPC_BARRIER_NOSPEC
316179ab1cbSMichael Ellerman	bool
317179ab1cbSMichael Ellerman	default y
3183e731858SChristophe Leroy	depends on PPC_BOOK3S_64 || PPC_E500
319179ab1cbSMichael Ellerman
320b86cf14fSNicholas Pigginconfig PPC_HAS_LBARX_LHARX
321b86cf14fSNicholas Piggin	bool
322b86cf14fSNicholas Piggin
32314cf11afSPaul Mackerrasconfig EARLY_PRINTK
32414cf11afSPaul Mackerras	bool
32551d3082fSBenjamin Herrenschmidt	default y
32614cf11afSPaul Mackerras
327b71d47c1SJason Baronconfig PANIC_TIMEOUT
328b71d47c1SJason Baron	int
329b71d47c1SJason Baron	default 180
330b71d47c1SJason Baron
33114cf11afSPaul Mackerrasconfig COMPAT
3326e944aedSMichal Suchanek	bool "Enable support for 32bit binaries"
3336e944aedSMichal Suchanek	depends on PPC64
3346fcb5741SNick Desaulniers	depends on !CC_IS_CLANG || CLANG_VERSION >= 120000
3356e944aedSMichal Suchanek	default y if !CPU_LITTLE_ENDIAN
33648b25c43SChris Metcalf	select ARCH_WANT_OLD_COMPAT_IPC
33709a4d5d0SAl Viro	select COMPAT_OLD_SIGACTION
33814cf11afSPaul Mackerras
339ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
34014cf11afSPaul Mackerras	bool
34114cf11afSPaul Mackerras	default y
34214cf11afSPaul Mackerras
34314cf11afSPaul Mackerrasconfig ARCH_MAY_HAVE_PC_FDC
34414cf11afSPaul Mackerras	bool
3453484a31fSPranith Kumar	default PCI
34614cf11afSPaul Mackerras
34708264cbcSKumar Galaconfig PPC_UDBG_16550
34808264cbcSKumar Gala	bool
34908264cbcSKumar Gala
35008264cbcSKumar Galaconfig GENERIC_TBSYNC
35108264cbcSKumar Gala	bool
35208264cbcSKumar Gala	default y if PPC32 && SMP
35308264cbcSKumar Gala
354b7472e17SMichael Ellermanconfig AUDIT_ARCH
355b7472e17SMichael Ellerman	bool
356b7472e17SMichael Ellerman	default y
357b7472e17SMichael Ellerman
35873c9ceabSJeremy Fitzhardingeconfig GENERIC_BUG
35973c9ceabSJeremy Fitzhardinge	bool
36073c9ceabSJeremy Fitzhardinge	default y
36173c9ceabSJeremy Fitzhardinge	depends on BUG
36273c9ceabSJeremy Fitzhardinge
3631baa1f70SJordan Nietheconfig GENERIC_BUG_RELATIVE_POINTERS
3641baa1f70SJordan Niethe	def_bool y
3651baa1f70SJordan Niethe	depends on GENERIC_BUG
3661baa1f70SJordan Niethe
367b3028878SJohannes Bergconfig SYS_SUPPORTS_APM_EMULATION
36858da10bbSKumar Gala	default y if PMAC_APM_EMU
369b3028878SJohannes Berg	bool
370b3028878SJohannes Berg
3716c5b59b9SDavid Gibsonconfig EPAPR_BOOT
3726c5b59b9SDavid Gibson	bool
3736c5b59b9SDavid Gibson	help
3746c5b59b9SDavid Gibson	  Used to allow a board to specify it wants an ePAPR compliant wrapper.
3756c5b59b9SDavid Gibson
376f4fc4a5bSKumar Galaconfig DEFAULT_UIMAGE
377f4fc4a5bSKumar Gala	bool
378f4fc4a5bSKumar Gala	help
379f4fc4a5bSKumar Gala	  Used to allow a board to specify it wants a uImage built by default
380f4fc4a5bSKumar Gala
381801e4062SJohannes Bergconfig ARCH_HIBERNATION_POSSIBLE
382801e4062SJohannes Berg	bool
383543b9fd3SJohannes Berg	default y
384543b9fd3SJohannes Berg
385f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
386f4cb5700SJohannes Berg	def_bool y
3874ffd6952SAnton Vorontsov	depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
388d0832a75SZhao Chenhui		   (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
389d0832a75SZhao Chenhui		   || 44x || 40x
390f4cb5700SJohannes Berg
3919ca12ac0SNicholas Pigginconfig ARCH_SUSPEND_NONZERO_CPU
3929ca12ac0SNicholas Piggin	def_bool y
3939ca12ac0SNicholas Piggin	depends on PPC_POWERNV || PPC_PSERIES
3949ca12ac0SNicholas Piggin
395ac790d09SAneesh Kumar K.Vconfig ARCH_HAS_ADD_PAGES
396ac790d09SAneesh Kumar K.V	def_bool y
397ac790d09SAneesh Kumar K.V	depends on ARCH_ENABLE_MEMORY_HOTPLUG
398ac790d09SAneesh Kumar K.V
3994c75a6f4SBenjamin Herrenschmidtconfig PPC_DCR_NATIVE
4004c75a6f4SBenjamin Herrenschmidt	bool
4014c75a6f4SBenjamin Herrenschmidt
4024c75a6f4SBenjamin Herrenschmidtconfig PPC_DCR_MMIO
4034c75a6f4SBenjamin Herrenschmidt	bool
4044c75a6f4SBenjamin Herrenschmidt
4054c75a6f4SBenjamin Herrenschmidtconfig PPC_DCR
4064c75a6f4SBenjamin Herrenschmidt	bool
4074c75a6f4SBenjamin Herrenschmidt	depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
4084c75a6f4SBenjamin Herrenschmidt	default y
4094c75a6f4SBenjamin Herrenschmidt
4105d2eb73aSPali Rohárconfig PPC_PCI_OF_BUS_MAP
4115d2eb73aSPali Rohár	bool "Use pci_to_OF_bus_map (deprecated)"
4125d2eb73aSPali Rohár	depends on PPC32
4135d2eb73aSPali Rohár	depends on PPC_PMAC || PPC_CHRP
4145d2eb73aSPali Rohár	help
4155d2eb73aSPali Rohár	  This option uses pci_to_OF_bus_map to map OF nodes to PCI devices, which
4165d2eb73aSPali Rohár	  restricts the system to only having 256 PCI buses. On CHRP it also causes
4175d2eb73aSPali Rohár	  the "pci-OF-bus-map" property to be created in the device tree.
4185d2eb73aSPali Rohár
4195d2eb73aSPali Rohár	  If unsure, say "N".
4205d2eb73aSPali Rohár
42156635681SPali Rohárconfig PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT
42256635681SPali Rohár	depends on PPC32
4235d2eb73aSPali Rohár	depends on !PPC_PCI_OF_BUS_MAP
42456635681SPali Rohár	bool "Assign PCI bus numbers from zero individually for each PCI domain"
42534557b75SPali Rohár	default y
42656635681SPali Rohár	help
42756635681SPali Rohár	  By default on PPC32 were PCI bus numbers unique across all PCI domains.
42856635681SPali Rohár	  So system could have only 256 PCI buses independently of available
42956635681SPali Rohár	  PCI domains. When this option is enabled then PCI bus numbers are
43056635681SPali Rohár	  PCI domain dependent and each PCI controller on own domain can have
43156635681SPali Rohár	  256 PCI buses, like it is on other Linux architectures.
43256635681SPali Rohár
4334c9d2800SBenjamin Herrenschmidtconfig PPC_OF_PLATFORM_PCI
4344c9d2800SBenjamin Herrenschmidt	bool
435373a6da1SStephen Rothwell	depends on PCI
4364c9d2800SBenjamin Herrenschmidt	depends on PPC64 # not supported on 32 bits yet
4374c9d2800SBenjamin Herrenschmidt
4388b7b80b9SAnanth N Mavinakayanahalliconfig ARCH_SUPPORTS_UPROBES
4398b7b80b9SAnanth N Mavinakayanahalli	def_bool y
4408b7b80b9SAnanth N Mavinakayanahalli
441172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_REGS
442172ae2e7SDave Kleikamp	bool
443172ae2e7SDave Kleikamp	depends on 40x || BOOKE
444172ae2e7SDave Kleikamp	default y
445172ae2e7SDave Kleikamp
446172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_IACS
447172ae2e7SDave Kleikamp	int
448172ae2e7SDave Kleikamp	depends on PPC_ADV_DEBUG_REGS
449172ae2e7SDave Kleikamp	default 4 if 44x
450172ae2e7SDave Kleikamp	default 2
451172ae2e7SDave Kleikamp
452172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_DACS
453172ae2e7SDave Kleikamp	int
454172ae2e7SDave Kleikamp	depends on PPC_ADV_DEBUG_REGS
455172ae2e7SDave Kleikamp	default 2
456172ae2e7SDave Kleikamp
457172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_DVCS
458172ae2e7SDave Kleikamp	int
459172ae2e7SDave Kleikamp	depends on PPC_ADV_DEBUG_REGS
460172ae2e7SDave Kleikamp	default 2 if 44x
461172ae2e7SDave Kleikamp	default 0
462172ae2e7SDave Kleikamp
463172ae2e7SDave Kleikampconfig PPC_ADV_DEBUG_DAC_RANGE
464172ae2e7SDave Kleikamp	bool
465172ae2e7SDave Kleikamp	depends on PPC_ADV_DEBUG_REGS && 44x
466172ae2e7SDave Kleikamp	default y
467172ae2e7SDave Kleikamp
468a278e7eaSMichael Neulingconfig PPC_DAWR
469a278e7eaSMichael Neuling	bool
470a278e7eaSMichael Neuling
47106ef42a1SKirill A. Shutemovconfig PGTABLE_LEVELS
47206ef42a1SKirill A. Shutemov	int
47306ef42a1SKirill A. Shutemov	default 2 if !PPC64
47406ef42a1SKirill A. Shutemov	default 4
47506ef42a1SKirill A. Shutemov
476a2d2e1ecSBenjamin Herrenschmidtsource "arch/powerpc/sysdev/Kconfig"
4774330f5daSKumar Galasource "arch/powerpc/platforms/Kconfig"
47814cf11afSPaul Mackerras
47914cf11afSPaul Mackerrasmenu "Kernel options"
48014cf11afSPaul Mackerras
48114cf11afSPaul Mackerrasconfig HIGHMEM
48214cf11afSPaul Mackerras	bool "High memory support"
48314cf11afSPaul Mackerras	depends on PPC32
48447da42b2SThomas Gleixner	select KMAP_LOCAL
48514cf11afSPaul Mackerras
4868636a1f9SMasahiro Yamadasource "kernel/Kconfig.hz"
48714cf11afSPaul Mackerras
48814cf11afSPaul Mackerrasconfig MATH_EMULATION
48914cf11afSPaul Mackerras	bool "Math emulation"
49053d143feSPaul Mackerras	depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT
491b6254cedSChristophe Leroy	select PPC_FPU_REGS
4924f44e8aeSEnrico Weigelt, metux IT consult	help
49314cf11afSPaul Mackerras	  Some PowerPC chips designed for embedded applications do not have
49414cf11afSPaul Mackerras	  a floating-point unit and therefore do not implement the
49514cf11afSPaul Mackerras	  floating-point instructions in the PowerPC instruction set.  If you
49614cf11afSPaul Mackerras	  say Y here, the kernel will include code to emulate a floating-point
49714cf11afSPaul Mackerras	  unit, which will allow programs that use floating-point
49814cf11afSPaul Mackerras	  instructions to run.
49914cf11afSPaul Mackerras
5004e63f8edSBenjamin Herrenschmidt	  This is also useful to emulate missing (optional) instructions
5014e63f8edSBenjamin Herrenschmidt	  such as fsqrt on cores that do have an FPU but do not implement
5024e63f8edSBenjamin Herrenschmidt	  them (such as Freescale BookE).
5034e63f8edSBenjamin Herrenschmidt
504e05c0e81SKevin Haochoice
505e05c0e81SKevin Hao	prompt "Math emulation options"
506e05c0e81SKevin Hao	default MATH_EMULATION_FULL
507e05c0e81SKevin Hao	depends on MATH_EMULATION
508e05c0e81SKevin Hao
509e05c0e81SKevin Haoconfig MATH_EMULATION_FULL
510e05c0e81SKevin Hao	bool "Emulate all the floating point instructions"
5114f44e8aeSEnrico Weigelt, metux IT consult	help
512e05c0e81SKevin Hao	  Select this option will enable the kernel to support to emulate
513e05c0e81SKevin Hao	  all the floating point instructions. If your SoC doesn't have
514e05c0e81SKevin Hao	  a FPU, you should select this.
515e05c0e81SKevin Hao
516e05c0e81SKevin Haoconfig MATH_EMULATION_HW_UNIMPLEMENTED
517e05c0e81SKevin Hao	bool "Just emulate the FPU unimplemented instructions"
5184f44e8aeSEnrico Weigelt, metux IT consult	help
519e05c0e81SKevin Hao	  Select this if you know there does have a hardware FPU on your
520e05c0e81SKevin Hao	  SoC, but some floating point instructions are not implemented by that.
521e05c0e81SKevin Hao
522e05c0e81SKevin Haoendchoice
523e05c0e81SKevin Hao
5243d72bbc4SMichael Neulingconfig PPC_TRANSACTIONAL_MEM
5253d72bbc4SMichael Neuling	bool "Transactional Memory support for POWERPC"
5263d72bbc4SMichael Neuling	depends on PPC_BOOK3S_64
5273d72bbc4SMichael Neuling	depends on SMP
5287b37a123SMichael Neuling	select ALTIVEC
5297b37a123SMichael Neuling	select VSX
5304f44e8aeSEnrico Weigelt, metux IT consult	help
5313d72bbc4SMichael Neuling	  Support user-mode Transactional Memory on POWERPC.
5323d72bbc4SMichael Neuling
533013a53f2SAnshuman Khandualconfig PPC_UV
534013a53f2SAnshuman Khandual	bool "Ultravisor support"
535013a53f2SAnshuman Khandual	depends on KVM_BOOK3S_HV_POSSIBLE
536a2db55ddSBharata B Rao	depends on DEVICE_PRIVATE
537013a53f2SAnshuman Khandual	default n
538013a53f2SAnshuman Khandual	help
539013a53f2SAnshuman Khandual	  This option paravirtualizes the kernel to run in POWER platforms that
540013a53f2SAnshuman Khandual	  supports the Protected Execution Facility (PEF). On such platforms,
541013a53f2SAnshuman Khandual	  the ultravisor firmware runs at a privilege level above the
542013a53f2SAnshuman Khandual	  hypervisor.
543013a53f2SAnshuman Khandual
544013a53f2SAnshuman Khandual	  If unsure, say "N".
545013a53f2SAnshuman Khandual
546951eedebSNicholas Pigginconfig LD_HEAD_STUB_CATCH
547951eedebSNicholas Piggin	bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT
548951eedebSNicholas Piggin	depends on PPC64
549951eedebSNicholas Piggin	help
550951eedebSNicholas Piggin	  Very large kernels can cause linker branch stubs to be generated by
551951eedebSNicholas Piggin	  code in head_64.S, which moves the head text sections out of their
552951eedebSNicholas Piggin	  specified location. This option can work around the problem.
553951eedebSNicholas Piggin
554951eedebSNicholas Piggin	  If unsure, say "N".
555951eedebSNicholas Piggin
5568c50b72aSTorsten Duweconfig MPROFILE_KERNEL
557aec0ba74SNicholas Piggin	depends on PPC64_ELF_ABI_V2 && FUNCTION_TRACER
558aec0ba74SNicholas Piggin	def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -mlittle-endian) if CPU_LITTLE_ENDIAN
559aec0ba74SNicholas Piggin	def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -mbig-endian) if CPU_BIG_ENDIAN
5608c50b72aSTorsten Duwe
5610f71dcfbSNaveen N Raoconfig ARCH_USING_PATCHABLE_FUNCTION_ENTRY
5620f71dcfbSNaveen N Rao	depends on FUNCTION_TRACER && (PPC32 || PPC64_ELF_ABI_V2)
5630f71dcfbSNaveen N Rao	depends on $(cc-option,-fpatchable-function-entry=2)
5640f71dcfbSNaveen N Rao	def_bool y if PPC32
5650f71dcfbSNaveen N Rao	def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-fpatchable-function-entry.sh $(CC) -mlittle-endian) if PPC64 && CPU_LITTLE_ENDIAN
5660f71dcfbSNaveen N Rao	def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-fpatchable-function-entry.sh $(CC) -mbig-endian) if PPC64 && CPU_BIG_ENDIAN
5670f71dcfbSNaveen N Rao
56814cf11afSPaul Mackerrasconfig HOTPLUG_CPU
56914cf11afSPaul Mackerras	bool "Support for enabling/disabling CPUs"
57040b31360SStephen Rothwell	depends on SMP && (PPC_PSERIES || \
5712f4f1f81Schenhui zhao		PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE)
5724f44e8aeSEnrico Weigelt, metux IT consult	help
57314cf11afSPaul Mackerras	  Say Y here to be able to disable and re-enable individual
57414cf11afSPaul Mackerras	  CPUs at runtime on SMP machines.
57514cf11afSPaul Mackerras
57614cf11afSPaul Mackerras	  Say N if you are unsure.
57714cf11afSPaul Mackerras
5780e23347fSRohan McLureconfig INTERRUPT_SANITIZE_REGISTERS
5790e23347fSRohan McLure	bool "Clear gprs on interrupt arrival"
5800e23347fSRohan McLure	depends on PPC64 && ARCH_HAS_SYSCALL_WRAPPER
5817cd882dfSRohan McLure	default PPC_BOOK3E_64 || PPC_PSERIES || PPC_POWERNV
5820e23347fSRohan McLure	help
5830e23347fSRohan McLure	  Reduce the influence of user register state on interrupt handlers and
5840e23347fSRohan McLure	  syscalls through clearing user state from registers before handling
5850e23347fSRohan McLure	  the exception.
5860e23347fSRohan McLure
587aa65ff6bSNicholas Pigginconfig PPC_QUEUED_SPINLOCKS
588c9f34013SNicholas Piggin	bool "Queued spinlocks" if EXPERT
589aa65ff6bSNicholas Piggin	depends on SMP
590c9f34013SNicholas Piggin	default PPC_BOOK3S_64
591aa65ff6bSNicholas Piggin	help
592aa65ff6bSNicholas Piggin	  Say Y here to use queued spinlocks which give better scalability and
593aa65ff6bSNicholas Piggin	  fairness on large SMP and NUMA systems without harming single threaded
594aa65ff6bSNicholas Piggin	  performance.
595aa65ff6bSNicholas Piggin
59612633e80SNathan Fontenotconfig ARCH_CPU_PROBE_RELEASE
59712633e80SNathan Fontenot	def_bool y
59812633e80SNathan Fontenot	depends on HOTPLUG_CPU
59912633e80SNathan Fontenot
600f2296a3dSMahesh Salgaonkarconfig PPC64_SUPPORTS_MEMORY_FAILURE
601f2296a3dSMahesh Salgaonkar	bool "Add support for memory hwpoison"
602f2296a3dSMahesh Salgaonkar	depends on PPC_BOOK3S_64
603f2296a3dSMahesh Salgaonkar	default "y" if PPC_POWERNV
604f2296a3dSMahesh Salgaonkar	select ARCH_SUPPORTS_MEMORY_FAILURE
605f2296a3dSMahesh Salgaonkar
60680bf3c84SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
60780bf3c84SEric DeVolder	def_bool PPC_BOOK3S || PPC_E500 || (44x && !SMP)
60814cf11afSPaul Mackerras
60980bf3c84SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_FILE
61078422b74SArnd Bergmann	def_bool PPC64
61114cf11afSPaul Mackerras
612e6265fe7SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_PURGATORY
61378422b74SArnd Bergmann	def_bool y
614b799a09fSAKASHI Takahiro
61580bf3c84SEric DeVolderconfig ARCH_SELECTS_KEXEC_FILE
61680bf3c84SEric DeVolder	def_bool y
61780bf3c84SEric DeVolder	depends on KEXEC_FILE
61880bf3c84SEric DeVolder	select KEXEC_ELF
61980bf3c84SEric DeVolder	select HAVE_IMA_KEXEC if IMA
62080bf3c84SEric DeVolder
6215017b459SNicholas Pigginconfig PPC64_BIG_ENDIAN_ELF_ABI_V2
6228c5fa3b5SNicholas Piggin	# Option is available to BFD, but LLD does not support ELFv1 so this is
6238c5fa3b5SNicholas Piggin	# always true there.
6248c5fa3b5SNicholas Piggin	prompt "Build big-endian kernel using ELF ABI V2" if LD_IS_BFD && EXPERT
6258c5fa3b5SNicholas Piggin	def_bool y
6265017b459SNicholas Piggin	depends on PPC64 && CPU_BIG_ENDIAN
6275017b459SNicholas Piggin	depends on CC_HAS_ELFV2
6285017b459SNicholas Piggin	help
6295017b459SNicholas Piggin	  This builds the kernel image using the "Power Architecture 64-Bit ELF
6305017b459SNicholas Piggin	  V2 ABI Specification", which has a reduced stack overhead and faster
6315017b459SNicholas Piggin	  function calls. This internal kernel ABI option does not affect
6325017b459SNicholas Piggin          userspace compatibility.
6335017b459SNicholas Piggin
6345017b459SNicholas Piggin	  The V2 ABI is standard for 64-bit little-endian, but for big-endian
6355017b459SNicholas Piggin	  it is less well tested by kernel and toolchain. However some distros
6365017b459SNicholas Piggin	  build userspace this way, and it can produce a functioning kernel.
6375017b459SNicholas Piggin
6384c91bd6eSKevin Haoconfig RELOCATABLE
6394c91bd6eSKevin Hao	bool "Build a relocatable kernel"
640dfc3095cSChristophe Leroy	depends on PPC64 || (FLATMEM && (44x || PPC_85xx))
6414c91bd6eSKevin Hao	select NONSTATIC_KERNEL
6424c91bd6eSKevin Hao	help
6434c91bd6eSKevin Hao	  This builds a kernel image that is capable of running at the
6444c91bd6eSKevin Hao	  location the kernel is loaded at. For ppc32, there is no any
6454c91bd6eSKevin Hao	  alignment restrictions, and this feature is a superset of
6464c91bd6eSKevin Hao	  DYNAMIC_MEMSTART and hence overrides it. For ppc64, we should use
6474c91bd6eSKevin Hao	  16k-aligned base address. The kernel is linked as a
6484c91bd6eSKevin Hao	  position-independent executable (PIE) and contains dynamic relocations
6494c91bd6eSKevin Hao	  which are processed early in the bootup process.
6504c91bd6eSKevin Hao
6514c91bd6eSKevin Hao	  One use is for the kexec on panic case where the recovery kernel
6524c91bd6eSKevin Hao	  must live at a different physical address than the primary
6534c91bd6eSKevin Hao	  kernel.
6544c91bd6eSKevin Hao
6554c91bd6eSKevin Hao	  Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
6564c91bd6eSKevin Hao	  it has been loaded at and the compile time physical addresses
6574c91bd6eSKevin Hao	  CONFIG_PHYSICAL_START is ignored.  However CONFIG_PHYSICAL_START
6584c91bd6eSKevin Hao	  setting can still be useful to bootwrappers that need to know the
6594c91bd6eSKevin Hao	  load address of the kernel (eg. u-boot/mkimage).
6604c91bd6eSKevin Hao
6612b0e86ccSJason Yanconfig RANDOMIZE_BASE
6622b0e86ccSJason Yan	bool "Randomize the address of the kernel image"
66373d11498SChristophe Leroy	depends on PPC_85xx && FLATMEM
6642b0e86ccSJason Yan	depends on RELOCATABLE
6652b0e86ccSJason Yan	help
6662b0e86ccSJason Yan	  Randomizes the virtual address at which the kernel image is
6672b0e86ccSJason Yan	  loaded, as a security feature that deters exploit attempts
6682b0e86ccSJason Yan	  relying on knowledge of the location of kernel internals.
6692b0e86ccSJason Yan
6702b0e86ccSJason Yan	  If unsure, say Y.
6712b0e86ccSJason Yan
67270839d20SNicholas Pigginconfig RELOCATABLE_TEST
67370839d20SNicholas Piggin	bool "Test relocatable kernel"
67470839d20SNicholas Piggin	depends on (PPC64 && RELOCATABLE)
67570839d20SNicholas Piggin	help
67670839d20SNicholas Piggin	  This runs the relocatable kernel at the address it was initially
67770839d20SNicholas Piggin	  loaded at, which tends to be non-zero and therefore test the
67870839d20SNicholas Piggin	  relocation code.
67970839d20SNicholas Piggin
68080bf3c84SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
68180bf3c84SEric DeVolder	def_bool PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP)
68280bf3c84SEric DeVolder
68380bf3c84SEric DeVolderconfig ARCH_SELECTS_CRASH_DUMP
68480bf3c84SEric DeVolder	def_bool y
68580bf3c84SEric DeVolder	depends on CRASH_DUMP
686dfc3095cSChristophe Leroy	select RELOCATABLE if PPC64 || 44x || PPC_85xx
687e8625d46SHaren Myneni
688eb39c880SMahesh Salgaonkarconfig FA_DUMP
689eb39c880SMahesh Salgaonkar	bool "Firmware-assisted dump"
69041df5928SHari Bathini	depends on PPC64 && (PPC_RTAS || PPC_POWERNV)
69122bd0177SHari Bathini	select CRASH_CORE
69222bd0177SHari Bathini	select CRASH_DUMP
693242f271cSManish Ahuja	help
694eb39c880SMahesh Salgaonkar	  A robust mechanism to get reliable kernel crash dump with
695eb39c880SMahesh Salgaonkar	  assistance from firmware. This approach does not use kexec,
69622bd0177SHari Bathini	  instead firmware assists in booting the capture kernel
697eb39c880SMahesh Salgaonkar	  while preserving memory contents. Firmware-assisted dump
698eb39c880SMahesh Salgaonkar	  is meant to be a kdump replacement offering robustness and
699eb39c880SMahesh Salgaonkar	  speed not possible without system firmware assistance.
700242f271cSManish Ahuja
70141df5928SHari Bathini	  If unsure, say "y". Only special kernels like petitboot may
70241df5928SHari Bathini	  need to say "N" here.
703242f271cSManish Ahuja
704bec53196SHari Bathiniconfig PRESERVE_FA_DUMP
705bec53196SHari Bathini	bool "Preserve Firmware-assisted dump"
706bec53196SHari Bathini	depends on PPC64 && PPC_POWERNV && !FA_DUMP
707bec53196SHari Bathini	help
708bec53196SHari Bathini	  On a kernel with FA_DUMP disabled, this option helps to preserve
709bec53196SHari Bathini	  crash data from a previously crash'ed kernel. Useful when the next
710bec53196SHari Bathini	  memory preserving kernel boot would process this crash data.
711bec53196SHari Bathini	  Petitboot kernel is the typical usecase for this option.
712bec53196SHari Bathini
7136f713d18SHari Bathiniconfig OPAL_CORE
7146f713d18SHari Bathini	bool "Export OPAL memory as /sys/firmware/opal/core"
7156f713d18SHari Bathini	depends on PPC64 && PPC_POWERNV
7166f713d18SHari Bathini	help
7176f713d18SHari Bathini	  This option uses the MPIPL support in firmware to provide an
7186f713d18SHari Bathini	  ELF core of OPAL memory after a crash. The ELF core is exported
7196f713d18SHari Bathini	  as /sys/firmware/opal/core file which is helpful in debugging
7206f713d18SHari Bathini	  OPAL crashes using GDB.
72114cf11afSPaul Mackerras
72214cf11afSPaul Mackerrasconfig IRQ_ALL_CPUS
72314cf11afSPaul Mackerras	bool "Distribute interrupts on all CPUs by default"
7246cf09b9dSPaul Bolle	depends on SMP
72514cf11afSPaul Mackerras	help
72614cf11afSPaul Mackerras	  This option gives the kernel permission to distribute IRQs across
72714cf11afSPaul Mackerras	  multiple CPUs.  Saying N here will route all IRQs to the first
72814cf11afSPaul Mackerras	  CPU.  Generally saying Y is safe, although some problems have been
72914cf11afSPaul Mackerras	  reported with SMP Power Macintoshes with this option enabled.
73014cf11afSPaul Mackerras
731ffa27b6bSAndy Whitcroftconfig NUMA
732bae80c27SMichael Ellerman	bool "NUMA Memory Allocation and Scheduler Support"
73325395cd2SMichael Ellerman	depends on PPC64 && SMP
7344c28b32bSMichael Ellerman	default y if PPC_PSERIES || PPC_POWERNV
7357ecd19cfSKefeng Wang	select USE_PERCPU_NUMA_NODE_ID
736bae80c27SMichael Ellerman	help
737bae80c27SMichael Ellerman	  Enable NUMA (Non-Uniform Memory Access) support.
738bae80c27SMichael Ellerman
739bae80c27SMichael Ellerman	  The kernel will try to allocate memory used by a CPU on the
740bae80c27SMichael Ellerman	  local memory controller of the CPU and add some more
741bae80c27SMichael Ellerman	  NUMA awareness to the kernel.
742ffa27b6bSAndy Whitcroft
743c80d79d7SYasunori Gotoconfig NODES_SHIFT
744c80d79d7SYasunori Goto	int
745ea55bf29SAnton Blanchard	default "8" if PPC64
746c80d79d7SYasunori Goto	default "4"
747a9ee6cf5SMike Rapoport	depends on NUMA
748c80d79d7SYasunori Goto
74964bb80d8SNishanth Aravamudanconfig HAVE_MEMORYLESS_NODES
75064bb80d8SNishanth Aravamudan	def_bool y
75164bb80d8SNishanth Aravamudan	depends on NUMA
75264bb80d8SNishanth Aravamudan
75314cf11afSPaul Mackerrasconfig ARCH_SELECT_MEMORY_MODEL
75414cf11afSPaul Mackerras	def_bool y
75514cf11afSPaul Mackerras	depends on PPC64
75614cf11afSPaul Mackerras
75714cf11afSPaul Mackerrasconfig ARCH_FLATMEM_ENABLE
75814cf11afSPaul Mackerras	def_bool y
7599100b205SAndy Whitcroft	depends on (PPC64 && !NUMA) || PPC32
76014cf11afSPaul Mackerras
76114cf11afSPaul Mackerrasconfig ARCH_SPARSEMEM_ENABLE
76214cf11afSPaul Mackerras	def_bool y
7639100b205SAndy Whitcroft	depends on PPC64
764d29eff7bSAndy Whitcroft	select SPARSEMEM_VMEMMAP_ENABLE
76545fb6ceaSAnton Blanchard
76645fb6ceaSAnton Blanchardconfig ARCH_SPARSEMEM_DEFAULT
76745fb6ceaSAnton Blanchard	def_bool y
7687b3912f4SMichael Ellerman	depends on PPC_BOOK3S_64
76914cf11afSPaul Mackerras
770f6853eb5SMichael Ellermanconfig ILLEGAL_POINTER_VALUE
771f6853eb5SMichael Ellerman	hex
772f6853eb5SMichael Ellerman	# This is roughly half way between the top of user space and the bottom
773f6853eb5SMichael Ellerman	# of kernel space, which seems about as good as we can get.
774f6853eb5SMichael Ellerman	default 0x5deadbeef0000000 if PPC64
775f6853eb5SMichael Ellerman	default 0
776f6853eb5SMichael Ellerman
7777e9191daSMike Kravetzconfig ARCH_MEMORY_PROBE
7787e9191daSMike Kravetz	def_bool y
7797e9191daSMike Kravetz	depends on MEMORY_HOTPLUG
7807e9191daSMike Kravetz
781ca9153a3SIlya Yanokchoice
782ca9153a3SIlya Yanok	prompt "Page size"
783f22969a6SJoel Stanley	default PPC_64K_PAGES if PPC_BOOK3S_64
784ca9153a3SIlya Yanok	default PPC_4K_PAGES
7853c726f8dSBenjamin Herrenschmidt	help
786ca9153a3SIlya Yanok	  Select the kernel logical page size. Increasing the page size
787ca9153a3SIlya Yanok	  will reduce software overhead at each page boundary, allow
788ca9153a3SIlya Yanok	  hardware prefetch mechanisms to be more effective, and allow
789ca9153a3SIlya Yanok	  larger dma transfers increasing IO efficiency and reducing
790ca9153a3SIlya Yanok	  overhead. However the utilization of memory will increase.
791ca9153a3SIlya Yanok	  For example, each cached file will using a multiple of the
792ca9153a3SIlya Yanok	  page size to hold its contents and the difference between the
793ca9153a3SIlya Yanok	  end of file and the end of page is wasted.
794ca9153a3SIlya Yanok
795ca9153a3SIlya Yanok	  Some dedicated systems, such as software raid serving with
796ca9153a3SIlya Yanok	  accelerated calculations, have shown significant increases.
797ca9153a3SIlya Yanok
798ca9153a3SIlya Yanok	  If you configure a 64 bit kernel for 64k pages but the
799ca9153a3SIlya Yanok	  processor does not support them, then the kernel will simulate
800ca9153a3SIlya Yanok	  them with 4k pages, loading them on demand, but with the
801ca9153a3SIlya Yanok	  reduced software overhead and larger internal fragmentation.
802ca9153a3SIlya Yanok	  For the 32 bit kernel, a large page option will not be offered
803ca9153a3SIlya Yanok	  unless it is supported by the configured processor.
804ca9153a3SIlya Yanok
805ca9153a3SIlya Yanok	  If unsure, choose 4K_PAGES.
806ca9153a3SIlya Yanok
807ca9153a3SIlya Yanokconfig PPC_4K_PAGES
808ca9153a3SIlya Yanok	bool "4k page size"
80919f97c98SAneesh Kumar K.V	select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
810ca9153a3SIlya Yanok
811ca9153a3SIlya Yanokconfig PPC_16K_PAGES
81255f8b5b8SMichael Ellerman	bool "16k page size"
81355c8fc3fSChristophe Leroy	depends on 44x || PPC_8xx
814ca9153a3SIlya Yanok
815ca9153a3SIlya Yanokconfig PPC_64K_PAGES
81655f8b5b8SMichael Ellerman	bool "64k page size"
817bba43630SMichael Ellerman	depends on 44x || PPC_BOOK3S_64
81819f97c98SAneesh Kumar K.V	select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
819ca9153a3SIlya Yanok
820e1240122SYuri Tikhonovconfig PPC_256K_PAGES
8214eeef098SChristophe Leroy	bool "256k page size (Requires non-standard binutils settings)"
8224eeef098SChristophe Leroy	depends on 44x && !PPC_47x
823e1240122SYuri Tikhonov	help
824e1240122SYuri Tikhonov	  Make the page size 256k.
825e1240122SYuri Tikhonov
8264eeef098SChristophe Leroy	  The kernel will only be able to run applications that have been
8274eeef098SChristophe Leroy	  compiled with '-zmax-page-size' set to 256K (the default is 64K) using
8284eeef098SChristophe Leroy	  binutils later than 2.17.50.0.3, or by patching the ELF_MAXPAGESIZE
8294eeef098SChristophe Leroy	  definition from 0x10000 to 0x40000 in older versions.
830e1240122SYuri Tikhonov
831ca9153a3SIlya Yanokendchoice
8323c726f8dSBenjamin Herrenschmidt
833d036dc79SMichael Ellermanconfig PAGE_SIZE_4KB
834d036dc79SMichael Ellerman	def_bool y
835d036dc79SMichael Ellerman	depends on PPC_4K_PAGES
836d036dc79SMichael Ellerman
837d036dc79SMichael Ellermanconfig PAGE_SIZE_16KB
838d036dc79SMichael Ellerman	def_bool y
839d036dc79SMichael Ellerman	depends on PPC_16K_PAGES
840d036dc79SMichael Ellerman
841d036dc79SMichael Ellermanconfig PAGE_SIZE_64KB
842d036dc79SMichael Ellerman	def_bool y
843d036dc79SMichael Ellerman	depends on PPC_64K_PAGES
844d036dc79SMichael Ellerman
845d036dc79SMichael Ellermanconfig PAGE_SIZE_256KB
846d036dc79SMichael Ellerman	def_bool y
847d036dc79SMichael Ellerman	depends on PPC_256K_PAGES
848d036dc79SMichael Ellerman
849555f4fdbSChristophe Leroyconfig PPC_PAGE_SHIFT
850555f4fdbSChristophe Leroy	int
851555f4fdbSChristophe Leroy	default 18 if PPC_256K_PAGES
852555f4fdbSChristophe Leroy	default 16 if PPC_64K_PAGES
853555f4fdbSChristophe Leroy	default 14 if PPC_16K_PAGES
854555f4fdbSChristophe Leroy	default 12
855555f4fdbSChristophe Leroy
85647613407SHamish Martinconfig THREAD_SHIFT
85747613407SHamish Martin	int "Thread shift" if EXPERT
85847613407SHamish Martin	range 13 15
85947613407SHamish Martin	default "15" if PPC_256K_PAGES
860*b3801487SMichael Ellerman	default "15" if PPC_PSERIES || PPC_POWERNV
86147613407SHamish Martin	default "14" if PPC64
86247613407SHamish Martin	default "13"
86347613407SHamish Martin	help
86447613407SHamish Martin	  Used to define the stack size. The default is almost always what you
86547613407SHamish Martin	  want. Only change this if you know what you are doing.
86647613407SHamish Martin
8670f4a9041SChristophe Leroyconfig DATA_SHIFT_BOOL
868da1adea0SChristophe Leroy	bool "Set custom data alignment"
8690f4a9041SChristophe Leroy	depends on ADVANCED_OPTIONS
87090cbac0eSChristophe Leroy	depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE
87149e3d8eaSChristophe Leroy	depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && !STRICT_KERNEL_RWX) || \
872dfc3095cSChristophe Leroy		   PPC_85xx
8730f4a9041SChristophe Leroy	help
8740f4a9041SChristophe Leroy	  This option allows you to set the kernel data alignment. When
8750f4a9041SChristophe Leroy	  RAM is mapped by blocks, the alignment needs to fit the size and
8760f4a9041SChristophe Leroy	  number of possible blocks. The default should be OK for most configs.
8770f4a9041SChristophe Leroy
8780f4a9041SChristophe Leroy	  Say N here unless you know what you are doing.
879166d97d9SChristophe Leroy
880166d97d9SChristophe Leroyconfig DATA_SHIFT
8810f4a9041SChristophe Leroy	int "Data shift" if DATA_SHIFT_BOOL
882166d97d9SChristophe Leroy	default 24 if STRICT_KERNEL_RWX && PPC64
88390cbac0eSChristophe Leroy	range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
88490cbac0eSChristophe Leroy	range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
885dfc3095cSChristophe Leroy	range 20 24 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_85xx
88663b2bc61SChristophe Leroy	default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32
88790cbac0eSChristophe Leroy	default 18 if (DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
8888f54a6f7SChristophe Leroy	default 23 if STRICT_KERNEL_RWX && PPC_8xx
88990cbac0eSChristophe Leroy	default 23 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx && PIN_TLB_DATA
89090cbac0eSChristophe Leroy	default 19 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
891dfc3095cSChristophe Leroy	default 24 if STRICT_KERNEL_RWX && PPC_85xx
892166d97d9SChristophe Leroy	default PPC_PAGE_SHIFT
8930f4a9041SChristophe Leroy	help
8940f4a9041SChristophe Leroy	  On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO.
8950f4a9041SChristophe Leroy	  Smaller is the alignment, greater is the number of necessary DBATs.
896166d97d9SChristophe Leroy
8978f54a6f7SChristophe Leroy	  On 8xx, large pages (512kb or 8M) are used to map kernel linear
8988f54a6f7SChristophe Leroy	  memory. Aligning to 8M reduces TLB misses as only 8M pages are used
899da1adea0SChristophe Leroy	  in that case. If PIN_TLB is selected, it must be aligned to 8M as
900da1adea0SChristophe Leroy	  8M pages will be pinned.
9018f54a6f7SChristophe Leroy
9020192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
9036fc54303SMike Rapoport (IBM)	int "Order of maximal physically contiguous allocations"
904358e526aSMichael Ellerman	range 7 8 if PPC64 && PPC_64K_PAGES
90523baf831SKirill A. Shutemov	default "8" if PPC64 && PPC_64K_PAGES
906358e526aSMichael Ellerman	range 12 12 if PPC64 && !PPC_64K_PAGES
90723baf831SKirill A. Shutemov	default "12" if PPC64 && !PPC_64K_PAGES
908358e526aSMichael Ellerman	range 8 10 if PPC32 && PPC_16K_PAGES
90923baf831SKirill A. Shutemov	default "8" if PPC32 && PPC_16K_PAGES
910358e526aSMichael Ellerman	range 6 10 if PPC32 && PPC_64K_PAGES
91123baf831SKirill A. Shutemov	default "6" if PPC32 && PPC_64K_PAGES
912358e526aSMichael Ellerman	range 4 10 if PPC32 && PPC_256K_PAGES
91323baf831SKirill A. Shutemov	default "4" if PPC32 && PPC_256K_PAGES
914ff9e8f41SMichael Ellerman	range 10 12
91523baf831SKirill A. Shutemov	default "10"
91653bcddb9SStephen Rothwell	help
9176fc54303SMike Rapoport (IBM)	  The kernel page allocator limits the size of maximal physically
9186fc54303SMike Rapoport (IBM)	  contiguous allocations. The limit is called MAX_ORDER and it
9196fc54303SMike Rapoport (IBM)	  defines the maximal power of two of number of pages that can be
9206fc54303SMike Rapoport (IBM)	  allocated as a single contiguous block. This option allows
9216fc54303SMike Rapoport (IBM)	  overriding the default setting when ability to allocate very
9226fc54303SMike Rapoport (IBM)	  large blocks of physically contiguous memory is required.
92353bcddb9SStephen Rothwell
92453bcddb9SStephen Rothwell	  The page size is not necessarily 4KB.  For example, on 64-bit
92553bcddb9SStephen Rothwell	  systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES.  Keep
92653bcddb9SStephen Rothwell	  this in mind when choosing a value for this option.
92753bcddb9SStephen Rothwell
9286fc54303SMike Rapoport (IBM)	  Don't change if unsure.
9296fc54303SMike Rapoport (IBM)
930fa28237cSPaul Mackerrasconfig PPC_SUBPAGE_PROT
93163396adaSNicholas Piggin	bool "Support setting protections for 4k subpages (subpage_prot syscall)"
93263396adaSNicholas Piggin	default n
933c2857374SNicholas Piggin	depends on PPC_64S_HASH_MMU && PPC_64K_PAGES
934fa28237cSPaul Mackerras	help
93563396adaSNicholas Piggin	  This option adds support for system call to allow user programs
936fa28237cSPaul Mackerras	  to set access permissions (read/write, readonly, or no access)
937fa28237cSPaul Mackerras	  on the 4k subpages of each 64k page.
938fa28237cSPaul Mackerras
93963396adaSNicholas Piggin	  If unsure, say N here.
94063396adaSNicholas Piggin
9419b725a90SShawn Anastasioconfig PPC_PROT_SAO_LPAR
9429b725a90SShawn Anastasio	bool "Support PROT_SAO mappings in LPARs"
9439b725a90SShawn Anastasio	depends on PPC_BOOK3S_64
9449b725a90SShawn Anastasio	help
9459b725a90SShawn Anastasio	  This option adds support for PROT_SAO mappings from userspace
9469b725a90SShawn Anastasio	  inside LPARs on supported CPUs.
9479b725a90SShawn Anastasio
9489b725a90SShawn Anastasio	  This may cause issues when performing guest migration from
9499b725a90SShawn Anastasio	  a CPU that supports SAO to one that does not.
9509b725a90SShawn Anastasio
9519b725a90SShawn Anastasio	  If unsure, say N here.
9529b725a90SShawn Anastasio
953e83d0169SIan Munsieconfig PPC_COPRO_BASE
954e83d0169SIan Munsie	bool
955e83d0169SIan Munsie
95614cf11afSPaul Mackerrasconfig SCHED_SMT
95714cf11afSPaul Mackerras	bool "SMT (Hyperthreading) scheduler support"
95814cf11afSPaul Mackerras	depends on PPC64 && SMP
95914cf11afSPaul Mackerras	help
96014cf11afSPaul Mackerras	  SMT scheduler support improves the CPU scheduler's decision making
96114cf11afSPaul Mackerras	  when dealing with POWER5 cpus at a cost of slightly increased
96214cf11afSPaul Mackerras	  overhead in some places. If unsure say N here.
96314cf11afSPaul Mackerras
964b92a66a6SMichael Neulingconfig PPC_DENORMALISATION
965b92a66a6SMichael Neuling	bool "PowerPC denormalisation exception handling"
966b92a66a6SMichael Neuling	depends on PPC_BOOK3S_64
9674e90a2a7SAnton Blanchard	default "y" if PPC_POWERNV
9684f44e8aeSEnrico Weigelt, metux IT consult	help
969b92a66a6SMichael Neuling	  Add support for handling denormalisation of single precision
970b92a66a6SMichael Neuling	  values.  Useful for bare metal only.  If unsure say Y here.
971b92a66a6SMichael Neuling
97214cf11afSPaul Mackerrasconfig CMDLINE
973f134a7ceSChris Packham	string "Initial kernel command string"
974cbe46bd4SChristophe Leroy	default ""
97514cf11afSPaul Mackerras	help
97614cf11afSPaul Mackerras	  On some platforms, there is currently no way for the boot loader to
97714cf11afSPaul Mackerras	  pass arguments to the kernel. For these platforms, you can supply
97814cf11afSPaul Mackerras	  some command-line options at build time by entering them here.  In
97914cf11afSPaul Mackerras	  most cases you will need to specify the root device here.
98014cf11afSPaul Mackerras
981d79fbb3aSChris Packhamchoice
982d79fbb3aSChris Packham	prompt "Kernel command line type" if CMDLINE != ""
983d79fbb3aSChris Packham	default CMDLINE_FROM_BOOTLOADER
984d79fbb3aSChris Packham
985d79fbb3aSChris Packhamconfig CMDLINE_FROM_BOOTLOADER
986d79fbb3aSChris Packham	bool "Use bootloader kernel arguments if available"
987d79fbb3aSChris Packham	help
988d79fbb3aSChris Packham	  Uses the command-line options passed by the boot loader. If
989d79fbb3aSChris Packham	  the boot loader doesn't provide any, the default kernel command
990d79fbb3aSChris Packham	  string provided in CMDLINE will be used.
991d79fbb3aSChris Packham
992d79fbb3aSChris Packhamconfig CMDLINE_EXTEND
993d79fbb3aSChris Packham	bool "Extend bootloader kernel arguments"
994d79fbb3aSChris Packham	help
995d79fbb3aSChris Packham	  The command-line arguments provided by the boot loader will be
996d79fbb3aSChris Packham	  appended to the default kernel command string.
997d79fbb3aSChris Packham
998eb3b80f6SSebastian Siewiorconfig CMDLINE_FORCE
999eb3b80f6SSebastian Siewior	bool "Always use the default kernel command string"
1000eb3b80f6SSebastian Siewior	help
1001eb3b80f6SSebastian Siewior	  Always use the default kernel command string, even if the boot
1002eb3b80f6SSebastian Siewior	  loader passes other arguments to the kernel.
1003eb3b80f6SSebastian Siewior	  This is useful if you cannot or don't want to change the
1004eb3b80f6SSebastian Siewior	  command-line options your boot loader passes to the kernel.
1005eb3b80f6SSebastian Siewior
1006d79fbb3aSChris Packhamendchoice
1007d79fbb3aSChris Packham
1008c356aa45SGrant Likelyconfig EXTRA_TARGETS
1009c356aa45SGrant Likely	string "Additional default image types"
1010c356aa45SGrant Likely	help
1011c356aa45SGrant Likely	  List additional targets to be built by the bootwrapper here (separated
1012c356aa45SGrant Likely	  by spaces).  This is useful for targets that depend of device tree
1013c356aa45SGrant Likely	  files in the .dts directory.
1014c356aa45SGrant Likely
1015c356aa45SGrant Likely	  Targets in this list will be build as part of the default build
1016c356aa45SGrant Likely	  target, or when the user does a 'make zImage' or a
1017c356aa45SGrant Likely	  'make zImage.initrd'.
1018c356aa45SGrant Likely
1019c356aa45SGrant Likely	  If unsure, leave blank
1020c356aa45SGrant Likely
1021b28f5081SJohannes Bergconfig ARCH_WANTS_FREEZER_CONTROL
1022b28f5081SJohannes Berg	def_bool y
1023b28f5081SJohannes Berg	depends on ADB_PMU
1024b28f5081SJohannes Berg
10258636a1f9SMasahiro Yamadasource "kernel/power/Kconfig"
102614cf11afSPaul Mackerras
102792e3da3cSRam Paiconfig PPC_MEM_KEYS
102892e3da3cSRam Pai	prompt "PowerPC Memory Protection Keys"
102992e3da3cSRam Pai	def_bool y
103092e3da3cSRam Pai	depends on PPC_BOOK3S_64
1031c2857374SNicholas Piggin	depends on PPC_64S_HASH_MMU
103292e3da3cSRam Pai	select ARCH_USES_HIGH_VMA_FLAGS
103392e3da3cSRam Pai	select ARCH_HAS_PKEYS
103492e3da3cSRam Pai	help
103592e3da3cSRam Pai	  Memory Protection Keys provides a mechanism for enforcing
103692e3da3cSRam Pai	  page-based protections, but without requiring modification of the
103792e3da3cSRam Pai	  page tables when an application changes protection domains.
103892e3da3cSRam Pai
10391eecbcdcSMauro Carvalho Chehab	  For details, see Documentation/core-api/protection-keys.rst
104092e3da3cSRam Pai
104192e3da3cSRam Pai	  If unsure, say y.
104292e3da3cSRam Pai
10431a8916eeSNayna Jainconfig PPC_SECURE_BOOT
10441a8916eeSNayna Jain	prompt "Enable secure boot support"
10451a8916eeSNayna Jain	bool
10465c5e46daSDaniel Axtens	depends on PPC_POWERNV || PPC_PSERIES
10474238fad3SNayna Jain	depends on IMA_ARCH_POLICY
10489e2b4be3SNayna Jain	imply IMA_SECURE_AND_OR_TRUSTED_BOOT
104946b2cbebSAndrew Donnellan	select PSERIES_PLPKS if PPC_PSERIES
10501a8916eeSNayna Jain	help
10511a8916eeSNayna Jain	  Systems with firmware secure boot enabled need to define security
10521a8916eeSNayna Jain	  policies to extend secure boot to the OS. This config allows a user
10531a8916eeSNayna Jain	  to enable OS secure boot on systems that have firmware support for
10541a8916eeSNayna Jain	  it. If in doubt say N.
10551a8916eeSNayna Jain
1056bd5d9c74SNayna Jainconfig PPC_SECVAR_SYSFS
1057bd5d9c74SNayna Jain	bool "Enable sysfs interface for POWER secure variables"
1058bd5d9c74SNayna Jain	default y
1059bd5d9c74SNayna Jain	depends on PPC_SECURE_BOOT
1060bd5d9c74SNayna Jain	depends on SYSFS
1061bd5d9c74SNayna Jain	help
1062bd5d9c74SNayna Jain	  POWER secure variables are managed and controlled by firmware.
1063bd5d9c74SNayna Jain	  These variables are exposed to userspace via sysfs to enable
1064bd5d9c74SNayna Jain	  read/write operations on these variables. Say Y if you have
1065bd5d9c74SNayna Jain	  secure boot enabled and want to expose variables to userspace.
1066bd5d9c74SNayna Jain
106714cf11afSPaul Mackerrasendmenu
106814cf11afSPaul Mackerras
106914cf11afSPaul Mackerrasconfig ISA_DMA_API
107014cf11afSPaul Mackerras	bool
10713d066d77SStephen Rothwell	default PCI
107214cf11afSPaul Mackerras
107314cf11afSPaul Mackerrasmenu "Bus options"
107414cf11afSPaul Mackerras
107514cf11afSPaul Mackerrasconfig ISA
107614cf11afSPaul Mackerras	bool "Support for ISA-bus hardware"
1077933ee711SPaul Bolle	depends on PPC_CHRP
1078f9bd170aSPaul Mackerras	select PPC_I8259
107914cf11afSPaul Mackerras	help
108014cf11afSPaul Mackerras	  Find out whether you have ISA slots on your motherboard.  ISA is the
108114cf11afSPaul Mackerras	  name of a bus system, i.e. the way the CPU talks to the other stuff
108214cf11afSPaul Mackerras	  inside your box.  If you have an Apple machine, say N here; if you
1083933ee711SPaul Bolle	  have an IBM RS/6000 or pSeries machine, say Y.  If you have an
1084933ee711SPaul Bolle	  embedded board, consult your board documentation.
108514cf11afSPaul Mackerras
108614cf11afSPaul Mackerrasconfig GENERIC_ISA_DMA
108714cf11afSPaul Mackerras	bool
10881927445aSAnton Vorontsov	depends on ISA_DMA_API
108914cf11afSPaul Mackerras	default y
109014cf11afSPaul Mackerras
109125635c71SPaul Mackerrasconfig PPC_INDIRECT_PCI
109225635c71SPaul Mackerras	bool
109325635c71SPaul Mackerras	depends on PCI
109463dafe57SBecky Bruce	default y if 40x || 44x
109525635c71SPaul Mackerras
109614cf11afSPaul Mackerrasconfig SBUS
109714cf11afSPaul Mackerras	bool
109814cf11afSPaul Mackerras
109908264cbcSKumar Galaconfig FSL_SOC
110008264cbcSKumar Gala	bool
110108264cbcSKumar Gala
110255c44991SRoy Zangconfig FSL_PCI
110355c44991SRoy Zang	bool
110411ddce15SChristoph Hellwig	select ARCH_HAS_DMA_SET_MASK
110555c44991SRoy Zang	select PPC_INDIRECT_PCI
1106d0839118SKumar Gala	select PCI_QUIRKS
110755c44991SRoy Zang
11084ffd6952SAnton Vorontsovconfig FSL_PMC
11094ffd6952SAnton Vorontsov	bool
11104ffd6952SAnton Vorontsov	default y
11114ffd6952SAnton Vorontsov	depends on SUSPEND && (PPC_85xx || PPC_86xx)
11124ffd6952SAnton Vorontsov	help
11134ffd6952SAnton Vorontsov	  Freescale MPC85xx/MPC86xx power management controller support
11144ffd6952SAnton Vorontsov	  (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
11154ffd6952SAnton Vorontsov
1116d164f6d4SVictor Gallardoconfig PPC4xx_CPM
1117d164f6d4SVictor Gallardo	bool
1118d164f6d4SVictor Gallardo	default y
1119d164f6d4SVictor Gallardo	depends on SUSPEND && (44x || 40x)
1120d164f6d4SVictor Gallardo	help
1121d164f6d4SVictor Gallardo	  PPC4xx Clock Power Management (CPM) support (suspend/resume).
1122d164f6d4SVictor Gallardo	  It also enables support for two different idle states (idle-wait
1123d164f6d4SVictor Gallardo	  and idle-doze).
1124d164f6d4SVictor Gallardo
11252a706919SStefan Roeseconfig 4xx_SOC
11262a706919SStefan Roese	bool
11272a706919SStefan Roese
1128acaa7aa3SAnton Vorontsovconfig FSL_LBC
11293ab8f2a2SRoy Zang	bool "Freescale Local Bus support"
1130acaa7aa3SAnton Vorontsov	help
11313ab8f2a2SRoy Zang	  Enables reporting of errors from the Freescale local bus
11323ab8f2a2SRoy Zang	  controller.  Also contains some common code used by
11333ab8f2a2SRoy Zang	  drivers for specific local bus peripherals.
1134acaa7aa3SAnton Vorontsov
113583ff9dcfSAnton Vorontsovconfig FSL_GTM
113683ff9dcfSAnton Vorontsov	bool
113783ff9dcfSAnton Vorontsov	depends on PPC_83xx || QUICC_ENGINE || CPM2
113883ff9dcfSAnton Vorontsov	help
113983ff9dcfSAnton Vorontsov	  Freescale General-purpose Timers support
114083ff9dcfSAnton Vorontsov
1141388b78adSAlexandre Bounineconfig FSL_RIO
1142388b78adSAlexandre Bounine	bool "Freescale Embedded SRIO Controller support"
11431753d50cSChristoph Hellwig	depends on RAPIDIO = y && HAVE_RAPIDIO
1144388b78adSAlexandre Bounine	default "n"
11454f44e8aeSEnrico Weigelt, metux IT consult	help
1146388b78adSAlexandre Bounine	  Include support for RapidIO controller on Freescale embedded
1147388b78adSAlexandre Bounine	  processors (MPC8548, MPC8641, etc).
1148388b78adSAlexandre Bounine
114914cf11afSPaul Mackerrasendmenu
115014cf11afSPaul Mackerras
11510f890c8dSSuzuki Pouloseconfig NONSTATIC_KERNEL
11520f890c8dSSuzuki Poulose	bool
11530f890c8dSSuzuki Poulose
115414cf11afSPaul Mackerrasmenu "Advanced setup"
115514cf11afSPaul Mackerras	depends on PPC32
115614cf11afSPaul Mackerras
115714cf11afSPaul Mackerrasconfig ADVANCED_OPTIONS
115814cf11afSPaul Mackerras	bool "Prompt for advanced kernel configuration options"
115914cf11afSPaul Mackerras	help
116014cf11afSPaul Mackerras	  This option will enable prompting for a variety of advanced kernel
116114cf11afSPaul Mackerras	  configuration options.  These options can cause the kernel to not
116214cf11afSPaul Mackerras	  work if they are set incorrectly, but can be used to optimize certain
116314cf11afSPaul Mackerras	  aspects of kernel memory management.
116414cf11afSPaul Mackerras
116514cf11afSPaul Mackerras	  Unless you know what you are doing, say N here.
116614cf11afSPaul Mackerras
116714cf11afSPaul Mackerrascomment "Default settings for advanced configuration options are used"
116814cf11afSPaul Mackerras	depends on !ADVANCED_OPTIONS
116914cf11afSPaul Mackerras
117014cf11afSPaul Mackerrasconfig LOWMEM_SIZE_BOOL
117114cf11afSPaul Mackerras	bool "Set maximum low memory"
117214cf11afSPaul Mackerras	depends on ADVANCED_OPTIONS
117314cf11afSPaul Mackerras	help
117414cf11afSPaul Mackerras	  This option allows you to set the maximum amount of memory which
117514cf11afSPaul Mackerras	  will be used as "low memory", that is, memory which the kernel can
117614cf11afSPaul Mackerras	  access directly, without having to set up a kernel virtual mapping.
117714cf11afSPaul Mackerras	  This can be useful in optimizing the layout of kernel virtual
117814cf11afSPaul Mackerras	  memory.
117914cf11afSPaul Mackerras
118014cf11afSPaul Mackerras	  Say N here unless you know what you are doing.
118114cf11afSPaul Mackerras
118214cf11afSPaul Mackerrasconfig LOWMEM_SIZE
118314cf11afSPaul Mackerras	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
118414cf11afSPaul Mackerras	default "0x30000000"
118514cf11afSPaul Mackerras
118696051465STrent Piephoconfig LOWMEM_CAM_NUM_BOOL
118796051465STrent Piepho	bool "Set number of CAMs to use to map low memory"
1188dfc3095cSChristophe Leroy	depends on ADVANCED_OPTIONS && PPC_85xx
118996051465STrent Piepho	help
119096051465STrent Piepho	  This option allows you to set the maximum number of CAM slots that
119196051465STrent Piepho	  will be used to map low memory.  There are a limited number of slots
119296051465STrent Piepho	  available and even more limited number that will fit in the L1 MMU.
119396051465STrent Piepho	  However, using more entries will allow mapping more low memory.  This
119496051465STrent Piepho	  can be useful in optimizing the layout of kernel virtual memory.
119596051465STrent Piepho
119696051465STrent Piepho	  Say N here unless you know what you are doing.
119796051465STrent Piepho
119896051465STrent Piephoconfig LOWMEM_CAM_NUM
1199dfc3095cSChristophe Leroy	depends on PPC_85xx
120096051465STrent Piepho	int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
120149e3d8eaSChristophe Leroy	default 3 if !STRICT_KERNEL_RWX
120249e3d8eaSChristophe Leroy	default 9 if DATA_SHIFT >= 24
120349e3d8eaSChristophe Leroy	default 12 if DATA_SHIFT >= 22
120449e3d8eaSChristophe Leroy	default 15
120596051465STrent Piepho
12060f890c8dSSuzuki Pouloseconfig DYNAMIC_MEMSTART
1207642e56ffSKees Cook	bool "Enable page aligned dynamic load address for kernel"
1208dfc3095cSChristophe Leroy	depends on ADVANCED_OPTIONS && FLATMEM && (PPC_85xx || 44x)
12090f890c8dSSuzuki Poulose	select NONSTATIC_KERNEL
121037dd2badSKumar Gala	help
12110f890c8dSSuzuki Poulose	  This option enables the kernel to be loaded at any page aligned
12120f890c8dSSuzuki Poulose	  physical address. The kernel creates a mapping from KERNELBASE to
12130f890c8dSSuzuki Poulose	  the address where the kernel is loaded. The page size here implies
12140f890c8dSSuzuki Poulose	  the TLB page size of the mapping for kernel on the particular platform.
12150f890c8dSSuzuki Poulose	  Please refer to the init code for finding the TLB page size.
121637dd2badSKumar Gala
12170f890c8dSSuzuki Poulose	  DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE
12180f890c8dSSuzuki Poulose	  kernel image, where the only restriction is the page aligned kernel
12190f890c8dSSuzuki Poulose	  load address. When this option is enabled, the compile time physical
12200f890c8dSSuzuki Poulose	  address CONFIG_PHYSICAL_START is ignored.
122137dd2badSKumar Gala
12229c5f7d39SSuzuki Poulose	  This option is overridden by CONFIG_RELOCATABLE
12239c5f7d39SSuzuki Poulose
122437dd2badSKumar Galaconfig PAGE_OFFSET_BOOL
122537dd2badSKumar Gala	bool "Set custom page offset address"
122637dd2badSKumar Gala	depends on ADVANCED_OPTIONS
122737dd2badSKumar Gala	help
122837dd2badSKumar Gala	  This option allows you to set the kernel virtual address at which
122937dd2badSKumar Gala	  the kernel will map low memory.  This can be useful in optimizing
123037dd2badSKumar Gala	  the virtual memory layout of the system.
123137dd2badSKumar Gala
123237dd2badSKumar Gala	  Say N here unless you know what you are doing.
123337dd2badSKumar Gala
123437dd2badSKumar Galaconfig PAGE_OFFSET
123537dd2badSKumar Gala	hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
123637dd2badSKumar Gala	default "0xc0000000"
123737dd2badSKumar Gala
123814cf11afSPaul Mackerrasconfig KERNEL_START_BOOL
123914cf11afSPaul Mackerras	bool "Set custom kernel base address"
124014cf11afSPaul Mackerras	depends on ADVANCED_OPTIONS
124114cf11afSPaul Mackerras	help
124214cf11afSPaul Mackerras	  This option allows you to set the kernel virtual address at which
124337dd2badSKumar Gala	  the kernel will be loaded.  Normally this should match PAGE_OFFSET
124437dd2badSKumar Gala	  however there are times (like kdump) that one might not want them
124537dd2badSKumar Gala	  to be the same.
124614cf11afSPaul Mackerras
124714cf11afSPaul Mackerras	  Say N here unless you know what you are doing.
124814cf11afSPaul Mackerras
124914cf11afSPaul Mackerrasconfig KERNEL_START
125014cf11afSPaul Mackerras	hex "Virtual address of kernel base" if KERNEL_START_BOOL
125137dd2badSKumar Gala	default PAGE_OFFSET if PAGE_OFFSET_BOOL
12520f890c8dSSuzuki Poulose	default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL
125314cf11afSPaul Mackerras	default "0xc0000000"
125414cf11afSPaul Mackerras
125537dd2badSKumar Galaconfig PHYSICAL_START_BOOL
125637dd2badSKumar Gala	bool "Set physical address where the kernel is loaded"
1257dfc3095cSChristophe Leroy	depends on ADVANCED_OPTIONS && FLATMEM && PPC_85xx
125837dd2badSKumar Gala	help
125937dd2badSKumar Gala	  This gives the physical address where the kernel is loaded.
126037dd2badSKumar Gala
126137dd2badSKumar Gala	  Say N here unless you know what you are doing.
126237dd2badSKumar Gala
126337dd2badSKumar Galaconfig PHYSICAL_START
126437dd2badSKumar Gala	hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
126526598f28SChristophe Leroy	default "0x02000000" if PPC_BOOK3S && CRASH_DUMP && !NONSTATIC_KERNEL
126637dd2badSKumar Gala	default "0x00000000"
126737dd2badSKumar Gala
126837dd2badSKumar Galaconfig PHYSICAL_ALIGN
126937dd2badSKumar Gala	hex
1270dfc3095cSChristophe Leroy	default "0x04000000" if PPC_85xx
127137dd2badSKumar Gala	help
127237dd2badSKumar Gala	  This value puts the alignment restrictions on physical address
127337dd2badSKumar Gala	  where kernel is loaded and run from. Kernel is compiled for an
127437dd2badSKumar Gala	  address which meets above alignment restriction.
127537dd2badSKumar Gala
127614cf11afSPaul Mackerrasconfig TASK_SIZE_BOOL
127714cf11afSPaul Mackerras	bool "Set custom user task size"
127814cf11afSPaul Mackerras	depends on ADVANCED_OPTIONS
127914cf11afSPaul Mackerras	help
128014cf11afSPaul Mackerras	  This option allows you to set the amount of virtual address space
128114cf11afSPaul Mackerras	  allocated to user tasks.  This can be useful in optimizing the
128214cf11afSPaul Mackerras	  virtual memory layout of the system.
128314cf11afSPaul Mackerras
128414cf11afSPaul Mackerras	  Say N here unless you know what you are doing.
128514cf11afSPaul Mackerras
128614cf11afSPaul Mackerrasconfig TASK_SIZE
128714cf11afSPaul Mackerras	hex "Size of user task space" if TASK_SIZE_BOOL
1288933ee711SPaul Bolle	default "0x80000000" if PPC_8xx
128980edc68eSChristophe Leroy	default "0xb0000000" if PPC_BOOK3S_32
12904d9e5510SKumar Gala	default "0xc0000000"
129114cf11afSPaul Mackerrasendmenu
129214cf11afSPaul Mackerras
1293cabb5587SStephen Rothwellif PPC64
1294bdbc29c1SPaul Mackerras# This value must have zeroes in the bottom 60 bits otherwise lots will break
129537dd2badSKumar Galaconfig PAGE_OFFSET
1296cabb5587SStephen Rothwell	hex
1297eeb2d218SStephen Rothwell	default "0xc000000000000000"
129837dd2badSKumar Galaconfig KERNEL_START
129937dd2badSKumar Gala	hex
130037dd2badSKumar Gala	default "0xc000000000000000"
130137dd2badSKumar Galaconfig PHYSICAL_START
130237dd2badSKumar Gala	hex
130337dd2badSKumar Gala	default "0x00000000"
1304cabb5587SStephen Rothwellendif
1305cabb5587SStephen Rothwell
13061088a209SSylvain Munautconfig PPC_LIB_RHEAP
13071088a209SSylvain Munaut	bool
13081088a209SSylvain Munaut
1309bbf45ba5SHollis Blanchardsource "arch/powerpc/kvm/Kconfig"
131085baa095SMichael Ellerman
131185baa095SMichael Ellermansource "kernel/livepatch/Kconfig"
1312