Kconfig 16 KB

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