Kconfig 17 KB

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