Kconfig 17 KB

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