1 # For a description of the syntax of this configuration file,
2 # see Documentation/kbuild/kconfig-language.txt.
5 mainmenu "Linux/PowerPC Kernel Configuration"
11 This option selects whether a 32-bit or a 64-bit kernel
14 config PPC_PM_NEEDS_RTC_LIB
34 config GENERIC_HARDIRQS
42 config RWSEM_GENERIC_SPINLOCK
45 config RWSEM_XCHGADD_ALGORITHM
49 config ARCH_HAS_ILOG2_U32
53 config ARCH_HAS_ILOG2_U64
57 config GENERIC_HWEIGHT
61 config GENERIC_CALIBRATE_DELAY
65 config GENERIC_FIND_NEXT_BIT
83 depends on COMPAT && SYSVIPC
86 # All PPC32s use generic nvram driver through ppc_md
91 config SCHED_NO_NO_OMIT_FRAME_POINTER
95 config ARCH_MAY_HAVE_PC_FDC
97 default !PPC_PSERIES || PCI
102 config PPC_UDBG_16550
106 config GENERIC_TBSYNC
108 default y if PPC32 && SMP
120 config SYS_SUPPORTS_APM_EMULATION
124 # Powerpc uses the slab allocator to manage its ptes and the
125 # page structs of ptes are used for splitting the page table
126 # lock for configurations supporting more than SPLIT_PTLOCK_CPUS.
128 # In that special configuration the page structs of slabs are modified.
129 # This setting disables the selection of SLUB as a slab allocator.
131 config ARCH_USES_SLAB_PAGE_STRUCT
134 depends on SPLIT_PTLOCK_CPUS <= NR_CPUS
136 config DEFAULT_UIMAGE
139 Used to allow a board to specify it wants a uImage built by default
144 depends on PPC64 && (BROKEN || (PPC_PMAC64 && EXPERIMENTAL))
147 menu "Processor support"
149 prompt "Processor Type"
154 bool "52xx/6xx/7xx/74xx"
158 There are four families of PowerPC chips supported. The more common
159 types (601, 603, 604, 740, 750, 7400), the Motorola embedded
160 versions (821, 823, 850, 855, 860, 52xx, 82xx, 83xx), the AMCC
161 embedded versions (403 and 405) and the high end 64 bit Power
162 processors (POWER 3, POWER4, and IBM PPC970 also known as G5).
164 This option is the catch-all for 6xx types, including some of the
165 embedded versions. Unless there is see an option for the specific
166 chip family you are using, you want this option.
168 You do not want this if you are building a kernel for a 64 bit
169 IBM RS/6000 or an Apple G5, choose 6xx.
171 If unsure, select this option
173 Note that the kernel runs in 32-bit mode even on 64-bit chips.
176 bool "Freescale 82xx"
181 bool "Freescale 83xx"
186 select WANT_DEVICE_TREE
189 bool "Freescale 85xx"
193 select WANT_DEVICE_TREE
196 bool "Freescale 86xx"
203 The Freescale E600 SoCs have 74xx cores.
212 select PPC_DCR_NATIVE
216 select PPC_DCR_NATIVE
217 select WANT_DEVICE_TREE
220 bool "Freescale e200"
225 bool "Optimize for POWER4"
229 Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
230 The resulting binary will not work on POWER3 or RS64 processors
231 when compiled with binutils 2.15 or later.
236 default y if !POWER4_ONLY
245 # this is temp to handle compat with arch=ppc
249 # this is temp to handle compat with arch=ppc
253 # this is temp to handle compat with arch=ppc
264 config PPC_DCR_NATIVE
274 depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
277 config PPC_OF_PLATFORM_PCI
279 depends on PPC64 # not supported on 32 bits yet
284 depends on 40x || 44x
289 depends on E200 || E500 || 44x
294 depends on E200 || E500
299 depends on 44x || E500
301 default y if E500 && PHYS_64BIT
304 bool 'Large physical address support' if E500
305 depends on 44x || E500
306 select RESOURCES_64BIT
309 This option enables kernel support for larger than 32-bit physical
310 addresses. This features is not be available on all e500 cores.
312 If in doubt, say N here.
315 bool "AltiVec Support"
316 depends on CLASSIC32 || POWER4
318 This option enables kernel support for the Altivec extensions to the
319 PowerPC processor. The kernel currently supports saving and restoring
320 altivec registers, and turning on the 'altivec enable' bit so user
321 processes can execute altivec instructions.
323 This option is only usefully if you have a processor that supports
324 altivec (G4, otherwise known as 74xx series), but does not have
325 any affect on a non-altivec cpu (it does, however add code to the
328 If in doubt, say Y here.
332 depends on E200 || E500
335 This option enables kernel support for the Signal Processing
336 Extensions (SPE) to the PowerPC processor. The kernel currently
337 supports saving and restoring SPE registers, and turning on the
338 'spe enable' bit so user processes can execute SPE instructions.
340 This option is only useful if you have a processor that supports
341 SPE (e500, otherwise known as 85xx series), but does not have any
342 effect on a non-spe cpu (it does, however add code to the kernel).
344 If in doubt, say Y here.
348 depends on 6xx || POWER3 || POWER4 || PPC64
351 config PPC_STD_MMU_32
353 depends on PPC_STD_MMU && PPC32
357 default y if HUGETLB_PAGE
360 config VIRT_CPU_ACCOUNTING
361 bool "Deterministic task and CPU time accounting"
365 Select this option to enable more accurate task and CPU time
366 accounting. This is done by reading a CPU counter on each
367 kernel entry and exit and on transitions within the kernel
368 between system, softirq and hardirq state, so there is a
369 small performance impact. This also enables accounting of
370 stolen time on logically-partitioned systems running on
371 IBM POWER5-based machines.
373 If in doubt, say Y here.
376 depends on PPC_STD_MMU
377 bool "Symmetric multi-processing support"
379 This enables support for systems with more than one CPU. If you have
380 a system with only one CPU, say N. If you have a system with more
381 than one CPU, say Y. Note that the kernel does not currently
382 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
383 since they have inadequate hardware support for multiprocessor
386 If you say N here, the kernel will run on single and multiprocessor
387 machines, but will use only one CPU of a multiprocessor machine. If
388 you say Y here, the kernel will run on single-processor machines.
389 On a single-processor machine, the kernel will run faster if you say
392 If you don't know what to do here, say N.
395 int "Maximum number of CPUs (2-128)"
398 default "32" if PPC64
401 config NOT_COHERENT_CACHE
403 depends on 4xx || 8xx || E200
407 source "init/Kconfig"
409 source "arch/powerpc/platforms/Kconfig"
411 menu "Kernel options"
414 bool "High memory support"
417 source kernel/Kconfig.hz
418 source kernel/Kconfig.preempt
419 source "fs/Kconfig.binfmt"
421 # We optimistically allocate largepages from the VM, so make the limit
422 # large enough (16MB). This badly named config option is actually
424 config FORCE_MAX_ZONEORDER
427 default "9" if PPC_64K_PAGES
430 config MATH_EMULATION
431 bool "Math emulation"
432 depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
434 Some PowerPC chips designed for embedded applications do not have
435 a floating-point unit and therefore do not implement the
436 floating-point instructions in the PowerPC instruction set. If you
437 say Y here, the kernel will include code to emulate a floating-point
438 unit, which will allow programs that use floating-point
442 bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
443 depends on EXPERIMENTAL && PPC64
446 Cause IO segments sent to a device for DMA to be merged virtually
447 by the IOMMU when they happen to have been allocated contiguously.
448 This doesn't add pressure to the IOMMU allocator. However, some
449 drivers don't support getting large merged segments coming back
450 from *_map_sg(). Say Y if you know the drivers you are using are
451 properly handling this case.
454 bool "Support for enabling/disabling CPUs"
455 depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
457 Say Y here to be able to disable and re-enable individual
458 CPUs at runtime on SMP machines.
460 Say N if you are unsure.
462 config ARCH_ENABLE_MEMORY_HOTPLUG
466 bool "kexec system call (EXPERIMENTAL)"
467 depends on PPC_MULTIPLATFORM && EXPERIMENTAL
469 kexec is a system call that implements the ability to shutdown your
470 current kernel, and to start another kernel. It is like a reboot
471 but it is independent of the system firmware. And like a reboot
472 you can start any kernel with it, not just Linux.
474 The name comes from the similarity to the exec system call.
476 It is an ongoing process to be certain the hardware in a machine
477 is properly shutdown, so do not be surprised if this code does not
478 initially work for you. It may help to enable device hotplugging
479 support. As of this writing the exact hardware interface is
480 strongly in flux, so no good recommendation can be made.
483 bool "Build a kdump crash kernel (EXPERIMENTAL)"
484 depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
486 Build a kernel suitable for use as a kdump capture kernel.
487 The kernel will be linked at a different address than normal, and
488 so can only be used for Kdump.
490 Don't change this unless you know what you are doing.
493 bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
494 default y if PPC_PREP
497 bool "Distribute interrupts on all CPUs by default"
498 depends on SMP && !MV64360
500 This option gives the kernel permission to distribute IRQs across
501 multiple CPUs. Saying N here will route all IRQs to the first
502 CPU. Generally saying Y is safe, although some problems have been
503 reported with SMP Power Macintoshes with this option enabled.
508 default y if SMP && PPC_PSERIES
513 depends on NEED_MULTIPLE_NODES
515 config ARCH_SELECT_MEMORY_MODEL
519 config ARCH_FLATMEM_ENABLE
521 depends on (PPC64 && !NUMA) || PPC32
523 config ARCH_SPARSEMEM_ENABLE
527 config ARCH_SPARSEMEM_DEFAULT
529 depends on (SMP && PPC_PSERIES) || PPC_PS3
531 config ARCH_POPULATES_NODE_MAP
536 config ARCH_MEMORY_PROBE
538 depends on MEMORY_HOTPLUG
540 # Some NUMA nodes have memory ranges that span
541 # other nodes. Even though a pfn is valid and
542 # between a node's start and end pfns, it may not
543 # reside on that node. See memmap_init_zone()
545 config NODES_SPAN_OTHER_NODES
547 depends on NEED_MULTIPLE_NODES
553 This option changes the kernel logical page size to 64k. On machines
554 without processor support for 64k pages, the kernel will simulate
555 them by loading each individual 4k page on demand transparently,
556 while on hardware with such support, it will be used to map
557 normal application pages.
560 bool "SMT (Hyperthreading) scheduler support"
561 depends on PPC64 && SMP
563 SMT scheduler support improves the CPU scheduler's decision making
564 when dealing with POWER5 cpus at a cost of slightly increased
565 overhead in some places. If unsure say N here.
567 config PROC_DEVICETREE
568 bool "Support for device tree in /proc"
571 This option adds a device-tree directory under /proc which contains
572 an image of the device tree that the kernel copies from Open
573 Firmware or other boot firmware. If unsure, say Y here.
576 bool "Default bootloader kernel arguments"
579 string "Initial kernel command string"
580 depends on CMDLINE_BOOL
581 default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
583 On some platforms, there is currently no way for the boot loader to
584 pass arguments to the kernel. For these platforms, you can supply
585 some command-line options at build time by entering them here. In
586 most cases you will need to specify the root device here.
589 source kernel/power/Kconfig
593 bool "Enable seccomp to safely compute untrusted bytecode"
597 This kernel feature is useful for number crunching applications
598 that may need to compute untrusted bytecode during their
599 execution. By using pipes or other transports made available to
600 the process as file descriptors supporting the read/write
601 syscalls, it's possible to isolate those applications in
602 their own address space using seccomp. Once seccomp is
603 enabled via /proc/<pid>/seccomp, it cannot be disabled
604 and the task is only allowed to execute a few safe syscalls
605 defined by each seccomp mode.
607 If unsure, say Y. Only embedded should say N here.
609 config WANT_DEVICE_TREE
614 string "Static device tree source file"
615 depends on WANT_DEVICE_TREE
617 This specifies the device tree source (.dts) file to be
618 compiled and included when building the bootwrapper. If a
619 relative filename is given, then it will be relative to
620 arch/powerpc/boot/dts. If you are not using the bootwrapper,
621 or do not need to build a dts into the bootwrapper, this
624 For example, this is required when building a cuImage target
625 for an older U-Boot, which cannot pass a device tree itself.
626 Such a kernel will not work with a newer U-Boot that tries to
627 pass a device tree (unless you tell it not to). If your U-Boot
628 does not mention a device tree in "help bootm", then use the
629 cuImage target and specify a device tree here. Otherwise, use
630 the uImage target and leave this field blank.
641 bool "Support for ISA-bus hardware"
642 depends on PPC_PREP || PPC_CHRP
645 Find out whether you have ISA slots on your motherboard. ISA is the
646 name of a bus system, i.e. the way the CPU talks to the other stuff
647 inside your box. If you have an Apple machine, say N here; if you
648 have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
649 you have an embedded board, consult your board documentation.
655 config GENERIC_ISA_DMA
657 depends on PPC64 || POWER4 || 6xx && !CPM2
660 config PPC_INDIRECT_PCI
663 default y if 40x || 44x
666 config PPC_INDIRECT_PCI_BE
668 depends PPC_INDIRECT_PCI
684 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
689 bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
690 || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \
691 || MPC7448HPC2 || PPC_PS3 || PPC_HOLLY
692 default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
693 && !PPC_85xx && !PPC_86xx
694 default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
695 default PCI_QSPAN if !4xx && !CPM2 && 8xx
696 select ARCH_SUPPORTS_MSI
698 Find out whether your system includes a PCI bus. PCI is the name of
699 a bus system, i.e. the way the CPU talks to the other stuff inside
700 your box. If you say Y here, the kernel will include drivers and
701 infrastructure code to support PCI bus devices.
709 depends on !4xx && !CPM2 && 8xx
712 Say Y here if you have a system based on a Motorola 8xx-series
713 embedded processor with a QSPAN PCI interface, otherwise say N.
717 depends on PCI && 8260
718 select PPC_INDIRECT_PCI
722 bool "Enable workaround for MPC826x erratum PCI 9"
723 depends on PCI_8260 && !ADS8272
727 prompt "IDMA channel for PCI 9 workaround"
730 config 8260_PCI9_IDMA1
733 config 8260_PCI9_IDMA2
736 config 8260_PCI9_IDMA3
739 config 8260_PCI9_IDMA4
744 source "drivers/pci/pcie/Kconfig"
746 source "drivers/pci/Kconfig"
748 source "drivers/pcmcia/Kconfig"
750 source "drivers/pci/hotplug/Kconfig"
754 menu "Advanced setup"
757 config ADVANCED_OPTIONS
758 bool "Prompt for advanced kernel configuration options"
760 This option will enable prompting for a variety of advanced kernel
761 configuration options. These options can cause the kernel to not
762 work if they are set incorrectly, but can be used to optimize certain
763 aspects of kernel memory management.
765 Unless you know what you are doing, say N here.
767 comment "Default settings for advanced configuration options are used"
768 depends on !ADVANCED_OPTIONS
770 config HIGHMEM_START_BOOL
771 bool "Set high memory pool address"
772 depends on ADVANCED_OPTIONS && HIGHMEM
774 This option allows you to set the base address of the kernel virtual
775 area used to map high memory pages. This can be useful in
776 optimizing the layout of kernel virtual memory.
778 Say N here unless you know what you are doing.
781 hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
784 config LOWMEM_SIZE_BOOL
785 bool "Set maximum low memory"
786 depends on ADVANCED_OPTIONS
788 This option allows you to set the maximum amount of memory which
789 will be used as "low memory", that is, memory which the kernel can
790 access directly, without having to set up a kernel virtual mapping.
791 This can be useful in optimizing the layout of kernel virtual
794 Say N here unless you know what you are doing.
797 hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
800 config KERNEL_START_BOOL
801 bool "Set custom kernel base address"
802 depends on ADVANCED_OPTIONS
804 This option allows you to set the kernel virtual address at which
805 the kernel will map low memory (the kernel image will be linked at
806 this address). This can be useful in optimizing the virtual memory
807 layout of the system.
809 Say N here unless you know what you are doing.
812 hex "Virtual address of kernel base" if KERNEL_START_BOOL
815 config TASK_SIZE_BOOL
816 bool "Set custom user task size"
817 depends on ADVANCED_OPTIONS
819 This option allows you to set the amount of virtual address space
820 allocated to user tasks. This can be useful in optimizing the
821 virtual memory layout of the system.
823 Say N here unless you know what you are doing.
826 hex "Size of user task space" if TASK_SIZE_BOOL
829 config CONSISTENT_START_BOOL
830 bool "Set custom consistent memory pool address"
831 depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
833 This option allows you to set the base virtual address
834 of the consistent memory pool. This pool of virtual
835 memory is used to make consistent memory allocations.
837 config CONSISTENT_START
838 hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
839 default "0xff100000" if NOT_COHERENT_CACHE
841 config CONSISTENT_SIZE_BOOL
842 bool "Set custom consistent memory pool size"
843 depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
845 This option allows you to set the size of the
846 consistent memory pool. This pool of virtual memory
847 is used to make consistent memory allocations.
849 config CONSISTENT_SIZE
850 hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
851 default "0x00200000" if NOT_COHERENT_CACHE
853 config BOOT_LOAD_BOOL
854 bool "Set the boot link/load address"
855 depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
857 This option allows you to set the initial load address of the zImage
858 or zImage.initrd file. This can be useful if you are on a board
859 which has a small amount of memory.
861 Say N here unless you know what you are doing.
864 hex "Link/load address for booting" if BOOT_LOAD_BOOL
865 default "0x00400000" if 40x || 8xx || 8260
866 default "0x01000000" if 44x
870 bool "Pinned Kernel TLBs (860 ONLY)"
871 depends on ADVANCED_OPTIONS && 8xx
877 default "0xc000000000000000"
882 source "drivers/Kconfig"
886 # XXX source "arch/ppc/8xx_io/Kconfig"
888 # XXX source "arch/ppc/8260_io/Kconfig"
890 source "arch/powerpc/sysdev/qe_lib/Kconfig"
894 menu "Instrumentation Support"
895 depends on EXPERIMENTAL
897 source "arch/powerpc/oprofile/Kconfig"
900 bool "Kprobes (EXPERIMENTAL)"
901 depends on !BOOKE && !4xx && KALLSYMS && EXPERIMENTAL && MODULES
903 Kprobes allows you to trap at almost any kernel address and
904 execute a callback function. register_kprobe() establishes
905 a probepoint and specifies the callback. Kprobes is useful
906 for kernel debugging, non-intrusive instrumentation and testing.
907 If in doubt, say "N".
910 source "arch/powerpc/Kconfig.debug"
912 source "security/Kconfig"
916 depends on COMPAT && KEYS
919 source "crypto/Kconfig"