Kconfig 28 KB

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