Kconfig 28 KB

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