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