Kconfig 16 KB

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