Kconfig 17 KB

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