Kconfig 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088
  1. source "arch/powerpc/platforms/Kconfig.cputype"
  2. config PPC32
  3. bool
  4. default y if !PPC64
  5. config 32BIT
  6. bool
  7. default y if PPC32
  8. config 64BIT
  9. bool
  10. default y if PPC64
  11. config WORD_SIZE
  12. int
  13. default 64 if PPC64
  14. default 32 if !PPC64
  15. config ARCH_PHYS_ADDR_T_64BIT
  16. def_bool PPC64 || PHYS_64BIT
  17. config ARCH_DMA_ADDR_T_64BIT
  18. def_bool ARCH_PHYS_ADDR_T_64BIT
  19. config MMU
  20. bool
  21. default y
  22. config HAVE_SETUP_PER_CPU_AREA
  23. def_bool PPC64
  24. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  25. def_bool PPC64
  26. config NR_IRQS
  27. int "Number of virtual interrupt numbers"
  28. range 32 32768
  29. default "512"
  30. help
  31. This defines the number of virtual interrupt numbers the kernel
  32. can manage. Virtual interrupt numbers are what you see in
  33. /proc/interrupts. If you configure your system to have too few,
  34. drivers will fail to load or worse - handle with care.
  35. config STACKTRACE_SUPPORT
  36. bool
  37. default y
  38. config HAVE_LATENCYTOP_SUPPORT
  39. def_bool y
  40. config TRACE_IRQFLAGS_SUPPORT
  41. bool
  42. default y
  43. config LOCKDEP_SUPPORT
  44. bool
  45. default y
  46. config RWSEM_GENERIC_SPINLOCK
  47. bool
  48. config RWSEM_XCHGADD_ALGORITHM
  49. bool
  50. default y
  51. config GENERIC_LOCKBREAK
  52. bool
  53. default y
  54. depends on SMP && PREEMPT
  55. config ARCH_HAS_ILOG2_U32
  56. bool
  57. default y
  58. config ARCH_HAS_ILOG2_U64
  59. bool
  60. default y if 64BIT
  61. config GENERIC_HWEIGHT
  62. bool
  63. default y
  64. config PPC
  65. bool
  66. default y
  67. select ARCH_MIGHT_HAVE_PC_PARPORT
  68. select ARCH_MIGHT_HAVE_PC_SERIO
  69. select BINFMT_ELF
  70. select ARCH_BINFMT_ELF_RANDOMIZE_PIE
  71. select OF
  72. select OF_EARLY_FLATTREE
  73. select OF_RESERVED_MEM
  74. select HAVE_FTRACE_MCOUNT_RECORD
  75. select HAVE_DYNAMIC_FTRACE
  76. select HAVE_FUNCTION_TRACER
  77. select HAVE_FUNCTION_GRAPH_TRACER
  78. select SYSCTL_EXCEPTION_TRACE
  79. select ARCH_WANT_OPTIONAL_GPIOLIB
  80. select VIRT_TO_BUS if !PPC64
  81. select HAVE_IDE
  82. select HAVE_IOREMAP_PROT
  83. select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_LITTLE_ENDIAN
  84. select HAVE_KPROBES
  85. select HAVE_ARCH_KGDB
  86. select HAVE_KRETPROBES
  87. select HAVE_ARCH_TRACEHOOK
  88. select HAVE_MEMBLOCK
  89. select HAVE_MEMBLOCK_NODE_MAP
  90. select HAVE_DMA_ATTRS
  91. select HAVE_DMA_API_DEBUG
  92. select HAVE_OPROFILE
  93. select HAVE_DEBUG_KMEMLEAK
  94. select ARCH_HAS_SG_CHAIN
  95. select GENERIC_ATOMIC64 if PPC32
  96. select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
  97. select HAVE_PERF_EVENTS
  98. select HAVE_REGS_AND_STACK_ACCESS_API
  99. select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S_64
  100. select ARCH_WANT_IPC_PARSE_VERSION
  101. select SPARSE_IRQ
  102. select IRQ_DOMAIN
  103. select GENERIC_IRQ_SHOW
  104. select GENERIC_IRQ_SHOW_LEVEL
  105. select IRQ_FORCED_THREADING
  106. select HAVE_RCU_TABLE_FREE if SMP
  107. select HAVE_SYSCALL_TRACEPOINTS
  108. select HAVE_BPF_JIT if PPC64
  109. select HAVE_ARCH_JUMP_LABEL
  110. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  111. select ARCH_HAS_GCOV_PROFILE_ALL
  112. select GENERIC_SMP_IDLE_THREAD
  113. select GENERIC_CMOS_UPDATE
  114. select GENERIC_TIME_VSYSCALL_OLD
  115. select GENERIC_CLOCKEVENTS
  116. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  117. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  118. select GENERIC_STRNCPY_FROM_USER
  119. select GENERIC_STRNLEN_USER
  120. select HAVE_MOD_ARCH_SPECIFIC
  121. select MODULES_USE_ELF_RELA
  122. select CLONE_BACKWARDS
  123. select ARCH_USE_BUILTIN_BSWAP
  124. select OLD_SIGSUSPEND
  125. select OLD_SIGACTION if PPC32
  126. select HAVE_DEBUG_STACKOVERFLOW
  127. select HAVE_IRQ_EXIT_ON_IRQ_STACK
  128. select ARCH_USE_CMPXCHG_LOCKREF if PPC64
  129. select HAVE_ARCH_AUDITSYSCALL
  130. select ARCH_SUPPORTS_ATOMIC_RMW
  131. select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN
  132. select NO_BOOTMEM
  133. select HAVE_GENERIC_RCU_GUP
  134. config GENERIC_CSUM
  135. def_bool CPU_LITTLE_ENDIAN
  136. config EARLY_PRINTK
  137. bool
  138. default y
  139. config PANIC_TIMEOUT
  140. int
  141. default 180
  142. config COMPAT
  143. bool
  144. default y if PPC64
  145. select COMPAT_BINFMT_ELF
  146. select ARCH_WANT_OLD_COMPAT_IPC
  147. select COMPAT_OLD_SIGACTION
  148. config SYSVIPC_COMPAT
  149. bool
  150. depends on COMPAT && SYSVIPC
  151. default y
  152. # All PPC32s use generic nvram driver through ppc_md
  153. config GENERIC_NVRAM
  154. bool
  155. default y if PPC32
  156. config SCHED_OMIT_FRAME_POINTER
  157. bool
  158. default y
  159. config ARCH_MAY_HAVE_PC_FDC
  160. bool
  161. default PCI
  162. config PPC_OF
  163. def_bool y
  164. config PPC_UDBG_16550
  165. bool
  166. default n
  167. config GENERIC_TBSYNC
  168. bool
  169. default y if PPC32 && SMP
  170. default n
  171. config AUDIT_ARCH
  172. bool
  173. default y
  174. config GENERIC_BUG
  175. bool
  176. default y
  177. depends on BUG
  178. config SYS_SUPPORTS_APM_EMULATION
  179. default y if PMAC_APM_EMU
  180. bool
  181. config EPAPR_BOOT
  182. bool
  183. help
  184. Used to allow a board to specify it wants an ePAPR compliant wrapper.
  185. default n
  186. config DEFAULT_UIMAGE
  187. bool
  188. help
  189. Used to allow a board to specify it wants a uImage built by default
  190. default n
  191. config ARCH_HIBERNATION_POSSIBLE
  192. bool
  193. default y
  194. config ARCH_SUSPEND_POSSIBLE
  195. def_bool y
  196. depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
  197. (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
  198. || 44x || 40x
  199. config PPC_DCR_NATIVE
  200. bool
  201. default n
  202. config PPC_DCR_MMIO
  203. bool
  204. default n
  205. config PPC_DCR
  206. bool
  207. depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  208. default y
  209. config PPC_OF_PLATFORM_PCI
  210. bool
  211. depends on PCI
  212. depends on PPC64 # not supported on 32 bits yet
  213. default n
  214. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  215. depends on PPC32 || PPC_STD_MMU_64
  216. def_bool y
  217. config ARCH_SUPPORTS_UPROBES
  218. def_bool y
  219. config PPC_ADV_DEBUG_REGS
  220. bool
  221. depends on 40x || BOOKE
  222. default y
  223. config PPC_ADV_DEBUG_IACS
  224. int
  225. depends on PPC_ADV_DEBUG_REGS
  226. default 4 if 44x
  227. default 2
  228. config PPC_ADV_DEBUG_DACS
  229. int
  230. depends on PPC_ADV_DEBUG_REGS
  231. default 2
  232. config PPC_ADV_DEBUG_DVCS
  233. int
  234. depends on PPC_ADV_DEBUG_REGS
  235. default 2 if 44x
  236. default 0
  237. config PPC_ADV_DEBUG_DAC_RANGE
  238. bool
  239. depends on PPC_ADV_DEBUG_REGS && 44x
  240. default y
  241. config PPC_EMULATE_SSTEP
  242. bool
  243. default y if KPROBES || UPROBES || XMON || HAVE_HW_BREAKPOINT
  244. config ZONE_DMA32
  245. bool
  246. default y if PPC64
  247. source "init/Kconfig"
  248. source "kernel/Kconfig.freezer"
  249. source "arch/powerpc/sysdev/Kconfig"
  250. source "arch/powerpc/platforms/Kconfig"
  251. menu "Kernel options"
  252. config HIGHMEM
  253. bool "High memory support"
  254. depends on PPC32
  255. source kernel/Kconfig.hz
  256. source kernel/Kconfig.preempt
  257. source "fs/Kconfig.binfmt"
  258. config HUGETLB_PAGE_SIZE_VARIABLE
  259. bool
  260. depends on HUGETLB_PAGE
  261. default y
  262. config MATH_EMULATION
  263. bool "Math emulation"
  264. depends on 4xx || 8xx || PPC_MPC832x || BOOKE
  265. ---help---
  266. Some PowerPC chips designed for embedded applications do not have
  267. a floating-point unit and therefore do not implement the
  268. floating-point instructions in the PowerPC instruction set. If you
  269. say Y here, the kernel will include code to emulate a floating-point
  270. unit, which will allow programs that use floating-point
  271. instructions to run.
  272. This is also useful to emulate missing (optional) instructions
  273. such as fsqrt on cores that do have an FPU but do not implement
  274. them (such as Freescale BookE).
  275. choice
  276. prompt "Math emulation options"
  277. default MATH_EMULATION_FULL
  278. depends on MATH_EMULATION
  279. config MATH_EMULATION_FULL
  280. bool "Emulate all the floating point instructions"
  281. ---help---
  282. Select this option will enable the kernel to support to emulate
  283. all the floating point instructions. If your SoC doesn't have
  284. a FPU, you should select this.
  285. config MATH_EMULATION_HW_UNIMPLEMENTED
  286. bool "Just emulate the FPU unimplemented instructions"
  287. ---help---
  288. Select this if you know there does have a hardware FPU on your
  289. SoC, but some floating point instructions are not implemented by that.
  290. endchoice
  291. config PPC_TRANSACTIONAL_MEM
  292. bool "Transactional Memory support for POWERPC"
  293. depends on PPC_BOOK3S_64
  294. depends on SMP
  295. select ALTIVEC
  296. select VSX
  297. default n
  298. ---help---
  299. Support user-mode Transactional Memory on POWERPC.
  300. config IOMMU_HELPER
  301. def_bool PPC64
  302. config SWIOTLB
  303. bool "SWIOTLB support"
  304. default n
  305. select IOMMU_HELPER
  306. ---help---
  307. Support for IO bounce buffering for systems without an IOMMU.
  308. This allows us to DMA to the full physical address space on
  309. platforms where the size of a physical address is larger
  310. than the bus address. Not all platforms support this.
  311. config HOTPLUG_CPU
  312. bool "Support for enabling/disabling CPUs"
  313. depends on SMP && (PPC_PSERIES || \
  314. PPC_PMAC || PPC_POWERNV || (PPC_85xx && !PPC_E500MC))
  315. ---help---
  316. Say Y here to be able to disable and re-enable individual
  317. CPUs at runtime on SMP machines.
  318. Say N if you are unsure.
  319. config ARCH_CPU_PROBE_RELEASE
  320. def_bool y
  321. depends on HOTPLUG_CPU
  322. config ARCH_ENABLE_MEMORY_HOTPLUG
  323. def_bool y
  324. config ARCH_HAS_WALK_MEMORY
  325. def_bool y
  326. config ARCH_ENABLE_MEMORY_HOTREMOVE
  327. def_bool y
  328. config PPC64_SUPPORTS_MEMORY_FAILURE
  329. bool "Add support for memory hwpoison"
  330. depends on PPC_BOOK3S_64
  331. default "y" if PPC_POWERNV
  332. select ARCH_SUPPORTS_MEMORY_FAILURE
  333. config KEXEC
  334. bool "kexec system call"
  335. depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP))
  336. help
  337. kexec is a system call that implements the ability to shutdown your
  338. current kernel, and to start another kernel. It is like a reboot
  339. but it is independent of the system firmware. And like a reboot
  340. you can start any kernel with it, not just Linux.
  341. The name comes from the similarity to the exec system call.
  342. It is an ongoing process to be certain the hardware in a machine
  343. is properly shutdown, so do not be surprised if this code does not
  344. initially work for you. As of this writing the exact hardware
  345. interface is strongly in flux, so no good recommendation can be
  346. made.
  347. config CRASH_DUMP
  348. bool "Build a kdump crash kernel"
  349. depends on PPC64 || 6xx || FSL_BOOKE || (44x && !SMP)
  350. select RELOCATABLE if (PPC64 && !COMPILE_TEST) || 44x || FSL_BOOKE
  351. help
  352. Build a kernel suitable for use as a kdump capture kernel.
  353. The same kernel binary can be used as production kernel and dump
  354. capture kernel.
  355. config FA_DUMP
  356. bool "Firmware-assisted dump"
  357. depends on PPC64 && PPC_RTAS && CRASH_DUMP && KEXEC
  358. help
  359. A robust mechanism to get reliable kernel crash dump with
  360. assistance from firmware. This approach does not use kexec,
  361. instead firmware assists in booting the kdump kernel
  362. while preserving memory contents. Firmware-assisted dump
  363. is meant to be a kdump replacement offering robustness and
  364. speed not possible without system firmware assistance.
  365. If unsure, say "N"
  366. config IRQ_ALL_CPUS
  367. bool "Distribute interrupts on all CPUs by default"
  368. depends on SMP
  369. help
  370. This option gives the kernel permission to distribute IRQs across
  371. multiple CPUs. Saying N here will route all IRQs to the first
  372. CPU. Generally saying Y is safe, although some problems have been
  373. reported with SMP Power Macintoshes with this option enabled.
  374. config NUMA
  375. bool "NUMA support"
  376. depends on PPC64
  377. default y if SMP && PPC_PSERIES
  378. config NODES_SHIFT
  379. int
  380. default "8" if PPC64
  381. default "4"
  382. depends on NEED_MULTIPLE_NODES
  383. config USE_PERCPU_NUMA_NODE_ID
  384. def_bool y
  385. depends on NUMA
  386. config HAVE_MEMORYLESS_NODES
  387. def_bool y
  388. depends on NUMA
  389. config ARCH_SELECT_MEMORY_MODEL
  390. def_bool y
  391. depends on PPC64
  392. config ARCH_FLATMEM_ENABLE
  393. def_bool y
  394. depends on (PPC64 && !NUMA) || PPC32
  395. config ARCH_SPARSEMEM_ENABLE
  396. def_bool y
  397. depends on PPC64
  398. select SPARSEMEM_VMEMMAP_ENABLE
  399. config ARCH_SPARSEMEM_DEFAULT
  400. def_bool y
  401. depends on (SMP && PPC_PSERIES) || PPC_PS3
  402. config SYS_SUPPORTS_HUGETLBFS
  403. bool
  404. source "mm/Kconfig"
  405. config ARCH_MEMORY_PROBE
  406. def_bool y
  407. depends on MEMORY_HOTPLUG
  408. # Some NUMA nodes have memory ranges that span
  409. # other nodes. Even though a pfn is valid and
  410. # between a node's start and end pfns, it may not
  411. # reside on that node. See memmap_init_zone()
  412. # for details.
  413. config NODES_SPAN_OTHER_NODES
  414. def_bool y
  415. depends on NEED_MULTIPLE_NODES
  416. config PPC_HAS_HASH_64K
  417. bool
  418. depends on PPC64
  419. default n
  420. config STDBINUTILS
  421. bool "Using standard binutils settings"
  422. depends on 44x
  423. default y
  424. help
  425. Turning this option off allows you to select 256KB PAGE_SIZE on 44x.
  426. Note, that kernel will be able to run only those applications,
  427. which had been compiled using binutils later than 2.17.50.0.3 with
  428. '-zmax-page-size' set to 256K (the default is 64K). Or, if using
  429. the older binutils, you can patch them with a trivial patch, which
  430. changes the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000.
  431. choice
  432. prompt "Page size"
  433. default PPC_4K_PAGES
  434. help
  435. Select the kernel logical page size. Increasing the page size
  436. will reduce software overhead at each page boundary, allow
  437. hardware prefetch mechanisms to be more effective, and allow
  438. larger dma transfers increasing IO efficiency and reducing
  439. overhead. However the utilization of memory will increase.
  440. For example, each cached file will using a multiple of the
  441. page size to hold its contents and the difference between the
  442. end of file and the end of page is wasted.
  443. Some dedicated systems, such as software raid serving with
  444. accelerated calculations, have shown significant increases.
  445. If you configure a 64 bit kernel for 64k pages but the
  446. processor does not support them, then the kernel will simulate
  447. them with 4k pages, loading them on demand, but with the
  448. reduced software overhead and larger internal fragmentation.
  449. For the 32 bit kernel, a large page option will not be offered
  450. unless it is supported by the configured processor.
  451. If unsure, choose 4K_PAGES.
  452. config PPC_4K_PAGES
  453. bool "4k page size"
  454. config PPC_16K_PAGES
  455. bool "16k page size" if 44x || PPC_8xx
  456. config PPC_64K_PAGES
  457. bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64
  458. depends on !PPC_FSL_BOOK3E
  459. select PPC_HAS_HASH_64K if PPC_STD_MMU_64
  460. config PPC_256K_PAGES
  461. bool "256k page size" if 44x
  462. depends on !STDBINUTILS
  463. help
  464. Make the page size 256k.
  465. As the ELF standard only requires alignment to support page
  466. sizes up to 64k, you will need to compile all of your user
  467. space applications with a non-standard binutils settings
  468. (see the STDBINUTILS description for details).
  469. Say N unless you know what you are doing.
  470. endchoice
  471. config FORCE_MAX_ZONEORDER
  472. int "Maximum zone order"
  473. range 9 64 if PPC64 && PPC_64K_PAGES
  474. default "9" if PPC64 && PPC_64K_PAGES
  475. range 13 64 if PPC64 && !PPC_64K_PAGES
  476. default "13" if PPC64 && !PPC_64K_PAGES
  477. range 9 64 if PPC32 && PPC_16K_PAGES
  478. default "9" if PPC32 && PPC_16K_PAGES
  479. range 7 64 if PPC32 && PPC_64K_PAGES
  480. default "7" if PPC32 && PPC_64K_PAGES
  481. range 5 64 if PPC32 && PPC_256K_PAGES
  482. default "5" if PPC32 && PPC_256K_PAGES
  483. range 11 64
  484. default "11"
  485. help
  486. The kernel memory allocator divides physically contiguous memory
  487. blocks into "zones", where each zone is a power of two number of
  488. pages. This option selects the largest power of two that the kernel
  489. keeps in the memory allocator. If you need to allocate very large
  490. blocks of physically contiguous memory, then you may need to
  491. increase this value.
  492. This config option is actually maximum order plus one. For example,
  493. a value of 11 means that the largest free memory block is 2^10 pages.
  494. The page size is not necessarily 4KB. For example, on 64-bit
  495. systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep
  496. this in mind when choosing a value for this option.
  497. config PPC_SUBPAGE_PROT
  498. bool "Support setting protections for 4k subpages"
  499. depends on PPC_STD_MMU_64 && PPC_64K_PAGES
  500. help
  501. This option adds support for a system call to allow user programs
  502. to set access permissions (read/write, readonly, or no access)
  503. on the 4k subpages of each 64k page.
  504. config PPC_COPRO_BASE
  505. bool
  506. default n
  507. config SCHED_SMT
  508. bool "SMT (Hyperthreading) scheduler support"
  509. depends on PPC64 && SMP
  510. help
  511. SMT scheduler support improves the CPU scheduler's decision making
  512. when dealing with POWER5 cpus at a cost of slightly increased
  513. overhead in some places. If unsure say N here.
  514. config PPC_DENORMALISATION
  515. bool "PowerPC denormalisation exception handling"
  516. depends on PPC_BOOK3S_64
  517. default "y" if PPC_POWERNV
  518. ---help---
  519. Add support for handling denormalisation of single precision
  520. values. Useful for bare metal only. If unsure say Y here.
  521. config CMDLINE_BOOL
  522. bool "Default bootloader kernel arguments"
  523. config CMDLINE
  524. string "Initial kernel command string"
  525. depends on CMDLINE_BOOL
  526. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  527. help
  528. On some platforms, there is currently no way for the boot loader to
  529. pass arguments to the kernel. For these platforms, you can supply
  530. some command-line options at build time by entering them here. In
  531. most cases you will need to specify the root device here.
  532. config CMDLINE_FORCE
  533. bool "Always use the default kernel command string"
  534. depends on CMDLINE_BOOL
  535. help
  536. Always use the default kernel command string, even if the boot
  537. loader passes other arguments to the kernel.
  538. This is useful if you cannot or don't want to change the
  539. command-line options your boot loader passes to the kernel.
  540. config EXTRA_TARGETS
  541. string "Additional default image types"
  542. help
  543. List additional targets to be built by the bootwrapper here (separated
  544. by spaces). This is useful for targets that depend of device tree
  545. files in the .dts directory.
  546. Targets in this list will be build as part of the default build
  547. target, or when the user does a 'make zImage' or a
  548. 'make zImage.initrd'.
  549. If unsure, leave blank
  550. config ARCH_WANTS_FREEZER_CONTROL
  551. def_bool y
  552. depends on ADB_PMU
  553. source kernel/power/Kconfig
  554. config SECCOMP
  555. bool "Enable seccomp to safely compute untrusted bytecode"
  556. depends on PROC_FS
  557. default y
  558. help
  559. This kernel feature is useful for number crunching applications
  560. that may need to compute untrusted bytecode during their
  561. execution. By using pipes or other transports made available to
  562. the process as file descriptors supporting the read/write
  563. syscalls, it's possible to isolate those applications in
  564. their own address space using seccomp. Once seccomp is
  565. enabled via /proc/<pid>/seccomp, it cannot be disabled
  566. and the task is only allowed to execute a few safe syscalls
  567. defined by each seccomp mode.
  568. If unsure, say Y. Only embedded should say N here.
  569. endmenu
  570. config ISA_DMA_API
  571. bool
  572. default PCI
  573. menu "Bus options"
  574. config ISA
  575. bool "Support for ISA-bus hardware"
  576. depends on PPC_CHRP
  577. select PPC_I8259
  578. help
  579. Find out whether you have ISA slots on your motherboard. ISA is the
  580. name of a bus system, i.e. the way the CPU talks to the other stuff
  581. inside your box. If you have an Apple machine, say N here; if you
  582. have an IBM RS/6000 or pSeries machine, say Y. If you have an
  583. embedded board, consult your board documentation.
  584. config ZONE_DMA
  585. bool
  586. default y
  587. config NEED_DMA_MAP_STATE
  588. def_bool (PPC64 || NOT_COHERENT_CACHE)
  589. config NEED_SG_DMA_LENGTH
  590. def_bool y
  591. config GENERIC_ISA_DMA
  592. bool
  593. depends on ISA_DMA_API
  594. default y
  595. config PPC_INDIRECT_PCI
  596. bool
  597. depends on PCI
  598. default y if 40x || 44x
  599. default n
  600. config EISA
  601. bool
  602. config SBUS
  603. bool
  604. config FSL_SOC
  605. bool
  606. config FSL_PCI
  607. bool
  608. select PPC_INDIRECT_PCI
  609. select PCI_QUIRKS
  610. config FSL_PMC
  611. bool
  612. default y
  613. depends on SUSPEND && (PPC_85xx || PPC_86xx)
  614. help
  615. Freescale MPC85xx/MPC86xx power management controller support
  616. (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
  617. config PPC4xx_CPM
  618. bool
  619. default y
  620. depends on SUSPEND && (44x || 40x)
  621. help
  622. PPC4xx Clock Power Management (CPM) support (suspend/resume).
  623. It also enables support for two different idle states (idle-wait
  624. and idle-doze).
  625. config 4xx_SOC
  626. bool
  627. config FSL_LBC
  628. bool "Freescale Local Bus support"
  629. depends on FSL_SOC
  630. help
  631. Enables reporting of errors from the Freescale local bus
  632. controller. Also contains some common code used by
  633. drivers for specific local bus peripherals.
  634. config FSL_GTM
  635. bool
  636. depends on PPC_83xx || QUICC_ENGINE || CPM2
  637. help
  638. Freescale General-purpose Timers support
  639. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  640. config MCA
  641. bool
  642. # Platforms that what PCI turned unconditionally just do select PCI
  643. # in their config node. Platforms that want to choose at config
  644. # time should select PPC_PCI_CHOICE
  645. config PPC_PCI_CHOICE
  646. bool
  647. config PCI
  648. bool "PCI support" if PPC_PCI_CHOICE
  649. default y if !40x && !CPM2 && !8xx && !PPC_83xx \
  650. && !PPC_85xx && !PPC_86xx && !GAMECUBE_COMMON
  651. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  652. select GENERIC_PCI_IOMAP
  653. help
  654. Find out whether your system includes a PCI bus. PCI is the name of
  655. a bus system, i.e. the way the CPU talks to the other stuff inside
  656. your box. If you say Y here, the kernel will include drivers and
  657. infrastructure code to support PCI bus devices.
  658. config PCI_DOMAINS
  659. def_bool PCI
  660. config PCI_SYSCALL
  661. def_bool PCI
  662. config PCI_QSPAN
  663. bool "QSpan PCI"
  664. depends on !4xx && !CPM2 && 8xx
  665. select PPC_I8259
  666. help
  667. Say Y here if you have a system based on a Motorola 8xx-series
  668. embedded processor with a QSPAN PCI interface, otherwise say N.
  669. config PCI_8260
  670. bool
  671. depends on PCI && 8260
  672. select PPC_INDIRECT_PCI
  673. default y
  674. source "drivers/pci/pcie/Kconfig"
  675. source "drivers/pci/Kconfig"
  676. source "drivers/pcmcia/Kconfig"
  677. source "drivers/pci/hotplug/Kconfig"
  678. config HAS_RAPIDIO
  679. bool
  680. default n
  681. config RAPIDIO
  682. tristate "RapidIO support"
  683. depends on HAS_RAPIDIO || PCI
  684. help
  685. If you say Y here, the kernel will include drivers and
  686. infrastructure code to support RapidIO interconnect devices.
  687. config FSL_RIO
  688. bool "Freescale Embedded SRIO Controller support"
  689. depends on RAPIDIO = y && HAS_RAPIDIO
  690. default "n"
  691. ---help---
  692. Include support for RapidIO controller on Freescale embedded
  693. processors (MPC8548, MPC8641, etc).
  694. source "drivers/rapidio/Kconfig"
  695. endmenu
  696. config NONSTATIC_KERNEL
  697. bool
  698. default n
  699. menu "Advanced setup"
  700. depends on PPC32
  701. config ADVANCED_OPTIONS
  702. bool "Prompt for advanced kernel configuration options"
  703. help
  704. This option will enable prompting for a variety of advanced kernel
  705. configuration options. These options can cause the kernel to not
  706. work if they are set incorrectly, but can be used to optimize certain
  707. aspects of kernel memory management.
  708. Unless you know what you are doing, say N here.
  709. comment "Default settings for advanced configuration options are used"
  710. depends on !ADVANCED_OPTIONS
  711. config LOWMEM_SIZE_BOOL
  712. bool "Set maximum low memory"
  713. depends on ADVANCED_OPTIONS
  714. help
  715. This option allows you to set the maximum amount of memory which
  716. will be used as "low memory", that is, memory which the kernel can
  717. access directly, without having to set up a kernel virtual mapping.
  718. This can be useful in optimizing the layout of kernel virtual
  719. memory.
  720. Say N here unless you know what you are doing.
  721. config LOWMEM_SIZE
  722. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  723. default "0x30000000"
  724. config LOWMEM_CAM_NUM_BOOL
  725. bool "Set number of CAMs to use to map low memory"
  726. depends on ADVANCED_OPTIONS && FSL_BOOKE
  727. help
  728. This option allows you to set the maximum number of CAM slots that
  729. will be used to map low memory. There are a limited number of slots
  730. available and even more limited number that will fit in the L1 MMU.
  731. However, using more entries will allow mapping more low memory. This
  732. can be useful in optimizing the layout of kernel virtual memory.
  733. Say N here unless you know what you are doing.
  734. config LOWMEM_CAM_NUM
  735. depends on FSL_BOOKE
  736. int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
  737. default 3
  738. config DYNAMIC_MEMSTART
  739. bool "Enable page aligned dynamic load address for kernel"
  740. depends on ADVANCED_OPTIONS && FLATMEM && (FSL_BOOKE || 44x)
  741. select NONSTATIC_KERNEL
  742. help
  743. This option enables the kernel to be loaded at any page aligned
  744. physical address. The kernel creates a mapping from KERNELBASE to
  745. the address where the kernel is loaded. The page size here implies
  746. the TLB page size of the mapping for kernel on the particular platform.
  747. Please refer to the init code for finding the TLB page size.
  748. DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE
  749. kernel image, where the only restriction is the page aligned kernel
  750. load address. When this option is enabled, the compile time physical
  751. address CONFIG_PHYSICAL_START is ignored.
  752. This option is overridden by CONFIG_RELOCATABLE
  753. config RELOCATABLE
  754. bool "Build a relocatable kernel"
  755. depends on ADVANCED_OPTIONS && FLATMEM && (44x || FSL_BOOKE)
  756. select NONSTATIC_KERNEL
  757. help
  758. This builds a kernel image that is capable of running at the
  759. location the kernel is loaded at, without any alignment restrictions.
  760. This feature is a superset of DYNAMIC_MEMSTART and hence overrides it.
  761. One use is for the kexec on panic case where the recovery kernel
  762. must live at a different physical address than the primary
  763. kernel.
  764. Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
  765. it has been loaded at and the compile time physical addresses
  766. CONFIG_PHYSICAL_START is ignored. However CONFIG_PHYSICAL_START
  767. setting can still be useful to bootwrappers that need to know the
  768. load address of the kernel (eg. u-boot/mkimage).
  769. config RELOCATABLE_PPC32
  770. def_bool y
  771. depends on PPC32 && RELOCATABLE
  772. config PAGE_OFFSET_BOOL
  773. bool "Set custom page offset address"
  774. depends on ADVANCED_OPTIONS
  775. help
  776. This option allows you to set the kernel virtual address at which
  777. the kernel will map low memory. This can be useful in optimizing
  778. the virtual memory layout of the system.
  779. Say N here unless you know what you are doing.
  780. config PAGE_OFFSET
  781. hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
  782. default "0xc0000000"
  783. config KERNEL_START_BOOL
  784. bool "Set custom kernel base address"
  785. depends on ADVANCED_OPTIONS
  786. help
  787. This option allows you to set the kernel virtual address at which
  788. the kernel will be loaded. Normally this should match PAGE_OFFSET
  789. however there are times (like kdump) that one might not want them
  790. to be the same.
  791. Say N here unless you know what you are doing.
  792. config KERNEL_START
  793. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  794. default PAGE_OFFSET if PAGE_OFFSET_BOOL
  795. default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL
  796. default "0xc0000000"
  797. config PHYSICAL_START_BOOL
  798. bool "Set physical address where the kernel is loaded"
  799. depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
  800. help
  801. This gives the physical address where the kernel is loaded.
  802. Say N here unless you know what you are doing.
  803. config PHYSICAL_START
  804. hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
  805. default "0x02000000" if PPC_STD_MMU && CRASH_DUMP && !NONSTATIC_KERNEL
  806. default "0x00000000"
  807. config PHYSICAL_ALIGN
  808. hex
  809. default "0x04000000" if FSL_BOOKE
  810. help
  811. This value puts the alignment restrictions on physical address
  812. where kernel is loaded and run from. Kernel is compiled for an
  813. address which meets above alignment restriction.
  814. config TASK_SIZE_BOOL
  815. bool "Set custom user task size"
  816. depends on ADVANCED_OPTIONS
  817. help
  818. This option allows you to set the amount of virtual address space
  819. allocated to user tasks. This can be useful in optimizing the
  820. virtual memory layout of the system.
  821. Say N here unless you know what you are doing.
  822. config TASK_SIZE
  823. hex "Size of user task space" if TASK_SIZE_BOOL
  824. default "0x80000000" if PPC_8xx
  825. default "0xc0000000"
  826. config CONSISTENT_SIZE_BOOL
  827. bool "Set custom consistent memory pool size"
  828. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  829. help
  830. This option allows you to set the size of the
  831. consistent memory pool. This pool of virtual memory
  832. is used to make consistent memory allocations.
  833. config CONSISTENT_SIZE
  834. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  835. default "0x00200000" if NOT_COHERENT_CACHE
  836. config PIN_TLB
  837. bool "Pinned Kernel TLBs (860 ONLY)"
  838. depends on ADVANCED_OPTIONS && 8xx
  839. endmenu
  840. if PPC64
  841. config RELOCATABLE
  842. bool "Build a relocatable kernel"
  843. depends on !COMPILE_TEST
  844. select NONSTATIC_KERNEL
  845. help
  846. This builds a kernel image that is capable of running anywhere
  847. in the RMA (real memory area) at any 16k-aligned base address.
  848. The kernel is linked as a position-independent executable (PIE)
  849. and contains dynamic relocations which are processed early
  850. in the bootup process.
  851. One use is for the kexec on panic case where the recovery kernel
  852. must live at a different physical address than the primary
  853. kernel.
  854. # This value must have zeroes in the bottom 60 bits otherwise lots will break
  855. config PAGE_OFFSET
  856. hex
  857. default "0xc000000000000000"
  858. config KERNEL_START
  859. hex
  860. default "0xc000000000000000"
  861. config PHYSICAL_START
  862. hex
  863. default "0x00000000"
  864. endif
  865. config ARCH_RANDOM
  866. def_bool n
  867. source "net/Kconfig"
  868. source "drivers/Kconfig"
  869. source "fs/Kconfig"
  870. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  871. source "lib/Kconfig"
  872. source "arch/powerpc/Kconfig.debug"
  873. source "security/Kconfig"
  874. config KEYS_COMPAT
  875. bool
  876. depends on COMPAT && KEYS
  877. default y
  878. source "crypto/Kconfig"
  879. config PPC_LIB_RHEAP
  880. bool
  881. source "arch/powerpc/kvm/Kconfig"