Kconfig 9.6 KB

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