Kconfig 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278
  1. # SPDX-License-Identifier: GPL-2.0
  2. source "arch/powerpc/platforms/Kconfig.cputype"
  3. config 32BIT
  4. bool
  5. default y if PPC32
  6. config 64BIT
  7. bool
  8. default y if PPC64
  9. config LIVEPATCH_64
  10. def_bool PPC64
  11. depends on LIVEPATCH
  12. config MMU
  13. bool
  14. default y
  15. config ARCH_MMAP_RND_BITS_MAX
  16. # On Book3S 64, the default virtual address space for 64-bit processes
  17. # is 2^47 (128TB). As a maximum, allow randomisation to consume up to
  18. # 32T of address space (2^45), which should ensure a reasonable gap
  19. # between bottom-up and top-down allocations for applications that
  20. # consume "normal" amounts of address space. Book3S 64 only supports 64K
  21. # and 4K page sizes.
  22. default 29 if PPC_BOOK3S_64 && PPC_64K_PAGES # 29 = 45 (32T) - 16 (64K)
  23. default 33 if PPC_BOOK3S_64 # 33 = 45 (32T) - 12 (4K)
  24. #
  25. # On all other 64-bit platforms (currently only Book3E), the virtual
  26. # address space is 2^46 (64TB). Allow randomisation to consume up to 16T
  27. # of address space (2^44). Only 4K page sizes are supported.
  28. default 32 if 64BIT # 32 = 44 (16T) - 12 (4K)
  29. #
  30. # For 32-bit, use the compat values, as they're the same.
  31. default ARCH_MMAP_RND_COMPAT_BITS_MAX
  32. config ARCH_MMAP_RND_BITS_MIN
  33. # Allow randomisation to consume up to 1GB of address space (2^30).
  34. default 14 if 64BIT && PPC_64K_PAGES # 14 = 30 (1GB) - 16 (64K)
  35. default 18 if 64BIT # 18 = 30 (1GB) - 12 (4K)
  36. #
  37. # For 32-bit, use the compat values, as they're the same.
  38. default ARCH_MMAP_RND_COMPAT_BITS_MIN
  39. config ARCH_MMAP_RND_COMPAT_BITS_MAX
  40. # Total virtual address space for 32-bit processes is 2^31 (2GB).
  41. # Allow randomisation to consume up to 512MB of address space (2^29).
  42. default 11 if PPC_256K_PAGES # 11 = 29 (512MB) - 18 (256K)
  43. default 13 if PPC_64K_PAGES # 13 = 29 (512MB) - 16 (64K)
  44. default 15 if PPC_16K_PAGES # 15 = 29 (512MB) - 14 (16K)
  45. default 17 # 17 = 29 (512MB) - 12 (4K)
  46. config ARCH_MMAP_RND_COMPAT_BITS_MIN
  47. # Total virtual address space for 32-bit processes is 2^31 (2GB).
  48. # Allow randomisation to consume up to 8MB of address space (2^23).
  49. default 5 if PPC_256K_PAGES # 5 = 23 (8MB) - 18 (256K)
  50. default 7 if PPC_64K_PAGES # 7 = 23 (8MB) - 16 (64K)
  51. default 9 if PPC_16K_PAGES # 9 = 23 (8MB) - 14 (16K)
  52. default 11 # 11 = 23 (8MB) - 12 (4K)
  53. config NR_IRQS
  54. int "Number of virtual interrupt numbers"
  55. range 32 1048576
  56. default "512"
  57. help
  58. This defines the number of virtual interrupt numbers the kernel
  59. can manage. Virtual interrupt numbers are what you see in
  60. /proc/interrupts. If you configure your system to have too few,
  61. drivers will fail to load or worse - handle with care.
  62. config NMI_IPI
  63. bool
  64. depends on SMP && (DEBUGGER || KEXEC_CORE || HARDLOCKUP_DETECTOR)
  65. default y
  66. config PPC_WATCHDOG
  67. bool
  68. depends on HARDLOCKUP_DETECTOR
  69. depends on HAVE_HARDLOCKUP_DETECTOR_ARCH
  70. default y
  71. help
  72. This is a placeholder when the powerpc hardlockup detector
  73. watchdog is selected (arch/powerpc/kernel/watchdog.c). It is
  74. selected via the generic lockup detector menu which is why we
  75. have no standalone config option for it here.
  76. config STACKTRACE_SUPPORT
  77. bool
  78. default y
  79. config LOCKDEP_SUPPORT
  80. bool
  81. default y
  82. config GENERIC_LOCKBREAK
  83. bool
  84. default y
  85. depends on SMP && PREEMPTION
  86. config GENERIC_HWEIGHT
  87. bool
  88. default y
  89. config PPC
  90. bool
  91. default y
  92. #
  93. # Please keep this list sorted alphabetically.
  94. #
  95. select ARCH_32BIT_OFF_T if PPC32
  96. select ARCH_DISABLE_KASAN_INLINE if PPC_RADIX_MMU
  97. select ARCH_ENABLE_MEMORY_HOTPLUG
  98. select ARCH_ENABLE_MEMORY_HOTREMOVE
  99. select ARCH_HAS_COPY_MC if PPC64
  100. select ARCH_HAS_CURRENT_STACK_POINTER
  101. select ARCH_HAS_DEBUG_VIRTUAL
  102. select ARCH_HAS_DEBUG_VM_PGTABLE
  103. select ARCH_HAS_DEBUG_WX if STRICT_KERNEL_RWX
  104. select ARCH_HAS_DEVMEM_IS_ALLOWED
  105. select ARCH_HAS_DMA_MAP_DIRECT if PPC_PSERIES
  106. select ARCH_HAS_FORTIFY_SOURCE
  107. select ARCH_HAS_GCOV_PROFILE_ALL
  108. select ARCH_HAS_HUGEPD if HUGETLB_PAGE
  109. select ARCH_HAS_KCOV
  110. select ARCH_HAS_MEMBARRIER_CALLBACKS
  111. select ARCH_HAS_MEMBARRIER_SYNC_CORE
  112. select ARCH_HAS_MEMREMAP_COMPAT_ALIGN if PPC_64S_HASH_MMU
  113. select ARCH_HAS_MMIOWB if PPC64
  114. select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
  115. select ARCH_HAS_PHYS_TO_DMA
  116. select ARCH_HAS_PMEM_API
  117. select ARCH_HAS_PTE_DEVMAP if PPC_BOOK3S_64
  118. select ARCH_HAS_PTE_SPECIAL
  119. select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
  120. select ARCH_HAS_SET_MEMORY
  121. select ARCH_HAS_STRICT_KERNEL_RWX if (PPC_BOOK3S || PPC_8xx || 40x) && !HIBERNATION
  122. select ARCH_HAS_STRICT_KERNEL_RWX if PPC_85xx && !HIBERNATION && !RANDOMIZE_BASE
  123. select ARCH_HAS_STRICT_MODULE_RWX if ARCH_HAS_STRICT_KERNEL_RWX
  124. select ARCH_HAS_SYSCALL_WRAPPER if !SPU_BASE && !COMPAT
  125. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  126. select ARCH_HAS_UACCESS_FLUSHCACHE
  127. select ARCH_HAS_UBSAN_SANITIZE_ALL
  128. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  129. select ARCH_KEEP_MEMBLOCK
  130. select ARCH_MIGHT_HAVE_PC_PARPORT
  131. select ARCH_MIGHT_HAVE_PC_SERIO
  132. select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
  133. select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT
  134. select ARCH_SPLIT_ARG64 if PPC32
  135. select ARCH_STACKWALK
  136. select ARCH_SUPPORTS_ATOMIC_RMW
  137. select ARCH_SUPPORTS_DEBUG_PAGEALLOC if PPC_BOOK3S || PPC_8xx || 40x
  138. select ARCH_USE_BUILTIN_BSWAP
  139. select ARCH_USE_CMPXCHG_LOCKREF if PPC64
  140. select ARCH_USE_MEMTEST
  141. select ARCH_USE_QUEUED_RWLOCKS if PPC_QUEUED_SPINLOCKS
  142. select ARCH_USE_QUEUED_SPINLOCKS if PPC_QUEUED_SPINLOCKS
  143. select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
  144. select ARCH_WANT_IPC_PARSE_VERSION
  145. select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
  146. select ARCH_WANT_LD_ORPHAN_WARN
  147. select ARCH_WANTS_MODULES_DATA_IN_VMALLOC if PPC_BOOK3S_32 || PPC_8xx
  148. select ARCH_WEAK_RELEASE_ACQUIRE
  149. select BINFMT_ELF
  150. select BUILDTIME_TABLE_SORT
  151. select CLONE_BACKWARDS
  152. select CPUMASK_OFFSTACK if NR_CPUS >= 8192
  153. select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN
  154. select DMA_OPS_BYPASS if PPC64
  155. select DMA_OPS if PPC64
  156. select DYNAMIC_FTRACE if FUNCTION_TRACER
  157. select EDAC_ATOMIC_SCRUB
  158. select EDAC_SUPPORT
  159. select GENERIC_ATOMIC64 if PPC32
  160. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  161. select GENERIC_CMOS_UPDATE
  162. select GENERIC_CPU_AUTOPROBE
  163. select GENERIC_CPU_VULNERABILITIES if PPC_BARRIER_NOSPEC
  164. select GENERIC_EARLY_IOREMAP
  165. select GENERIC_GETTIMEOFDAY
  166. select GENERIC_IRQ_SHOW
  167. select GENERIC_IRQ_SHOW_LEVEL
  168. select GENERIC_PCI_IOMAP if PCI
  169. select GENERIC_PTDUMP
  170. select GENERIC_SMP_IDLE_THREAD
  171. select GENERIC_TIME_VSYSCALL
  172. select GENERIC_VDSO_TIME_NS
  173. select HAVE_ARCH_AUDITSYSCALL
  174. select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP
  175. select HAVE_ARCH_HUGE_VMAP if PPC_RADIX_MMU || PPC_8xx
  176. select HAVE_ARCH_JUMP_LABEL
  177. select HAVE_ARCH_JUMP_LABEL_RELATIVE
  178. select HAVE_ARCH_KASAN if PPC32 && PPC_PAGE_SHIFT <= 14
  179. select HAVE_ARCH_KASAN if PPC_RADIX_MMU
  180. select HAVE_ARCH_KASAN if PPC_BOOK3E_64
  181. select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
  182. select HAVE_ARCH_KFENCE if ARCH_SUPPORTS_DEBUG_PAGEALLOC
  183. select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
  184. select HAVE_ARCH_KGDB
  185. select HAVE_ARCH_MMAP_RND_BITS
  186. select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
  187. select HAVE_ARCH_NVRAM_OPS
  188. select HAVE_ARCH_SECCOMP_FILTER
  189. select HAVE_ARCH_TRACEHOOK
  190. select HAVE_ASM_MODVERSIONS
  191. select HAVE_CONTEXT_TRACKING_USER if PPC64
  192. select HAVE_C_RECORDMCOUNT
  193. select HAVE_DEBUG_KMEMLEAK
  194. select HAVE_DEBUG_STACKOVERFLOW
  195. select HAVE_DYNAMIC_FTRACE
  196. select HAVE_DYNAMIC_FTRACE_WITH_ARGS if MPROFILE_KERNEL || PPC32
  197. select HAVE_DYNAMIC_FTRACE_WITH_REGS if MPROFILE_KERNEL || PPC32
  198. select HAVE_EBPF_JIT
  199. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  200. select HAVE_FAST_GUP
  201. select HAVE_FTRACE_MCOUNT_RECORD
  202. select HAVE_FUNCTION_DESCRIPTORS if PPC64_ELF_ABI_V1
  203. select HAVE_FUNCTION_ERROR_INJECTION
  204. select HAVE_FUNCTION_GRAPH_TRACER
  205. select HAVE_FUNCTION_TRACER
  206. select HAVE_GCC_PLUGINS if GCC_VERSION >= 50200 # plugin support on gcc <= 5.1 is buggy on PPC
  207. select HAVE_GENERIC_VDSO
  208. select HAVE_HARDLOCKUP_DETECTOR_ARCH if PPC_BOOK3S_64 && SMP
  209. select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI && !HAVE_HARDLOCKUP_DETECTOR_ARCH
  210. select HAVE_HW_BREAKPOINT if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx)
  211. select HAVE_IOREMAP_PROT
  212. select HAVE_IRQ_TIME_ACCOUNTING
  213. select HAVE_KERNEL_GZIP
  214. select HAVE_KERNEL_LZMA if DEFAULT_UIMAGE
  215. select HAVE_KERNEL_LZO if DEFAULT_UIMAGE
  216. select HAVE_KERNEL_XZ if PPC_BOOK3S || 44x
  217. select HAVE_KPROBES
  218. select HAVE_KPROBES_ON_FTRACE
  219. select HAVE_KRETPROBES
  220. select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
  221. select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS
  222. select HAVE_MOD_ARCH_SPECIFIC
  223. select HAVE_NMI if PERF_EVENTS || (PPC64 && PPC_BOOK3S)
  224. select HAVE_OPTPROBES
  225. select HAVE_PERF_EVENTS
  226. select HAVE_PERF_EVENTS_NMI if PPC64
  227. select HAVE_PERF_REGS
  228. select HAVE_PERF_USER_STACK_DUMP
  229. select HAVE_REGS_AND_STACK_ACCESS_API
  230. select HAVE_RELIABLE_STACKTRACE
  231. select HAVE_RSEQ
  232. select HAVE_SETUP_PER_CPU_AREA if PPC64
  233. select HAVE_SOFTIRQ_ON_OWN_STACK
  234. select HAVE_STACKPROTECTOR if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2)
  235. select HAVE_STACKPROTECTOR if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13)
  236. select HAVE_STATIC_CALL if PPC32
  237. select HAVE_SYSCALL_TRACEPOINTS
  238. select HAVE_VIRT_CPU_ACCOUNTING
  239. select HUGETLB_PAGE_SIZE_VARIABLE if PPC_BOOK3S_64 && HUGETLB_PAGE
  240. select IOMMU_HELPER if PPC64
  241. select IRQ_DOMAIN
  242. select IRQ_FORCED_THREADING
  243. select KASAN_VMALLOC if KASAN && MODULES
  244. select LOCK_MM_AND_FIND_VMA
  245. select MMU_GATHER_PAGE_SIZE
  246. select MMU_GATHER_RCU_TABLE_FREE
  247. select MMU_GATHER_MERGE_VMAS
  248. select MODULES_USE_ELF_RELA
  249. select NEED_DMA_MAP_STATE if PPC64 || NOT_COHERENT_CACHE
  250. select NEED_PER_CPU_EMBED_FIRST_CHUNK if PPC64
  251. select NEED_PER_CPU_PAGE_FIRST_CHUNK if PPC64
  252. select NEED_SG_DMA_LENGTH
  253. select OF
  254. select OF_DMA_DEFAULT_COHERENT if !NOT_COHERENT_CACHE
  255. select OF_EARLY_FLATTREE
  256. select OLD_SIGACTION if PPC32
  257. select OLD_SIGSUSPEND
  258. select PCI_DOMAINS if PCI
  259. select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
  260. select PCI_SYSCALL if PCI
  261. select PPC_DAWR if PPC64
  262. select RTC_LIB
  263. select SPARSE_IRQ
  264. select STRICT_KERNEL_RWX if STRICT_MODULE_RWX
  265. select SYSCTL_EXCEPTION_TRACE
  266. select THREAD_INFO_IN_TASK
  267. select TRACE_IRQFLAGS_SUPPORT
  268. #
  269. # Please keep this list sorted alphabetically.
  270. #
  271. config PPC_LONG_DOUBLE_128
  272. depends on PPC64 && ALTIVEC
  273. def_bool $(success,test "$(shell,echo __LONG_DOUBLE_128__ | $(CC) -E -P -)" = 1)
  274. config PPC_BARRIER_NOSPEC
  275. bool
  276. default y
  277. depends on PPC_BOOK3S_64 || PPC_E500
  278. config EARLY_PRINTK
  279. bool
  280. default y
  281. config PANIC_TIMEOUT
  282. int
  283. default 180
  284. config COMPAT
  285. bool "Enable support for 32bit binaries"
  286. depends on PPC64
  287. depends on !CC_IS_CLANG || CLANG_VERSION >= 120000
  288. default y if !CPU_LITTLE_ENDIAN
  289. select ARCH_WANT_OLD_COMPAT_IPC
  290. select COMPAT_OLD_SIGACTION
  291. config SCHED_OMIT_FRAME_POINTER
  292. bool
  293. default y
  294. config ARCH_MAY_HAVE_PC_FDC
  295. bool
  296. default PCI
  297. config PPC_UDBG_16550
  298. bool
  299. config GENERIC_TBSYNC
  300. bool
  301. default y if PPC32 && SMP
  302. config AUDIT_ARCH
  303. bool
  304. default y
  305. config GENERIC_BUG
  306. bool
  307. default y
  308. depends on BUG
  309. config GENERIC_BUG_RELATIVE_POINTERS
  310. def_bool y
  311. depends on GENERIC_BUG
  312. config SYS_SUPPORTS_APM_EMULATION
  313. default y if PMAC_APM_EMU
  314. bool
  315. config EPAPR_BOOT
  316. bool
  317. help
  318. Used to allow a board to specify it wants an ePAPR compliant wrapper.
  319. config DEFAULT_UIMAGE
  320. bool
  321. help
  322. Used to allow a board to specify it wants a uImage built by default
  323. config ARCH_HIBERNATION_POSSIBLE
  324. bool
  325. default y
  326. config ARCH_SUSPEND_POSSIBLE
  327. def_bool y
  328. depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
  329. (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
  330. || 44x || 40x
  331. config ARCH_SUSPEND_NONZERO_CPU
  332. def_bool y
  333. depends on PPC_POWERNV || PPC_PSERIES
  334. config ARCH_HAS_ADD_PAGES
  335. def_bool y
  336. depends on ARCH_ENABLE_MEMORY_HOTPLUG
  337. config PPC_DCR_NATIVE
  338. bool
  339. config PPC_DCR_MMIO
  340. bool
  341. config PPC_DCR
  342. bool
  343. depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  344. default y
  345. config PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT
  346. depends on PPC32
  347. depends on !PPC_PMAC && !PPC_CHRP
  348. bool "Assign PCI bus numbers from zero individually for each PCI domain"
  349. help
  350. By default on PPC32 were PCI bus numbers unique across all PCI domains.
  351. So system could have only 256 PCI buses independently of available
  352. PCI domains. When this option is enabled then PCI bus numbers are
  353. PCI domain dependent and each PCI controller on own domain can have
  354. 256 PCI buses, like it is on other Linux architectures.
  355. config PPC_OF_PLATFORM_PCI
  356. bool
  357. depends on PCI
  358. depends on PPC64 # not supported on 32 bits yet
  359. config ARCH_SUPPORTS_UPROBES
  360. def_bool y
  361. config PPC_ADV_DEBUG_REGS
  362. bool
  363. depends on 40x || BOOKE
  364. default y
  365. config PPC_ADV_DEBUG_IACS
  366. int
  367. depends on PPC_ADV_DEBUG_REGS
  368. default 4 if 44x
  369. default 2
  370. config PPC_ADV_DEBUG_DACS
  371. int
  372. depends on PPC_ADV_DEBUG_REGS
  373. default 2
  374. config PPC_ADV_DEBUG_DVCS
  375. int
  376. depends on PPC_ADV_DEBUG_REGS
  377. default 2 if 44x
  378. default 0
  379. config PPC_ADV_DEBUG_DAC_RANGE
  380. bool
  381. depends on PPC_ADV_DEBUG_REGS && 44x
  382. default y
  383. config PPC_DAWR
  384. bool
  385. config PGTABLE_LEVELS
  386. int
  387. default 2 if !PPC64
  388. default 4
  389. source "arch/powerpc/sysdev/Kconfig"
  390. source "arch/powerpc/platforms/Kconfig"
  391. menu "Kernel options"
  392. config HIGHMEM
  393. bool "High memory support"
  394. depends on PPC32
  395. select KMAP_LOCAL
  396. source "kernel/Kconfig.hz"
  397. config MATH_EMULATION
  398. bool "Math emulation"
  399. depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT
  400. select PPC_FPU_REGS
  401. help
  402. Some PowerPC chips designed for embedded applications do not have
  403. a floating-point unit and therefore do not implement the
  404. floating-point instructions in the PowerPC instruction set. If you
  405. say Y here, the kernel will include code to emulate a floating-point
  406. unit, which will allow programs that use floating-point
  407. instructions to run.
  408. This is also useful to emulate missing (optional) instructions
  409. such as fsqrt on cores that do have an FPU but do not implement
  410. them (such as Freescale BookE).
  411. choice
  412. prompt "Math emulation options"
  413. default MATH_EMULATION_FULL
  414. depends on MATH_EMULATION
  415. config MATH_EMULATION_FULL
  416. bool "Emulate all the floating point instructions"
  417. help
  418. Select this option will enable the kernel to support to emulate
  419. all the floating point instructions. If your SoC doesn't have
  420. a FPU, you should select this.
  421. config MATH_EMULATION_HW_UNIMPLEMENTED
  422. bool "Just emulate the FPU unimplemented instructions"
  423. help
  424. Select this if you know there does have a hardware FPU on your
  425. SoC, but some floating point instructions are not implemented by that.
  426. endchoice
  427. config PPC_TRANSACTIONAL_MEM
  428. bool "Transactional Memory support for POWERPC"
  429. depends on PPC_BOOK3S_64
  430. depends on SMP
  431. select ALTIVEC
  432. select VSX
  433. help
  434. Support user-mode Transactional Memory on POWERPC.
  435. config PPC_UV
  436. bool "Ultravisor support"
  437. depends on KVM_BOOK3S_HV_POSSIBLE
  438. depends on DEVICE_PRIVATE
  439. default n
  440. help
  441. This option paravirtualizes the kernel to run in POWER platforms that
  442. supports the Protected Execution Facility (PEF). On such platforms,
  443. the ultravisor firmware runs at a privilege level above the
  444. hypervisor.
  445. If unsure, say "N".
  446. config LD_HEAD_STUB_CATCH
  447. bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT
  448. depends on PPC64
  449. help
  450. Very large kernels can cause linker branch stubs to be generated by
  451. code in head_64.S, which moves the head text sections out of their
  452. specified location. This option can work around the problem.
  453. If unsure, say "N".
  454. config MPROFILE_KERNEL
  455. depends on PPC64 && CPU_LITTLE_ENDIAN && FUNCTION_TRACER
  456. def_bool $(success,$(srctree)/arch/powerpc/tools/gcc-check-mprofile-kernel.sh $(CC) -I$(srctree)/include -D__KERNEL__)
  457. config HOTPLUG_CPU
  458. bool "Support for enabling/disabling CPUs"
  459. depends on SMP && (PPC_PSERIES || \
  460. PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE)
  461. help
  462. Say Y here to be able to disable and re-enable individual
  463. CPUs at runtime on SMP machines.
  464. Say N if you are unsure.
  465. config PPC_QUEUED_SPINLOCKS
  466. bool "Queued spinlocks" if EXPERT
  467. depends on SMP
  468. default PPC_BOOK3S_64
  469. help
  470. Say Y here to use queued spinlocks which give better scalability and
  471. fairness on large SMP and NUMA systems without harming single threaded
  472. performance.
  473. config ARCH_CPU_PROBE_RELEASE
  474. def_bool y
  475. depends on HOTPLUG_CPU
  476. config PPC64_SUPPORTS_MEMORY_FAILURE
  477. bool "Add support for memory hwpoison"
  478. depends on PPC_BOOK3S_64
  479. default "y" if PPC_POWERNV
  480. select ARCH_SUPPORTS_MEMORY_FAILURE
  481. config KEXEC
  482. bool "kexec system call"
  483. depends on PPC_BOOK3S || PPC_E500 || (44x && !SMP)
  484. select KEXEC_CORE
  485. help
  486. kexec is a system call that implements the ability to shutdown your
  487. current kernel, and to start another kernel. It is like a reboot
  488. but it is independent of the system firmware. And like a reboot
  489. you can start any kernel with it, not just Linux.
  490. The name comes from the similarity to the exec system call.
  491. It is an ongoing process to be certain the hardware in a machine
  492. is properly shutdown, so do not be surprised if this code does not
  493. initially work for you. As of this writing the exact hardware
  494. interface is strongly in flux, so no good recommendation can be
  495. made.
  496. config KEXEC_FILE
  497. bool "kexec file based system call"
  498. select KEXEC_CORE
  499. select HAVE_IMA_KEXEC if IMA
  500. select KEXEC_ELF
  501. depends on PPC64
  502. depends on CRYPTO=y
  503. depends on CRYPTO_SHA256=y
  504. help
  505. This is a new version of the kexec system call. This call is
  506. file based and takes in file descriptors as system call arguments
  507. for kernel and initramfs as opposed to a list of segments as is the
  508. case for the older kexec call.
  509. config ARCH_HAS_KEXEC_PURGATORY
  510. def_bool KEXEC_FILE
  511. config RELOCATABLE
  512. bool "Build a relocatable kernel"
  513. depends on PPC64 || (FLATMEM && (44x || PPC_85xx))
  514. select NONSTATIC_KERNEL
  515. help
  516. This builds a kernel image that is capable of running at the
  517. location the kernel is loaded at. For ppc32, there is no any
  518. alignment restrictions, and this feature is a superset of
  519. DYNAMIC_MEMSTART and hence overrides it. For ppc64, we should use
  520. 16k-aligned base address. The kernel is linked as a
  521. position-independent executable (PIE) and contains dynamic relocations
  522. which are processed early in the bootup process.
  523. One use is for the kexec on panic case where the recovery kernel
  524. must live at a different physical address than the primary
  525. kernel.
  526. Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
  527. it has been loaded at and the compile time physical addresses
  528. CONFIG_PHYSICAL_START is ignored. However CONFIG_PHYSICAL_START
  529. setting can still be useful to bootwrappers that need to know the
  530. load address of the kernel (eg. u-boot/mkimage).
  531. config RANDOMIZE_BASE
  532. bool "Randomize the address of the kernel image"
  533. depends on PPC_85xx && FLATMEM
  534. depends on RELOCATABLE
  535. help
  536. Randomizes the virtual address at which the kernel image is
  537. loaded, as a security feature that deters exploit attempts
  538. relying on knowledge of the location of kernel internals.
  539. If unsure, say Y.
  540. config RELOCATABLE_TEST
  541. bool "Test relocatable kernel"
  542. depends on (PPC64 && RELOCATABLE)
  543. help
  544. This runs the relocatable kernel at the address it was initially
  545. loaded at, which tends to be non-zero and therefore test the
  546. relocation code.
  547. config CRASH_DUMP
  548. bool "Build a dump capture kernel"
  549. depends on PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP)
  550. select RELOCATABLE if PPC64 || 44x || PPC_85xx
  551. help
  552. Build a kernel suitable for use as a dump capture kernel.
  553. The same kernel binary can be used as production kernel and dump
  554. capture kernel.
  555. config FA_DUMP
  556. bool "Firmware-assisted dump"
  557. depends on PPC64 && (PPC_RTAS || PPC_POWERNV)
  558. select CRASH_CORE
  559. select CRASH_DUMP
  560. help
  561. A robust mechanism to get reliable kernel crash dump with
  562. assistance from firmware. This approach does not use kexec,
  563. instead firmware assists in booting the capture kernel
  564. while preserving memory contents. Firmware-assisted dump
  565. is meant to be a kdump replacement offering robustness and
  566. speed not possible without system firmware assistance.
  567. If unsure, say "y". Only special kernels like petitboot may
  568. need to say "N" here.
  569. config PRESERVE_FA_DUMP
  570. bool "Preserve Firmware-assisted dump"
  571. depends on PPC64 && PPC_POWERNV && !FA_DUMP
  572. help
  573. On a kernel with FA_DUMP disabled, this option helps to preserve
  574. crash data from a previously crash'ed kernel. Useful when the next
  575. memory preserving kernel boot would process this crash data.
  576. Petitboot kernel is the typical usecase for this option.
  577. config OPAL_CORE
  578. bool "Export OPAL memory as /sys/firmware/opal/core"
  579. depends on PPC64 && PPC_POWERNV
  580. help
  581. This option uses the MPIPL support in firmware to provide an
  582. ELF core of OPAL memory after a crash. The ELF core is exported
  583. as /sys/firmware/opal/core file which is helpful in debugging
  584. OPAL crashes using GDB.
  585. config IRQ_ALL_CPUS
  586. bool "Distribute interrupts on all CPUs by default"
  587. depends on SMP
  588. help
  589. This option gives the kernel permission to distribute IRQs across
  590. multiple CPUs. Saying N here will route all IRQs to the first
  591. CPU. Generally saying Y is safe, although some problems have been
  592. reported with SMP Power Macintoshes with this option enabled.
  593. config NUMA
  594. bool "NUMA Memory Allocation and Scheduler Support"
  595. depends on PPC64 && SMP
  596. default y if PPC_PSERIES || PPC_POWERNV
  597. select USE_PERCPU_NUMA_NODE_ID
  598. help
  599. Enable NUMA (Non-Uniform Memory Access) support.
  600. The kernel will try to allocate memory used by a CPU on the
  601. local memory controller of the CPU and add some more
  602. NUMA awareness to the kernel.
  603. config NODES_SHIFT
  604. int
  605. default "8" if PPC64
  606. default "4"
  607. depends on NUMA
  608. config HAVE_MEMORYLESS_NODES
  609. def_bool y
  610. depends on NUMA
  611. config ARCH_SELECT_MEMORY_MODEL
  612. def_bool y
  613. depends on PPC64
  614. config ARCH_FLATMEM_ENABLE
  615. def_bool y
  616. depends on (PPC64 && !NUMA) || PPC32
  617. config ARCH_SPARSEMEM_ENABLE
  618. def_bool y
  619. depends on PPC64
  620. select SPARSEMEM_VMEMMAP_ENABLE
  621. config ARCH_SPARSEMEM_DEFAULT
  622. def_bool y
  623. depends on PPC_BOOK3S_64
  624. config ILLEGAL_POINTER_VALUE
  625. hex
  626. # This is roughly half way between the top of user space and the bottom
  627. # of kernel space, which seems about as good as we can get.
  628. default 0x5deadbeef0000000 if PPC64
  629. default 0
  630. config ARCH_MEMORY_PROBE
  631. def_bool y
  632. depends on MEMORY_HOTPLUG
  633. choice
  634. prompt "Page size"
  635. default PPC_64K_PAGES if PPC_BOOK3S_64
  636. default PPC_4K_PAGES
  637. help
  638. Select the kernel logical page size. Increasing the page size
  639. will reduce software overhead at each page boundary, allow
  640. hardware prefetch mechanisms to be more effective, and allow
  641. larger dma transfers increasing IO efficiency and reducing
  642. overhead. However the utilization of memory will increase.
  643. For example, each cached file will using a multiple of the
  644. page size to hold its contents and the difference between the
  645. end of file and the end of page is wasted.
  646. Some dedicated systems, such as software raid serving with
  647. accelerated calculations, have shown significant increases.
  648. If you configure a 64 bit kernel for 64k pages but the
  649. processor does not support them, then the kernel will simulate
  650. them with 4k pages, loading them on demand, but with the
  651. reduced software overhead and larger internal fragmentation.
  652. For the 32 bit kernel, a large page option will not be offered
  653. unless it is supported by the configured processor.
  654. If unsure, choose 4K_PAGES.
  655. config PPC_4K_PAGES
  656. bool "4k page size"
  657. select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
  658. config PPC_16K_PAGES
  659. bool "16k page size"
  660. depends on 44x || PPC_8xx
  661. config PPC_64K_PAGES
  662. bool "64k page size"
  663. depends on 44x || PPC_BOOK3S_64
  664. select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64
  665. config PPC_256K_PAGES
  666. bool "256k page size (Requires non-standard binutils settings)"
  667. depends on 44x && !PPC_47x
  668. help
  669. Make the page size 256k.
  670. The kernel will only be able to run applications that have been
  671. compiled with '-zmax-page-size' set to 256K (the default is 64K) using
  672. binutils later than 2.17.50.0.3, or by patching the ELF_MAXPAGESIZE
  673. definition from 0x10000 to 0x40000 in older versions.
  674. endchoice
  675. config PAGE_SIZE_4KB
  676. def_bool y
  677. depends on PPC_4K_PAGES
  678. config PAGE_SIZE_16KB
  679. def_bool y
  680. depends on PPC_16K_PAGES
  681. config PAGE_SIZE_64KB
  682. def_bool y
  683. depends on PPC_64K_PAGES
  684. config PAGE_SIZE_256KB
  685. def_bool y
  686. depends on PPC_256K_PAGES
  687. config PPC_PAGE_SHIFT
  688. int
  689. default 18 if PPC_256K_PAGES
  690. default 16 if PPC_64K_PAGES
  691. default 14 if PPC_16K_PAGES
  692. default 12
  693. config THREAD_SHIFT
  694. int "Thread shift" if EXPERT
  695. range 13 15
  696. default "15" if PPC_256K_PAGES
  697. default "14" if PPC64
  698. default "13"
  699. help
  700. Used to define the stack size. The default is almost always what you
  701. want. Only change this if you know what you are doing.
  702. config DATA_SHIFT_BOOL
  703. bool "Set custom data alignment"
  704. depends on ADVANCED_OPTIONS
  705. depends on STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE
  706. depends on PPC_BOOK3S_32 || (PPC_8xx && !PIN_TLB_DATA && !STRICT_KERNEL_RWX) || \
  707. PPC_85xx
  708. help
  709. This option allows you to set the kernel data alignment. When
  710. RAM is mapped by blocks, the alignment needs to fit the size and
  711. number of possible blocks. The default should be OK for most configs.
  712. Say N here unless you know what you are doing.
  713. config DATA_SHIFT
  714. int "Data shift" if DATA_SHIFT_BOOL
  715. default 24 if STRICT_KERNEL_RWX && PPC64
  716. range 17 28 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
  717. range 19 23 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
  718. range 20 24 if (STRICT_KERNEL_RWX || DEBUG_PAGEALLOC || KFENCE) && PPC_85xx
  719. default 22 if STRICT_KERNEL_RWX && PPC_BOOK3S_32
  720. default 18 if (DEBUG_PAGEALLOC || KFENCE) && PPC_BOOK3S_32
  721. default 23 if STRICT_KERNEL_RWX && PPC_8xx
  722. default 23 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx && PIN_TLB_DATA
  723. default 19 if (DEBUG_PAGEALLOC || KFENCE) && PPC_8xx
  724. default 24 if STRICT_KERNEL_RWX && PPC_85xx
  725. default PPC_PAGE_SHIFT
  726. help
  727. On Book3S 32 (603+), DBATs are used to map kernel text and rodata RO.
  728. Smaller is the alignment, greater is the number of necessary DBATs.
  729. On 8xx, large pages (512kb or 8M) are used to map kernel linear
  730. memory. Aligning to 8M reduces TLB misses as only 8M pages are used
  731. in that case. If PIN_TLB is selected, it must be aligned to 8M as
  732. 8M pages will be pinned.
  733. config ARCH_FORCE_MAX_ORDER
  734. int "Maximum zone order"
  735. range 8 9 if PPC64 && PPC_64K_PAGES
  736. default "9" if PPC64 && PPC_64K_PAGES
  737. range 13 13 if PPC64 && !PPC_64K_PAGES
  738. default "13" if PPC64 && !PPC_64K_PAGES
  739. range 9 64 if PPC32 && PPC_16K_PAGES
  740. default "9" if PPC32 && PPC_16K_PAGES
  741. range 7 64 if PPC32 && PPC_64K_PAGES
  742. default "7" if PPC32 && PPC_64K_PAGES
  743. range 5 64 if PPC32 && PPC_256K_PAGES
  744. default "5" if PPC32 && PPC_256K_PAGES
  745. range 11 64
  746. default "11"
  747. help
  748. The kernel memory allocator divides physically contiguous memory
  749. blocks into "zones", where each zone is a power of two number of
  750. pages. This option selects the largest power of two that the kernel
  751. keeps in the memory allocator. If you need to allocate very large
  752. blocks of physically contiguous memory, then you may need to
  753. increase this value.
  754. This config option is actually maximum order plus one. For example,
  755. a value of 11 means that the largest free memory block is 2^10 pages.
  756. The page size is not necessarily 4KB. For example, on 64-bit
  757. systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep
  758. this in mind when choosing a value for this option.
  759. config PPC_SUBPAGE_PROT
  760. bool "Support setting protections for 4k subpages (subpage_prot syscall)"
  761. default n
  762. depends on PPC_64S_HASH_MMU && PPC_64K_PAGES
  763. help
  764. This option adds support for system call to allow user programs
  765. to set access permissions (read/write, readonly, or no access)
  766. on the 4k subpages of each 64k page.
  767. If unsure, say N here.
  768. config PPC_PROT_SAO_LPAR
  769. bool "Support PROT_SAO mappings in LPARs"
  770. depends on PPC_BOOK3S_64
  771. help
  772. This option adds support for PROT_SAO mappings from userspace
  773. inside LPARs on supported CPUs.
  774. This may cause issues when performing guest migration from
  775. a CPU that supports SAO to one that does not.
  776. If unsure, say N here.
  777. config PPC_COPRO_BASE
  778. bool
  779. config SCHED_SMT
  780. bool "SMT (Hyperthreading) scheduler support"
  781. depends on PPC64 && SMP
  782. help
  783. SMT scheduler support improves the CPU scheduler's decision making
  784. when dealing with POWER5 cpus at a cost of slightly increased
  785. overhead in some places. If unsure say N here.
  786. config PPC_DENORMALISATION
  787. bool "PowerPC denormalisation exception handling"
  788. depends on PPC_BOOK3S_64
  789. default "y" if PPC_POWERNV
  790. help
  791. Add support for handling denormalisation of single precision
  792. values. Useful for bare metal only. If unsure say Y here.
  793. config CMDLINE
  794. string "Initial kernel command string"
  795. default ""
  796. help
  797. On some platforms, there is currently no way for the boot loader to
  798. pass arguments to the kernel. For these platforms, you can supply
  799. some command-line options at build time by entering them here. In
  800. most cases you will need to specify the root device here.
  801. choice
  802. prompt "Kernel command line type" if CMDLINE != ""
  803. default CMDLINE_FROM_BOOTLOADER
  804. config CMDLINE_FROM_BOOTLOADER
  805. bool "Use bootloader kernel arguments if available"
  806. help
  807. Uses the command-line options passed by the boot loader. If
  808. the boot loader doesn't provide any, the default kernel command
  809. string provided in CMDLINE will be used.
  810. config CMDLINE_EXTEND
  811. bool "Extend bootloader kernel arguments"
  812. help
  813. The command-line arguments provided by the boot loader will be
  814. appended to the default kernel command string.
  815. config CMDLINE_FORCE
  816. bool "Always use the default kernel command string"
  817. help
  818. Always use the default kernel command string, even if the boot
  819. loader passes other arguments to the kernel.
  820. This is useful if you cannot or don't want to change the
  821. command-line options your boot loader passes to the kernel.
  822. endchoice
  823. config EXTRA_TARGETS
  824. string "Additional default image types"
  825. help
  826. List additional targets to be built by the bootwrapper here (separated
  827. by spaces). This is useful for targets that depend of device tree
  828. files in the .dts directory.
  829. Targets in this list will be build as part of the default build
  830. target, or when the user does a 'make zImage' or a
  831. 'make zImage.initrd'.
  832. If unsure, leave blank
  833. config ARCH_WANTS_FREEZER_CONTROL
  834. def_bool y
  835. depends on ADB_PMU
  836. source "kernel/power/Kconfig"
  837. config PPC_MEM_KEYS
  838. prompt "PowerPC Memory Protection Keys"
  839. def_bool y
  840. depends on PPC_BOOK3S_64
  841. depends on PPC_64S_HASH_MMU
  842. select ARCH_USES_HIGH_VMA_FLAGS
  843. select ARCH_HAS_PKEYS
  844. help
  845. Memory Protection Keys provides a mechanism for enforcing
  846. page-based protections, but without requiring modification of the
  847. page tables when an application changes protection domains.
  848. For details, see Documentation/core-api/protection-keys.rst
  849. If unsure, say y.
  850. config PPC_SECURE_BOOT
  851. prompt "Enable secure boot support"
  852. bool
  853. depends on PPC_POWERNV || PPC_PSERIES
  854. depends on IMA_ARCH_POLICY
  855. imply IMA_SECURE_AND_OR_TRUSTED_BOOT
  856. help
  857. Systems with firmware secure boot enabled need to define security
  858. policies to extend secure boot to the OS. This config allows a user
  859. to enable OS secure boot on systems that have firmware support for
  860. it. If in doubt say N.
  861. config PPC_SECVAR_SYSFS
  862. bool "Enable sysfs interface for POWER secure variables"
  863. default y
  864. depends on PPC_SECURE_BOOT
  865. depends on SYSFS
  866. help
  867. POWER secure variables are managed and controlled by firmware.
  868. These variables are exposed to userspace via sysfs to enable
  869. read/write operations on these variables. Say Y if you have
  870. secure boot enabled and want to expose variables to userspace.
  871. config PPC_RTAS_FILTER
  872. bool "Enable filtering of RTAS syscalls"
  873. default y
  874. depends on PPC_RTAS
  875. help
  876. The RTAS syscall API has security issues that could be used to
  877. compromise system integrity. This option enforces restrictions on the
  878. RTAS calls and arguments passed by userspace programs to mitigate
  879. these issues.
  880. Say Y unless you know what you are doing and the filter is causing
  881. problems for you.
  882. endmenu
  883. config ISA_DMA_API
  884. bool
  885. default PCI
  886. menu "Bus options"
  887. config ISA
  888. bool "Support for ISA-bus hardware"
  889. depends on PPC_CHRP
  890. select PPC_I8259
  891. help
  892. Find out whether you have ISA slots on your motherboard. ISA is the
  893. name of a bus system, i.e. the way the CPU talks to the other stuff
  894. inside your box. If you have an Apple machine, say N here; if you
  895. have an IBM RS/6000 or pSeries machine, say Y. If you have an
  896. embedded board, consult your board documentation.
  897. config GENERIC_ISA_DMA
  898. bool
  899. depends on ISA_DMA_API
  900. default y
  901. config PPC_INDIRECT_PCI
  902. bool
  903. depends on PCI
  904. default y if 40x || 44x
  905. config SBUS
  906. bool
  907. config FSL_SOC
  908. bool
  909. config FSL_PCI
  910. bool
  911. select ARCH_HAS_DMA_SET_MASK
  912. select PPC_INDIRECT_PCI
  913. select PCI_QUIRKS
  914. config FSL_PMC
  915. bool
  916. default y
  917. depends on SUSPEND && (PPC_85xx || PPC_86xx)
  918. help
  919. Freescale MPC85xx/MPC86xx power management controller support
  920. (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
  921. config PPC4xx_CPM
  922. bool
  923. default y
  924. depends on SUSPEND && (44x || 40x)
  925. help
  926. PPC4xx Clock Power Management (CPM) support (suspend/resume).
  927. It also enables support for two different idle states (idle-wait
  928. and idle-doze).
  929. config 4xx_SOC
  930. bool
  931. config FSL_LBC
  932. bool "Freescale Local Bus support"
  933. help
  934. Enables reporting of errors from the Freescale local bus
  935. controller. Also contains some common code used by
  936. drivers for specific local bus peripherals.
  937. config FSL_GTM
  938. bool
  939. depends on PPC_83xx || QUICC_ENGINE || CPM2
  940. help
  941. Freescale General-purpose Timers support
  942. config PCI_8260
  943. bool
  944. depends on PCI && 8260
  945. select PPC_INDIRECT_PCI
  946. default y
  947. config FSL_RIO
  948. bool "Freescale Embedded SRIO Controller support"
  949. depends on RAPIDIO = y && HAVE_RAPIDIO
  950. default "n"
  951. help
  952. Include support for RapidIO controller on Freescale embedded
  953. processors (MPC8548, MPC8641, etc).
  954. endmenu
  955. config NONSTATIC_KERNEL
  956. bool
  957. menu "Advanced setup"
  958. depends on PPC32
  959. config ADVANCED_OPTIONS
  960. bool "Prompt for advanced kernel configuration options"
  961. help
  962. This option will enable prompting for a variety of advanced kernel
  963. configuration options. These options can cause the kernel to not
  964. work if they are set incorrectly, but can be used to optimize certain
  965. aspects of kernel memory management.
  966. Unless you know what you are doing, say N here.
  967. comment "Default settings for advanced configuration options are used"
  968. depends on !ADVANCED_OPTIONS
  969. config LOWMEM_SIZE_BOOL
  970. bool "Set maximum low memory"
  971. depends on ADVANCED_OPTIONS
  972. help
  973. This option allows you to set the maximum amount of memory which
  974. will be used as "low memory", that is, memory which the kernel can
  975. access directly, without having to set up a kernel virtual mapping.
  976. This can be useful in optimizing the layout of kernel virtual
  977. memory.
  978. Say N here unless you know what you are doing.
  979. config LOWMEM_SIZE
  980. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  981. default "0x30000000"
  982. config LOWMEM_CAM_NUM_BOOL
  983. bool "Set number of CAMs to use to map low memory"
  984. depends on ADVANCED_OPTIONS && PPC_85xx
  985. help
  986. This option allows you to set the maximum number of CAM slots that
  987. will be used to map low memory. There are a limited number of slots
  988. available and even more limited number that will fit in the L1 MMU.
  989. However, using more entries will allow mapping more low memory. This
  990. can be useful in optimizing the layout of kernel virtual memory.
  991. Say N here unless you know what you are doing.
  992. config LOWMEM_CAM_NUM
  993. depends on PPC_85xx
  994. int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
  995. default 3 if !STRICT_KERNEL_RWX
  996. default 9 if DATA_SHIFT >= 24
  997. default 12 if DATA_SHIFT >= 22
  998. default 15
  999. config DYNAMIC_MEMSTART
  1000. bool "Enable page aligned dynamic load address for kernel"
  1001. depends on ADVANCED_OPTIONS && FLATMEM && (PPC_85xx || 44x)
  1002. select NONSTATIC_KERNEL
  1003. help
  1004. This option enables the kernel to be loaded at any page aligned
  1005. physical address. The kernel creates a mapping from KERNELBASE to
  1006. the address where the kernel is loaded. The page size here implies
  1007. the TLB page size of the mapping for kernel on the particular platform.
  1008. Please refer to the init code for finding the TLB page size.
  1009. DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE
  1010. kernel image, where the only restriction is the page aligned kernel
  1011. load address. When this option is enabled, the compile time physical
  1012. address CONFIG_PHYSICAL_START is ignored.
  1013. This option is overridden by CONFIG_RELOCATABLE
  1014. config PAGE_OFFSET_BOOL
  1015. bool "Set custom page offset address"
  1016. depends on ADVANCED_OPTIONS
  1017. help
  1018. This option allows you to set the kernel virtual address at which
  1019. the kernel will map low memory. This can be useful in optimizing
  1020. the virtual memory layout of the system.
  1021. Say N here unless you know what you are doing.
  1022. config PAGE_OFFSET
  1023. hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
  1024. default "0xc0000000"
  1025. config KERNEL_START_BOOL
  1026. bool "Set custom kernel base address"
  1027. depends on ADVANCED_OPTIONS
  1028. help
  1029. This option allows you to set the kernel virtual address at which
  1030. the kernel will be loaded. Normally this should match PAGE_OFFSET
  1031. however there are times (like kdump) that one might not want them
  1032. to be the same.
  1033. Say N here unless you know what you are doing.
  1034. config KERNEL_START
  1035. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  1036. default PAGE_OFFSET if PAGE_OFFSET_BOOL
  1037. default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL
  1038. default "0xc0000000"
  1039. config PHYSICAL_START_BOOL
  1040. bool "Set physical address where the kernel is loaded"
  1041. depends on ADVANCED_OPTIONS && FLATMEM && PPC_85xx
  1042. help
  1043. This gives the physical address where the kernel is loaded.
  1044. Say N here unless you know what you are doing.
  1045. config PHYSICAL_START
  1046. hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
  1047. default "0x02000000" if PPC_BOOK3S && CRASH_DUMP && !NONSTATIC_KERNEL
  1048. default "0x00000000"
  1049. config PHYSICAL_ALIGN
  1050. hex
  1051. default "0x04000000" if PPC_85xx
  1052. help
  1053. This value puts the alignment restrictions on physical address
  1054. where kernel is loaded and run from. Kernel is compiled for an
  1055. address which meets above alignment restriction.
  1056. config TASK_SIZE_BOOL
  1057. bool "Set custom user task size"
  1058. depends on ADVANCED_OPTIONS
  1059. help
  1060. This option allows you to set the amount of virtual address space
  1061. allocated to user tasks. This can be useful in optimizing the
  1062. virtual memory layout of the system.
  1063. Say N here unless you know what you are doing.
  1064. config TASK_SIZE
  1065. hex "Size of user task space" if TASK_SIZE_BOOL
  1066. default "0x80000000" if PPC_8xx
  1067. default "0xb0000000" if PPC_BOOK3S_32
  1068. default "0xc0000000"
  1069. endmenu
  1070. if PPC64
  1071. # This value must have zeroes in the bottom 60 bits otherwise lots will break
  1072. config PAGE_OFFSET
  1073. hex
  1074. default "0xc000000000000000"
  1075. config KERNEL_START
  1076. hex
  1077. default "0xc000000000000000"
  1078. config PHYSICAL_START
  1079. hex
  1080. default "0x00000000"
  1081. endif
  1082. config PPC_LIB_RHEAP
  1083. bool
  1084. source "arch/powerpc/kvm/Kconfig"
  1085. source "kernel/livepatch/Kconfig"