Kconfig 37 KB

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