Kconfig 17 KB

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