Kconfig 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. # SPDX-License-Identifier: GPL-2.0
  2. config PARISC
  3. def_bool y
  4. select ALTERNATE_USER_ADDRESS_SPACE
  5. select ARCH_32BIT_OFF_T if !64BIT
  6. select ARCH_MIGHT_HAVE_PC_PARPORT
  7. select HAVE_FUNCTION_TRACER
  8. select HAVE_FUNCTION_GRAPH_TRACER
  9. select HAVE_SYSCALL_TRACEPOINTS
  10. select ARCH_WANT_FRAME_POINTERS
  11. select ARCH_HAS_CPU_CACHE_ALIASING
  12. select ARCH_HAS_DMA_ALLOC if PA11
  13. select ARCH_HAS_DMA_OPS
  14. select ARCH_HAS_ELF_RANDOMIZE
  15. select ARCH_HAS_STRICT_KERNEL_RWX
  16. select ARCH_HAS_STRICT_MODULE_RWX
  17. select ARCH_HAS_UBSAN
  18. select ARCH_HAS_PTE_SPECIAL
  19. select ARCH_NO_SG_CHAIN
  20. select ARCH_SPLIT_ARG64 if !64BIT
  21. select ARCH_SUPPORTS_HUGETLBFS if PA20
  22. select ARCH_SUPPORTS_MEMORY_FAILURE
  23. select ARCH_STACKWALK
  24. select ARCH_HAS_CACHE_LINE_SIZE
  25. select ARCH_HAS_DEBUG_VM_PGTABLE
  26. select HAVE_RELIABLE_STACKTRACE
  27. select RTC_CLASS
  28. select RTC_DRV_GENERIC
  29. select INIT_ALL_POSSIBLE
  30. select BUG
  31. select HAVE_KERNEL_UNCOMPRESSED
  32. select HAVE_PCI
  33. select HAVE_PERF_EVENTS
  34. select HAVE_KERNEL_BZIP2
  35. select HAVE_KERNEL_GZIP
  36. select HAVE_KERNEL_LZ4
  37. select HAVE_KERNEL_LZMA
  38. select HAVE_KERNEL_LZO
  39. select HAVE_KERNEL_XZ
  40. select GENERIC_ATOMIC64 if !64BIT
  41. select GENERIC_IRQ_PROBE
  42. select GENERIC_PCI_IOMAP
  43. select GENERIC_IOREMAP
  44. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  45. select GENERIC_SMP_IDLE_THREAD
  46. select GENERIC_ARCH_TOPOLOGY if SMP
  47. select GENERIC_CPU_DEVICES if !SMP
  48. select GENERIC_LIB_DEVMEM_IS_ALLOWED
  49. select SYSCTL_ARCH_UNALIGN_ALLOW
  50. select SYSCTL_ARCH_UNALIGN_NO_WARN
  51. select SYSCTL_EXCEPTION_TRACE
  52. select HAVE_MOD_ARCH_SPECIFIC
  53. select MODULES_USE_ELF_RELA
  54. select CLONE_BACKWARDS
  55. select TTY # Needed for pdc_cons.c
  56. select HAS_IOPORT if PCI || EISA
  57. select HAVE_DEBUG_STACKOVERFLOW
  58. select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
  59. select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
  60. select HAVE_ARCH_MMAP_RND_BITS
  61. select HAVE_ARCH_AUDITSYSCALL
  62. select HAVE_ARCH_HASH
  63. # select HAVE_ARCH_JUMP_LABEL
  64. # select HAVE_ARCH_JUMP_LABEL_RELATIVE
  65. select HAVE_ARCH_KFENCE
  66. select HAVE_ARCH_SECCOMP_FILTER
  67. select HAVE_ARCH_TRACEHOOK
  68. select HAVE_EBPF_JIT
  69. select ARCH_WANT_DEFAULT_BPF_JIT
  70. select HAVE_REGS_AND_STACK_ACCESS_API
  71. select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
  72. select GENERIC_SCHED_CLOCK
  73. select GENERIC_IRQ_MIGRATION if SMP
  74. select HAVE_UNSTABLE_SCHED_CLOCK if SMP
  75. select GENERIC_CLOCKEVENTS
  76. select CPU_NO_EFFICIENT_FFS
  77. select THREAD_INFO_IN_TASK
  78. select NEED_DMA_MAP_STATE
  79. select NEED_SG_DMA_LENGTH
  80. select HAVE_ARCH_KGDB
  81. select HAVE_KPROBES
  82. select HAVE_KRETPROBES
  83. select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
  84. select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
  85. select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
  86. select HAVE_KPROBES_ON_FTRACE
  87. select HAVE_DYNAMIC_FTRACE_WITH_REGS
  88. select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
  89. select TRACE_IRQFLAGS_SUPPORT
  90. select HAVE_FUNCTION_DESCRIPTORS if 64BIT
  91. select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
  92. help
  93. The PA-RISC microprocessor is designed by Hewlett-Packard and used
  94. in many of their workstations & servers (HP9000 700 and 800 series,
  95. and later HP3000 series). The PA-RISC Linux project home page is
  96. at <https://parisc.wiki.kernel.org>.
  97. config CPU_BIG_ENDIAN
  98. def_bool y
  99. config MMU
  100. def_bool y
  101. config STACK_GROWSUP
  102. def_bool y
  103. config GENERIC_LOCKBREAK
  104. bool
  105. default y
  106. depends on SMP && PREEMPTION
  107. config ARCH_HAS_ILOG2_U32
  108. bool
  109. default n
  110. config ARCH_HAS_ILOG2_U64
  111. bool
  112. default n
  113. config GENERIC_BUG
  114. def_bool y
  115. depends on BUG
  116. select GENERIC_BUG_RELATIVE_POINTERS if 64BIT
  117. config GENERIC_BUG_RELATIVE_POINTERS
  118. bool
  119. config GENERIC_HWEIGHT
  120. bool
  121. default y
  122. config GENERIC_CALIBRATE_DELAY
  123. bool
  124. default y
  125. config TIME_LOW_RES
  126. bool
  127. depends on SMP
  128. default y
  129. config ARCH_MMAP_RND_BITS_MIN
  130. default 18 if 64BIT
  131. default 8
  132. config ARCH_MMAP_RND_COMPAT_BITS_MIN
  133. default 8
  134. config ARCH_MMAP_RND_BITS_MAX
  135. default 18 if 64BIT
  136. default 13
  137. config ARCH_MMAP_RND_COMPAT_BITS_MAX
  138. default 13
  139. # unless you want to implement ACPI on PA-RISC ... ;-)
  140. config PM
  141. bool
  142. config STACKTRACE_SUPPORT
  143. def_bool y
  144. config LOCKDEP_SUPPORT
  145. bool
  146. default y
  147. config ISA_DMA_API
  148. bool
  149. config ARCH_MAY_HAVE_PC_FDC
  150. bool
  151. depends on BROKEN
  152. default y
  153. config PGTABLE_LEVELS
  154. int
  155. default 3 if 64BIT && PARISC_PAGE_SIZE_4KB
  156. default 2
  157. menu "Processor type and features"
  158. choice
  159. prompt "Processor type"
  160. default PA7000 if "$(ARCH)" = "parisc"
  161. config PA7000
  162. bool "PA7000/PA7100" if "$(ARCH)" = "parisc"
  163. help
  164. This is the processor type of your CPU. This information is
  165. used for optimizing purposes. In order to compile a kernel
  166. that can run on all 32-bit PA CPUs (albeit not optimally fast),
  167. you can specify "PA7000" here.
  168. Specifying "PA8000" here will allow you to select a 64-bit kernel
  169. which is required on some machines.
  170. config PA7100LC
  171. bool "PA7100LC" if "$(ARCH)" = "parisc"
  172. help
  173. Select this option for the PCX-L processor, as used in the
  174. 712, 715/64, 715/80, 715/100, 715/100XC, 725/100, 743, 748,
  175. D200, D210, D300, D310 and E-class
  176. config PA7200
  177. bool "PA7200" if "$(ARCH)" = "parisc"
  178. help
  179. Select this option for the PCX-T' processor, as used in the
  180. C100, C110, J100, J110, J210XC, D250, D260, D350, D360,
  181. K100, K200, K210, K220, K400, K410 and K420
  182. config PA7300LC
  183. bool "PA7300LC" if "$(ARCH)" = "parisc"
  184. help
  185. Select this option for the PCX-L2 processor, as used in the
  186. 744, A180, B132L, B160L, B180L, C132L, C160L, C180L,
  187. D220, D230, D320 and D330.
  188. config PA8X00
  189. bool "PA8000 and up"
  190. help
  191. Select this option for PCX-U to PCX-W2 processors.
  192. endchoice
  193. # Define implied options from the CPU selection here
  194. config PA20
  195. def_bool y
  196. depends on PA8X00
  197. config PA11
  198. def_bool y
  199. depends on PA7000 || PA7100LC || PA7200 || PA7300LC
  200. select ARCH_HAS_SYNC_DMA_FOR_CPU
  201. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  202. config PREFETCH
  203. def_bool y
  204. depends on PA8X00 || PA7200
  205. config PARISC_HUGE_KERNEL
  206. def_bool y if !MODULES || UBSAN || FTRACE || COMPILE_TEST
  207. config MLONGCALLS
  208. bool "Enable the -mlong-calls compiler option for big kernels" if !PARISC_HUGE_KERNEL
  209. depends on PA8X00
  210. default PARISC_HUGE_KERNEL
  211. help
  212. If you configure the kernel to include many drivers built-in instead
  213. as modules, the kernel executable may become too big, so that the
  214. linker will not be able to resolve some long branches and fails to link
  215. your vmlinux kernel. In that case enabling this option will help you
  216. to overcome this limit by using the -mlong-calls compiler option.
  217. Usually you want to say N here, unless you e.g. want to build
  218. a kernel which includes all necessary drivers built-in and which can
  219. be used for TFTP booting without the need to have an initrd ramdisk.
  220. Enabling this option will probably slow down your kernel.
  221. config 64BIT
  222. bool "64-bit kernel" if "$(ARCH)" = "parisc"
  223. depends on PA8X00
  224. default "$(ARCH)" = "parisc64"
  225. help
  226. Enable this if you want to support 64bit kernel on PA-RISC platform.
  227. At the moment, only people willing to use more than 2GB of RAM,
  228. or having a 64bit-only capable PA-RISC machine should say Y here.
  229. Since there is no 64bit userland on PA-RISC, there is no point to
  230. enable this option otherwise. The 64bit kernel is significantly bigger
  231. and slower than the 32bit one.
  232. choice
  233. prompt "Kernel page size"
  234. default PARISC_PAGE_SIZE_4KB
  235. config PARISC_PAGE_SIZE_4KB
  236. bool "4KB"
  237. select HAVE_PAGE_SIZE_4KB
  238. help
  239. This lets you select the page size of the kernel. For best
  240. performance, a page size of 16KB is recommended. For best
  241. compatibility with 32bit applications, a page size of 4KB should be
  242. selected (the vast majority of 32bit binaries work perfectly fine
  243. with a larger page size).
  244. 4KB For best 32bit compatibility
  245. 16KB For best performance
  246. 64KB For best performance, might give more overhead.
  247. If you don't know what to do, choose 4KB.
  248. config PARISC_PAGE_SIZE_16KB
  249. bool "16KB"
  250. select HAVE_PAGE_SIZE_16KB
  251. depends on PA8X00 && BROKEN && !KFENCE
  252. config PARISC_PAGE_SIZE_64KB
  253. bool "64KB"
  254. select HAVE_PAGE_SIZE_64KB
  255. depends on PA8X00 && BROKEN && !KFENCE
  256. endchoice
  257. config SMP
  258. bool "Symmetric multi-processing support"
  259. help
  260. This enables support for systems with more than one CPU. If you have
  261. a system with only one CPU, say N. If you have a system with more
  262. than one CPU, say Y.
  263. If you say N here, the kernel will run on uni- and multiprocessor
  264. machines, but will use only one CPU of a multiprocessor machine.
  265. On a uniprocessor machine, the kernel will run faster if you say N.
  266. See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
  267. available at <https://www.tldp.org/docs.html#howto>.
  268. If you don't know what to do here, say N.
  269. config SCHED_MC
  270. bool "Multi-core scheduler support"
  271. depends on GENERIC_ARCH_TOPOLOGY && PA8X00
  272. help
  273. Multi-core scheduler support improves the CPU scheduler's decision
  274. making when dealing with multi-core CPU chips at a cost of slightly
  275. increased overhead in some places. If unsure say N here.
  276. config IRQSTACKS
  277. bool "Use separate kernel stacks when processing interrupts"
  278. default y
  279. help
  280. If you say Y here the kernel will use separate kernel stacks
  281. for handling hard and soft interrupts. This can help avoid
  282. overflowing the process kernel stacks.
  283. config HOTPLUG_CPU
  284. bool
  285. default y if SMP
  286. config ARCH_SELECT_MEMORY_MODEL
  287. def_bool y
  288. depends on 64BIT
  289. config ARCH_SPARSEMEM_ENABLE
  290. def_bool y
  291. depends on 64BIT
  292. config ARCH_FLATMEM_ENABLE
  293. def_bool y
  294. config ARCH_SPARSEMEM_DEFAULT
  295. def_bool y
  296. depends on ARCH_SPARSEMEM_ENABLE
  297. source "kernel/Kconfig.hz"
  298. config COMPAT
  299. def_bool y
  300. depends on 64BIT
  301. config AUDIT_ARCH
  302. def_bool y
  303. config NR_CPUS
  304. int "Maximum number of CPUs (2-32)"
  305. range 2 32
  306. depends on SMP
  307. default "8" if 64BIT
  308. default "16"
  309. endmenu
  310. config ARCH_SUPPORTS_KEXEC
  311. def_bool y
  312. config ARCH_SUPPORTS_KEXEC_FILE
  313. def_bool y
  314. config ARCH_SELECTS_KEXEC_FILE
  315. def_bool y
  316. depends on KEXEC_FILE
  317. select KEXEC_ELF
  318. source "drivers/parisc/Kconfig"