/arch/powerpc/Kconfig

http://github.com/mirrors/linux · #! · 1107 lines · 902 code · 205 blank · 0 comment · 0 complexity · f6838dddf8eac2b5831a3d04f02283f9 MD5 · raw file

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