xref: /linux-6.15/arch/alpha/Kconfig (revision 430ad3f0)
1# SPDX-License-Identifier: GPL-2.0
2config ALPHA
3	bool
4	default y
5	select ARCH_32BIT_USTAT_F_TINODE
6	select ARCH_HAS_CURRENT_STACK_POINTER
7	select ARCH_MIGHT_HAVE_PC_PARPORT
8	select ARCH_MIGHT_HAVE_PC_SERIO
9	select ARCH_NO_PREEMPT
10	select ARCH_NO_SG_CHAIN
11	select ARCH_USE_CMPXCHG_LOCKREF
12	select DMA_OPS if PCI
13	select FORCE_PCI
14	select PCI_DOMAINS if PCI
15	select PCI_SYSCALL if PCI
16	select HAVE_ASM_MODVERSIONS
17	select HAVE_PAGE_SIZE_8KB
18	select HAVE_PCSPKR_PLATFORM
19	select HAVE_PERF_EVENTS
20	select NEED_DMA_MAP_STATE
21	select NEED_SG_DMA_LENGTH
22	select GENERIC_IRQ_PROBE
23	select GENERIC_PCI_IOMAP
24	select AUTO_IRQ_AFFINITY if SMP
25	select GENERIC_IRQ_SHOW
26	select ARCH_WANT_IPC_PARSE_VERSION
27	select ARCH_HAVE_NMI_SAFE_CMPXCHG
28	select AUDIT_ARCH
29	select GENERIC_CPU_VULNERABILITIES
30	select GENERIC_SMP_IDLE_THREAD
31	select HAS_IOPORT
32	select HAVE_ARCH_AUDITSYSCALL
33	select HAVE_MOD_ARCH_SPECIFIC
34	select LOCK_MM_AND_FIND_VMA
35	select MODULES_USE_ELF_RELA
36	select ODD_RT_SIGACTION
37	select OLD_SIGSUSPEND
38	select CPU_NO_EFFICIENT_FFS if !ALPHA_EV67
39	select MMU_GATHER_NO_RANGE
40	select SPARSEMEM_EXTREME if SPARSEMEM
41	select ZONE_DMA
42	help
43	  The Alpha is a 64-bit general-purpose processor designed and
44	  marketed by the Digital Equipment Corporation of blessed memory,
45	  now Hewlett-Packard.  The Alpha Linux project has a home page at
46	  <http://www.alphalinux.org/>.
47
48config 64BIT
49	def_bool y
50
51config MMU
52	bool
53	default y
54
55config ARCH_HAS_ILOG2_U32
56	bool
57	default n
58
59config ARCH_HAS_ILOG2_U64
60	bool
61	default n
62
63config GENERIC_CALIBRATE_DELAY
64	bool
65	default y
66
67config GENERIC_ISA_DMA
68	bool
69	default y
70
71config PGTABLE_LEVELS
72	int
73	default 3
74
75config AUDIT_ARCH
76	bool
77
78menu "System setup"
79
80choice
81	prompt "Alpha system type"
82	default ALPHA_GENERIC
83	help
84	  This is the system type of your hardware.  A "generic" kernel will
85	  run on any supported Alpha system. However, if you configure a
86	  kernel for your specific system, it will be faster and smaller.
87
88	  To find out what type of Alpha system you have, you may want to
89	  check out the Linux/Alpha FAQ, accessible on the WWW from
90	  <http://www.alphalinux.org/>. In summary:
91
92	  Alcor/Alpha-XLT     AS 600, AS 500, XL-300, XL-366
93	  DP264               DP264 / DS20 / ES40 / DS10 / DS10L
94	  EB164               EB164 21164 evaluation board
95	  LX164               AlphaPC164-LX
96	  Miata               Personal Workstation 433/500/600 a/au
97	  Marvel              AlphaServer ES47 / ES80 / GS1280
98	  Mikasa              AS 1000
99	  Noritake            AS 1000A, AS 600A, AS 800
100	  PC164               AlphaPC164
101	  Rawhide             AS 1200, AS 4000, AS 4100
102	  Ruffian             RPX164-2, AlphaPC164-UX, AlphaPC164-BX
103	  SX164               AlphaPC164-SX
104	  Sable               AS 2000, AS 2100
105	  Shark               DS 20L
106	  Takara              Takara (OEM)
107	  Titan               AlphaServer ES45 / DS25 / DS15
108	  Wildfire            AlphaServer GS 40/80/160/320
109
110	  If you don't know what to do, choose "generic".
111
112config ALPHA_GENERIC
113	bool "Generic"
114	depends on TTY
115	select HAVE_EISA
116	help
117	  A generic kernel will run on all supported Alpha hardware.
118
119config ALPHA_ALCOR
120	bool "Alcor/Alpha-XLT"
121	select HAVE_EISA
122	help
123	  For systems using the Digital ALCOR chipset: 5 chips (4, 64-bit data
124	  slices (Data Switch, DSW) - 208-pin PQFP and 1 control (Control, I/O
125	  Address, CIA) - a 383 pin plastic PGA).  It provides a DRAM
126	  controller (256-bit memory bus) and a PCI interface.  It also does
127	  all the work required to support an external Bcache and to maintain
128	  memory coherence when a PCI device DMAs into (or out of) memory.
129
130config ALPHA_DP264
131	bool "DP264"
132	help
133	  Various 21264 systems with the tsunami core logic chipset.
134	  API Networks: 264DP, UP2000(+), CS20;
135	  Compaq: DS10(E,L), XP900, XP1000, DS20(E), ES40.
136
137config ALPHA_EB164
138	bool "EB164"
139	help
140	  EB164 21164 evaluation board from DEC.  Uses 21164 and ALCOR.  Has
141	  ISA and PCI expansion (3 ISA slots, 2 64-bit PCI slots (one is
142	  shared with an ISA slot) and 2 32-bit PCI slots.  Uses plus-in
143	  Bcache SIMMs. I/O sub-system provides SuperI/O (2S, 1P, FD), KBD,
144	  MOUSE (PS2 style), RTC/NVRAM.  Boot ROM is Flash.  PC-AT-sized
145	  motherboard.  Requires power supply with 3.3V output.
146
147config ALPHA_EIGER
148	bool "Eiger"
149	help
150	  Apparently an obscure OEM single-board computer based on the
151	  Typhoon/Tsunami chipset family. Information on it is scanty.
152
153config ALPHA_LX164
154	bool "LX164"
155	help
156	  A technical overview of this board is available at
157	  <http://www.unix-ag.org/Linux-Alpha/Architectures/LX164.html>.
158
159config ALPHA_MARVEL
160	bool "Marvel"
161	help
162	  AlphaServer ES47 / ES80 / GS1280 based on EV7.
163
164config ALPHA_MIATA
165	bool "Miata"
166	select HAVE_EISA
167	help
168	  The Digital PersonalWorkStation (PWS 433a, 433au, 500a, 500au, 600a,
169	  or 600au).
170
171config ALPHA_MIKASA
172	bool "Mikasa"
173	help
174	  AlphaServer 1000-based Alpha systems.
175
176config ALPHA_NAUTILUS
177	bool "Nautilus"
178	help
179	  Alpha systems based on the AMD 751 & ALI 1543C chipsets.
180
181config ALPHA_NORITAKE
182	bool "Noritake"
183	select HAVE_EISA
184	help
185	  AlphaServer 1000A, AlphaServer 600A, and AlphaServer 800-based
186	  systems.
187
188config ALPHA_PC164
189	bool "PC164"
190
191config ALPHA_RAWHIDE
192	bool "Rawhide"
193	select HAVE_EISA
194	help
195	  AlphaServer 1200, AlphaServer 4000 and AlphaServer 4100 machines.
196	  See HOWTO at
197	  <http://www.alphalinux.org/docs/rawhide/4100_install.shtml>.
198
199config ALPHA_RUFFIAN
200	bool "Ruffian"
201	help
202	  Samsung APC164UX.  There is a page on known problems and workarounds
203	  at <http://www.alphalinux.org/faq/FAQ-11.html>.
204
205config ALPHA_RX164
206	bool "RX164"
207
208config ALPHA_SX164
209	bool "SX164"
210
211config ALPHA_SABLE
212	bool "Sable"
213	select HAVE_EISA
214	help
215	  Digital AlphaServer 2000 and 2100-based systems.
216
217config ALPHA_SHARK
218	bool "Shark"
219
220config ALPHA_TAKARA
221	bool "Takara"
222	help
223	  Alpha 11164-based OEM single-board computer.
224
225config ALPHA_TITAN
226	bool "Titan"
227	help
228	  AlphaServer ES45/DS25 SMP based on EV68 and Titan chipset.
229
230config ALPHA_WILDFIRE
231	bool "Wildfire"
232	help
233	  AlphaServer GS 40/80/160/320 SMP based on the EV67 core.
234
235endchoice
236
237# clear all implied options (don't want default values for those):
238# Most of these machines have ISA slots; not exactly sure which don't,
239# and this doesn't activate hordes of code, so do it always.
240config ISA
241	bool
242	default y
243	help
244	  Find out whether you have ISA slots on your motherboard.  ISA is the
245	  name of a bus system, i.e. the way the CPU talks to the other stuff
246	  inside your box.  Other bus systems are PCI, EISA, MicroChannel
247	  (MCA) or VESA.  ISA is an older system, now being displaced by PCI;
248	  newer boards don't support it.  If you have ISA, say Y, otherwise N.
249
250config ISA_DMA_API
251	bool
252	default y
253
254config ALPHA_EV4
255	bool
256
257config ALPHA_EV5
258	bool
259	default y if ALPHA_RX164 || ALPHA_RAWHIDE || ALPHA_MIATA || ALPHA_LX164 || ALPHA_SX164 || ALPHA_RUFFIAN || ALPHA_SABLE || ALPHA_NORITAKE || ALPHA_MIKASA || ALPHA_PC164 || ALPHA_TAKARA || ALPHA_EB164 || ALPHA_ALCOR
260
261config ALPHA_CIA
262	bool
263	depends on ALPHA_MIATA || ALPHA_LX164 || ALPHA_SX164 || ALPHA_RUFFIAN || ALPHA_NORITAKE || ALPHA_MIKASA || ALPHA_PC164 || ALPHA_TAKARA || ALPHA_EB164 || ALPHA_ALCOR
264	default y
265
266config ALPHA_EV56
267	bool "EV56 CPU (speed >= 366MHz)?" if ALPHA_ALCOR
268	default y if ALPHA_RX164 || ALPHA_MIATA || ALPHA_LX164 || ALPHA_SX164 || ALPHA_RUFFIAN || ALPHA_PC164 || ALPHA_TAKARA
269
270config ALPHA_EV56
271	prompt "EV56 CPU (speed >= 333MHz)?"
272	depends on ALPHA_NORITAKE || ALPHA_MIKASA
273
274config ALPHA_EV56
275	prompt "EV56 CPU (speed >= 400MHz)?"
276	depends on ALPHA_RAWHIDE
277
278config ALPHA_T2
279	bool
280	depends on ALPHA_SABLE
281	default y
282
283config ALPHA_PYXIS
284	bool
285	depends on ALPHA_MIATA || ALPHA_LX164 || ALPHA_SX164 || ALPHA_RUFFIAN
286	default y
287
288config ALPHA_EV6
289	bool
290	depends on ALPHA_NAUTILUS || ALPHA_WILDFIRE || ALPHA_TITAN || ALPHA_SHARK || ALPHA_DP264 || ALPHA_EIGER || ALPHA_MARVEL
291	default y
292
293config ALPHA_TSUNAMI
294	bool
295	depends on ALPHA_SHARK || ALPHA_DP264 || ALPHA_EIGER
296	default y
297
298config ALPHA_EV67
299	bool "EV67 (or later) CPU (speed > 600MHz)?" if ALPHA_DP264 || ALPHA_EIGER
300	default y if ALPHA_NAUTILUS || ALPHA_WILDFIRE || ALPHA_TITAN || ALPHA_SHARK || ALPHA_MARVEL
301	help
302	  Is this a machine based on the EV67 core?  If in doubt, select N here
303	  and the machine will be treated as an EV6.
304
305config ALPHA_MCPCIA
306	bool
307	depends on ALPHA_RAWHIDE
308	default y
309
310config ALPHA_POLARIS
311	bool
312	depends on ALPHA_RX164
313	default y
314
315config ALPHA_IRONGATE
316	bool
317	depends on ALPHA_NAUTILUS
318	default y
319
320config GENERIC_HWEIGHT
321	bool
322	default y if !ALPHA_EV67
323
324config ALPHA_BROKEN_IRQ_MASK
325	bool
326	depends on ALPHA_GENERIC || ALPHA_PC164
327	default y
328
329config VGA_HOSE
330	bool
331	depends on VGA_CONSOLE && (ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL || ALPHA_TSUNAMI)
332	default y
333	help
334	  Support VGA on an arbitrary hose; needed for several platforms
335	  which always have multiple hoses, and whose consoles support it.
336
337
338config ALPHA_QEMU
339	bool "Run under QEMU emulation"
340	depends on !ALPHA_GENERIC
341	help
342	  Assume the presence of special features supported by QEMU PALcode
343	  that reduce the overhead of system emulation.
344
345	  Generic kernels will auto-detect QEMU.  But when building a
346	  system-specific kernel, the assumption is that we want to
347	  eliminate as many runtime tests as possible.
348
349	  If unsure, say N.
350
351
352config ALPHA_SRM
353	bool "Use SRM as bootloader" if ALPHA_PC164 || ALPHA_TAKARA || ALPHA_EB164 || ALPHA_ALCOR || ALPHA_MIATA || ALPHA_LX164 || ALPHA_SX164 || ALPHA_NAUTILUS
354	depends on TTY
355	default y if ALPHA_MIKASA || ALPHA_SABLE || ALPHA_NORITAKE || ALPHA_DP264 || ALPHA_RAWHIDE || ALPHA_EIGER || ALPHA_WILDFIRE || ALPHA_TITAN || ALPHA_SHARK || ALPHA_MARVEL
356	help
357	  There are two different types of booting firmware on Alphas: SRM,
358	  which is command line driven, and ARC, which uses menus and arrow
359	  keys. Details about the Linux/Alpha booting process are contained in
360	  the Linux/Alpha FAQ, accessible on the WWW from
361	  <http://www.alphalinux.org/>.
362
363	  The usual way to load Linux on an Alpha machine is to use MILO
364	  (a bootloader that lets you pass command line parameters to the
365	  kernel just like lilo does for the x86 architecture) which can be
366	  loaded either from ARC or can be installed directly as a permanent
367	  firmware replacement from floppy (which requires changing a certain
368	  jumper on the motherboard). If you want to do either of these, say N
369	  here. If MILO doesn't work on your system (true for Jensen
370	  motherboards), you can bypass it altogether and boot Linux directly
371	  from an SRM console; say Y here in order to do that. Note that you
372	  won't be able to boot from an IDE disk using SRM.
373
374	  If unsure, say N.
375
376config ARCH_MAY_HAVE_PC_FDC
377	def_bool y
378
379config SMP
380	bool "Symmetric multi-processing support"
381	depends on ALPHA_SABLE || ALPHA_RAWHIDE || ALPHA_DP264 || ALPHA_WILDFIRE || ALPHA_TITAN || ALPHA_GENERIC || ALPHA_SHARK || ALPHA_MARVEL
382	help
383	  This enables support for systems with more than one CPU. If you have
384	  a system with only one CPU, say N. If you have a system with more
385	  than one CPU, say Y.
386
387	  If you say N here, the kernel will run on uni- and multiprocessor
388	  machines, but will use only one CPU of a multiprocessor machine. If
389	  you say Y here, the kernel will run on many, but not all,
390	  uniprocessor machines. On a uniprocessor machine, the kernel
391	  will run faster if you say N here.
392
393	  See also the SMP-HOWTO available at
394	  <https://www.tldp.org/docs.html#howto>.
395
396	  If you don't know what to do here, say N.
397
398config NR_CPUS
399	int "Maximum number of CPUs (2-32)"
400	range 2 32
401	depends on SMP
402	default "32" if ALPHA_GENERIC || ALPHA_MARVEL
403	default "4" if !ALPHA_GENERIC && !ALPHA_MARVEL
404	help
405	  MARVEL support can handle a maximum of 32 CPUs, all the others
406	  with working support have a maximum of 4 CPUs.
407
408config ARCH_SPARSEMEM_ENABLE
409	bool "Sparse Memory Support"
410	help
411	  Say Y to support efficient handling of discontiguous physical memory,
412	  for systems that have huge holes in the physical address space.
413
414config ALPHA_WTINT
415	bool "Use WTINT" if ALPHA_SRM || ALPHA_GENERIC
416	default y if ALPHA_QEMU
417	default n if ALPHA_EV5 || ALPHA_EV56
418	default n if !ALPHA_SRM && !ALPHA_GENERIC
419	default y if SMP
420	help
421	  The Wait for Interrupt (WTINT) PALcall attempts to place the CPU
422	  to sleep until the next interrupt.  This may reduce the power
423	  consumed, and the heat produced by the computer.  However, it has
424	  the side effect of making the cycle counter unreliable as a timing
425	  device across the sleep.
426
427	  For emulation under QEMU, definitely say Y here, as we have other
428	  mechanisms for measuring time than the cycle counter.
429
430	  For EV4 (but not LCA), EV5 and EV56 systems, or for systems running
431	  MILO, sleep mode is not supported so you might as well say N here.
432
433	  For SMP systems we cannot use the cycle counter for timing anyway,
434	  so you might as well say Y here.
435
436	  If unsure, say N.
437
438# LARGE_VMALLOC is racy, if you *really* need it then fix it first
439config ALPHA_LARGE_VMALLOC
440	bool
441	help
442	  Process creation and other aspects of virtual memory management can
443	  be streamlined if we restrict the kernel to one PGD for all vmalloc
444	  allocations.  This equates to about 8GB.
445
446	  Under normal circumstances, this is so far and above what is needed
447	  as to be laughable.  However, there are certain applications (such
448	  as benchmark-grade in-kernel web serving) that can make use of as
449	  much vmalloc space as is available.
450
451	  Say N unless you know you need gobs and gobs of vmalloc space.
452
453config VERBOSE_MCHECK
454	bool "Verbose Machine Checks"
455
456config VERBOSE_MCHECK_ON
457	int "Verbose Printing Mode (0=off, 1=on, 2=all)"
458	depends on VERBOSE_MCHECK
459	default 1
460	help
461	  This option allows the default printing mode to be set, and then
462	  possibly overridden by a boot command argument.
463
464	  For example, if one wanted the option of printing verbose
465	  machine checks, but wanted the default to be as if verbose
466	  machine check printing was turned off, then one would choose
467	  the printing mode to be 0. Then, upon reboot, one could add
468	  the boot command line "verbose_mcheck=1" to get the normal
469	  verbose machine check printing, or "verbose_mcheck=2" to get
470	  the maximum information available.
471
472	  Take the default (1) unless you want more control or more info.
473
474choice
475	prompt "Timer interrupt frequency (HZ)?"
476	default HZ_128 if ALPHA_QEMU
477	default HZ_1200 if ALPHA_RAWHIDE
478	default HZ_1024
479	help
480	  The frequency at which timer interrupts occur.  A high frequency
481	  minimizes latency, whereas a low frequency minimizes overhead of
482	  process accounting.  The later effect is especially significant
483	  when being run under QEMU.
484
485	  Note that some Alpha hardware cannot change the interrupt frequency
486	  of the timer.  If unsure, say 1024 (or 1200 for Rawhide).
487
488	config HZ_32
489		bool "32 Hz"
490	config HZ_64
491		bool "64 Hz"
492	config HZ_128
493		bool "128 Hz"
494	config HZ_256
495		bool "256 Hz"
496	config HZ_1024
497		bool "1024 Hz"
498	config HZ_1200
499		bool "1200 Hz"
500endchoice
501
502config HZ
503	int
504	default 32 if HZ_32
505	default 64 if HZ_64
506	default 128 if HZ_128
507	default 256 if HZ_256
508	default 1200 if HZ_1200
509	default 1024
510
511config SRM_ENV
512	tristate "SRM environment through procfs"
513	depends on PROC_FS
514	help
515	  If you enable this option, a subdirectory inside /proc called
516	  /proc/srm_environment will give you access to the all important
517	  SRM environment variables (those which have a name) and also
518	  to all others (by their internal number).
519
520	  SRM is something like a BIOS for Alpha machines. There are some
521	  other such BIOSes, like AlphaBIOS, which this driver cannot
522	  support (hey, that's not SRM!).
523
524	  Despite the fact that this driver doesn't work on all Alphas (but
525	  only on those which have SRM as their firmware), it's save to
526	  build it even if your particular machine doesn't know about SRM
527	  (or if you intend to compile a generic kernel). It will simply
528	  not create those subdirectory in /proc (and give you some warning,
529	  of course).
530
531	  This driver is also available as a module and will be called
532	  srm_env then.
533
534endmenu
535
536# DUMMY_CONSOLE may be defined in drivers/video/console/Kconfig
537# but we also need it if VGA_HOSE is set
538config DUMMY_CONSOLE
539	bool
540	depends on VGA_HOSE
541	default y
542