Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185
  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. config PPC64
  6. bool "64-bit kernel"
  7. default n
  8. help
  9. This option selects whether a 32-bit or a 64-bit kernel
  10. will be built.
  11. config PPC32
  12. bool
  13. default y if !PPC64
  14. config 64BIT
  15. bool
  16. default y if PPC64
  17. config PPC_MERGE
  18. def_bool y
  19. config MMU
  20. bool
  21. default y
  22. config GENERIC_HARDIRQS
  23. bool
  24. default y
  25. config IRQ_PER_CPU
  26. bool
  27. default y
  28. config RWSEM_GENERIC_SPINLOCK
  29. bool
  30. config RWSEM_XCHGADD_ALGORITHM
  31. bool
  32. default y
  33. config GENERIC_HWEIGHT
  34. bool
  35. default y
  36. config GENERIC_CALIBRATE_DELAY
  37. bool
  38. default y
  39. config GENERIC_FIND_NEXT_BIT
  40. bool
  41. default y
  42. config PPC
  43. bool
  44. default y
  45. config EARLY_PRINTK
  46. bool
  47. default y
  48. config COMPAT
  49. bool
  50. default y if PPC64
  51. config SYSVIPC_COMPAT
  52. bool
  53. depends on COMPAT && SYSVIPC
  54. default y
  55. # All PPC32s use generic nvram driver through ppc_md
  56. config GENERIC_NVRAM
  57. bool
  58. default y if PPC32
  59. config SCHED_NO_NO_OMIT_FRAME_POINTER
  60. bool
  61. default y
  62. config ARCH_MAY_HAVE_PC_FDC
  63. bool
  64. default y
  65. config PPC_OF
  66. def_bool y
  67. config PPC_UDBG_16550
  68. bool
  69. default n
  70. config GENERIC_TBSYNC
  71. bool
  72. default y if PPC32 && SMP
  73. default n
  74. config AUDIT_ARCH
  75. bool
  76. default y
  77. config DEFAULT_UIMAGE
  78. bool
  79. help
  80. Used to allow a board to specify it wants a uImage built by default
  81. default n
  82. menu "Processor support"
  83. choice
  84. prompt "Processor Type"
  85. depends on PPC32
  86. default 6xx
  87. config CLASSIC32
  88. bool "52xx/6xx/7xx/74xx"
  89. select PPC_FPU
  90. select 6xx
  91. help
  92. There are four families of PowerPC chips supported. The more common
  93. types (601, 603, 604, 740, 750, 7400), the Motorola embedded
  94. versions (821, 823, 850, 855, 860, 52xx, 82xx, 83xx), the AMCC
  95. embedded versions (403 and 405) and the high end 64 bit Power
  96. processors (POWER 3, POWER4, and IBM PPC970 also known as G5).
  97. This option is the catch-all for 6xx types, including some of the
  98. embedded versions. Unless there is see an option for the specific
  99. chip family you are using, you want this option.
  100. You do not want this if you are building a kernel for a 64 bit
  101. IBM RS/6000 or an Apple G5, choose 6xx.
  102. If unsure, select this option
  103. Note that the kernel runs in 32-bit mode even on 64-bit chips.
  104. config PPC_82xx
  105. bool "Freescale 82xx"
  106. select 6xx
  107. select PPC_FPU
  108. config PPC_83xx
  109. bool "Freescale 83xx"
  110. select 6xx
  111. select FSL_SOC
  112. select 83xx
  113. select PPC_FPU
  114. config PPC_85xx
  115. bool "Freescale 85xx"
  116. select E500
  117. select FSL_SOC
  118. select 85xx
  119. config PPC_86xx
  120. bool "Freescale 86xx"
  121. select 6xx
  122. select FSL_SOC
  123. select PPC_FPU
  124. select ALTIVEC
  125. help
  126. The Freescale E600 SoCs have 74xx cores.
  127. config 40x
  128. bool "AMCC 40x"
  129. select PPC_DCR_NATIVE
  130. config 44x
  131. bool "AMCC 44x"
  132. select PPC_DCR_NATIVE
  133. config 8xx
  134. bool "Freescale 8xx"
  135. config E200
  136. bool "Freescale e200"
  137. endchoice
  138. config POWER4_ONLY
  139. bool "Optimize for POWER4"
  140. depends on PPC64
  141. default n
  142. ---help---
  143. Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
  144. The resulting binary will not work on POWER3 or RS64 processors
  145. when compiled with binutils 2.15 or later.
  146. config POWER3
  147. bool
  148. depends on PPC64
  149. default y if !POWER4_ONLY
  150. config POWER4
  151. depends on PPC64
  152. def_bool y
  153. config 6xx
  154. bool
  155. # this is temp to handle compat with arch=ppc
  156. config 83xx
  157. bool
  158. # this is temp to handle compat with arch=ppc
  159. config 85xx
  160. bool
  161. config E500
  162. bool
  163. config PPC_FPU
  164. bool
  165. default y if PPC64
  166. config PPC_DCR_NATIVE
  167. bool
  168. default n
  169. config PPC_DCR_MMIO
  170. bool
  171. default n
  172. config PPC_DCR
  173. bool
  174. depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  175. default y
  176. config PPC_OF_PLATFORM_PCI
  177. bool
  178. depends on PPC64 # not supported on 32 bits yet
  179. default n
  180. config BOOKE
  181. bool
  182. depends on E200 || E500
  183. default y
  184. config FSL_BOOKE
  185. bool
  186. depends on E200 || E500
  187. default y
  188. config PTE_64BIT
  189. bool
  190. depends on 44x || E500
  191. default y if 44x
  192. default y if E500 && PHYS_64BIT
  193. config PHYS_64BIT
  194. bool 'Large physical address support' if E500
  195. depends on 44x || E500
  196. select RESOURCES_64BIT
  197. default y if 44x
  198. ---help---
  199. This option enables kernel support for larger than 32-bit physical
  200. addresses. This features is not be available on all e500 cores.
  201. If in doubt, say N here.
  202. config ALTIVEC
  203. bool "AltiVec Support"
  204. depends on CLASSIC32 || POWER4
  205. ---help---
  206. This option enables kernel support for the Altivec extensions to the
  207. PowerPC processor. The kernel currently supports saving and restoring
  208. altivec registers, and turning on the 'altivec enable' bit so user
  209. processes can execute altivec instructions.
  210. This option is only usefully if you have a processor that supports
  211. altivec (G4, otherwise known as 74xx series), but does not have
  212. any affect on a non-altivec cpu (it does, however add code to the
  213. kernel).
  214. If in doubt, say Y here.
  215. config SPE
  216. bool "SPE Support"
  217. depends on E200 || E500
  218. default y
  219. ---help---
  220. This option enables kernel support for the Signal Processing
  221. Extensions (SPE) to the PowerPC processor. The kernel currently
  222. supports saving and restoring SPE registers, and turning on the
  223. 'spe enable' bit so user processes can execute SPE instructions.
  224. This option is only useful if you have a processor that supports
  225. SPE (e500, otherwise known as 85xx series), but does not have any
  226. effect on a non-spe cpu (it does, however add code to the kernel).
  227. If in doubt, say Y here.
  228. config PPC_STD_MMU
  229. bool
  230. depends on 6xx || POWER3 || POWER4 || PPC64
  231. default y
  232. config PPC_STD_MMU_32
  233. def_bool y
  234. depends on PPC_STD_MMU && PPC32
  235. config VIRT_CPU_ACCOUNTING
  236. bool "Deterministic task and CPU time accounting"
  237. depends on PPC64
  238. default y
  239. help
  240. Select this option to enable more accurate task and CPU time
  241. accounting. This is done by reading a CPU counter on each
  242. kernel entry and exit and on transitions within the kernel
  243. between system, softirq and hardirq state, so there is a
  244. small performance impact. This also enables accounting of
  245. stolen time on logically-partitioned systems running on
  246. IBM POWER5-based machines.
  247. If in doubt, say Y here.
  248. config SMP
  249. depends on PPC_STD_MMU
  250. bool "Symmetric multi-processing support"
  251. ---help---
  252. This enables support for systems with more than one CPU. If you have
  253. a system with only one CPU, say N. If you have a system with more
  254. than one CPU, say Y. Note that the kernel does not currently
  255. support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
  256. since they have inadequate hardware support for multiprocessor
  257. operation.
  258. If you say N here, the kernel will run on single and multiprocessor
  259. machines, but will use only one CPU of a multiprocessor machine. If
  260. you say Y here, the kernel will run on single-processor machines.
  261. On a single-processor machine, the kernel will run faster if you say
  262. N here.
  263. If you don't know what to do here, say N.
  264. config NR_CPUS
  265. int "Maximum number of CPUs (2-128)"
  266. range 2 128
  267. depends on SMP
  268. default "32" if PPC64
  269. default "4"
  270. config NOT_COHERENT_CACHE
  271. bool
  272. depends on 4xx || 8xx || E200
  273. default y
  274. endmenu
  275. source "init/Kconfig"
  276. menu "Platform support"
  277. depends on PPC64 || CLASSIC32
  278. choice
  279. prompt "Machine type"
  280. default PPC_MULTIPLATFORM
  281. config PPC_MULTIPLATFORM
  282. bool "Generic desktop/server/laptop"
  283. help
  284. Select this option if configuring for an IBM pSeries or
  285. RS/6000 machine, an Apple machine, or a PReP, CHRP,
  286. Maple or Cell-based machine.
  287. config EMBEDDED6xx
  288. bool "Embedded 6xx/7xx/7xxx-based board"
  289. depends on PPC32 && (BROKEN||BROKEN_ON_SMP)
  290. config APUS
  291. bool "Amiga-APUS"
  292. depends on PPC32 && BROKEN
  293. help
  294. Select APUS if configuring for a PowerUP Amiga.
  295. More information is available at:
  296. <http://linux-apus.sourceforge.net/>.
  297. endchoice
  298. config QUICC_ENGINE
  299. bool
  300. depends on PPC_MPC836x || PPC_MPC832x
  301. default y
  302. help
  303. The QUICC Engine (QE) is a new generation of communications
  304. coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
  305. Selecting this option means that you wish to build a kernel
  306. for a machine with a QE coprocessor.
  307. config PPC_PSERIES
  308. depends on PPC_MULTIPLATFORM && PPC64
  309. bool "IBM pSeries & new (POWER5-based) iSeries"
  310. select MPIC
  311. select PPC_I8259
  312. select PPC_RTAS
  313. select RTAS_ERROR_LOGGING
  314. select PPC_UDBG_16550
  315. select PPC_NATIVE
  316. default y
  317. config PPC_ISERIES
  318. bool "IBM Legacy iSeries"
  319. depends on PPC_MULTIPLATFORM && PPC64
  320. select PPC_INDIRECT_IO
  321. config PPC_CHRP
  322. bool "Common Hardware Reference Platform (CHRP) based machines"
  323. depends on PPC_MULTIPLATFORM && PPC32
  324. select MPIC
  325. select PPC_I8259
  326. select PPC_INDIRECT_PCI
  327. select PPC_RTAS
  328. select PPC_MPC106
  329. select PPC_UDBG_16550
  330. select PPC_NATIVE
  331. default y
  332. config PPC_MPC52xx
  333. bool
  334. default n
  335. config PPC_EFIKA
  336. bool "bPlan Efika 5k2. MPC5200B based computer"
  337. depends on PPC_MULTIPLATFORM && PPC32
  338. select PPC_RTAS
  339. select RTAS_PROC
  340. select PPC_MPC52xx
  341. select PPC_NATIVE
  342. default y
  343. config PPC_LITE5200
  344. bool "Freescale Lite5200 Eval Board"
  345. depends on PPC_MULTIPLATFORM && PPC32
  346. select PPC_MPC52xx
  347. default n
  348. config PPC_PMAC
  349. bool "Apple PowerMac based machines"
  350. depends on PPC_MULTIPLATFORM
  351. select MPIC
  352. select PPC_INDIRECT_PCI if PPC32
  353. select PPC_MPC106 if PPC32
  354. select PPC_NATIVE
  355. default y
  356. config PPC_PMAC64
  357. bool
  358. depends on PPC_PMAC && POWER4
  359. select MPIC
  360. select U3_DART
  361. select MPIC_BROKEN_U3
  362. select GENERIC_TBSYNC
  363. select PPC_970_NAP
  364. default y
  365. config PPC_PREP
  366. bool "PowerPC Reference Platform (PReP) based machines"
  367. depends on PPC_MULTIPLATFORM && PPC32 && BROKEN
  368. select MPIC
  369. select PPC_I8259
  370. select PPC_INDIRECT_PCI
  371. select PPC_UDBG_16550
  372. select PPC_NATIVE
  373. default y
  374. config PPC_MAPLE
  375. depends on PPC_MULTIPLATFORM && PPC64
  376. bool "Maple 970FX Evaluation Board"
  377. select MPIC
  378. select U3_DART
  379. select MPIC_BROKEN_U3
  380. select GENERIC_TBSYNC
  381. select PPC_UDBG_16550
  382. select PPC_970_NAP
  383. select PPC_NATIVE
  384. default n
  385. help
  386. This option enables support for the Maple 970FX Evaluation Board.
  387. For more information, refer to <http://www.970eval.com>
  388. config PPC_PASEMI
  389. depends on PPC_MULTIPLATFORM && PPC64
  390. bool "PA Semi SoC-based platforms"
  391. default n
  392. select MPIC
  393. select PPC_UDBG_16550
  394. select GENERIC_TBSYNC
  395. select PPC_NATIVE
  396. help
  397. This option enables support for PA Semi's PWRficient line
  398. of SoC processors, including PA6T-1682M
  399. config PPC_CELL
  400. bool
  401. default n
  402. config PPC_CELL_NATIVE
  403. bool
  404. select PPC_CELL
  405. select PPC_DCR_MMIO
  406. select PPC_OF_PLATFORM_PCI
  407. select PPC_INDIRECT_IO
  408. select PPC_NATIVE
  409. select MPIC
  410. default n
  411. config PPC_IBM_CELL_BLADE
  412. bool "IBM Cell Blade"
  413. depends on PPC_MULTIPLATFORM && PPC64
  414. select PPC_CELL_NATIVE
  415. select PPC_RTAS
  416. select MMIO_NVRAM
  417. select PPC_UDBG_16550
  418. select UDBG_RTAS_CONSOLE
  419. config PPC_PS3
  420. bool "Sony PS3"
  421. depends on PPC_MULTIPLATFORM && PPC64
  422. select PPC_CELL
  423. help
  424. This option enables support for the Sony PS3 game console
  425. and other platforms using the PS3 hypervisor.
  426. config PPC_NATIVE
  427. bool
  428. depends on PPC_MULTIPLATFORM
  429. help
  430. Support for running natively on the hardware, i.e. without
  431. a hypervisor. This option is not user-selectable but should
  432. be selected by all platforms that need it.
  433. config UDBG_RTAS_CONSOLE
  434. bool "RTAS based debug console"
  435. depends on PPC_RTAS
  436. default n
  437. config XICS
  438. depends on PPC_PSERIES
  439. bool
  440. default y
  441. config U3_DART
  442. bool
  443. depends on PPC_MULTIPLATFORM && PPC64
  444. default n
  445. config PPC_RTAS
  446. bool
  447. default n
  448. config RTAS_ERROR_LOGGING
  449. bool
  450. depends on PPC_RTAS
  451. default n
  452. config RTAS_PROC
  453. bool "Proc interface to RTAS"
  454. depends on PPC_RTAS
  455. default y
  456. config RTAS_FLASH
  457. tristate "Firmware flash interface"
  458. depends on PPC64 && RTAS_PROC
  459. config MMIO_NVRAM
  460. bool
  461. default n
  462. config MPIC_BROKEN_U3
  463. bool
  464. depends on PPC_MAPLE
  465. default y
  466. config IBMVIO
  467. depends on PPC_PSERIES || PPC_ISERIES
  468. bool
  469. default y
  470. config IBMEBUS
  471. depends on PPC_PSERIES
  472. bool "Support for GX bus based adapters"
  473. help
  474. Bus device driver for GX bus based adapters.
  475. config PPC_MPC106
  476. bool
  477. default n
  478. config PPC_970_NAP
  479. bool
  480. default n
  481. config PPC_INDIRECT_IO
  482. bool
  483. select GENERIC_IOMAP
  484. default n
  485. config GENERIC_IOMAP
  486. bool
  487. default n
  488. source "drivers/cpufreq/Kconfig"
  489. config CPU_FREQ_PMAC
  490. bool "Support for Apple PowerBooks"
  491. depends on CPU_FREQ && ADB_PMU && PPC32
  492. select CPU_FREQ_TABLE
  493. help
  494. This adds support for frequency switching on Apple PowerBooks,
  495. this currently includes some models of iBook & Titanium
  496. PowerBook.
  497. config CPU_FREQ_PMAC64
  498. bool "Support for some Apple G5s"
  499. depends on CPU_FREQ && PPC64
  500. select CPU_FREQ_TABLE
  501. help
  502. This adds support for frequency switching on Apple iMac G5,
  503. and some of the more recent desktop G5 machines as well.
  504. config PPC601_SYNC_FIX
  505. bool "Workarounds for PPC601 bugs"
  506. depends on 6xx && (PPC_PREP || PPC_PMAC)
  507. help
  508. Some versions of the PPC601 (the first PowerPC chip) have bugs which
  509. mean that extra synchronization instructions are required near
  510. certain instructions, typically those that make major changes to the
  511. CPU state. These extra instructions reduce performance slightly.
  512. If you say N here, these extra instructions will not be included,
  513. resulting in a kernel which will run faster but may not run at all
  514. on some systems with the PPC601 chip.
  515. If in doubt, say Y here.
  516. config TAU
  517. bool "On-chip CPU temperature sensor support"
  518. depends on 6xx
  519. help
  520. G3 and G4 processors have an on-chip temperature sensor called the
  521. 'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
  522. temperature within 2-4 degrees Celsius. This option shows the current
  523. on-die temperature in /proc/cpuinfo if the cpu supports it.
  524. Unfortunately, on some chip revisions, this sensor is very inaccurate
  525. and in many cases, does not work at all, so don't assume the cpu
  526. temp is actually what /proc/cpuinfo says it is.
  527. config TAU_INT
  528. bool "Interrupt driven TAU driver (DANGEROUS)"
  529. depends on TAU
  530. ---help---
  531. The TAU supports an interrupt driven mode which causes an interrupt
  532. whenever the temperature goes out of range. This is the fastest way
  533. to get notified the temp has exceeded a range. With this option off,
  534. a timer is used to re-check the temperature periodically.
  535. However, on some cpus it appears that the TAU interrupt hardware
  536. is buggy and can cause a situation which would lead unexplained hard
  537. lockups.
  538. Unless you are extending the TAU driver, or enjoy kernel/hardware
  539. debugging, leave this option off.
  540. config TAU_AVERAGE
  541. bool "Average high and low temp"
  542. depends on TAU
  543. ---help---
  544. The TAU hardware can compare the temperature to an upper and lower
  545. bound. The default behavior is to show both the upper and lower
  546. bound in /proc/cpuinfo. If the range is large, the temperature is
  547. either changing a lot, or the TAU hardware is broken (likely on some
  548. G4's). If the range is small (around 4 degrees), the temperature is
  549. relatively stable. If you say Y here, a single temperature value,
  550. halfway between the upper and lower bounds, will be reported in
  551. /proc/cpuinfo.
  552. If in doubt, say N here.
  553. endmenu
  554. source arch/powerpc/platforms/embedded6xx/Kconfig
  555. source arch/powerpc/platforms/4xx/Kconfig
  556. source arch/powerpc/platforms/82xx/Kconfig
  557. source arch/powerpc/platforms/83xx/Kconfig
  558. source arch/powerpc/platforms/85xx/Kconfig
  559. source arch/powerpc/platforms/86xx/Kconfig
  560. source arch/powerpc/platforms/8xx/Kconfig
  561. source arch/powerpc/platforms/cell/Kconfig
  562. source arch/powerpc/platforms/ps3/Kconfig
  563. menu "Kernel options"
  564. config HIGHMEM
  565. bool "High memory support"
  566. depends on PPC32
  567. source kernel/Kconfig.hz
  568. source kernel/Kconfig.preempt
  569. source "fs/Kconfig.binfmt"
  570. # We optimistically allocate largepages from the VM, so make the limit
  571. # large enough (16MB). This badly named config option is actually
  572. # max order + 1
  573. config FORCE_MAX_ZONEORDER
  574. int
  575. depends on PPC64
  576. default "9" if PPC_64K_PAGES
  577. default "13"
  578. config MATH_EMULATION
  579. bool "Math emulation"
  580. depends on 4xx || 8xx || E200 || PPC_83xx || E500
  581. ---help---
  582. Some PowerPC chips designed for embedded applications do not have
  583. a floating-point unit and therefore do not implement the
  584. floating-point instructions in the PowerPC instruction set. If you
  585. say Y here, the kernel will include code to emulate a floating-point
  586. unit, which will allow programs that use floating-point
  587. instructions to run.
  588. config IOMMU_VMERGE
  589. bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
  590. depends on EXPERIMENTAL && PPC64
  591. default n
  592. help
  593. Cause IO segments sent to a device for DMA to be merged virtually
  594. by the IOMMU when they happen to have been allocated contiguously.
  595. This doesn't add pressure to the IOMMU allocator. However, some
  596. drivers don't support getting large merged segments coming back
  597. from *_map_sg(). Say Y if you know the drivers you are using are
  598. properly handling this case.
  599. config HOTPLUG_CPU
  600. bool "Support for enabling/disabling CPUs"
  601. depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
  602. ---help---
  603. Say Y here to be able to disable and re-enable individual
  604. CPUs at runtime on SMP machines.
  605. Say N if you are unsure.
  606. config ARCH_ENABLE_MEMORY_HOTPLUG
  607. def_bool y
  608. config KEXEC
  609. bool "kexec system call (EXPERIMENTAL)"
  610. depends on PPC_MULTIPLATFORM && EXPERIMENTAL
  611. help
  612. kexec is a system call that implements the ability to shutdown your
  613. current kernel, and to start another kernel. It is like a reboot
  614. but it is independent of the system firmware. And like a reboot
  615. you can start any kernel with it, not just Linux.
  616. The name comes from the similarity to the exec system call.
  617. It is an ongoing process to be certain the hardware in a machine
  618. is properly shutdown, so do not be surprised if this code does not
  619. initially work for you. It may help to enable device hotplugging
  620. support. As of this writing the exact hardware interface is
  621. strongly in flux, so no good recommendation can be made.
  622. config CRASH_DUMP
  623. bool "Build a kdump crash kernel (EXPERIMENTAL)"
  624. depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
  625. help
  626. Build a kernel suitable for use as a kdump capture kernel.
  627. The kernel will be linked at a different address than normal, and
  628. so can only be used for Kdump.
  629. Don't change this unless you know what you are doing.
  630. config EMBEDDEDBOOT
  631. bool
  632. depends on 8xx || 8260
  633. default y
  634. config PC_KEYBOARD
  635. bool "PC PS/2 style Keyboard"
  636. depends on 4xx || CPM2
  637. config PPCBUG_NVRAM
  638. bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
  639. default y if PPC_PREP
  640. config IRQ_ALL_CPUS
  641. bool "Distribute interrupts on all CPUs by default"
  642. depends on SMP && !MV64360
  643. help
  644. This option gives the kernel permission to distribute IRQs across
  645. multiple CPUs. Saying N here will route all IRQs to the first
  646. CPU. Generally saying Y is safe, although some problems have been
  647. reported with SMP Power Macintoshes with this option enabled.
  648. source "arch/powerpc/platforms/pseries/Kconfig"
  649. config NUMA
  650. bool "NUMA support"
  651. depends on PPC64
  652. default y if SMP && PPC_PSERIES
  653. config NODES_SHIFT
  654. int
  655. default "4"
  656. depends on NEED_MULTIPLE_NODES
  657. config ARCH_SELECT_MEMORY_MODEL
  658. def_bool y
  659. depends on PPC64
  660. config ARCH_FLATMEM_ENABLE
  661. def_bool y
  662. depends on (PPC64 && !NUMA) || PPC32
  663. config ARCH_SPARSEMEM_ENABLE
  664. def_bool y
  665. depends on PPC64
  666. config ARCH_SPARSEMEM_DEFAULT
  667. def_bool y
  668. depends on (SMP && PPC_PSERIES) || PPC_CELL
  669. config ARCH_POPULATES_NODE_MAP
  670. def_bool y
  671. source "mm/Kconfig"
  672. config ARCH_MEMORY_PROBE
  673. def_bool y
  674. depends on MEMORY_HOTPLUG
  675. # Some NUMA nodes have memory ranges that span
  676. # other nodes. Even though a pfn is valid and
  677. # between a node's start and end pfns, it may not
  678. # reside on that node. See memmap_init_zone()
  679. # for details.
  680. config NODES_SPAN_OTHER_NODES
  681. def_bool y
  682. depends on NEED_MULTIPLE_NODES
  683. config PPC_64K_PAGES
  684. bool "64k page size"
  685. depends on PPC64
  686. help
  687. This option changes the kernel logical page size to 64k. On machines
  688. without processor support for 64k pages, the kernel will simulate
  689. them by loading each individual 4k page on demand transparently,
  690. while on hardware with such support, it will be used to map
  691. normal application pages.
  692. config SCHED_SMT
  693. bool "SMT (Hyperthreading) scheduler support"
  694. depends on PPC64 && SMP
  695. help
  696. SMT scheduler support improves the CPU scheduler's decision making
  697. when dealing with POWER5 cpus at a cost of slightly increased
  698. overhead in some places. If unsure say N here.
  699. config PROC_DEVICETREE
  700. bool "Support for device tree in /proc"
  701. depends on PROC_FS
  702. help
  703. This option adds a device-tree directory under /proc which contains
  704. an image of the device tree that the kernel copies from Open
  705. Firmware or other boot firmware. If unsure, say Y here.
  706. source "arch/powerpc/platforms/prep/Kconfig"
  707. config CMDLINE_BOOL
  708. bool "Default bootloader kernel arguments"
  709. config CMDLINE
  710. string "Initial kernel command string"
  711. depends on CMDLINE_BOOL
  712. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  713. help
  714. On some platforms, there is currently no way for the boot loader to
  715. pass arguments to the kernel. For these platforms, you can supply
  716. some command-line options at build time by entering them here. In
  717. most cases you will need to specify the root device here.
  718. if !44x || BROKEN
  719. source kernel/power/Kconfig
  720. endif
  721. config SECCOMP
  722. bool "Enable seccomp to safely compute untrusted bytecode"
  723. depends on PROC_FS
  724. default y
  725. help
  726. This kernel feature is useful for number crunching applications
  727. that may need to compute untrusted bytecode during their
  728. execution. By using pipes or other transports made available to
  729. the process as file descriptors supporting the read/write
  730. syscalls, it's possible to isolate those applications in
  731. their own address space using seccomp. Once seccomp is
  732. enabled via /proc/<pid>/seccomp, it cannot be disabled
  733. and the task is only allowed to execute a few safe syscalls
  734. defined by each seccomp mode.
  735. If unsure, say Y. Only embedded should say N here.
  736. endmenu
  737. config ISA_DMA_API
  738. bool
  739. default y
  740. menu "Bus options"
  741. config ISA
  742. bool "Support for ISA-bus hardware"
  743. depends on PPC_PREP || PPC_CHRP
  744. select PPC_I8259
  745. help
  746. Find out whether you have ISA slots on your motherboard. ISA is the
  747. name of a bus system, i.e. the way the CPU talks to the other stuff
  748. inside your box. If you have an Apple machine, say N here; if you
  749. have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
  750. you have an embedded board, consult your board documentation.
  751. config GENERIC_ISA_DMA
  752. bool
  753. depends on PPC64 || POWER4 || 6xx && !CPM2
  754. default y
  755. config MPIC
  756. bool
  757. default n
  758. config MPIC_WEIRD
  759. bool
  760. default n
  761. config PPC_I8259
  762. bool
  763. default n
  764. config PPC_INDIRECT_PCI
  765. bool
  766. depends on PCI
  767. default y if 40x || 44x
  768. default n
  769. config EISA
  770. bool
  771. config SBUS
  772. bool
  773. config FSL_SOC
  774. bool
  775. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  776. config MCA
  777. bool
  778. config PCI
  779. bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
  780. || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2 || PPC_PS3
  781. default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
  782. && !PPC_85xx && !PPC_86xx
  783. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
  784. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  785. help
  786. Find out whether your system includes a PCI bus. PCI is the name of
  787. a bus system, i.e. the way the CPU talks to the other stuff inside
  788. your box. If you say Y here, the kernel will include drivers and
  789. infrastructure code to support PCI bus devices.
  790. config PCI_DOMAINS
  791. bool
  792. default PCI
  793. config PCI_QSPAN
  794. bool "QSpan PCI"
  795. depends on !4xx && !CPM2 && 8xx
  796. select PPC_I8259
  797. help
  798. Say Y here if you have a system based on a Motorola 8xx-series
  799. embedded processor with a QSPAN PCI interface, otherwise say N.
  800. config PCI_8260
  801. bool
  802. depends on PCI && 8260
  803. select PPC_INDIRECT_PCI
  804. default y
  805. config 8260_PCI9
  806. bool "Enable workaround for MPC826x erratum PCI 9"
  807. depends on PCI_8260 && !ADS8272
  808. default y
  809. choice
  810. prompt "IDMA channel for PCI 9 workaround"
  811. depends on 8260_PCI9
  812. config 8260_PCI9_IDMA1
  813. bool "IDMA1"
  814. config 8260_PCI9_IDMA2
  815. bool "IDMA2"
  816. config 8260_PCI9_IDMA3
  817. bool "IDMA3"
  818. config 8260_PCI9_IDMA4
  819. bool "IDMA4"
  820. endchoice
  821. source "drivers/pci/pcie/Kconfig"
  822. source "drivers/pci/Kconfig"
  823. source "drivers/pcmcia/Kconfig"
  824. source "drivers/pci/hotplug/Kconfig"
  825. endmenu
  826. menu "Advanced setup"
  827. depends on PPC32
  828. config ADVANCED_OPTIONS
  829. bool "Prompt for advanced kernel configuration options"
  830. help
  831. This option will enable prompting for a variety of advanced kernel
  832. configuration options. These options can cause the kernel to not
  833. work if they are set incorrectly, but can be used to optimize certain
  834. aspects of kernel memory management.
  835. Unless you know what you are doing, say N here.
  836. comment "Default settings for advanced configuration options are used"
  837. depends on !ADVANCED_OPTIONS
  838. config HIGHMEM_START_BOOL
  839. bool "Set high memory pool address"
  840. depends on ADVANCED_OPTIONS && HIGHMEM
  841. help
  842. This option allows you to set the base address of the kernel virtual
  843. area used to map high memory pages. This can be useful in
  844. optimizing the layout of kernel virtual memory.
  845. Say N here unless you know what you are doing.
  846. config HIGHMEM_START
  847. hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
  848. default "0xfe000000"
  849. config LOWMEM_SIZE_BOOL
  850. bool "Set maximum low memory"
  851. depends on ADVANCED_OPTIONS
  852. help
  853. This option allows you to set the maximum amount of memory which
  854. will be used as "low memory", that is, memory which the kernel can
  855. access directly, without having to set up a kernel virtual mapping.
  856. This can be useful in optimizing the layout of kernel virtual
  857. memory.
  858. Say N here unless you know what you are doing.
  859. config LOWMEM_SIZE
  860. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  861. default "0x30000000"
  862. config KERNEL_START_BOOL
  863. bool "Set custom kernel base address"
  864. depends on ADVANCED_OPTIONS
  865. help
  866. This option allows you to set the kernel virtual address at which
  867. the kernel will map low memory (the kernel image will be linked at
  868. this address). This can be useful in optimizing the virtual memory
  869. layout of the system.
  870. Say N here unless you know what you are doing.
  871. config KERNEL_START
  872. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  873. default "0xc0000000"
  874. config TASK_SIZE_BOOL
  875. bool "Set custom user task size"
  876. depends on ADVANCED_OPTIONS
  877. help
  878. This option allows you to set the amount of virtual address space
  879. allocated to user tasks. This can be useful in optimizing the
  880. virtual memory layout of the system.
  881. Say N here unless you know what you are doing.
  882. config TASK_SIZE
  883. hex "Size of user task space" if TASK_SIZE_BOOL
  884. default "0x80000000"
  885. config CONSISTENT_START_BOOL
  886. bool "Set custom consistent memory pool address"
  887. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  888. help
  889. This option allows you to set the base virtual address
  890. of the consistent memory pool. This pool of virtual
  891. memory is used to make consistent memory allocations.
  892. config CONSISTENT_START
  893. hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
  894. default "0xff100000" if NOT_COHERENT_CACHE
  895. config CONSISTENT_SIZE_BOOL
  896. bool "Set custom consistent memory pool size"
  897. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  898. help
  899. This option allows you to set the size of the
  900. consistent memory pool. This pool of virtual memory
  901. is used to make consistent memory allocations.
  902. config CONSISTENT_SIZE
  903. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  904. default "0x00200000" if NOT_COHERENT_CACHE
  905. config BOOT_LOAD_BOOL
  906. bool "Set the boot link/load address"
  907. depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
  908. help
  909. This option allows you to set the initial load address of the zImage
  910. or zImage.initrd file. This can be useful if you are on a board
  911. which has a small amount of memory.
  912. Say N here unless you know what you are doing.
  913. config BOOT_LOAD
  914. hex "Link/load address for booting" if BOOT_LOAD_BOOL
  915. default "0x00400000" if 40x || 8xx || 8260
  916. default "0x01000000" if 44x
  917. default "0x00800000"
  918. config PIN_TLB
  919. bool "Pinned Kernel TLBs (860 ONLY)"
  920. depends on ADVANCED_OPTIONS && 8xx
  921. endmenu
  922. if PPC64
  923. config KERNEL_START
  924. hex
  925. default "0xc000000000000000"
  926. endif
  927. source "net/Kconfig"
  928. source "drivers/Kconfig"
  929. source "fs/Kconfig"
  930. # XXX source "arch/ppc/8xx_io/Kconfig"
  931. # XXX source "arch/ppc/8260_io/Kconfig"
  932. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  933. source "arch/powerpc/platforms/iseries/Kconfig"
  934. source "lib/Kconfig"
  935. menu "Instrumentation Support"
  936. depends on EXPERIMENTAL
  937. source "arch/powerpc/oprofile/Kconfig"
  938. config KPROBES
  939. bool "Kprobes (EXPERIMENTAL)"
  940. depends on PPC64 && KALLSYMS && EXPERIMENTAL && MODULES
  941. help
  942. Kprobes allows you to trap at almost any kernel address and
  943. execute a callback function. register_kprobe() establishes
  944. a probepoint and specifies the callback. Kprobes is useful
  945. for kernel debugging, non-intrusive instrumentation and testing.
  946. If in doubt, say "N".
  947. endmenu
  948. source "arch/powerpc/Kconfig.debug"
  949. source "security/Kconfig"
  950. config KEYS_COMPAT
  951. bool
  952. depends on COMPAT && KEYS
  953. default y
  954. source "crypto/Kconfig"