Kconfig 16 KB

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