Kconfig 30 KB

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