Blame view

arch/powerpc/Kconfig 36.7 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
a0ae9c7c0   Arnd Bergmann   [POWERPC] Split o...
2
  source "arch/powerpc/platforms/Kconfig.cputype"
17e638bc2   Johannes Berg   [POWERPC] Generic...
3

234a71a7d   kerstin jonsson   powerpc: Set CONF...
4
5
6
  config 32BIT
  	bool
  	default y if PPC32
14cf11af6   Paul Mackerras   powerpc: Merge en...
7
8
9
  config 64BIT
  	bool
  	default y if PPC64
14cf11af6   Paul Mackerras   powerpc: Merge en...
10
11
12
  config MMU
  	bool
  	default y
9fea59bd7   Michael Ellerman   powerpc/mm: Add s...
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  config ARCH_MMAP_RND_BITS_MAX
  	# On Book3S 64, the default virtual address space for 64-bit processes
  	# is 2^47 (128TB). As a maximum, allow randomisation to consume up to
  	# 32T of address space (2^45), which should ensure a reasonable gap
  	# between bottom-up and top-down allocations for applications that
  	# consume "normal" amounts of address space. Book3S 64 only supports 64K
  	# and 4K page sizes.
  	default 29 if PPC_BOOK3S_64 && PPC_64K_PAGES # 29 = 45 (32T) - 16 (64K)
  	default 33 if PPC_BOOK3S_64		     # 33 = 45 (32T) - 12 (4K)
  	#
  	# On all other 64-bit platforms (currently only Book3E), the virtual
  	# address space is 2^46 (64TB). Allow randomisation to consume up to 16T
  	# of address space (2^44). Only 4K page sizes are supported.
  	default 32 if 64BIT	# 32 = 44 (16T) - 12 (4K)
  	#
  	# For 32-bit, use the compat values, as they're the same.
  	default ARCH_MMAP_RND_COMPAT_BITS_MAX
  
  config ARCH_MMAP_RND_BITS_MIN
  	# Allow randomisation to consume up to 1GB of address space (2^30).
  	default 14 if 64BIT && PPC_64K_PAGES	# 14 = 30 (1GB) - 16 (64K)
  	default 18 if 64BIT			# 18 = 30 (1GB) - 12 (4K)
  	#
  	# For 32-bit, use the compat values, as they're the same.
  	default ARCH_MMAP_RND_COMPAT_BITS_MIN
  
  config ARCH_MMAP_RND_COMPAT_BITS_MAX
  	# Total virtual address space for 32-bit processes is 2^31 (2GB).
  	# Allow randomisation to consume up to 512MB of address space (2^29).
  	default 11 if PPC_256K_PAGES	# 11 = 29 (512MB) - 18 (256K)
  	default 13 if PPC_64K_PAGES	# 13 = 29 (512MB) - 16 (64K)
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
44
  	default 15 if PPC_16K_PAGES	# 15 = 29 (512MB) - 14 (16K)
9fea59bd7   Michael Ellerman   powerpc/mm: Add s...
45
46
47
48
49
50
51
52
53
  	default 17			# 17 = 29 (512MB) - 12 (4K)
  
  config ARCH_MMAP_RND_COMPAT_BITS_MIN
  	# Total virtual address space for 32-bit processes is 2^31 (2GB).
  	# Allow randomisation to consume up to 8MB of address space (2^23).
  	default 5 if PPC_256K_PAGES	#  5 = 23 (8MB) - 18 (256K)
  	default 7 if PPC_64K_PAGES	#  7 = 23 (8MB) - 16 (64K)
  	default 9 if PPC_16K_PAGES	#  9 = 23 (8MB) - 14 (16K)
  	default 11			# 11 = 23 (8MB) - 12 (4K)
c2a7e8180   Tejun Heo   powerpc64: conver...
54
  config HAVE_SETUP_PER_CPU_AREA
e74e39620   Tejun Heo   percpu: use dynam...
55
  	def_bool PPC64
c2a7e8180   Tejun Heo   powerpc64: conver...
56
  config NEED_PER_CPU_EMBED_FIRST_CHUNK
eb553f169   Aneesh Kumar K.V   powerpc/64/mm: im...
57
58
59
60
  	def_bool y if PPC64
  
  config NEED_PER_CPU_PAGE_FIRST_CHUNK
  	def_bool y if PPC64
b32ef636a   travis@sgi.com   percpu: use a kco...
61

551b81f26   Michael Ellerman   powerpc: Make NR_...
62
63
  config NR_IRQS
  	int "Number of virtual interrupt numbers"
859aefc5a   Anton Blanchard   powerpc: Increase...
64
  	range 32 32768
551b81f26   Michael Ellerman   powerpc: Make NR_...
65
66
67
68
69
70
  	default "512"
  	help
  	  This defines the number of virtual interrupt numbers the kernel
  	  can manage. Virtual interrupt numbers are what you see in
  	  /proc/interrupts. If you configure your system to have too few,
  	  drivers will fail to load or worse - handle with care.
ddd703ca0   Nicholas Piggin   powerpc: Add NMI ...
71
72
  config NMI_IPI
  	bool
2104180a5   Nicholas Piggin   powerpc/64s: impl...
73
  	depends on SMP && (DEBUGGER || KEXEC_CORE || HARDLOCKUP_DETECTOR)
ddd703ca0   Nicholas Piggin   powerpc: Add NMI ...
74
  	default y
75eb767e4   Nicholas Piggin   powerpc: Fix powe...
75
76
77
78
79
80
81
82
83
84
  config PPC_WATCHDOG
  	bool
  	depends on HARDLOCKUP_DETECTOR
  	depends on HAVE_HARDLOCKUP_DETECTOR_ARCH
  	default y
  	help
  	  This is a placeholder when the powerpc hardlockup detector
  	  watchdog is selected (arch/powerpc/kernel/watchdog.c). It is
  	  seleted via the generic lockup detector menu which is why we
  	  have no standalone config option for it here.
fd3e0bbc6   Christoph Hellwig   [POWERPC] Stacktr...
85
86
87
  config STACKTRACE_SUPPORT
  	bool
  	default y
945feb174   Benjamin Herrenschmidt   [POWERPC] irqtrac...
88
89
  config TRACE_IRQFLAGS_SUPPORT
  	bool
945feb174   Benjamin Herrenschmidt   [POWERPC] irqtrac...
90
91
92
93
94
  	default y
  
  config LOCKDEP_SUPPORT
  	bool
  	default y
95c354fe9   Nick Piggin   spinlock: lockbre...
95
96
97
  config GENERIC_LOCKBREAK
  	bool
  	default y
fdc5569ea   Thomas Gleixner   sched/rt, powerpc...
98
  	depends on SMP && PREEMPTION
95c354fe9   Nick Piggin   spinlock: lockbre...
99

e779b2f95   Akinobu Mita   [PATCH] bitops: p...
100
101
102
  config GENERIC_HWEIGHT
  	bool
  	default y
14cf11af6   Paul Mackerras   powerpc: Merge en...
103
104
105
  config PPC
  	bool
  	default y
a7d2475af   Michael Ellerman   powerpc: Sort the...
106
107
108
  	#
  	# Please keep this list sorted alphabetically.
  	#
942fa985e   Yury Norov   32-bit userspace ...
109
  	select ARCH_32BIT_OFF_T if PPC32
6bf752dac   Christophe Leroy   powerpc: implemen...
110
  	select ARCH_HAS_DEBUG_VIRTUAL
a7d2475af   Michael Ellerman   powerpc: Sort the...
111
  	select ARCH_HAS_DEVMEM_IS_ALLOWED
a7d2475af   Michael Ellerman   powerpc: Sort the...
112
  	select ARCH_HAS_ELF_RANDOMIZE
6974f0c45   Daniel Micay   include/linux/str...
113
  	select ARCH_HAS_FORTIFY_SOURCE
a7d2475af   Michael Ellerman   powerpc: Sort the...
114
  	select ARCH_HAS_GCOV_PROFILE_ALL
fb0b0a73b   Andrew Donnellan   powerpc: Enable kcov
115
  	select ARCH_HAS_KCOV
cbd34da7d   Christoph Hellwig   mm: move the powe...
116
  	select ARCH_HAS_HUGEPD			if HUGETLB_PAGE
9ffc1d19f   Dan Williams   mm/memremap_pages...
117
  	select ARCH_HAS_MEMREMAP_COMPAT_ALIGN
420af1554   Will Deacon   powerpc/mmiowb: H...
118
  	select ARCH_HAS_MMIOWB			if PPC64
ea8c64ace   Christoph Hellwig   dma-mapping: move...
119
  	select ARCH_HAS_PHYS_TO_DMA
461cef2a6   Christophe Leroy   powerpc/32: activ...
120
  	select ARCH_HAS_PMEM_API
d195b1d1d   Petr Mladek   powerpc/bpf: Enab...
121
  	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
175967318   Robin Murphy   mm: introduce ARC...
122
  	select ARCH_HAS_PTE_DEVMAP		if PPC_BOOK3S_64
3010a5ea6   Laurent Dufour   mm: introduce ARC...
123
  	select ARCH_HAS_PTE_SPECIAL
3ccfebedd   Mathieu Desnoyers   powerpc, membarri...
124
  	select ARCH_HAS_MEMBARRIER_CALLBACKS
2384b36f9   Nicholas Piggin   powerpc: Select A...
125
  	select ARCH_HAS_MEMBARRIER_SYNC_CORE
b4645ffc4   Christophe Leroy   powerpc/64: don't...
126
  	select ARCH_HAS_SCALED_CPUTIME		if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
8659a0e0e   Michael Ellerman   powerpc/64s: Disa...
127
  	select ARCH_HAS_STRICT_KERNEL_RWX	if (PPC32 && !HIBERNATION)
a7d2475af   Michael Ellerman   powerpc: Sort the...
128
  	select ARCH_HAS_TICK_BROADCAST		if GENERIC_CLOCKEVENTS_BROADCAST
461cef2a6   Christophe Leroy   powerpc/32: activ...
129
  	select ARCH_HAS_UACCESS_FLUSHCACHE
ec6347bb4   Dan Williams   x86, powerpc: Ren...
130
  	select ARCH_HAS_COPY_MC			if PPC64
a7d2475af   Michael Ellerman   powerpc: Sort the...
131
132
  	select ARCH_HAS_UBSAN_SANITIZE_ALL
  	select ARCH_HAVE_NMI_SAFE_CMPXCHG
350e88bad   Mike Rapoport   mm: memblock: mak...
133
  	select ARCH_KEEP_MEMBLOCK
b7e7c37b6   Mark Salter   powerpc: select A...
134
  	select ARCH_MIGHT_HAVE_PC_PARPORT
c74e6d3de   Mark Salter   Input: i8042 - se...
135
  	select ARCH_MIGHT_HAVE_PC_SERIO
4ec591e51   Christophe Leroy   powerpc: restore ...
136
  	select ARCH_OPTIONAL_KERNEL_RWX		if ARCH_HAS_STRICT_KERNEL_RWX
a7d2475af   Michael Ellerman   powerpc: Sort the...
137
  	select ARCH_SUPPORTS_ATOMIC_RMW
a7d2475af   Michael Ellerman   powerpc: Sort the...
138
139
  	select ARCH_USE_BUILTIN_BSWAP
  	select ARCH_USE_CMPXCHG_LOCKREF		if PPC64
aa65ff6b1   Nicholas Piggin   powerpc/64s: Impl...
140
141
  	select ARCH_USE_QUEUED_RWLOCKS		if PPC_QUEUED_SPINLOCKS
  	select ARCH_USE_QUEUED_SPINLOCKS	if PPC_QUEUED_SPINLOCKS
a7d2475af   Michael Ellerman   powerpc: Sort the...
142
  	select ARCH_WANT_IPC_PARSE_VERSION
66acd4608   Nicholas Piggin   powerpc: select A...
143
  	select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
59612b24f   Nathan Chancellor   kbuild: Hoist '--...
144
  	select ARCH_WANT_LD_ORPHAN_WARN
77e584968   Paul E. McKenney   rcu: Make arch se...
145
  	select ARCH_WEAK_RELEASE_ACQUIRE
d812c0e1f   Stephen Rothwell   powerpc: Make sur...
146
  	select BINFMT_ELF
109167063   Shile Zhang   scripts/sorttable...
147
  	select BUILDTIME_TABLE_SORT
a7d2475af   Michael Ellerman   powerpc: Sort the...
148
149
  	select CLONE_BACKWARDS
  	select DCACHE_WORD_ACCESS		if PPC64 && CPU_LITTLE_ENDIAN
2f9237d4f   Christoph Hellwig   dma-mapping: make...
150
  	select DMA_OPS				if PPC64
f1565c24b   Christoph Hellwig   powerpc: use the ...
151
  	select DMA_OPS_BYPASS			if PPC64
0c0c52306   Michael Ellerman   powerpc: Only sup...
152
  	select DYNAMIC_FTRACE			if FUNCTION_TRACER
a7d2475af   Michael Ellerman   powerpc: Sort the...
153
154
155
156
157
158
159
  	select EDAC_ATOMIC_SCRUB
  	select EDAC_SUPPORT
  	select GENERIC_ATOMIC64			if PPC32
  	select GENERIC_CLOCKEVENTS
  	select GENERIC_CLOCKEVENTS_BROADCAST	if SMP
  	select GENERIC_CMOS_UPDATE
  	select GENERIC_CPU_AUTOPROBE
179ab1cbf   Michael Ellerman   powerpc/64: Add C...
160
  	select GENERIC_CPU_VULNERABILITIES	if PPC_BARRIER_NOSPEC
265c3491c   Christophe Leroy   powerpc: Add supp...
161
  	select GENERIC_EARLY_IOREMAP
a7d2475af   Michael Ellerman   powerpc: Sort the...
162
163
  	select GENERIC_IRQ_SHOW
  	select GENERIC_IRQ_SHOW_LEVEL
eb01d42a7   Christoph Hellwig   PCI: consolidate ...
164
  	select GENERIC_PCI_IOMAP		if PCI
a7d2475af   Michael Ellerman   powerpc: Sort the...
165
166
167
  	select GENERIC_SMP_IDLE_THREAD
  	select GENERIC_STRNCPY_FROM_USER
  	select GENERIC_STRNLEN_USER
d4cfb1138   Paul Mackerras   powerpc: Convert ...
168
  	select GENERIC_TIME_VSYSCALL
a7d2475af   Michael Ellerman   powerpc: Sort the...
169
  	select HAVE_ARCH_AUDITSYSCALL
d909f9109   Nicholas Piggin   powerpc/64s/radix...
170
  	select HAVE_ARCH_HUGE_VMAP		if PPC_BOOK3S_64 && PPC_RADIX_MMU
a7d2475af   Michael Ellerman   powerpc: Sort the...
171
  	select HAVE_ARCH_JUMP_LABEL
888468ce7   Christophe Leroy   powerpc/32: Disab...
172
173
  	select HAVE_ARCH_KASAN			if PPC32 && PPC_PAGE_SHIFT <= 14
  	select HAVE_ARCH_KASAN_VMALLOC		if PPC32 && PPC_PAGE_SHIFT <= 14
a7d2475af   Michael Ellerman   powerpc: Sort the...
174
  	select HAVE_ARCH_KGDB
9fea59bd7   Michael Ellerman   powerpc/mm: Add s...
175
176
  	select HAVE_ARCH_MMAP_RND_BITS
  	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if COMPAT
20e07af71   Finn Thain   powerpc: Adopt nv...
177
  	select HAVE_ARCH_NVRAM_OPS
a7d2475af   Michael Ellerman   powerpc: Sort the...
178
179
  	select HAVE_ARCH_SECCOMP_FILTER
  	select HAVE_ARCH_TRACEHOOK
2ff2b7ec6   Masahiro Yamada   kbuild: add CONFI...
180
  	select HAVE_ASM_MODVERSIONS
f079bb3c5   Christophe Leroy   powerpc/ftrace: E...
181
  	select HAVE_C_RECORDMCOUNT
a7d2475af   Michael Ellerman   powerpc: Sort the...
182
  	select HAVE_CBPF_JIT			if !PPC64
bf6cbd0c8   Michael Ellerman   powerpc: Fix stac...
183
184
  	select HAVE_STACKPROTECTOR		if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13)
  	select HAVE_STACKPROTECTOR		if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2)
a7d2475af   Michael Ellerman   powerpc: Sort the...
185
  	select HAVE_CONTEXT_TRACKING		if PPC64
490f561b7   Frederic Weisbecker   context-tracking:...
186
  	select HAVE_TIF_NOHZ			if PPC64
a7d2475af   Michael Ellerman   powerpc: Sort the...
187
188
  	select HAVE_DEBUG_KMEMLEAK
  	select HAVE_DEBUG_STACKOVERFLOW
2b79d6962   Steven Rostedt   powerpc: enable d...
189
  	select HAVE_DYNAMIC_FTRACE
a7d2475af   Michael Ellerman   powerpc: Sort the...
190
191
192
  	select HAVE_DYNAMIC_FTRACE_WITH_REGS	if MPROFILE_KERNEL
  	select HAVE_EBPF_JIT			if PPC64
  	select HAVE_EFFICIENT_UNALIGNED_ACCESS	if !(CPU_LITTLE_ENDIAN && POWER7_CPU)
67a929e09   Christoph Hellwig   mm: rename CONFIG...
193
  	select HAVE_FAST_GUP
a7d2475af   Michael Ellerman   powerpc: Sort the...
194
  	select HAVE_FTRACE_MCOUNT_RECORD
7cd01b08d   Naveen N. Rao   powerpc: Add supp...
195
  	select HAVE_FUNCTION_ERROR_INJECTION
60ce8f726   Steven Rostedt   powerpc32, ftrace...
196
  	select HAVE_FUNCTION_GRAPH_TRACER
a7d2475af   Michael Ellerman   powerpc: Sort the...
197
  	select HAVE_FUNCTION_TRACER
8034c2fb1   Masahiro Yamada   gcc-plugins: move...
198
  	select HAVE_GCC_PLUGINS			if GCC_VERSION >= 50200   # plugin support on gcc <= 5.1 is buggy on PPC
a7d2475af   Michael Ellerman   powerpc: Sort the...
199
  	select HAVE_HW_BREAKPOINT		if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx)
ec7748b59   Sam Ravnborg   ide: introduce HA...
200
  	select HAVE_IDE
a1f242ff4   Benjamin Herrenschmidt   powerpc ioremap_prot
201
  	select HAVE_IOREMAP_PROT
a7d2475af   Michael Ellerman   powerpc: Sort the...
202
203
  	select HAVE_IRQ_EXIT_ON_IRQ_STACK
  	select HAVE_KERNEL_GZIP
1cc9a21b0   Christophe Leroy   powerpc/boot: Add...
204
  	select HAVE_KERNEL_LZMA			if DEFAULT_UIMAGE
264bffad4   Christophe Leroy   powerpc/boot: Add...
205
  	select HAVE_KERNEL_LZO			if DEFAULT_UIMAGE
423bfc69d   Christian Lamparter   powerpc: Enable k...
206
  	select HAVE_KERNEL_XZ			if PPC_BOOK3S || 44x
3f550096d   Mathieu Desnoyers   Add HAVE_KPROBES
207
  	select HAVE_KPROBES
ead514d5f   Naveen N. Rao   powerpc/kprobes: ...
208
  	select HAVE_KPROBES_ON_FTRACE
9edddaa20   Ananth N Mavinakayanahalli   Kprobes: indicate...
209
  	select HAVE_KRETPROBES
4c1d9bb0b   Nicholas Piggin   powerpc: Allow LD...
210
  	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
a7d2475af   Michael Ellerman   powerpc: Sort the...
211
  	select HAVE_LIVEPATCH			if HAVE_DYNAMIC_FTRACE_WITH_REGS
a7d2475af   Michael Ellerman   powerpc: Sort the...
212
  	select HAVE_MOD_ARCH_SPECIFIC
2104180a5   Nicholas Piggin   powerpc/64s: impl...
213
214
  	select HAVE_NMI				if PERF_EVENTS || (PPC64 && PPC_BOOK3S)
  	select HAVE_HARDLOCKUP_DETECTOR_ARCH	if (PPC64 && PPC_BOOK3S)
4e491d14f   Steven Rostedt   ftrace: support f...
215
  	select HAVE_OPROFILE
a7d2475af   Michael Ellerman   powerpc: Sort the...
216
  	select HAVE_OPTPROBES			if PPC64
cdd6c482c   Ingo Molnar   perf: Do the big ...
217
  	select HAVE_PERF_EVENTS
a7d2475af   Michael Ellerman   powerpc: Sort the...
218
  	select HAVE_PERF_EVENTS_NMI		if PPC64
92e5aae45   Nicholas Piggin   kernel/watchdog: ...
219
  	select HAVE_HARDLOCKUP_DETECTOR_PERF	if PERF_EVENTS && HAVE_PERF_EVENTS_NMI && !HAVE_HARDLOCKUP_DETECTOR_ARCH
ed4a4ef85   Anju T   powerpc/perf: Add...
220
  	select HAVE_PERF_REGS
17ed7c384   Chandan Kumar   powerpc: Add HAVE...
221
  	select HAVE_PERF_USER_STACK_DUMP
ff2e6d725   Peter Zijlstra   asm-generic/tlb: ...
222
  	select MMU_GATHER_RCU_TABLE_FREE
3af4bd033   Peter Zijlstra   asm-generic/tlb: ...
223
  	select MMU_GATHER_PAGE_SIZE
359e4284a   Mahesh Salgaonkar   powerpc: Add kpro...
224
  	select HAVE_REGS_AND_STACK_ACCESS_API
a50d3250d   Nicolai Stange   powerpc/64s: Make...
225
  	select HAVE_RELIABLE_STACKTRACE		if PPC_BOOK3S_64 && CPU_LITTLE_ENDIAN
a7d2475af   Michael Ellerman   powerpc: Sort the...
226
227
  	select HAVE_SYSCALL_TRACEPOINTS
  	select HAVE_VIRT_CPU_ACCOUNTING
518470fe9   Anton Blanchard   powerpc: Add HAVE...
228
  	select HAVE_IRQ_TIME_ACCOUNTING
8a417c48f   Boqun Feng   powerpc: Add supp...
229
  	select HAVE_RSEQ
a4ce5a48d   Christoph Hellwig   iommu-helper: mov...
230
  	select IOMMU_HELPER			if PPC64
cc79ca691   Grant Likely   irq_domain: Move ...
231
  	select IRQ_DOMAIN
e8d2c4735   Thomas Gleixner   powerpc: Allow ir...
232
  	select IRQ_FORCED_THREADING
786d35d45   David Howells   Make most arch as...
233
  	select MODULES_USE_ELF_RELA
06832fc00   Christoph Hellwig   powerpc: Do not r...
234
  	select NEED_DMA_MAP_STATE		if PPC64 || NOT_COHERENT_CACHE
86596f0a2   Christoph Hellwig   scatterlist: move...
235
  	select NEED_SG_DMA_LENGTH
a7d2475af   Michael Ellerman   powerpc: Sort the...
236
  	select OF
dabf6b36b   Michael Ellerman   of: Add OF_DMA_DE...
237
  	select OF_DMA_DEFAULT_COHERENT		if !NOT_COHERENT_CACHE
a7d2475af   Michael Ellerman   powerpc: Sort the...
238
  	select OF_EARLY_FLATTREE
a7d2475af   Michael Ellerman   powerpc: Sort the...
239
240
  	select OLD_SIGACTION			if PPC32
  	select OLD_SIGSUSPEND
2eac9c2df   Christoph Hellwig   PCI: consolidate ...
241
  	select PCI_DOMAINS			if PCI
981aa1d36   Thomas Gleixner   PCI: MSI: Fix Kco...
242
  	select PCI_MSI_ARCH_FALLBACKS		if PCI_MSI
20f1b79d3   Christoph Hellwig   PCI: consolidate ...
243
  	select PCI_SYSCALL			if PCI
a278e7ea6   Michael Neuling   powerpc: Fix comp...
244
  	select PPC_DAWR				if PPC64
6e8cef384   Arnd Bergmann   powerpc: always e...
245
  	select RTC_LIB
a7d2475af   Michael Ellerman   powerpc: Sort the...
246
247
  	select SPARSE_IRQ
  	select SYSCTL_EXCEPTION_TRACE
ed1cd6deb   Christophe Leroy   powerpc: Activate...
248
  	select THREAD_INFO_IN_TASK
a7d2475af   Michael Ellerman   powerpc: Sort the...
249
250
251
252
  	select VIRT_TO_BUS			if !PPC64
  	#
  	# Please keep this list sorted alphabetically.
  	#
14cf11af6   Paul Mackerras   powerpc: Merge en...
253

179ab1cbf   Michael Ellerman   powerpc/64: Add C...
254
  config PPC_BARRIER_NOSPEC
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
255
256
257
  	bool
  	default y
  	depends on PPC_BOOK3S_64 || PPC_FSL_BOOK3E
179ab1cbf   Michael Ellerman   powerpc/64: Add C...
258

14cf11af6   Paul Mackerras   powerpc: Merge en...
259
260
  config EARLY_PRINTK
  	bool
51d3082fe   Benjamin Herrenschmidt   [PATCH] powerpc: ...
261
  	default y
14cf11af6   Paul Mackerras   powerpc: Merge en...
262

b71d47c14   Jason Baron   powerpc: Clean up...
263
264
265
  config PANIC_TIMEOUT
  	int
  	default 180
14cf11af6   Paul Mackerras   powerpc: Merge en...
266
  config COMPAT
6e944aed8   Michal Suchanek   powerpc/64: Make ...
267
268
269
  	bool "Enable support for 32bit binaries"
  	depends on PPC64
  	default y if !CPU_LITTLE_ENDIAN
01e31dbab   Roland McGrath   [POWERPC] Switch ...
270
  	select COMPAT_BINFMT_ELF
48b25c43e   Chris Metcalf   [PATCH v3] ipc: p...
271
  	select ARCH_WANT_OLD_COMPAT_IPC
09a4d5d01   Al Viro   powerpc: switch t...
272
  	select COMPAT_OLD_SIGACTION
14cf11af6   Paul Mackerras   powerpc: Merge en...
273
274
275
276
277
  
  config SYSVIPC_COMPAT
  	bool
  	depends on COMPAT && SYSVIPC
  	default y
ae1e9130b   Ingo Molnar   sched: rename SCH...
278
  config SCHED_OMIT_FRAME_POINTER
14cf11af6   Paul Mackerras   powerpc: Merge en...
279
280
281
282
283
  	bool
  	default y
  
  config ARCH_MAY_HAVE_PC_FDC
  	bool
3484a31fc   Pranith Kumar   powerpc: Fix buil...
284
  	default PCI
14cf11af6   Paul Mackerras   powerpc: Merge en...
285

08264cbc9   Kumar Gala   [PATCH] powerpc: ...
286
287
  config PPC_UDBG_16550
  	bool
08264cbc9   Kumar Gala   [PATCH] powerpc: ...
288

08264cbc9   Kumar Gala   [PATCH] powerpc: ...
289
290
291
  config GENERIC_TBSYNC
  	bool
  	default y if PPC32 && SMP
08264cbc9   Kumar Gala   [PATCH] powerpc: ...
292

e65e1fc2d   Al Viro   [PATCH] syscall c...
293
294
295
  config AUDIT_ARCH
  	bool
  	default y
73c9ceab4   Jeremy Fitzhardinge   [POWERPC] Generic...
296
297
298
299
  config GENERIC_BUG
  	bool
  	default y
  	depends on BUG
b30288785   Johannes Berg   [POWERPC] apm_emu...
300
  config SYS_SUPPORTS_APM_EMULATION
58da10bb3   Kumar Gala   [POWERPC] Fix Kco...
301
  	default y if PMAC_APM_EMU
b30288785   Johannes Berg   [POWERPC] apm_emu...
302
  	bool
6c5b59b91   David Gibson   powerpc/boot: Add...
303
304
305
306
  config EPAPR_BOOT
  	bool
  	help
  	  Used to allow a board to specify it wants an ePAPR compliant wrapper.
6c5b59b91   David Gibson   powerpc/boot: Add...
307

f4fc4a5b7   Kumar Gala   [PATCH] powerpc: ...
308
309
310
311
  config DEFAULT_UIMAGE
  	bool
  	help
  	  Used to allow a board to specify it wants a uImage built by default
f4fc4a5b7   Kumar Gala   [PATCH] powerpc: ...
312

801e4062f   Johannes Berg   Hibernation: Clea...
313
314
  config ARCH_HIBERNATION_POSSIBLE
  	bool
543b9fd35   Johannes Berg   [POWERPC] powerma...
315
  	default y
f4cb57007   Johannes Berg   Suspend: Clean up...
316
317
  config ARCH_SUSPEND_POSSIBLE
  	def_bool y
4ffd6952a   Anton Vorontsov   powerpc/85xx/86xx...
318
  	depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
be899f197   Ran Wang   powerpc/pm: Fix s...
319
  		   FSL_SOC_BOOKE || PPC_86xx || PPC_PSERIES \
d0832a750   Zhao Chenhui   powerpc/85xx: add...
320
  		   || 44x || 40x
f4cb57007   Johannes Berg   Suspend: Clean up...
321

9ca12ac04   Nicholas Piggin   kernel/cpu: Allow...
322
323
324
  config ARCH_SUSPEND_NONZERO_CPU
  	def_bool y
  	depends on PPC_POWERNV || PPC_PSERIES
4c75a6f44   Benjamin Herrenschmidt   [POWERPC] Generic...
325
326
  config PPC_DCR_NATIVE
  	bool
4c75a6f44   Benjamin Herrenschmidt   [POWERPC] Generic...
327
328
329
  
  config PPC_DCR_MMIO
  	bool
4c75a6f44   Benjamin Herrenschmidt   [POWERPC] Generic...
330
331
332
333
334
  
  config PPC_DCR
  	bool
  	depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  	default y
4c9d2800b   Benjamin Herrenschmidt   [POWERPC] Generic...
335
336
  config PPC_OF_PLATFORM_PCI
  	bool
373a6da16   Stephen Rothwell   [POWERPC] Make no...
337
  	depends on PCI
4c9d2800b   Benjamin Herrenschmidt   [POWERPC] Generic...
338
  	depends on PPC64 # not supported on 32 bits yet
4c9d2800b   Benjamin Herrenschmidt   [POWERPC] Generic...
339

6a11f75b6   Akinobu Mita   generic debug pag...
340
  config ARCH_SUPPORTS_DEBUG_PAGEALLOC
4e0037470   Michael Ellerman   powerpc/64s: Repl...
341
  	depends on PPC32 || PPC_BOOK3S_64
6a11f75b6   Akinobu Mita   generic debug pag...
342
  	def_bool y
8b7b80b9e   Ananth N Mavinakayanahalli   powerpc: Uprobes ...
343
344
  config ARCH_SUPPORTS_UPROBES
  	def_bool y
172ae2e7f   Dave Kleikamp   powerpc/booke: In...
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
  config PPC_ADV_DEBUG_REGS
  	bool
  	depends on 40x || BOOKE
  	default y
  
  config PPC_ADV_DEBUG_IACS
  	int
  	depends on PPC_ADV_DEBUG_REGS
  	default 4 if 44x
  	default 2
  
  config PPC_ADV_DEBUG_DACS
  	int
  	depends on PPC_ADV_DEBUG_REGS
  	default 2
  
  config PPC_ADV_DEBUG_DVCS
  	int
  	depends on PPC_ADV_DEBUG_REGS
  	default 2 if 44x
  	default 0
  
  config PPC_ADV_DEBUG_DAC_RANGE
  	bool
  	depends on PPC_ADV_DEBUG_REGS && 44x
  	default y
a278e7ea6   Michael Neuling   powerpc: Fix comp...
371
372
  config PPC_DAWR
  	bool
25078dc1f   Christoph Hellwig   powerpc: use mm z...
373
  config ZONE_DMA
1c98025c6   Scott Wood   powerpc: Dynamic ...
374
  	bool
25078dc1f   Christoph Hellwig   powerpc: use mm z...
375
  	default y if PPC_BOOK3E_64
1c98025c6   Scott Wood   powerpc: Dynamic ...
376

06ef42a16   Kirill A. Shutemov   powerpc: expose n...
377
378
379
  config PGTABLE_LEVELS
  	int
  	default 2 if !PPC64
06ef42a16   Kirill A. Shutemov   powerpc: expose n...
380
  	default 4
a2d2e1ec0   Benjamin Herrenschmidt   [POWERPC] 4xx: PL...
381
  source "arch/powerpc/sysdev/Kconfig"
4330f5da9   Kumar Gala   [POWERPC] Created...
382
  source "arch/powerpc/platforms/Kconfig"
14cf11af6   Paul Mackerras   powerpc: Merge en...
383

14cf11af6   Paul Mackerras   powerpc: Merge en...
384
385
386
387
388
  menu "Kernel options"
  
  config HIGHMEM
  	bool "High memory support"
  	depends on PPC32
8636a1f96   Masahiro Yamada   treewide: surroun...
389
  source "kernel/Kconfig.hz"
14cf11af6   Paul Mackerras   powerpc: Merge en...
390

ba72cb8cb   Mel Gorman   Fix boot problem ...
391
392
  config HUGETLB_PAGE_SIZE_VARIABLE
  	bool
c5710cd20   Christophe Leroy   powerpc/mm: clean...
393
  	depends on HUGETLB_PAGE && PPC_BOOK3S_64
ba72cb8cb   Mel Gorman   Fix boot problem ...
394
  	default y
14cf11af6   Paul Mackerras   powerpc: Merge en...
395
396
  config MATH_EMULATION
  	bool "Math emulation"
968159c00   Christophe Leroy   powerpc/8xx: Gett...
397
  	depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
398
  	help
14cf11af6   Paul Mackerras   powerpc: Merge en...
399
400
401
402
403
404
  	  Some PowerPC chips designed for embedded applications do not have
  	  a floating-point unit and therefore do not implement the
  	  floating-point instructions in the PowerPC instruction set.  If you
  	  say Y here, the kernel will include code to emulate a floating-point
  	  unit, which will allow programs that use floating-point
  	  instructions to run.
4e63f8edf   Benjamin Herrenschmidt   powerpc/math-emu:...
405
406
407
  	  This is also useful to emulate missing (optional) instructions
  	  such as fsqrt on cores that do have an FPU but do not implement
  	  them (such as Freescale BookE).
e05c0e81b   Kevin Hao   powerpc: split Sh...
408
409
410
411
412
413
414
  choice
  	prompt "Math emulation options"
  	default MATH_EMULATION_FULL
  	depends on MATH_EMULATION
  
  config	MATH_EMULATION_FULL
  	bool "Emulate all the floating point instructions"
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
415
  	help
e05c0e81b   Kevin Hao   powerpc: split Sh...
416
417
418
419
420
421
  	  Select this option will enable the kernel to support to emulate
  	  all the floating point instructions. If your SoC doesn't have
  	  a FPU, you should select this.
  
  config MATH_EMULATION_HW_UNIMPLEMENTED
  	bool "Just emulate the FPU unimplemented instructions"
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
422
  	help
e05c0e81b   Kevin Hao   powerpc: split Sh...
423
424
425
426
  	  Select this if you know there does have a hardware FPU on your
  	  SoC, but some floating point instructions are not implemented by that.
  
  endchoice
3d72bbc40   Michael Neuling   powerpc: Add conf...
427
  config PPC_TRANSACTIONAL_MEM
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
428
429
430
431
432
433
434
  	bool "Transactional Memory support for POWERPC"
  	depends on PPC_BOOK3S_64
  	depends on SMP
  	select ALTIVEC
  	select VSX
  	help
  	  Support user-mode Transactional Memory on POWERPC.
3d72bbc40   Michael Neuling   powerpc: Add conf...
435

013a53f2d   Anshuman Khandual   powerpc: Ultravis...
436
437
438
  config PPC_UV
  	bool "Ultravisor support"
  	depends on KVM_BOOK3S_HV_POSSIBLE
a2db55dda   Bharata B Rao   powerpc: Ultravis...
439
  	depends on DEVICE_PRIVATE
013a53f2d   Anshuman Khandual   powerpc: Ultravis...
440
441
442
443
444
445
446
447
  	default n
  	help
  	  This option paravirtualizes the kernel to run in POWER platforms that
  	  supports the Protected Execution Facility (PEF). On such platforms,
  	  the ultravisor firmware runs at a privilege level above the
  	  hypervisor.
  
  	  If unsure, say "N".
951eedebc   Nicholas Piggin   powerpc/64: Handl...
448
449
450
  config LD_HEAD_STUB_CATCH
  	bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT
  	depends on PPC64
951eedebc   Nicholas Piggin   powerpc/64: Handl...
451
452
453
454
455
456
  	help
  	  Very large kernels can cause linker branch stubs to be generated by
  	  code in head_64.S, which moves the head text sections out of their
  	  specified location. This option can work around the problem.
  
  	  If unsure, say "N".
8c50b72a3   Torsten Duwe   powerpc/ftrace: A...
457
  config MPROFILE_KERNEL
57b3ed941   Naveen N. Rao   powerpc/64: Have ...
458
  	depends on PPC64 && CPU_LITTLE_ENDIAN && FUNCTION_TRACER
abba75979   Nicholas Piggin   powerpc/kbuild: m...
459
  	def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -I$(srctree)/include -D__KERNEL__)
8c50b72a3   Torsten Duwe   powerpc/ftrace: A...
460

14cf11af6   Paul Mackerras   powerpc: Merge en...
461
462
  config HOTPLUG_CPU
  	bool "Support for enabling/disabling CPUs"
40b313608   Stephen Rothwell   Finally eradicate...
463
  	depends on SMP && (PPC_PSERIES || \
76be4414b   Randy Dunlap   powerpc: indent t...
464
  		PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE)
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
465
  	help
14cf11af6   Paul Mackerras   powerpc: Merge en...
466
467
468
469
  	  Say Y here to be able to disable and re-enable individual
  	  CPUs at runtime on SMP machines.
  
  	  Say N if you are unsure.
aa65ff6b1   Nicholas Piggin   powerpc/64s: Impl...
470
471
472
473
474
475
476
477
478
479
480
481
  config PPC_QUEUED_SPINLOCKS
  	bool "Queued spinlocks"
  	depends on SMP
  	help
  	  Say Y here to use queued spinlocks which give better scalability and
  	  fairness on large SMP and NUMA systems without harming single threaded
  	  performance.
  
  	  This option is currently experimental, the code is more complex and
  	  less tested so it defaults to "N" for the moment.
  
  	  If unsure, say "N".
12633e803   Nathan Fontenot   sysfs/cpu: Add pr...
482
483
484
  config ARCH_CPU_PROBE_RELEASE
  	def_bool y
  	depends on HOTPLUG_CPU
cc57637b0   Yasunori Goto   [PATCH] solve con...
485
486
  config ARCH_ENABLE_MEMORY_HOTPLUG
  	def_bool y
1482471d1   Badari Pulavarty   [POWERPC] Enable ...
487
488
  config ARCH_ENABLE_MEMORY_HOTREMOVE
  	def_bool y
f2296a3d2   Mahesh Salgaonkar   powerpc/powernv: ...
489
490
491
492
493
  config PPC64_SUPPORTS_MEMORY_FAILURE
  	bool "Add support for memory hwpoison"
  	depends on PPC_BOOK3S_64
  	default "y" if PPC_POWERNV
  	select ARCH_SUPPORTS_MEMORY_FAILURE
14cf11af6   Paul Mackerras   powerpc: Merge en...
494
  config KEXEC
642e56ff5   Kees Cook   arch/powerpc: rem...
495
  	bool "kexec system call"
96eea6426   Tiejun Chen   powerpc/book3e-64...
496
  	depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP)) || PPC_BOOK3E
2965faa5e   Dave Young   kexec: split kexe...
497
  	select KEXEC_CORE
14cf11af6   Paul Mackerras   powerpc: Merge en...
498
499
500
  	help
  	  kexec is a system call that implements the ability to shutdown your
  	  current kernel, and to start another kernel.  It is like a reboot
1f1332f72   Matt LaPlante   [PATCH] KConfig: ...
501
  	  but it is independent of the system firmware.   And like a reboot
14cf11af6   Paul Mackerras   powerpc: Merge en...
502
  	  you can start any kernel with it, not just Linux.
1f1332f72   Matt LaPlante   [PATCH] KConfig: ...
503
  	  The name comes from the similarity to the exec system call.
14cf11af6   Paul Mackerras   powerpc: Merge en...
504
505
506
  
  	  It is an ongoing process to be certain the hardware in a machine
  	  is properly shutdown, so do not be surprised if this code does not
bf2206957   Geert Uytterhoeven   Kconfig: Remove h...
507
508
509
  	  initially work for you.  As of this writing the exact hardware
  	  interface is strongly in flux, so no good recommendation can be
  	  made.
14cf11af6   Paul Mackerras   powerpc: Merge en...
510

80f60e509   Thiago Jung Bauermann   powerpc/kexec: En...
511
512
513
  config KEXEC_FILE
  	bool "kexec file based system call"
  	select KEXEC_CORE
467d27824   Thiago Jung Bauermann   powerpc: ima: get...
514
  	select HAVE_IMA_KEXEC
80f60e509   Thiago Jung Bauermann   powerpc/kexec: En...
515
  	select BUILD_BIN2C
175fca3bf   Sven Schnelle   kexec: add KEXEC_ELF
516
  	select KEXEC_ELF
80f60e509   Thiago Jung Bauermann   powerpc/kexec: En...
517
518
519
520
521
522
523
524
  	depends on PPC64
  	depends on CRYPTO=y
  	depends on CRYPTO_SHA256=y
  	help
  	  This is a new version of the kexec system call. This call is
  	  file based and takes in file descriptors as system call arguments
  	  for kernel and initramfs as opposed to a list of segments as is the
  	  case for the older kexec call.
b799a09f6   AKASHI Takahiro   kexec_file: make ...
525
526
  config ARCH_HAS_KEXEC_PURGATORY
  	def_bool KEXEC_FILE
4c91bd6ee   Kevin Hao   powerpc: Merge th...
527
528
  config RELOCATABLE
  	bool "Build a relocatable kernel"
084a275e4   Nicholas Piggin   powerpc/64: Allow...
529
  	depends on PPC64 || (FLATMEM && (44x || FSL_BOOKE))
4c91bd6ee   Kevin Hao   powerpc: Merge th...
530
  	select NONSTATIC_KERNEL
71810db27   Ard Biesheuvel   modversions: trea...
531
  	select MODULE_REL_CRCS if MODVERSIONS
4c91bd6ee   Kevin Hao   powerpc: Merge th...
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
  	help
  	  This builds a kernel image that is capable of running at the
  	  location the kernel is loaded at. For ppc32, there is no any
  	  alignment restrictions, and this feature is a superset of
  	  DYNAMIC_MEMSTART and hence overrides it. For ppc64, we should use
  	  16k-aligned base address. The kernel is linked as a
  	  position-independent executable (PIE) and contains dynamic relocations
  	  which are processed early in the bootup process.
  
  	  One use is for the kexec on panic case where the recovery kernel
  	  must live at a different physical address than the primary
  	  kernel.
  
  	  Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
  	  it has been loaded at and the compile time physical addresses
  	  CONFIG_PHYSICAL_START is ignored.  However CONFIG_PHYSICAL_START
  	  setting can still be useful to bootwrappers that need to know the
  	  load address of the kernel (eg. u-boot/mkimage).
2b0e86cc5   Jason Yan   powerpc/fsl_booke...
550
551
552
553
554
555
556
557
558
559
  config RANDOMIZE_BASE
  	bool "Randomize the address of the kernel image"
  	depends on (FSL_BOOKE && FLATMEM && PPC32)
  	depends on RELOCATABLE
  	help
  	  Randomizes the virtual address at which the kernel image is
  	  loaded, as a security feature that deters exploit attempts
  	  relying on knowledge of the location of kernel internals.
  
  	  If unsure, say Y.
70839d207   Nicholas Piggin   powerpc/64: Add a...
560
561
562
  config RELOCATABLE_TEST
  	bool "Test relocatable kernel"
  	depends on (PPC64 && RELOCATABLE)
70839d207   Nicholas Piggin   powerpc/64: Add a...
563
564
565
566
  	help
  	  This runs the relocatable kernel at the address it was initially
  	  loaded at, which tends to be non-zero and therefore test the
  	  relocation code.
e8625d463   Haren Myneni   [PATCH] powerpc: ...
567
  config CRASH_DUMP
22bd0177b   Hari Bathini   powerpc/fadump: r...
568
  	bool "Build a dump capture kernel"
be34fff07   Christophe Leroy   powerpc/kconfig: ...
569
  	depends on PPC64 || PPC_BOOK3S_32 || FSL_BOOKE || (44x && !SMP)
084a275e4   Nicholas Piggin   powerpc/64: Allow...
570
  	select RELOCATABLE if PPC64 || 44x || FSL_BOOKE
e8625d463   Haren Myneni   [PATCH] powerpc: ...
571
  	help
22bd0177b   Hari Bathini   powerpc/fadump: r...
572
  	  Build a kernel suitable for use as a dump capture kernel.
54622f10a   Mohan Kumar M   powerpc: Support ...
573
574
  	  The same kernel binary can be used as production kernel and dump
  	  capture kernel.
e8625d463   Haren Myneni   [PATCH] powerpc: ...
575

eb39c8803   Mahesh Salgaonkar   fadump: Reserve t...
576
577
  config FA_DUMP
  	bool "Firmware-assisted dump"
41df59287   Hari Bathini   powerpc/fadump: a...
578
  	depends on PPC64 && (PPC_RTAS || PPC_POWERNV)
22bd0177b   Hari Bathini   powerpc/fadump: r...
579
580
  	select CRASH_CORE
  	select CRASH_DUMP
242f271c0   Manish Ahuja   [POWERPC] pseries...
581
  	help
eb39c8803   Mahesh Salgaonkar   fadump: Reserve t...
582
583
  	  A robust mechanism to get reliable kernel crash dump with
  	  assistance from firmware. This approach does not use kexec,
22bd0177b   Hari Bathini   powerpc/fadump: r...
584
  	  instead firmware assists in booting the capture kernel
eb39c8803   Mahesh Salgaonkar   fadump: Reserve t...
585
586
587
  	  while preserving memory contents. Firmware-assisted dump
  	  is meant to be a kdump replacement offering robustness and
  	  speed not possible without system firmware assistance.
242f271c0   Manish Ahuja   [POWERPC] pseries...
588

41df59287   Hari Bathini   powerpc/fadump: a...
589
590
  	  If unsure, say "y". Only special kernels like petitboot may
  	  need to say "N" here.
242f271c0   Manish Ahuja   [POWERPC] pseries...
591

bec53196a   Hari Bathini   powerpc/fadump: a...
592
593
594
595
596
597
598
599
  config PRESERVE_FA_DUMP
  	bool "Preserve Firmware-assisted dump"
  	depends on PPC64 && PPC_POWERNV && !FA_DUMP
  	help
  	  On a kernel with FA_DUMP disabled, this option helps to preserve
  	  crash data from a previously crash'ed kernel. Useful when the next
  	  memory preserving kernel boot would process this crash data.
  	  Petitboot kernel is the typical usecase for this option.
6f713d181   Hari Bathini   powerpc/opalcore:...
600
601
602
603
604
605
606
607
  config OPAL_CORE
  	bool "Export OPAL memory as /sys/firmware/opal/core"
  	depends on PPC64 && PPC_POWERNV
  	help
  	  This option uses the MPIPL support in firmware to provide an
  	  ELF core of OPAL memory after a crash. The ELF core is exported
  	  as /sys/firmware/opal/core file which is helpful in debugging
  	  OPAL crashes using GDB.
242f271c0   Manish Ahuja   [POWERPC] pseries...
608

14cf11af6   Paul Mackerras   powerpc: Merge en...
609
610
  config IRQ_ALL_CPUS
  	bool "Distribute interrupts on all CPUs by default"
6cf09b9d1   Paul Bolle   powerpc: remove d...
611
  	depends on SMP
14cf11af6   Paul Mackerras   powerpc: Merge en...
612
613
614
615
616
  	help
  	  This option gives the kernel permission to distribute IRQs across
  	  multiple CPUs.  Saying N here will route all IRQs to the first
  	  CPU.  Generally saying Y is safe, although some problems have been
  	  reported with SMP Power Macintoshes with this option enabled.
ffa27b6bc   Andy Whitcroft   [PATCH] ppc64 mem...
617
618
619
620
  config NUMA
  	bool "NUMA support"
  	depends on PPC64
  	default y if SMP && PPC_PSERIES
c80d79d74   Yasunori Goto   [PATCH] Configura...
621
622
  config NODES_SHIFT
  	int
ea55bf291   Anton Blanchard   powerpc: Increase...
623
  	default "8" if PPC64
c80d79d74   Yasunori Goto   [PATCH] Configura...
624
625
  	default "4"
  	depends on NEED_MULTIPLE_NODES
8c2722611   Nishanth Aravamudan   powerpc/numa: Ena...
626
627
628
  config USE_PERCPU_NUMA_NODE_ID
  	def_bool y
  	depends on NUMA
64bb80d87   Nishanth Aravamudan   powerpc/numa: Ena...
629
630
631
  config HAVE_MEMORYLESS_NODES
  	def_bool y
  	depends on NUMA
14cf11af6   Paul Mackerras   powerpc: Merge en...
632
633
634
635
636
  config ARCH_SELECT_MEMORY_MODEL
  	def_bool y
  	depends on PPC64
  
  config ARCH_FLATMEM_ENABLE
9100b205f   Andy Whitcroft   [PATCH] powerpc32...
637
638
  	def_bool y
  	depends on (PPC64 && !NUMA) || PPC32
14cf11af6   Paul Mackerras   powerpc: Merge en...
639

45fb6cea0   Anton Blanchard   [PATCH] ppc64: Co...
640
  config ARCH_SPARSEMEM_ENABLE
14cf11af6   Paul Mackerras   powerpc: Merge en...
641
  	def_bool y
9100b205f   Andy Whitcroft   [PATCH] powerpc32...
642
  	depends on PPC64
d29eff7bc   Andy Whitcroft   ppc64: SPARSEMEM_...
643
  	select SPARSEMEM_VMEMMAP_ENABLE
14cf11af6   Paul Mackerras   powerpc: Merge en...
644

45fb6cea0   Anton Blanchard   [PATCH] ppc64: Co...
645
  config ARCH_SPARSEMEM_DEFAULT
14cf11af6   Paul Mackerras   powerpc: Merge en...
646
  	def_bool y
7b3912f42   Michael Ellerman   powerpc: Make spa...
647
  	depends on PPC_BOOK3S_64
14cf11af6   Paul Mackerras   powerpc: Merge en...
648

5a1eb5c44   Benjamin Herrenschmidt   powerpc: Cleanup ...
649
  config SYS_SUPPORTS_HUGETLBFS
41151e77a   Becky Bruce   powerpc: Hugetlb ...
650
  	bool
5a1eb5c44   Benjamin Herrenschmidt   powerpc: Cleanup ...
651

f6853eb56   Michael Ellerman   powerpc/64: Defin...
652
653
654
655
656
657
  config ILLEGAL_POINTER_VALUE
  	hex
  	# This is roughly half way between the top of user space and the bottom
  	# of kernel space, which seems about as good as we can get.
  	default 0x5deadbeef0000000 if PPC64
  	default 0
7e9191daf   Mike Kravetz   [PATCH] Memory Ad...
658
659
660
  config ARCH_MEMORY_PROBE
  	def_bool y
  	depends on MEMORY_HOTPLUG
e12401222   Yuri Tikhonov   powerpc/44x: Supp...
661
662
663
664
665
666
667
668
669
670
671
  config STDBINUTILS
  	bool "Using standard binutils settings"
  	depends on 44x
  	default y
  	help
  	  Turning this option off allows you to select 256KB PAGE_SIZE on 44x.
  	  Note, that kernel will be able to run only those applications,
  	  which had been compiled using binutils later than 2.17.50.0.3 with
  	  '-zmax-page-size' set to 256K (the default is 64K). Or, if using
  	  the older binutils, you can patch them with a trivial patch, which
  	  changes the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000.
ca9153a3a   Ilya Yanok   powerpc/44x: Supp...
672
673
674
  choice
  	prompt "Page size"
  	default PPC_4K_PAGES
3c726f8de   Benjamin Herrenschmidt   [PATCH] ppc64: su...
675
  	help
ca9153a3a   Ilya Yanok   powerpc/44x: Supp...
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
  	  Select the kernel logical page size. Increasing the page size
  	  will reduce software overhead at each page boundary, allow
  	  hardware prefetch mechanisms to be more effective, and allow
  	  larger dma transfers increasing IO efficiency and reducing
  	  overhead. However the utilization of memory will increase.
  	  For example, each cached file will using a multiple of the
  	  page size to hold its contents and the difference between the
  	  end of file and the end of page is wasted.
  
  	  Some dedicated systems, such as software raid serving with
  	  accelerated calculations, have shown significant increases.
  
  	  If you configure a 64 bit kernel for 64k pages but the
  	  processor does not support them, then the kernel will simulate
  	  them with 4k pages, loading them on demand, but with the
  	  reduced software overhead and larger internal fragmentation.
  	  For the 32 bit kernel, a large page option will not be offered
  	  unless it is supported by the configured processor.
  
  	  If unsure, choose 4K_PAGES.
  
  config PPC_4K_PAGES
  	bool "4k page size"
19f97c983   Aneesh Kumar K.V   powerpc/book3s_32...
699
  	select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
ca9153a3a   Ilya Yanok   powerpc/44x: Supp...
700
701
  
  config PPC_16K_PAGES
55f8b5b82   Michael Ellerman   powerpc/mm: Simpl...
702
  	bool "16k page size"
55c8fc3f4   Christophe Leroy   powerpc/8xx: rein...
703
  	depends on 44x || PPC_8xx
ca9153a3a   Ilya Yanok   powerpc/44x: Supp...
704
705
  
  config PPC_64K_PAGES
55f8b5b82   Michael Ellerman   powerpc/mm: Simpl...
706
  	bool "64k page size"
bba436309   Michael Ellerman   powerpc: Make PPC...
707
  	depends on 44x || PPC_BOOK3S_64
19f97c983   Aneesh Kumar K.V   powerpc/book3s_32...
708
  	select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
ca9153a3a   Ilya Yanok   powerpc/44x: Supp...
709

e12401222   Yuri Tikhonov   powerpc/44x: Supp...
710
  config PPC_256K_PAGES
55f8b5b82   Michael Ellerman   powerpc/mm: Simpl...
711
712
  	bool "256k page size"
  	depends on 44x && !STDBINUTILS
e12401222   Yuri Tikhonov   powerpc/44x: Supp...
713
714
715
716
717
718
719
720
721
  	help
  	  Make the page size 256k.
  
  	  As the ELF standard only requires alignment to support page
  	  sizes up to 64k, you will need to compile all of your user
  	  space applications with a non-standard binutils settings
  	  (see the STDBINUTILS description for details).
  
  	  Say N unless you know what you are doing.
ca9153a3a   Ilya Yanok   powerpc/44x: Supp...
722
  endchoice
3c726f8de   Benjamin Herrenschmidt   [PATCH] ppc64: su...
723

555f4fdb9   Christophe Leroy   powerpc/kconfig: ...
724
725
726
727
728
729
  config PPC_PAGE_SHIFT
  	int
  	default 18 if PPC_256K_PAGES
  	default 16 if PPC_64K_PAGES
  	default 14 if PPC_16K_PAGES
  	default 12
476134070   Hamish Martin   powerpc: Move THR...
730
731
732
733
734
  config THREAD_SHIFT
  	int "Thread shift" if EXPERT
  	range 13 15
  	default "15" if PPC_256K_PAGES
  	default "14" if PPC64
edbadaf06   Christophe Leroy   powerpc/kasan: Fi...
735
  	default "14" if KASAN
476134070   Hamish Martin   powerpc: Move THR...
736
737
738
739
  	default "13"
  	help
  	  Used to define the stack size. The default is almost always what you
  	  want. Only change this if you know what you are doing.
0f4a9041c   Christophe Leroy   powerpc/kconfig: ...
740
  config DATA_SHIFT_BOOL
da1adea07   Christophe Leroy   powerpc/8xx: Allo...
741
  	bool "Set custom data alignment"
0f4a9041c   Christophe Leroy   powerpc/kconfig: ...
742
  	depends on ADVANCED_OPTIONS
fcdafd10a   Christophe Leroy   powerpc/8xx: Allo...
743
744
745
  	depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC
  	depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && \
  				     (!PIN_TLB_TEXT || !STRICT_KERNEL_RWX))
0f4a9041c   Christophe Leroy   powerpc/kconfig: ...
746
747
748
749
750
751
  	help
  	  This option allows you to set the kernel data alignment. When
  	  RAM is mapped by blocks, the alignment needs to fit the size and
  	  number of possible blocks. The default should be OK for most configs.
  
  	  Say N here unless you know what you are doing.
166d97d96   Christophe Leroy   powerpc/kconfig: ...
752
753
  
  config DATA_SHIFT
0f4a9041c   Christophe Leroy   powerpc/kconfig: ...
754
  	int "Data shift" if DATA_SHIFT_BOOL
166d97d96   Christophe Leroy   powerpc/kconfig: ...
755
  	default 24 if STRICT_KERNEL_RWX && PPC64
fcdafd10a   Christophe Leroy   powerpc/8xx: Allo...
756
757
  	range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC) && PPC_BOOK3S_32
  	range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC) && PPC_8xx
63b2bc619   Christophe Leroy   powerpc/mm/32s: U...
758
  	default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32
2b279c034   Christophe Leroy   powerpc/32s: Allo...
759
  	default 18 if DEBUG_PAGEALLOC && PPC_BOOK3S_32
8f54a6f74   Christophe Leroy   powerpc/kconfig: ...
760
  	default 23 if STRICT_KERNEL_RWX && PPC_8xx
fcdafd10a   Christophe Leroy   powerpc/8xx: Allo...
761
762
  	default 23 if DEBUG_PAGEALLOC && PPC_8xx && PIN_TLB_DATA
  	default 19 if DEBUG_PAGEALLOC && PPC_8xx
166d97d96   Christophe Leroy   powerpc/kconfig: ...
763
  	default PPC_PAGE_SHIFT
0f4a9041c   Christophe Leroy   powerpc/kconfig: ...
764
765
766
  	help
  	  On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO.
  	  Smaller is the alignment, greater is the number of necessary DBATs.
166d97d96   Christophe Leroy   powerpc/kconfig: ...
767

8f54a6f74   Christophe Leroy   powerpc/kconfig: ...
768
769
  	  On 8xx, large pages (512kb or 8M) are used to map kernel linear
  	  memory. Aligning to 8M reduces TLB misses as only 8M pages are used
da1adea07   Christophe Leroy   powerpc/8xx: Allo...
770
771
  	  in that case. If PIN_TLB is selected, it must be aligned to 8M as
  	  8M pages will be pinned.
8f54a6f74   Christophe Leroy   powerpc/kconfig: ...
772

53bcddb91   Stephen Rothwell   [POWERPC] Fix MAX...
773
774
  config FORCE_MAX_ZONEORDER
  	int "Maximum zone order"
a7ee53958   Rashmica Gupta   powerpc/Kconfig: ...
775
  	range 8 9 if PPC64 && PPC_64K_PAGES
066c4b87e   Benjamin Herrenschmidt   powerpc/mm: Fix d...
776
  	default "9" if PPC64 && PPC_64K_PAGES
d5a1e42cb   Aneesh Kumar K.V   powerpc/mm: Updat...
777
  	range 13 13 if PPC64 && !PPC_64K_PAGES
066c4b87e   Benjamin Herrenschmidt   powerpc/mm: Fix d...
778
779
780
781
782
783
784
  	default "13" if PPC64 && !PPC_64K_PAGES
  	range 9 64 if PPC32 && PPC_16K_PAGES
  	default "9" if PPC32 && PPC_16K_PAGES
  	range 7 64 if PPC32 && PPC_64K_PAGES
  	default "7" if PPC32 && PPC_64K_PAGES
  	range 5 64 if PPC32 && PPC_256K_PAGES
  	default "5" if PPC32 && PPC_256K_PAGES
ebe40c5c4   Johannes Berg   powerpc: Enforce ...
785
  	range 11 64
53bcddb91   Stephen Rothwell   [POWERPC] Fix MAX...
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
  	default "11"
  	help
  	  The kernel memory allocator divides physically contiguous memory
  	  blocks into "zones", where each zone is a power of two number of
  	  pages.  This option selects the largest power of two that the kernel
  	  keeps in the memory allocator.  If you need to allocate very large
  	  blocks of physically contiguous memory, then you may need to
  	  increase this value.
  
  	  This config option is actually maximum order plus one. For example,
  	  a value of 11 means that the largest free memory block is 2^10 pages.
  
  	  The page size is not necessarily 4KB.  For example, on 64-bit
  	  systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES.  Keep
  	  this in mind when choosing a value for this option.
fa28237cf   Paul Mackerras   [POWERPC] Provide...
801
  config PPC_SUBPAGE_PROT
63396ada8   Nicholas Piggin   powerpc/64s/hash:...
802
803
  	bool "Support setting protections for 4k subpages (subpage_prot syscall)"
  	default n
4e0037470   Michael Ellerman   powerpc/64s: Repl...
804
  	depends on PPC_BOOK3S_64 && PPC_64K_PAGES
fa28237cf   Paul Mackerras   [POWERPC] Provide...
805
  	help
63396ada8   Nicholas Piggin   powerpc/64s/hash:...
806
  	  This option adds support for system call to allow user programs
fa28237cf   Paul Mackerras   [POWERPC] Provide...
807
808
  	  to set access permissions (read/write, readonly, or no access)
  	  on the 4k subpages of each 64k page.
63396ada8   Nicholas Piggin   powerpc/64s/hash:...
809
  	  If unsure, say N here.
9b725a90a   Shawn Anastasio   powerpc/64s: Disa...
810
811
812
813
814
815
816
817
818
819
820
  config PPC_PROT_SAO_LPAR
  	bool "Support PROT_SAO mappings in LPARs"
  	depends on PPC_BOOK3S_64
  	help
  	  This option adds support for PROT_SAO mappings from userspace
  	  inside LPARs on supported CPUs.
  
  	  This may cause issues when performing guest migration from
  	  a CPU that supports SAO to one that does not.
  
  	  If unsure, say N here.
e83d01697   Ian Munsie   powerpc/cell: Mov...
821
822
  config PPC_COPRO_BASE
  	bool
e83d01697   Ian Munsie   powerpc/cell: Mov...
823

14cf11af6   Paul Mackerras   powerpc: Merge en...
824
825
826
  config SCHED_SMT
  	bool "SMT (Hyperthreading) scheduler support"
  	depends on PPC64 && SMP
14cf11af6   Paul Mackerras   powerpc: Merge en...
827
828
829
830
  	help
  	  SMT scheduler support improves the CPU scheduler's decision making
  	  when dealing with POWER5 cpus at a cost of slightly increased
  	  overhead in some places. If unsure say N here.
b92a66a65   Michael Neuling   powerpc: Add deno...
831
832
833
  config PPC_DENORMALISATION
  	bool "PowerPC denormalisation exception handling"
  	depends on PPC_BOOK3S_64
4e90a2a73   Anton Blanchard   powerpc: On POWER...
834
  	default "y" if PPC_POWERNV
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
835
  	help
b92a66a65   Michael Neuling   powerpc: Add deno...
836
837
  	  Add support for handling denormalisation of single precision
  	  values.  Useful for bare metal only.  If unsure say Y here.
14cf11af6   Paul Mackerras   powerpc: Merge en...
838
  config CMDLINE
f134a7cef   Chris Packham   powerpc: Remove i...
839
  	string "Initial kernel command string"
cbe46bd4f   Christophe Leroy   powerpc: remove C...
840
  	default ""
14cf11af6   Paul Mackerras   powerpc: Merge en...
841
842
843
844
845
  	help
  	  On some platforms, there is currently no way for the boot loader to
  	  pass arguments to the kernel. For these platforms, you can supply
  	  some command-line options at build time by entering them here.  In
  	  most cases you will need to specify the root device here.
d79fbb3a3   Chris Packham   powerpc: Support ...
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
  choice
  	prompt "Kernel command line type" if CMDLINE != ""
  	default CMDLINE_FROM_BOOTLOADER
  
  config CMDLINE_FROM_BOOTLOADER
  	bool "Use bootloader kernel arguments if available"
  	help
  	  Uses the command-line options passed by the boot loader. If
  	  the boot loader doesn't provide any, the default kernel command
  	  string provided in CMDLINE will be used.
  
  config CMDLINE_EXTEND
  	bool "Extend bootloader kernel arguments"
  	help
  	  The command-line arguments provided by the boot loader will be
  	  appended to the default kernel command string.
eb3b80f67   Sebastian Siewior   powerpc: Add "for...
862
863
  config CMDLINE_FORCE
  	bool "Always use the default kernel command string"
eb3b80f67   Sebastian Siewior   powerpc: Add "for...
864
865
866
867
868
  	help
  	  Always use the default kernel command string, even if the boot
  	  loader passes other arguments to the kernel.
  	  This is useful if you cannot or don't want to change the
  	  command-line options your boot loader passes to the kernel.
d79fbb3a3   Chris Packham   powerpc: Support ...
869
  endchoice
c356aa456   Grant Likely   powerpc/bootwrapp...
870
871
872
873
874
875
876
877
878
879
880
881
  config EXTRA_TARGETS
  	string "Additional default image types"
  	help
  	  List additional targets to be built by the bootwrapper here (separated
  	  by spaces).  This is useful for targets that depend of device tree
  	  files in the .dts directory.
  
  	  Targets in this list will be build as part of the default build
  	  target, or when the user does a 'make zImage' or a
  	  'make zImage.initrd'.
  
  	  If unsure, leave blank
b28f50811   Johannes Berg   Suspend: Add conf...
882
883
884
  config ARCH_WANTS_FREEZER_CONTROL
  	def_bool y
  	depends on ADB_PMU
8636a1f96   Masahiro Yamada   treewide: surroun...
885
  source "kernel/power/Kconfig"
14cf11af6   Paul Mackerras   powerpc: Merge en...
886

92e3da3cf   Ram Pai   powerpc: initial ...
887
888
889
890
891
892
893
894
895
896
  config PPC_MEM_KEYS
  	prompt "PowerPC Memory Protection Keys"
  	def_bool y
  	depends on PPC_BOOK3S_64
  	select ARCH_USES_HIGH_VMA_FLAGS
  	select ARCH_HAS_PKEYS
  	help
  	  Memory Protection Keys provides a mechanism for enforcing
  	  page-based protections, but without requiring modification of the
  	  page tables when an application changes protection domains.
1eecbcdca   Mauro Carvalho Chehab   docs: move protec...
897
  	  For details, see Documentation/core-api/protection-keys.rst
92e3da3cf   Ram Pai   powerpc: initial ...
898
899
  
  	  If unsure, say y.
1a8916ee3   Nayna Jain   powerpc: Detect t...
900
901
902
  config PPC_SECURE_BOOT
  	prompt "Enable secure boot support"
  	bool
5c5e46dad   Daniel Axtens   powerpc: PPC_SECU...
903
  	depends on PPC_POWERNV || PPC_PSERIES
4238fad36   Nayna Jain   powerpc/ima: Add ...
904
  	depends on IMA_ARCH_POLICY
9e2b4be37   Nayna Jain   ima: add a new CO...
905
  	imply IMA_SECURE_AND_OR_TRUSTED_BOOT
1a8916ee3   Nayna Jain   powerpc: Detect t...
906
907
908
909
910
  	help
  	  Systems with firmware secure boot enabled need to define security
  	  policies to extend secure boot to the OS. This config allows a user
  	  to enable OS secure boot on systems that have firmware support for
  	  it. If in doubt say N.
bd5d9c743   Nayna Jain   powerpc: expose s...
911
912
913
914
915
916
917
918
919
920
  config PPC_SECVAR_SYSFS
  	bool "Enable sysfs interface for POWER secure variables"
  	default y
  	depends on PPC_SECURE_BOOT
  	depends on SYSFS
  	help
  	  POWER secure variables are managed and controlled by firmware.
  	  These variables are exposed to userspace via sysfs to enable
  	  read/write operations on these variables. Say Y if you have
  	  secure boot enabled and want to expose variables to userspace.
bd59380c5   Andrew Donnellan   powerpc/rtas: Res...
921
922
923
924
925
926
927
928
929
930
931
932
  config PPC_RTAS_FILTER
  	bool "Enable filtering of RTAS syscalls"
  	default y
  	depends on PPC_RTAS
  	help
  	  The RTAS syscall API has security issues that could be used to
  	  compromise system integrity. This option enforces restrictions on the
  	  RTAS calls and arguments passed by userspace programs to mitigate
  	  these issues.
  
  	  Say Y unless you know what you are doing and the filter is causing
  	  problems for you.
14cf11af6   Paul Mackerras   powerpc: Merge en...
933
934
935
936
  endmenu
  
  config ISA_DMA_API
  	bool
3d066d77c   Stephen Rothwell   powerpc: remove C...
937
  	default PCI
14cf11af6   Paul Mackerras   powerpc: Merge en...
938
939
940
941
942
  
  menu "Bus options"
  
  config ISA
  	bool "Support for ISA-bus hardware"
933ee7119   Paul Bolle   powerpc: remove P...
943
  	depends on PPC_CHRP
f9bd170a8   Paul Mackerras   powerpc: Merge i8...
944
  	select PPC_I8259
14cf11af6   Paul Mackerras   powerpc: Merge en...
945
946
947
948
  	help
  	  Find out whether you have ISA slots on your motherboard.  ISA is the
  	  name of a bus system, i.e. the way the CPU talks to the other stuff
  	  inside your box.  If you have an Apple machine, say N here; if you
933ee7119   Paul Bolle   powerpc: remove P...
949
950
  	  have an IBM RS/6000 or pSeries machine, say Y.  If you have an
  	  embedded board, consult your board documentation.
14cf11af6   Paul Mackerras   powerpc: Merge en...
951
952
953
  
  config GENERIC_ISA_DMA
  	bool
1927445a7   Anton Vorontsov   powerpc: Fix GENE...
954
  	depends on ISA_DMA_API
14cf11af6   Paul Mackerras   powerpc: Merge en...
955
  	default y
25635c71e   Paul Mackerras   ppc: Use the indi...
956
957
958
  config PPC_INDIRECT_PCI
  	bool
  	depends on PCI
63dafe572   Becky Bruce   [PATCH] powerpc: ...
959
  	default y if 40x || 44x
25635c71e   Paul Mackerras   ppc: Use the indi...
960

14cf11af6   Paul Mackerras   powerpc: Merge en...
961
962
  config SBUS
  	bool
08264cbc9   Kumar Gala   [PATCH] powerpc: ...
963
964
  config FSL_SOC
  	bool
55c44991e   Roy Zang   [POWERPC] Create ...
965
  config FSL_PCI
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
966
  	bool
11ddce154   Christoph Hellwig   dma-mapping, powe...
967
  	select ARCH_HAS_DMA_SET_MASK
55c44991e   Roy Zang   [POWERPC] Create ...
968
  	select PPC_INDIRECT_PCI
d0839118f   Kumar Gala   powerpc/fsl: Ensu...
969
  	select PCI_QUIRKS
55c44991e   Roy Zang   [POWERPC] Create ...
970

4ffd6952a   Anton Vorontsov   powerpc/85xx/86xx...
971
972
  config FSL_PMC
  	bool
4ffd6952a   Anton Vorontsov   powerpc/85xx/86xx...
973
974
975
  	help
  	  Freescale MPC85xx/MPC86xx power management controller support
  	  (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
d164f6d4f   Victor Gallardo   powerpc/4xx: Add ...
976
977
978
979
980
981
982
983
  config PPC4xx_CPM
  	bool
  	default y
  	depends on SUSPEND && (44x || 40x)
  	help
  	  PPC4xx Clock Power Management (CPM) support (suspend/resume).
  	  It also enables support for two different idle states (idle-wait
  	  and idle-doze).
2a7069190   Stefan Roese   [POWERPC] 4xx: Ad...
984
985
  config 4xx_SOC
  	bool
acaa7aa30   Anton Vorontsov   [POWERPC] fsl_lbc...
986
  config FSL_LBC
3ab8f2a2e   Roy Zang   P4080/eLBC: Make ...
987
  	bool "Freescale Local Bus support"
acaa7aa30   Anton Vorontsov   [POWERPC] fsl_lbc...
988
  	help
3ab8f2a2e   Roy Zang   P4080/eLBC: Make ...
989
990
991
  	  Enables reporting of errors from the Freescale local bus
  	  controller.  Also contains some common code used by
  	  drivers for specific local bus peripherals.
acaa7aa30   Anton Vorontsov   [POWERPC] fsl_lbc...
992

83ff9dcf3   Anton Vorontsov   powerpc/sysdev: i...
993
994
995
996
997
  config FSL_GTM
  	bool
  	depends on PPC_83xx || QUICC_ENGINE || CPM2
  	help
  	  Freescale General-purpose Timers support
14cf11af6   Paul Mackerras   powerpc: Merge en...
998
999
1000
  config PCI_8260
  	bool
  	depends on PCI && 8260
25635c71e   Paul Mackerras   ppc: Use the indi...
1001
  	select PPC_INDIRECT_PCI
14cf11af6   Paul Mackerras   powerpc: Merge en...
1002
  	default y
388b78adc   Alexandre Bounine   rapidio: modify c...
1003
1004
  config FSL_RIO
  	bool "Freescale Embedded SRIO Controller support"
1753d50c9   Christoph Hellwig   rapidio: consolid...
1005
  	depends on RAPIDIO = y && HAVE_RAPIDIO
388b78adc   Alexandre Bounine   rapidio: modify c...
1006
  	default "n"
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
1007
  	help
388b78adc   Alexandre Bounine   rapidio: modify c...
1008
1009
  	  Include support for RapidIO controller on Freescale embedded
  	  processors (MPC8548, MPC8641, etc).
14cf11af6   Paul Mackerras   powerpc: Merge en...
1010
  endmenu
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1011
1012
  config NONSTATIC_KERNEL
  	bool
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1013

14cf11af6   Paul Mackerras   powerpc: Merge en...
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
  menu "Advanced setup"
  	depends on PPC32
  
  config ADVANCED_OPTIONS
  	bool "Prompt for advanced kernel configuration options"
  	help
  	  This option will enable prompting for a variety of advanced kernel
  	  configuration options.  These options can cause the kernel to not
  	  work if they are set incorrectly, but can be used to optimize certain
  	  aspects of kernel memory management.
  
  	  Unless you know what you are doing, say N here.
  
  comment "Default settings for advanced configuration options are used"
  	depends on !ADVANCED_OPTIONS
14cf11af6   Paul Mackerras   powerpc: Merge en...
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
  config LOWMEM_SIZE_BOOL
  	bool "Set maximum low memory"
  	depends on ADVANCED_OPTIONS
  	help
  	  This option allows you to set the maximum amount of memory which
  	  will be used as "low memory", that is, memory which the kernel can
  	  access directly, without having to set up a kernel virtual mapping.
  	  This can be useful in optimizing the layout of kernel virtual
  	  memory.
  
  	  Say N here unless you know what you are doing.
  
  config LOWMEM_SIZE
  	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  	default "0x30000000"
96051465f   Trent Piepho   powerpc/fsl-booke...
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
  config LOWMEM_CAM_NUM_BOOL
  	bool "Set number of CAMs to use to map low memory"
  	depends on ADVANCED_OPTIONS && FSL_BOOKE
  	help
  	  This option allows you to set the maximum number of CAM slots that
  	  will be used to map low memory.  There are a limited number of slots
  	  available and even more limited number that will fit in the L1 MMU.
  	  However, using more entries will allow mapping more low memory.  This
  	  can be useful in optimizing the layout of kernel virtual memory.
  
  	  Say N here unless you know what you are doing.
  
  config LOWMEM_CAM_NUM
9b71dbd3c   Josh Boyer   powerpc: Make LOW...
1057
  	depends on FSL_BOOKE
96051465f   Trent Piepho   powerpc/fsl-booke...
1058
1059
  	int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
  	default 3
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1060
  config DYNAMIC_MEMSTART
642e56ff5   Kees Cook   arch/powerpc: rem...
1061
1062
  	bool "Enable page aligned dynamic load address for kernel"
  	depends on ADVANCED_OPTIONS && FLATMEM && (FSL_BOOKE || 44x)
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1063
1064
1065
  	select NONSTATIC_KERNEL
  	help
  	  This option enables the kernel to be loaded at any page aligned
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
1066
  	  physical address. The kernel creates a mapping from KERNELBASE to
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1067
1068
1069
1070
1071
1072
  	  the address where the kernel is loaded. The page size here implies
  	  the TLB page size of the mapping for kernel on the particular platform.
  	  Please refer to the init code for finding the TLB page size.
  
  	  DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE
  	  kernel image, where the only restriction is the page aligned kernel
4f44e8aea   Enrico Weigelt, metux IT consult   powerpc/Kconfig: ...
1073
  	  load address. When this option is enabled, the compile time physical
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1074
  	  address CONFIG_PHYSICAL_START is ignored.
9c5f7d39a   Suzuki Poulose   powerpc: Process ...
1075
  	  This option is overridden by CONFIG_RELOCATABLE
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
  config PAGE_OFFSET_BOOL
  	bool "Set custom page offset address"
  	depends on ADVANCED_OPTIONS
  	help
  	  This option allows you to set the kernel virtual address at which
  	  the kernel will map low memory.  This can be useful in optimizing
  	  the virtual memory layout of the system.
  
  	  Say N here unless you know what you are doing.
  
  config PAGE_OFFSET
  	hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
  	default "0xc0000000"
14cf11af6   Paul Mackerras   powerpc: Merge en...
1089
1090
1091
1092
1093
  config KERNEL_START_BOOL
  	bool "Set custom kernel base address"
  	depends on ADVANCED_OPTIONS
  	help
  	  This option allows you to set the kernel virtual address at which
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1094
1095
1096
  	  the kernel will be loaded.  Normally this should match PAGE_OFFSET
  	  however there are times (like kdump) that one might not want them
  	  to be the same.
14cf11af6   Paul Mackerras   powerpc: Merge en...
1097
1098
1099
1100
1101
  
  	  Say N here unless you know what you are doing.
  
  config KERNEL_START
  	hex "Virtual address of kernel base" if KERNEL_START_BOOL
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1102
  	default PAGE_OFFSET if PAGE_OFFSET_BOOL
0f890c8d2   Suzuki Poulose   powerpc: Rename m...
1103
  	default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL
14cf11af6   Paul Mackerras   powerpc: Merge en...
1104
  	default "0xc0000000"
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
  config PHYSICAL_START_BOOL
  	bool "Set physical address where the kernel is loaded"
  	depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
  	help
  	  This gives the physical address where the kernel is loaded.
  
  	  Say N here unless you know what you are doing.
  
  config PHYSICAL_START
  	hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
26598f285   Christophe Leroy   powerpc/kconfig: ...
1115
  	default "0x02000000" if PPC_BOOK3S && CRASH_DUMP && !NONSTATIC_KERNEL
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1116
1117
1118
1119
  	default "0x00000000"
  
  config PHYSICAL_ALIGN
  	hex
c8f3570b7   Trent Piepho   powerpc/fsl-booke...
1120
  	default "0x04000000" if FSL_BOOKE
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1121
1122
1123
1124
  	help
  	  This value puts the alignment restrictions on physical address
  	  where kernel is loaded and run from. Kernel is compiled for an
  	  address which meets above alignment restriction.
14cf11af6   Paul Mackerras   powerpc: Merge en...
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
  config TASK_SIZE_BOOL
  	bool "Set custom user task size"
  	depends on ADVANCED_OPTIONS
  	help
  	  This option allows you to set the amount of virtual address space
  	  allocated to user tasks.  This can be useful in optimizing the
  	  virtual memory layout of the system.
  
  	  Say N here unless you know what you are doing.
  
  config TASK_SIZE
  	hex "Size of user task space" if TASK_SIZE_BOOL
933ee7119   Paul Bolle   powerpc: remove P...
1137
  	default "0x80000000" if PPC_8xx
6ca055322   Christophe Leroy   powerpc/32s: Use ...
1138
  	default "0xb0000000" if PPC_BOOK3S_32 && STRICT_KERNEL_RWX
4d9e55103   Kumar Gala   [POWERPC] Adjust ...
1139
  	default "0xc0000000"
14cf11af6   Paul Mackerras   powerpc: Merge en...
1140
  endmenu
cabb55871   Stephen Rothwell   powerpc: make iSe...
1141
  if PPC64
bdbc29c19   Paul Mackerras   powerpc: Work aro...
1142
  # This value must have zeroes in the bottom 60 bits otherwise lots will break
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1143
1144
1145
  config PAGE_OFFSET
  	hex
  	default "0xc000000000000000"
cabb55871   Stephen Rothwell   powerpc: make iSe...
1146
1147
  config KERNEL_START
  	hex
eeb2d2180   Stephen Rothwell   powerpc: make iSe...
1148
  	default "0xc000000000000000"
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1149
1150
  config PHYSICAL_START
  	hex
37dd2badc   Kumar Gala   [POWERPC] 85xx: A...
1151
  	default "0x00000000"
cabb55871   Stephen Rothwell   powerpc: make iSe...
1152
  endif
a4da0d50b   Michael Ellerman   powerpc: Implemen...
1153
1154
  config	ARCH_RANDOM
  	def_bool n
1088a2099   Sylvain Munaut   [POWERPC] rheap: ...
1155
1156
  config PPC_LIB_RHEAP
  	bool
bbf45ba57   Hollis Blanchard   KVM: ppc: PowerPC...
1157
  source "arch/powerpc/kvm/Kconfig"
85baa0954   Michael Ellerman   powerpc/livepatch...
1158
1159
  
  source "kernel/livepatch/Kconfig"