Kconfig 17 KB

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