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