Kconfig 17 KB

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