Kconfig 16 KB

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