1# SPDX-License-Identifier: GPL-2.0
2config PGTABLE_LEVELS
3	int "Page Table Levels" if !IA64_PAGE_SIZE_64KB
4	range 3 4 if !IA64_PAGE_SIZE_64KB
5	default 3
6
7menu "Processor type and features"
8
9config IA64
10	bool
11	select ARCH_MIGHT_HAVE_PC_PARPORT
12	select ARCH_MIGHT_HAVE_PC_SERIO
13	select ACPI
14	select ACPI_NUMA if NUMA
15	select ARCH_SUPPORTS_ACPI
16	select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
17	select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
18	select FORCE_PCI
19	select PCI_DOMAINS if PCI
20	select PCI_MSI
21	select PCI_SYSCALL if PCI
22	select HAVE_ASM_MODVERSIONS
23	select HAVE_UNSTABLE_SCHED_CLOCK
24	select HAVE_EXIT_THREAD
25	select HAVE_IDE
26	select HAVE_OPROFILE
27	select HAVE_KPROBES
28	select HAVE_KRETPROBES
29	select HAVE_FTRACE_MCOUNT_RECORD
30	select HAVE_DYNAMIC_FTRACE if (!ITANIUM)
31	select HAVE_FUNCTION_TRACER
32	select TTY
33	select HAVE_ARCH_TRACEHOOK
34	select HAVE_MEMBLOCK_NODE_MAP
35	select HAVE_VIRT_CPU_ACCOUNTING
36	select ARCH_HAS_DMA_COHERENT_TO_PFN
37	select ARCH_HAS_SYNC_DMA_FOR_CPU
38	select VIRT_TO_BUS
39	select GENERIC_IRQ_PROBE
40	select GENERIC_PENDING_IRQ if SMP
41	select GENERIC_IRQ_SHOW
42	select GENERIC_IRQ_LEGACY
43	select ARCH_HAVE_NMI_SAFE_CMPXCHG
44	select GENERIC_IOMAP
45	select GENERIC_SMP_IDLE_THREAD
46	select ARCH_TASK_STRUCT_ON_STACK
47	select ARCH_TASK_STRUCT_ALLOCATOR
48	select ARCH_THREAD_STACK_ALLOCATOR
49	select ARCH_CLOCKSOURCE_DATA
50	select GENERIC_TIME_VSYSCALL
51	select SWIOTLB
52	select SYSCTL_ARCH_UNALIGN_NO_WARN
53	select HAVE_MOD_ARCH_SPECIFIC
54	select MODULES_USE_ELF_RELA
55	select ARCH_USE_CMPXCHG_LOCKREF
56	select HAVE_ARCH_AUDITSYSCALL
57	select NEED_DMA_MAP_STATE
58	select NEED_SG_DMA_LENGTH
59	select NUMA if !FLATMEM
60	default y
61	help
62	  The Itanium Processor Family is Intel's 64-bit successor to
63	  the 32-bit X86 line.  The IA-64 Linux project has a home
64	  page at <http://www.linuxia64.org/> and a mailing list at
65	  <linux-ia64@vger.kernel.org>.
66
67config 64BIT
68	bool
69	select ATA_NONSTANDARD if ATA
70	default y
71
72config ZONE_DMA32
73	def_bool y
74
75config MMU
76	bool
77	default y
78
79config STACKTRACE_SUPPORT
80	def_bool y
81
82config GENERIC_LOCKBREAK
83	def_bool n
84
85config HUGETLB_PAGE_SIZE_VARIABLE
86	bool
87	depends on HUGETLB_PAGE
88	default y
89
90config GENERIC_CALIBRATE_DELAY
91	bool
92	default y
93
94config HAVE_SETUP_PER_CPU_AREA
95	def_bool y
96
97config DMI
98	bool
99	default y
100	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
101
102config EFI
103	bool
104	select UCS2_STRING
105	default y
106
107config SCHED_OMIT_FRAME_POINTER
108	bool
109	default y
110
111config IA64_UNCACHED_ALLOCATOR
112	bool
113	select GENERIC_ALLOCATOR
114
115config ARCH_USES_PG_UNCACHED
116	def_bool y
117	depends on IA64_UNCACHED_ALLOCATOR
118
119config AUDIT_ARCH
120	bool
121	default y
122
123choice
124	prompt "Processor type"
125	default ITANIUM
126
127config ITANIUM
128	bool "Itanium"
129	help
130	  Select your IA-64 processor type.  The default is Itanium.
131	  This choice is safe for all IA-64 systems, but may not perform
132	  optimally on systems with, say, Itanium 2 or newer processors.
133
134config MCKINLEY
135	bool "Itanium 2"
136	help
137	  Select this to configure for an Itanium 2 (McKinley) processor.
138
139endchoice
140
141choice
142	prompt "Kernel page size"
143	default IA64_PAGE_SIZE_16KB
144
145config IA64_PAGE_SIZE_4KB
146	bool "4KB"
147	help
148	  This lets you select the page size of the kernel.  For best IA-64
149	  performance, a page size of 8KB or 16KB is recommended.  For best
150	  IA-32 compatibility, a page size of 4KB should be selected (the vast
151	  majority of IA-32 binaries work perfectly fine with a larger page
152	  size).  For Itanium 2 or newer systems, a page size of 64KB can also
153	  be selected.
154
155	  4KB                For best IA-32 compatibility
156	  8KB                For best IA-64 performance
157	  16KB               For best IA-64 performance
158	  64KB               Requires Itanium 2 or newer processor.
159
160	  If you don't know what to do, choose 16KB.
161
162config IA64_PAGE_SIZE_8KB
163	bool "8KB"
164
165config IA64_PAGE_SIZE_16KB
166	bool "16KB"
167
168config IA64_PAGE_SIZE_64KB
169	depends on !ITANIUM
170	bool "64KB"
171
172endchoice
173
174source "kernel/Kconfig.hz"
175
176config IA64_BRL_EMU
177	bool
178	depends on ITANIUM
179	default y
180
181# align cache-sensitive data to 128 bytes
182config IA64_L1_CACHE_SHIFT
183	int
184	default "7" if MCKINLEY
185	default "6" if ITANIUM
186
187config IA64_SGI_UV
188	bool "SGI-UV support"
189	help
190	  Selecting this option will add specific support for running on SGI
191	  UV based systems.  If you have an SGI UV system or are building a
192	  distro kernel, select this option.
193
194config IA64_HP_SBA_IOMMU
195	bool "HP SBA IOMMU support"
196	default y
197	help
198	  Say Y here to add support for the SBA IOMMU found on HP zx1 and
199	  sx1000 systems.  If you're unsure, answer Y.
200
201config IA64_CYCLONE
202	bool "Cyclone (EXA) Time Source support"
203	help
204	  Say Y here to enable support for IBM EXA Cyclone time source.
205	  If you're unsure, answer N.
206
207config FORCE_MAX_ZONEORDER
208	int "MAX_ORDER (11 - 17)"  if !HUGETLB_PAGE
209	range 11 17  if !HUGETLB_PAGE
210	default "17" if HUGETLB_PAGE
211	default "11"
212
213config SMP
214	bool "Symmetric multi-processing support"
215	help
216	  This enables support for systems with more than one CPU. If you have
217	  a system with only one CPU, say N.  If you have a system with more
218	  than one CPU, say Y.
219
220	  If you say N here, the kernel will run on single and multiprocessor
221	  systems, but will use only one CPU of a multiprocessor system.  If
222	  you say Y here, the kernel will run on many, but not all,
223	  single processor systems.  On a single processor system, the kernel
224	  will run faster if you say N here.
225
226	  See also the SMP-HOWTO available at
227	  <http://www.tldp.org/docs.html#howto>.
228
229	  If you don't know what to do here, say N.
230
231config NR_CPUS
232	int "Maximum number of CPUs (2-4096)"
233	range 2 4096
234	depends on SMP
235	default "4096"
236	help
237	  You should set this to the number of CPUs in your system, but
238	  keep in mind that a kernel compiled for, e.g., 2 CPUs will boot but
239	  only use 2 CPUs on a >2 CPU system.  Setting this to a value larger
240	  than 64 will cause the use of a CPU mask array, causing a small
241	  performance hit.
242
243config HOTPLUG_CPU
244	bool "Support for hot-pluggable CPUs"
245	depends on SMP
246	default n
247	---help---
248	  Say Y here to experiment with turning CPUs off and on.  CPUs
249	  can be controlled through /sys/devices/system/cpu/cpu#.
250	  Say N if you want to disable CPU hotplug.
251
252config ARCH_ENABLE_MEMORY_HOTPLUG
253	def_bool y
254
255config ARCH_ENABLE_MEMORY_HOTREMOVE
256	def_bool y
257
258config SCHED_SMT
259	bool "SMT scheduler support"
260	depends on SMP
261	help
262	  Improves the CPU scheduler's decision making when dealing with
263	  Intel IA64 chips with MultiThreading at a cost of slightly increased
264	  overhead in some places. If unsure say N here.
265
266config PERMIT_BSP_REMOVE
267	bool "Support removal of Bootstrap Processor"
268	depends on HOTPLUG_CPU
269	default n
270	---help---
271	Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
272	support.
273
274config FORCE_CPEI_RETARGET
275	bool "Force assumption that CPEI can be re-targeted"
276	depends on PERMIT_BSP_REMOVE
277	default n
278	---help---
279	Say Y if you need to force the assumption that CPEI can be re-targeted to
280	any cpu in the system. This hint is available via ACPI 3.0 specifications.
281	Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
282	This option it useful to enable this feature on older BIOS's as well.
283	You can also enable this by using boot command line option force_cpei=1.
284
285config ARCH_SELECT_MEMORY_MODEL
286	def_bool y
287
288config ARCH_DISCONTIGMEM_ENABLE
289	def_bool y
290	help
291	  Say Y to support efficient handling of discontiguous physical memory,
292	  for architectures which are either NUMA (Non-Uniform Memory Access)
293	  or have huge holes in the physical address space for other reasons.
294	  See <file:Documentation/vm/numa.rst> for more.
295
296config ARCH_FLATMEM_ENABLE
297	def_bool y
298
299config ARCH_SPARSEMEM_ENABLE
300	def_bool y
301	depends on ARCH_DISCONTIGMEM_ENABLE
302	select SPARSEMEM_VMEMMAP_ENABLE
303
304config ARCH_DISCONTIGMEM_DEFAULT
305	def_bool y
306	depends on ARCH_DISCONTIGMEM_ENABLE
307
308config NUMA
309	bool "NUMA support"
310	depends on !FLATMEM
311	select SMP
312	help
313	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
314	  Access).  This option is for configuring high-end multiprocessor
315	  server systems.  If in doubt, say N.
316
317config NODES_SHIFT
318	int "Max num nodes shift(3-10)"
319	range 3 10
320	default "10"
321	depends on NEED_MULTIPLE_NODES
322	help
323	  This option specifies the maximum number of nodes in your SSI system.
324	  MAX_NUMNODES will be 2^(This value).
325	  If in doubt, use the default.
326
327# VIRTUAL_MEM_MAP and FLAT_NODE_MEM_MAP are functionally equivalent.
328# VIRTUAL_MEM_MAP has been retained for historical reasons.
329config VIRTUAL_MEM_MAP
330	bool "Virtual mem map"
331	depends on !SPARSEMEM
332	default y
333	help
334	  Say Y to compile the kernel with support for a virtual mem map.
335	  This code also only takes effect if a memory hole of greater than
336	  1 Gb is found during boot.  You must turn this option on if you
337	  require the DISCONTIGMEM option for your machine. If you are
338	  unsure, say Y.
339
340config HOLES_IN_ZONE
341	bool
342	default y if VIRTUAL_MEM_MAP
343
344config HAVE_ARCH_EARLY_PFN_TO_NID
345	def_bool NUMA && SPARSEMEM
346
347config HAVE_ARCH_NODEDATA_EXTENSION
348	def_bool y
349	depends on NUMA
350
351config USE_PERCPU_NUMA_NODE_ID
352	def_bool y
353	depends on NUMA
354
355config HAVE_MEMORYLESS_NODES
356	def_bool NUMA
357
358config ARCH_PROC_KCORE_TEXT
359	def_bool y
360	depends on PROC_KCORE
361
362config IA64_MCA_RECOVERY
363	tristate "MCA recovery from errors other than TLB."
364
365config PERFMON
366	bool "Performance monitor support"
367	depends on BROKEN
368	help
369	  Selects whether support for the IA-64 performance monitor hardware
370	  is included in the kernel.  This makes some kernel data-structures a
371	  little bigger and slows down execution a bit, but it is generally
372	  a good idea to turn this on.  If you're unsure, say Y.
373
374config IA64_PALINFO
375	tristate "/proc/pal support"
376	help
377	  If you say Y here, you are able to get PAL (Processor Abstraction
378	  Layer) information in /proc/pal.  This contains useful information
379	  about the processors in your systems, such as cache and TLB sizes
380	  and the PAL firmware version in use.
381
382	  To use this option, you have to ensure that the "/proc file system
383	  support" (CONFIG_PROC_FS) is enabled, too.
384
385config IA64_MC_ERR_INJECT
386	tristate "MC error injection support"
387	help
388	  Adds support for MC error injection. If enabled, the kernel
389	  will provide a sysfs interface for user applications to
390	  call MC error injection PAL procedures to inject various errors.
391	  This is a useful tool for MCA testing.
392
393	  If you're unsure, do not select this option.
394
395config IA64_ESI
396	bool "ESI (Extensible SAL Interface) support"
397	help
398	  If you say Y here, support is built into the kernel to
399	  make ESI calls.  ESI calls are used to support vendor-specific
400	  firmware extensions, such as the ability to inject memory-errors
401	  for test-purposes.  If you're unsure, say N.
402
403config IA64_HP_AML_NFW
404	bool "Support ACPI AML calls to native firmware"
405	help
406	  This driver installs a global ACPI Operation Region handler for
407	  region 0xA1.  AML methods can use this OpRegion to call arbitrary
408	  native firmware functions.  The driver installs the OpRegion
409	  handler if there is an HPQ5001 device or if the user supplies
410	  the "force" module parameter, e.g., with the "aml_nfw.force"
411	  kernel command line option.
412
413config KEXEC
414	bool "kexec system call"
415	depends on !SMP || HOTPLUG_CPU
416	select KEXEC_CORE
417	help
418	  kexec is a system call that implements the ability to shutdown your
419	  current kernel, and to start another kernel.  It is like a reboot
420	  but it is independent of the system firmware.   And like a reboot
421	  you can start any kernel with it, not just Linux.
422
423	  The name comes from the similarity to the exec system call.
424
425	  It is an ongoing process to be certain the hardware in a machine
426	  is properly shutdown, so do not be surprised if this code does not
427	  initially work for you.  As of this writing the exact hardware
428	  interface is strongly in flux, so no good recommendation can be
429	  made.
430
431config CRASH_DUMP
432	  bool "kernel crash dumps"
433	  depends on IA64_MCA_RECOVERY && (!SMP || HOTPLUG_CPU)
434	  help
435	    Generate crash dump after being started by kexec.
436
437source "drivers/firmware/Kconfig"
438
439endmenu
440
441menu "Power management and ACPI options"
442
443source "kernel/power/Kconfig"
444
445source "drivers/acpi/Kconfig"
446
447if PM
448menu "CPU Frequency scaling"
449source "drivers/cpufreq/Kconfig"
450endmenu
451endif
452
453endmenu
454
455config MSPEC
456	tristate "Memory special operations driver"
457	depends on IA64
458	select IA64_UNCACHED_ALLOCATOR
459	help
460	  If you have an ia64 and you want to enable memory special
461	  operations support (formerly known as fetchop), say Y here,
462	  otherwise say N.
463