Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  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 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 EISA
  331. bool
  332. config SBUS
  333. bool
  334. config FSL_SOC
  335. bool
  336. config FSL_PCI
  337. bool
  338. select PPC_INDIRECT_PCI
  339. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  340. config MCA
  341. bool
  342. config PCI
  343. bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
  344. || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \
  345. || PPC_PS3
  346. default y if !40x && !CPM2 && !8xx && !PPC_83xx \
  347. && !PPC_85xx && !PPC_86xx
  348. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
  349. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  350. select ARCH_SUPPORTS_MSI
  351. help
  352. Find out whether your system includes a PCI bus. PCI is the name of
  353. a bus system, i.e. the way the CPU talks to the other stuff inside
  354. your box. If you say Y here, the kernel will include drivers and
  355. infrastructure code to support PCI bus devices.
  356. config PCI_DOMAINS
  357. def_bool PCI
  358. config PCI_SYSCALL
  359. def_bool PCI
  360. config PCI_QSPAN
  361. bool "QSpan PCI"
  362. depends on !4xx && !CPM2 && 8xx
  363. select PPC_I8259
  364. help
  365. Say Y here if you have a system based on a Motorola 8xx-series
  366. embedded processor with a QSPAN PCI interface, otherwise say N.
  367. config PCI_8260
  368. bool
  369. depends on PCI && 8260
  370. select PPC_INDIRECT_PCI
  371. default y
  372. config 8260_PCI9
  373. bool "Enable workaround for MPC826x erratum PCI 9"
  374. depends on PCI_8260 && !ADS8272
  375. default y
  376. choice
  377. prompt "IDMA channel for PCI 9 workaround"
  378. depends on 8260_PCI9
  379. config 8260_PCI9_IDMA1
  380. bool "IDMA1"
  381. config 8260_PCI9_IDMA2
  382. bool "IDMA2"
  383. config 8260_PCI9_IDMA3
  384. bool "IDMA3"
  385. config 8260_PCI9_IDMA4
  386. bool "IDMA4"
  387. endchoice
  388. source "drivers/pci/pcie/Kconfig"
  389. source "drivers/pci/Kconfig"
  390. source "drivers/pcmcia/Kconfig"
  391. source "drivers/pci/hotplug/Kconfig"
  392. endmenu
  393. menu "Advanced setup"
  394. depends on PPC32
  395. config ADVANCED_OPTIONS
  396. bool "Prompt for advanced kernel configuration options"
  397. help
  398. This option will enable prompting for a variety of advanced kernel
  399. configuration options. These options can cause the kernel to not
  400. work if they are set incorrectly, but can be used to optimize certain
  401. aspects of kernel memory management.
  402. Unless you know what you are doing, say N here.
  403. comment "Default settings for advanced configuration options are used"
  404. depends on !ADVANCED_OPTIONS
  405. config HIGHMEM_START_BOOL
  406. bool "Set high memory pool address"
  407. depends on ADVANCED_OPTIONS && HIGHMEM
  408. help
  409. This option allows you to set the base address of the kernel virtual
  410. area used to map high memory pages. This can be useful in
  411. optimizing the layout of kernel virtual memory.
  412. Say N here unless you know what you are doing.
  413. config HIGHMEM_START
  414. hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
  415. default "0xfe000000"
  416. config LOWMEM_SIZE_BOOL
  417. bool "Set maximum low memory"
  418. depends on ADVANCED_OPTIONS
  419. help
  420. This option allows you to set the maximum amount of memory which
  421. will be used as "low memory", that is, memory which the kernel can
  422. access directly, without having to set up a kernel virtual mapping.
  423. This can be useful in optimizing the layout of kernel virtual
  424. memory.
  425. Say N here unless you know what you are doing.
  426. config LOWMEM_SIZE
  427. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  428. default "0x30000000"
  429. config KERNEL_START_BOOL
  430. bool "Set custom kernel base address"
  431. depends on ADVANCED_OPTIONS
  432. help
  433. This option allows you to set the kernel virtual address at which
  434. the kernel will map low memory (the kernel image will be linked at
  435. this address). This can be useful in optimizing the virtual memory
  436. layout of the system.
  437. Say N here unless you know what you are doing.
  438. config KERNEL_START
  439. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  440. default "0xc0000000"
  441. config TASK_SIZE_BOOL
  442. bool "Set custom user task size"
  443. depends on ADVANCED_OPTIONS
  444. help
  445. This option allows you to set the amount of virtual address space
  446. allocated to user tasks. This can be useful in optimizing the
  447. virtual memory layout of the system.
  448. Say N here unless you know what you are doing.
  449. config TASK_SIZE
  450. hex "Size of user task space" if TASK_SIZE_BOOL
  451. default "0x80000000"
  452. config CONSISTENT_START_BOOL
  453. bool "Set custom consistent memory pool address"
  454. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  455. help
  456. This option allows you to set the base virtual address
  457. of the consistent memory pool. This pool of virtual
  458. memory is used to make consistent memory allocations.
  459. config CONSISTENT_START
  460. hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
  461. default "0xff100000" if NOT_COHERENT_CACHE
  462. config CONSISTENT_SIZE_BOOL
  463. bool "Set custom consistent memory pool size"
  464. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  465. help
  466. This option allows you to set the size of the
  467. consistent memory pool. This pool of virtual memory
  468. is used to make consistent memory allocations.
  469. config CONSISTENT_SIZE
  470. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  471. default "0x00200000" if NOT_COHERENT_CACHE
  472. config BOOT_LOAD_BOOL
  473. bool "Set the boot link/load address"
  474. depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
  475. help
  476. This option allows you to set the initial load address of the zImage
  477. or zImage.initrd file. This can be useful if you are on a board
  478. which has a small amount of memory.
  479. Say N here unless you know what you are doing.
  480. config BOOT_LOAD
  481. hex "Link/load address for booting" if BOOT_LOAD_BOOL
  482. default "0x00400000" if 40x || 8xx || 8260
  483. default "0x01000000" if 44x
  484. default "0x00800000"
  485. config PIN_TLB
  486. bool "Pinned Kernel TLBs (860 ONLY)"
  487. depends on ADVANCED_OPTIONS && 8xx
  488. endmenu
  489. if PPC64
  490. config KERNEL_START
  491. hex
  492. default "0xc000000000000000"
  493. endif
  494. source "net/Kconfig"
  495. source "drivers/Kconfig"
  496. source "fs/Kconfig"
  497. # XXX source "arch/ppc/8xx_io/Kconfig"
  498. # XXX source "arch/ppc/8260_io/Kconfig"
  499. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  500. source "lib/Kconfig"
  501. menu "Instrumentation Support"
  502. depends on EXPERIMENTAL
  503. source "arch/powerpc/oprofile/Kconfig"
  504. config KPROBES
  505. bool "Kprobes"
  506. depends on !BOOKE && !4xx && KALLSYMS && MODULES
  507. help
  508. Kprobes allows you to trap at almost any kernel address and
  509. execute a callback function. register_kprobe() establishes
  510. a probepoint and specifies the callback. Kprobes is useful
  511. for kernel debugging, non-intrusive instrumentation and testing.
  512. If in doubt, say "N".
  513. endmenu
  514. source "arch/powerpc/Kconfig.debug"
  515. source "security/Kconfig"
  516. config KEYS_COMPAT
  517. bool
  518. depends on COMPAT && KEYS
  519. default y
  520. source "crypto/Kconfig"