Kconfig 16 KB

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