Kconfig 29 KB

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