Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. # For a description of the syntax of this configuration file,
  2. # see Documentation/kbuild/kconfig-language.txt.
  3. #
  4. mainmenu "Linux/PowerPC Kernel Configuration"
  5. source "arch/powerpc/platforms/Kconfig.cputype"
  6. config PPC32
  7. bool
  8. default y if !PPC64
  9. config 64BIT
  10. bool
  11. default y if PPC64
  12. config WORD_SIZE
  13. int
  14. default 64 if PPC64
  15. default 32 if !PPC64
  16. config PPC_MERGE
  17. def_bool y
  18. config MMU
  19. bool
  20. default y
  21. config GENERIC_CMOS_UPDATE
  22. def_bool y
  23. config GENERIC_TIME
  24. def_bool y
  25. config GENERIC_TIME_VSYSCALL
  26. def_bool y
  27. config GENERIC_CLOCKEVENTS
  28. def_bool y
  29. config GENERIC_HARDIRQS
  30. bool
  31. default y
  32. config HAVE_SETUP_PER_CPU_AREA
  33. def_bool PPC64
  34. config IRQ_PER_CPU
  35. bool
  36. default y
  37. config RWSEM_GENERIC_SPINLOCK
  38. bool
  39. config RWSEM_XCHGADD_ALGORITHM
  40. bool
  41. default y
  42. config GENERIC_LOCKBREAK
  43. bool
  44. default y
  45. depends on SMP && PREEMPT
  46. config ARCH_HAS_ILOG2_U32
  47. bool
  48. default y
  49. config ARCH_HAS_ILOG2_U64
  50. bool
  51. default y if 64BIT
  52. config GENERIC_HWEIGHT
  53. bool
  54. default y
  55. config GENERIC_CALIBRATE_DELAY
  56. bool
  57. default y
  58. config GENERIC_FIND_NEXT_BIT
  59. bool
  60. default y
  61. config ARCH_NO_VIRT_TO_BUS
  62. def_bool PPC64
  63. config PPC
  64. bool
  65. default y
  66. select HAVE_OPROFILE
  67. config EARLY_PRINTK
  68. bool
  69. default y
  70. config COMPAT
  71. bool
  72. default y if PPC64
  73. config SYSVIPC_COMPAT
  74. bool
  75. depends on COMPAT && SYSVIPC
  76. default y
  77. # All PPC32s use generic nvram driver through ppc_md
  78. config GENERIC_NVRAM
  79. bool
  80. default y if PPC32
  81. config SCHED_NO_NO_OMIT_FRAME_POINTER
  82. bool
  83. default y
  84. config ARCH_MAY_HAVE_PC_FDC
  85. bool
  86. default !PPC_PSERIES || PCI
  87. config PPC_OF
  88. def_bool y
  89. config OF
  90. def_bool y
  91. config PPC_UDBG_16550
  92. bool
  93. default n
  94. config GENERIC_TBSYNC
  95. bool
  96. default y if PPC32 && SMP
  97. default n
  98. config AUDIT_ARCH
  99. bool
  100. default y
  101. config GENERIC_BUG
  102. bool
  103. default y
  104. depends on BUG
  105. config SYS_SUPPORTS_APM_EMULATION
  106. default y if PMAC_APM_EMU
  107. bool
  108. config DEFAULT_UIMAGE
  109. bool
  110. help
  111. Used to allow a board to specify it wants a uImage built by default
  112. default n
  113. config REDBOOT
  114. bool
  115. config HIBERNATE_32
  116. bool
  117. depends on (PPC_PMAC && !SMP) || BROKEN
  118. default y
  119. config HIBERNATE_64
  120. bool
  121. depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)
  122. default y
  123. config ARCH_HIBERNATION_POSSIBLE
  124. bool
  125. depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32)
  126. default y
  127. config ARCH_SUSPEND_POSSIBLE
  128. def_bool y
  129. depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200
  130. config PPC_DCR_NATIVE
  131. bool
  132. default n
  133. config PPC_DCR_MMIO
  134. bool
  135. default n
  136. config PPC_DCR
  137. bool
  138. depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  139. default y
  140. config PPC_OF_PLATFORM_PCI
  141. bool
  142. depends on PCI
  143. depends on PPC64 # not supported on 32 bits yet
  144. default n
  145. source "init/Kconfig"
  146. source "arch/powerpc/sysdev/Kconfig"
  147. source "arch/powerpc/platforms/Kconfig"
  148. menu "Kernel options"
  149. config HIGHMEM
  150. bool "High memory support"
  151. depends on PPC32
  152. source kernel/time/Kconfig
  153. source kernel/Kconfig.hz
  154. source kernel/Kconfig.preempt
  155. source "fs/Kconfig.binfmt"
  156. # We optimistically allocate largepages from the VM, so make the limit
  157. # large enough (16MB). This badly named config option is actually
  158. # max order + 1
  159. config FORCE_MAX_ZONEORDER
  160. int
  161. depends on PPC64
  162. default "9" if PPC_64K_PAGES
  163. default "13"
  164. config HUGETLB_PAGE_SIZE_VARIABLE
  165. bool
  166. depends on HUGETLB_PAGE
  167. default y
  168. config MATH_EMULATION
  169. bool "Math emulation"
  170. depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
  171. ---help---
  172. Some PowerPC chips designed for embedded applications do not have
  173. a floating-point unit and therefore do not implement the
  174. floating-point instructions in the PowerPC instruction set. If you
  175. say Y here, the kernel will include code to emulate a floating-point
  176. unit, which will allow programs that use floating-point
  177. instructions to run.
  178. config 8XX_MINIMAL_FPEMU
  179. bool "Minimal math emulation for 8xx"
  180. depends on 8xx && !MATH_EMULATION
  181. help
  182. Older arch/ppc kernels still emulated a few floating point
  183. instructions such as load and store, even when full math
  184. emulation is disabled. Say "Y" here if you want to preserve
  185. this behavior.
  186. It is recommended that you build a soft-float userspace instead.
  187. config IOMMU_VMERGE
  188. bool "Enable IOMMU virtual merging"
  189. depends on PPC64
  190. default y
  191. help
  192. Cause IO segments sent to a device for DMA to be merged virtually
  193. by the IOMMU when they happen to have been allocated contiguously.
  194. This doesn't add pressure to the IOMMU allocator. However, some
  195. drivers don't support getting large merged segments coming back
  196. from *_map_sg().
  197. Most drivers don't have this problem; it is safe to say Y here.
  198. config HOTPLUG_CPU
  199. bool "Support for enabling/disabling CPUs"
  200. depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
  201. ---help---
  202. Say Y here to be able to disable and re-enable individual
  203. CPUs at runtime on SMP machines.
  204. Say N if you are unsure.
  205. config ARCH_ENABLE_MEMORY_HOTPLUG
  206. def_bool y
  207. config KEXEC
  208. bool "kexec system call (EXPERIMENTAL)"
  209. depends on (PPC_PRPMC2800 || PPC_MULTIPLATFORM) && EXPERIMENTAL
  210. help
  211. kexec is a system call that implements the ability to shutdown your
  212. current kernel, and to start another kernel. It is like a reboot
  213. but it is independent of the system firmware. And like a reboot
  214. you can start any kernel with it, not just Linux.
  215. The name comes from the similarity to the exec system call.
  216. It is an ongoing process to be certain the hardware in a machine
  217. is properly shutdown, so do not be surprised if this code does not
  218. initially work for you. It may help to enable device hotplugging
  219. support. As of this writing the exact hardware interface is
  220. strongly in flux, so no good recommendation can be made.
  221. config CRASH_DUMP
  222. bool "Build a kdump crash kernel (EXPERIMENTAL)"
  223. depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
  224. help
  225. Build a kernel suitable for use as a kdump capture kernel.
  226. The kernel will be linked at a different address than normal, and
  227. so can only be used for Kdump.
  228. Don't change this unless you know what you are doing.
  229. config PPCBUG_NVRAM
  230. bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
  231. default y if PPC_PREP
  232. config IRQ_ALL_CPUS
  233. bool "Distribute interrupts on all CPUs by default"
  234. depends on SMP && !MV64360
  235. help
  236. This option gives the kernel permission to distribute IRQs across
  237. multiple CPUs. Saying N here will route all IRQs to the first
  238. CPU. Generally saying Y is safe, although some problems have been
  239. reported with SMP Power Macintoshes with this option enabled.
  240. config NUMA
  241. bool "NUMA support"
  242. depends on PPC64
  243. default y if SMP && PPC_PSERIES
  244. config NODES_SHIFT
  245. int
  246. default "4"
  247. depends on NEED_MULTIPLE_NODES
  248. config ARCH_SELECT_MEMORY_MODEL
  249. def_bool y
  250. depends on PPC64
  251. config ARCH_FLATMEM_ENABLE
  252. def_bool y
  253. depends on (PPC64 && !NUMA) || PPC32
  254. config ARCH_SPARSEMEM_ENABLE
  255. def_bool y
  256. depends on PPC64
  257. select SPARSEMEM_VMEMMAP_ENABLE
  258. config ARCH_SPARSEMEM_DEFAULT
  259. def_bool y
  260. depends on (SMP && PPC_PSERIES) || PPC_PS3
  261. config ARCH_POPULATES_NODE_MAP
  262. def_bool y
  263. source "mm/Kconfig"
  264. config ARCH_MEMORY_PROBE
  265. def_bool y
  266. depends on MEMORY_HOTPLUG
  267. # Some NUMA nodes have memory ranges that span
  268. # other nodes. Even though a pfn is valid and
  269. # between a node's start and end pfns, it may not
  270. # reside on that node. See memmap_init_zone()
  271. # for details.
  272. config NODES_SPAN_OTHER_NODES
  273. def_bool y
  274. depends on NEED_MULTIPLE_NODES
  275. config PPC_HAS_HASH_64K
  276. bool
  277. depends on PPC64
  278. default n
  279. config PPC_64K_PAGES
  280. bool "64k page size"
  281. depends on PPC64
  282. select PPC_HAS_HASH_64K
  283. help
  284. This option changes the kernel logical page size to 64k. On machines
  285. without processor support for 64k pages, the kernel will simulate
  286. them by loading each individual 4k page on demand transparently,
  287. while on hardware with such support, it will be used to map
  288. normal application pages.
  289. config PPC_SUBPAGE_PROT
  290. bool "Support setting protections for 4k subpages"
  291. depends on PPC_64K_PAGES
  292. help
  293. This option adds support for a system call to allow user programs
  294. to set access permissions (read/write, readonly, or no access)
  295. on the 4k subpages of each 64k page.
  296. config SCHED_SMT
  297. bool "SMT (Hyperthreading) scheduler support"
  298. depends on PPC64 && SMP
  299. help
  300. SMT scheduler support improves the CPU scheduler's decision making
  301. when dealing with POWER5 cpus at a cost of slightly increased
  302. overhead in some places. If unsure say N here.
  303. config PROC_DEVICETREE
  304. bool "Support for device tree in /proc"
  305. depends on PROC_FS
  306. help
  307. This option adds a device-tree directory under /proc which contains
  308. an image of the device tree that the kernel copies from Open
  309. Firmware or other boot firmware. If unsure, say Y here.
  310. config CMDLINE_BOOL
  311. bool "Default bootloader kernel arguments"
  312. config CMDLINE
  313. string "Initial kernel command string"
  314. depends on CMDLINE_BOOL
  315. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  316. help
  317. On some platforms, there is currently no way for the boot loader to
  318. pass arguments to the kernel. For these platforms, you can supply
  319. some command-line options at build time by entering them here. In
  320. most cases you will need to specify the root device here.
  321. if !44x || BROKEN
  322. config ARCH_WANTS_FREEZER_CONTROL
  323. def_bool y
  324. depends on ADB_PMU
  325. source kernel/power/Kconfig
  326. endif
  327. config SECCOMP
  328. bool "Enable seccomp to safely compute untrusted bytecode"
  329. depends on PROC_FS
  330. default y
  331. help
  332. This kernel feature is useful for number crunching applications
  333. that may need to compute untrusted bytecode during their
  334. execution. By using pipes or other transports made available to
  335. the process as file descriptors supporting the read/write
  336. syscalls, it's possible to isolate those applications in
  337. their own address space using seccomp. Once seccomp is
  338. enabled via /proc/<pid>/seccomp, it cannot be disabled
  339. and the task is only allowed to execute a few safe syscalls
  340. defined by each seccomp mode.
  341. If unsure, say Y. Only embedded should say N here.
  342. config WANT_DEVICE_TREE
  343. bool
  344. default n
  345. config DEVICE_TREE
  346. string "Static device tree source file"
  347. depends on WANT_DEVICE_TREE
  348. help
  349. This specifies the device tree source (.dts) file to be
  350. compiled and included when building the bootwrapper. If a
  351. relative filename is given, then it will be relative to
  352. arch/powerpc/boot/dts. If you are not using the bootwrapper,
  353. or do not need to build a dts into the bootwrapper, this
  354. field is ignored.
  355. For example, this is required when building a cuImage target
  356. for an older U-Boot, which cannot pass a device tree itself.
  357. Such a kernel will not work with a newer U-Boot that tries to
  358. pass a device tree (unless you tell it not to). If your U-Boot
  359. does not mention a device tree in "help bootm", then use the
  360. cuImage target and specify a device tree here. Otherwise, use
  361. the uImage target and leave this field blank.
  362. endmenu
  363. config ISA_DMA_API
  364. bool
  365. default !PPC_ISERIES || PCI
  366. menu "Bus options"
  367. config ISA
  368. bool "Support for ISA-bus hardware"
  369. depends on PPC_PREP || PPC_CHRP
  370. select PPC_I8259
  371. help
  372. Find out whether you have ISA slots on your motherboard. ISA is the
  373. name of a bus system, i.e. the way the CPU talks to the other stuff
  374. inside your box. If you have an Apple machine, say N here; if you
  375. have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
  376. you have an embedded board, consult your board documentation.
  377. config ZONE_DMA
  378. bool
  379. default y
  380. config GENERIC_ISA_DMA
  381. bool
  382. depends on PPC64 || POWER4 || 6xx && !CPM2
  383. default y
  384. config PPC_INDIRECT_PCI
  385. bool
  386. depends on PCI
  387. default y if 40x || 44x
  388. default n
  389. config EISA
  390. bool
  391. config SBUS
  392. bool
  393. config FSL_SOC
  394. bool
  395. config FSL_PCI
  396. bool
  397. select PPC_INDIRECT_PCI
  398. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  399. config MCA
  400. bool
  401. config PCI
  402. bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
  403. || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \
  404. || PPC_PS3 || 44x
  405. default y if !40x && !CPM2 && !8xx && !PPC_83xx \
  406. && !PPC_85xx && !PPC_86xx
  407. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
  408. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  409. select ARCH_SUPPORTS_MSI
  410. help
  411. Find out whether your system includes a PCI bus. PCI is the name of
  412. a bus system, i.e. the way the CPU talks to the other stuff inside
  413. your box. If you say Y here, the kernel will include drivers and
  414. infrastructure code to support PCI bus devices.
  415. config PCI_DOMAINS
  416. def_bool PCI
  417. config PCI_SYSCALL
  418. def_bool PCI
  419. config PCI_QSPAN
  420. bool "QSpan PCI"
  421. depends on !4xx && !CPM2 && 8xx
  422. select PPC_I8259
  423. help
  424. Say Y here if you have a system based on a Motorola 8xx-series
  425. embedded processor with a QSPAN PCI interface, otherwise say N.
  426. config PCI_8260
  427. bool
  428. depends on PCI && 8260
  429. select PPC_INDIRECT_PCI
  430. default y
  431. config 8260_PCI9
  432. bool "Enable workaround for MPC826x erratum PCI 9"
  433. depends on PCI_8260 && !8272
  434. default y
  435. choice
  436. prompt "IDMA channel for PCI 9 workaround"
  437. depends on 8260_PCI9
  438. config 8260_PCI9_IDMA1
  439. bool "IDMA1"
  440. config 8260_PCI9_IDMA2
  441. bool "IDMA2"
  442. config 8260_PCI9_IDMA3
  443. bool "IDMA3"
  444. config 8260_PCI9_IDMA4
  445. bool "IDMA4"
  446. endchoice
  447. source "drivers/pci/pcie/Kconfig"
  448. source "drivers/pci/Kconfig"
  449. source "drivers/pcmcia/Kconfig"
  450. source "drivers/pci/hotplug/Kconfig"
  451. endmenu
  452. menu "Advanced setup"
  453. depends on PPC32
  454. config ADVANCED_OPTIONS
  455. bool "Prompt for advanced kernel configuration options"
  456. help
  457. This option will enable prompting for a variety of advanced kernel
  458. configuration options. These options can cause the kernel to not
  459. work if they are set incorrectly, but can be used to optimize certain
  460. aspects of kernel memory management.
  461. Unless you know what you are doing, say N here.
  462. comment "Default settings for advanced configuration options are used"
  463. depends on !ADVANCED_OPTIONS
  464. config HIGHMEM_START_BOOL
  465. bool "Set high memory pool address"
  466. depends on ADVANCED_OPTIONS && HIGHMEM
  467. help
  468. This option allows you to set the base address of the kernel virtual
  469. area used to map high memory pages. This can be useful in
  470. optimizing the layout of kernel virtual memory.
  471. Say N here unless you know what you are doing.
  472. config HIGHMEM_START
  473. hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
  474. default "0xfe000000"
  475. config LOWMEM_SIZE_BOOL
  476. bool "Set maximum low memory"
  477. depends on ADVANCED_OPTIONS
  478. help
  479. This option allows you to set the maximum amount of memory which
  480. will be used as "low memory", that is, memory which the kernel can
  481. access directly, without having to set up a kernel virtual mapping.
  482. This can be useful in optimizing the layout of kernel virtual
  483. memory.
  484. Say N here unless you know what you are doing.
  485. config LOWMEM_SIZE
  486. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  487. default "0x30000000"
  488. config KERNEL_START_BOOL
  489. bool "Set custom kernel base address"
  490. depends on ADVANCED_OPTIONS
  491. help
  492. This option allows you to set the kernel virtual address at which
  493. the kernel will map low memory (the kernel image will be linked at
  494. this address). This can be useful in optimizing the virtual memory
  495. layout of the system.
  496. Say N here unless you know what you are doing.
  497. config KERNEL_START
  498. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  499. default "0xc0000000"
  500. config TASK_SIZE_BOOL
  501. bool "Set custom user task size"
  502. depends on ADVANCED_OPTIONS
  503. help
  504. This option allows you to set the amount of virtual address space
  505. allocated to user tasks. This can be useful in optimizing the
  506. virtual memory layout of the system.
  507. Say N here unless you know what you are doing.
  508. config TASK_SIZE
  509. hex "Size of user task space" if TASK_SIZE_BOOL
  510. default "0x80000000" if PPC_PREP || PPC_8xx
  511. default "0xc0000000"
  512. config CONSISTENT_START_BOOL
  513. bool "Set custom consistent memory pool address"
  514. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  515. help
  516. This option allows you to set the base virtual address
  517. of the consistent memory pool. This pool of virtual
  518. memory is used to make consistent memory allocations.
  519. config CONSISTENT_START
  520. hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
  521. default "0xfd000000" if (NOT_COHERENT_CACHE && 8xx)
  522. default "0xff100000" if NOT_COHERENT_CACHE
  523. config CONSISTENT_SIZE_BOOL
  524. bool "Set custom consistent memory pool size"
  525. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  526. help
  527. This option allows you to set the size of the
  528. consistent memory pool. This pool of virtual memory
  529. is used to make consistent memory allocations.
  530. config CONSISTENT_SIZE
  531. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  532. default "0x00200000" if NOT_COHERENT_CACHE
  533. config BOOT_LOAD_BOOL
  534. bool "Set the boot link/load address"
  535. depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
  536. help
  537. This option allows you to set the initial load address of the zImage
  538. or zImage.initrd file. This can be useful if you are on a board
  539. which has a small amount of memory.
  540. Say N here unless you know what you are doing.
  541. config BOOT_LOAD
  542. hex "Link/load address for booting" if BOOT_LOAD_BOOL
  543. default "0x00400000" if 40x || 8xx || 8260
  544. default "0x01000000" if 44x
  545. default "0x00800000"
  546. config PIN_TLB
  547. bool "Pinned Kernel TLBs (860 ONLY)"
  548. depends on ADVANCED_OPTIONS && 8xx
  549. endmenu
  550. if PPC64
  551. config KERNEL_START
  552. hex
  553. default "0xc000000000000000"
  554. endif
  555. source "net/Kconfig"
  556. source "drivers/Kconfig"
  557. source "fs/Kconfig"
  558. # XXX source "arch/ppc/8xx_io/Kconfig"
  559. # XXX source "arch/ppc/8260_io/Kconfig"
  560. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  561. source "lib/Kconfig"
  562. source "kernel/Kconfig.instrumentation"
  563. source "arch/powerpc/Kconfig.debug"
  564. source "security/Kconfig"
  565. config KEYS_COMPAT
  566. bool
  567. depends on COMPAT && KEYS
  568. default y
  569. source "crypto/Kconfig"
  570. config PPC_CLOCK
  571. bool
  572. default n
  573. config PPC_LIB_RHEAP
  574. bool