Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
# SPDX-License-Identifier: GPL-2.0
config CONFIG_PGTABLE_LEVELS
	int "Page Table Levels" if !CONFIG_IA64_PAGE_SIZE_64KB
	range 3 4 if !CONFIG_IA64_PAGE_SIZE_64KB
	default 3

menu "Processor type and features"

config CONFIG_IA64
	bool
	select CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT
	select CONFIG_ARCH_MIGHT_HAVE_PC_SERIO
	select CONFIG_ACPI
	select CONFIG_ACPI_NUMA if CONFIG_NUMA
	select CONFIG_ARCH_SUPPORTS_ACPI
	select CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT if CONFIG_ACPI
	select CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC if CONFIG_ACPI
	select CONFIG_FORCE_PCI
	select CONFIG_PCI_DOMAINS if CONFIG_PCI
	select CONFIG_PCI_MSI
	select CONFIG_PCI_SYSCALL if CONFIG_PCI
	select CONFIG_HAVE_ASM_MODVERSIONS
	select CONFIG_HAVE_UNSTABLE_SCHED_CLOCK
	select CONFIG_HAVE_EXIT_THREAD
	select CONFIG_HAVE_IDE
	select CONFIG_HAVE_OPROFILE
	select CONFIG_HAVE_KPROBES
	select CONFIG_HAVE_KRETPROBES
	select CONFIG_HAVE_FTRACE_MCOUNT_RECORD
	select CONFIG_HAVE_DYNAMIC_FTRACE if (!CONFIG_ITANIUM)
	select CONFIG_HAVE_FUNCTION_TRACER
	select CONFIG_TTY
	select CONFIG_HAVE_ARCH_TRACEHOOK
	select CONFIG_HAVE_MEMBLOCK_NODE_MAP
	select CONFIG_HAVE_VIRT_CPU_ACCOUNTING
	select CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN
	select CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU
	select CONFIG_VIRT_TO_BUS
	select CONFIG_GENERIC_IRQ_PROBE
	select CONFIG_GENERIC_PENDING_IRQ if CONFIG_SMP
	select CONFIG_GENERIC_IRQ_SHOW
	select CONFIG_GENERIC_IRQ_LEGACY
	select CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG
	select CONFIG_GENERIC_IOMAP
	select CONFIG_GENERIC_SMP_IDLE_THREAD
	select CONFIG_ARCH_TASK_STRUCT_ON_STACK
	select CONFIG_ARCH_TASK_STRUCT_ALLOCATOR
	select CONFIG_ARCH_THREAD_STACK_ALLOCATOR
	select CONFIG_ARCH_CLOCKSOURCE_DATA
	select CONFIG_GENERIC_TIME_VSYSCALL
	select CONFIG_SWIOTLB
	select CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN
	select CONFIG_HAVE_MOD_ARCH_SPECIFIC
	select CONFIG_MODULES_USE_ELF_RELA
	select CONFIG_ARCH_USE_CMPXCHG_LOCKREF
	select CONFIG_HAVE_ARCH_AUDITSYSCALL
	select CONFIG_NEED_DMA_MAP_STATE
	select CONFIG_NEED_SG_DMA_LENGTH
	select CONFIG_NUMA if !CONFIG_FLATMEM
	default y
	help
	  The Itanium Processor Family is Intel's 64-bit successor to
	  the 32-bit CONFIG_X86 line.  The IA-64 Linux project has a home
	  page at <http://www.linuxia64.org/> and a mailing list at
	  <linux-ia64@vger.kernel.org>.

config CONFIG_64BIT
	bool
	select CONFIG_ATA_NONSTANDARD if CONFIG_ATA
	default y

config CONFIG_ZONE_DMA32
	def_bool y

config CONFIG_MMU
	bool
	default y

config CONFIG_STACKTRACE_SUPPORT
	def_bool y

config CONFIG_GENERIC_LOCKBREAK
	def_bool n

config CONFIG_HUGETLB_PAGE_SIZE_VARIABLE
	bool
	depends on CONFIG_HUGETLB_PAGE
	default y

config CONFIG_GENERIC_CALIBRATE_DELAY
	bool
	default y

config CONFIG_HAVE_SETUP_PER_CPU_AREA
	def_bool y

config CONFIG_DMI
	bool
	default y
	select CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK

config CONFIG_EFI
	bool
	select CONFIG_UCS2_STRING
	default y

config CONFIG_SCHED_OMIT_FRAME_POINTER
	bool
	default y

config CONFIG_IA64_UNCACHED_ALLOCATOR
	bool
	select CONFIG_GENERIC_ALLOCATOR

config CONFIG_ARCH_USES_PG_UNCACHED
	def_bool y
	depends on CONFIG_IA64_UNCACHED_ALLOCATOR

config CONFIG_AUDIT_ARCH
	bool
	default y

choice
	prompt "Processor type"
	default CONFIG_ITANIUM

config CONFIG_ITANIUM
	bool "Itanium"
	help
	  Select your IA-64 processor type.  The default is Itanium.
	  This choice is safe for all IA-64 systems, but may not perform
	  optimally on systems with, say, Itanium 2 or newer processors.

config CONFIG_MCKINLEY
	bool "Itanium 2"
	help
	  Select this to configure for an Itanium 2 (McKinley) processor.

endchoice

choice
	prompt "Kernel page size"
	default CONFIG_IA64_PAGE_SIZE_16KB

config CONFIG_IA64_PAGE_SIZE_4KB
	bool "4KB"
	help
	  This lets you select the page size of the kernel.  For best IA-64
	  performance, a page size of 8KB or 16KB is recommended.  For best
	  IA-32 compatibility, a page size of 4KB should be selected (the vast
	  majority of IA-32 binaries work perfectly fine with a larger page
	  size).  For Itanium 2 or newer systems, a page size of 64KB can also
	  be selected.

	  4KB                For best IA-32 compatibility
	  8KB                For best IA-64 performance
	  16KB               For best IA-64 performance
	  64KB               Requires Itanium 2 or newer processor.

	  If you don't know what to do, choose 16KB.

config CONFIG_IA64_PAGE_SIZE_8KB
	bool "8KB"

config CONFIG_IA64_PAGE_SIZE_16KB
	bool "16KB"

config CONFIG_IA64_PAGE_SIZE_64KB
	depends on !CONFIG_ITANIUM
	bool "64KB"

endchoice

source "kernel/Kconfig.hz"

config CONFIG_IA64_BRL_EMU
	bool
	depends on CONFIG_ITANIUM
	default y

# align cache-sensitive data to 128 bytes
config CONFIG_IA64_L1_CACHE_SHIFT
	int
	default "7" if CONFIG_MCKINLEY
	default "6" if CONFIG_ITANIUM

config CONFIG_IA64_SGI_UV
	bool "SGI-UV support"
	help
	  Selecting this option will add specific support for running on SGI
	  UV based systems.  If you have an SGI UV system or are building a
	  distro kernel, select this option.

config CONFIG_IA64_HP_SBA_IOMMU
	bool "HP SBA IOMMU support"
	default y
	help
	  Say Y here to add support for the SBA IOMMU found on HP zx1 and
	  sx1000 systems.  If you're unsure, answer Y.

config CONFIG_IA64_CYCLONE
	bool "Cyclone (EXA) Time Source support"
	help
	  Say Y here to enable support for IBM EXA Cyclone time source.
	  If you're unsure, answer N.

config CONFIG_FORCE_MAX_ZONEORDER
	int "MAX_ORDER (11 - 17)"  if !CONFIG_HUGETLB_PAGE
	range 11 17  if !CONFIG_HUGETLB_PAGE
	default "17" if CONFIG_HUGETLB_PAGE
	default "11"

config CONFIG_SMP
	bool "Symmetric multi-processing support"
	help
	  This enables support for systems with more than one CPU. If you have
	  a system with only one CPU, say N.  If you have a system with more
	  than one CPU, say Y.

	  If you say N here, the kernel will run on single and multiprocessor
	  systems, but will use only one CPU of a multiprocessor system.  If
	  you say Y here, the kernel will run on many, but not all,
	  single processor systems.  On a single processor system, the kernel
	  will run faster if you say N here.

	  See also the CONFIG_SMP-HOWTO available at
	  <http://www.tldp.org/docs.html#howto>.

	  If you don't know what to do here, say N.

config CONFIG_NR_CPUS
	int "Maximum number of CPUs (2-4096)"
	range 2 4096
	depends on CONFIG_SMP
	default "4096"
	help
	  You should set this to the number of CPUs in your system, but
	  keep in mind that a kernel compiled for, e.g., 2 CPUs will boot but
	  only use 2 CPUs on a >2 CPU system.  Setting this to a value larger
	  than 64 will cause the use of a CPU mask array, causing a small
	  performance hit.

config CONFIG_HOTPLUG_CPU
	bool "Support for hot-pluggable CPUs"
	depends on CONFIG_SMP
	default n
	---help---
	  Say Y here to experiment with turning CPUs off and on.  CPUs
	  can be controlled through /sys/devices/system/cpu/cpu#.
	  Say N if you want to disable CPU hotplug.

config CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG
	def_bool y

config CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE
	def_bool y

config CONFIG_SCHED_SMT
	bool "SMT scheduler support"
	depends on CONFIG_SMP
	help
	  Improves the CPU scheduler's decision making when dealing with
	  Intel CONFIG_IA64 chips with MultiThreading at a cost of slightly increased
	  overhead in some places. If unsure say N here.

config CONFIG_PERMIT_BSP_REMOVE
	bool "Support removal of Bootstrap Processor"
	depends on CONFIG_HOTPLUG_CPU
	default n
	---help---
	Say Y here if your platform SAL will support removal of BSP with CONFIG_HOTPLUG_CPU
	support. 

config CONFIG_FORCE_CPEI_RETARGET
	bool "Force assumption that CPEI can be re-targeted"
	depends on CONFIG_PERMIT_BSP_REMOVE
	default n
	---help---
	Say Y if you need to force the assumption that CPEI can be re-targeted to
	any cpu in the system. This hint is available via CONFIG_ACPI 3.0 specifications.
	Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
	This option it useful to enable this feature on older BIOS's as well.
	You can also enable this by using boot command line option force_cpei=1.

config CONFIG_ARCH_SELECT_MEMORY_MODEL
	def_bool y

config CONFIG_ARCH_DISCONTIGMEM_ENABLE
	def_bool y
	help
	  Say Y to support efficient handling of discontiguous physical memory,
	  for architectures which are either CONFIG_NUMA (Non-Uniform Memory Access)
	  or have huge holes in the physical address space for other reasons.
	  See <file:Documentation/vm/numa.rst> for more.

config CONFIG_ARCH_FLATMEM_ENABLE
	def_bool y

config CONFIG_ARCH_SPARSEMEM_ENABLE
	def_bool y
	depends on CONFIG_ARCH_DISCONTIGMEM_ENABLE
	select CONFIG_SPARSEMEM_VMEMMAP_ENABLE

config CONFIG_ARCH_DISCONTIGMEM_DEFAULT
	def_bool y
	depends on CONFIG_ARCH_DISCONTIGMEM_ENABLE

config CONFIG_NUMA
	bool "NUMA support"
	depends on !CONFIG_FLATMEM
	select CONFIG_SMP
	help
	  Say Y to compile the kernel to support CONFIG_NUMA (Non-Uniform Memory
	  Access).  This option is for configuring high-end multiprocessor
	  server systems.  If in doubt, say N.

config CONFIG_NODES_SHIFT
	int "Max num nodes shift(3-10)"
	range 3 10
	default "10"
	depends on CONFIG_NEED_MULTIPLE_NODES
	help
	  This option specifies the maximum number of nodes in your SSI system.
	  MAX_NUMNODES will be 2^(This value).
	  If in doubt, use the default.

# CONFIG_VIRTUAL_MEM_MAP and CONFIG_FLAT_NODE_MEM_MAP are functionally equivalent.
# CONFIG_VIRTUAL_MEM_MAP has been retained for historical reasons.
config CONFIG_VIRTUAL_MEM_MAP
	bool "Virtual mem map"
	depends on !CONFIG_SPARSEMEM
	default y
	help
	  Say Y to compile the kernel with support for a virtual mem map.
	  This code also only takes effect if a memory hole of greater than
	  1 Gb is found during boot.  You must turn this option on if you
	  require the CONFIG_DISCONTIGMEM option for your machine. If you are
	  unsure, say Y.

config CONFIG_HOLES_IN_ZONE
	bool
	default y if CONFIG_VIRTUAL_MEM_MAP

config CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID
	def_bool CONFIG_NUMA && CONFIG_SPARSEMEM

config CONFIG_HAVE_ARCH_NODEDATA_EXTENSION
	def_bool y
	depends on CONFIG_NUMA

config CONFIG_USE_PERCPU_NUMA_NODE_ID
	def_bool y
	depends on CONFIG_NUMA

config CONFIG_HAVE_MEMORYLESS_NODES
	def_bool CONFIG_NUMA

config CONFIG_ARCH_PROC_KCORE_TEXT
	def_bool y
	depends on CONFIG_PROC_KCORE

config CONFIG_IA64_MCA_RECOVERY
	tristate "MCA recovery from errors other than TLB."

config CONFIG_PERFMON
	bool "Performance monitor support"
	depends on CONFIG_BROKEN
	help
	  Selects whether support for the IA-64 performance monitor hardware
	  is included in the kernel.  This makes some kernel data-structures a
	  little bigger and slows down execution a bit, but it is generally
	  a good idea to turn this on.  If you're unsure, say Y.

config CONFIG_IA64_PALINFO
	tristate "/proc/pal support"
	help
	  If you say Y here, you are able to get CONFIG_PAL (Processor Abstraction
	  Layer) information in /proc/pal.  This contains useful information
	  about the processors in your systems, such as cache and TLB sizes
	  and the CONFIG_PAL firmware version in use.

	  To use this option, you have to ensure that the "/proc file system
	  support" (CONFIG_PROC_FS) is enabled, too.

config CONFIG_IA64_MC_ERR_INJECT
	tristate "MC error injection support"
	help
	  Adds support for MC error injection. If enabled, the kernel 
	  will provide a sysfs interface for user applications to
	  call MC error injection CONFIG_PAL procedures to inject various errors.
	  This is a useful tool for CONFIG_MCA testing.

	  If you're unsure, do not select this option.

config CONFIG_IA64_ESI
	bool "ESI (Extensible SAL Interface) support"
	help
	  If you say Y here, support is built into the kernel to
	  make ESI calls.  ESI calls are used to support vendor-specific
	  firmware extensions, such as the ability to inject memory-errors
	  for test-purposes.  If you're unsure, say N.

config CONFIG_IA64_HP_AML_NFW
	bool "Support ACPI AML calls to native firmware"
	help
	  This driver installs a global CONFIG_ACPI Operation Region handler for
	  region 0xA1.  AML methods can use this OpRegion to call arbitrary
	  native firmware functions.  The driver installs the OpRegion
	  handler if there is an HPQ5001 device or if the user supplies
	  the "force" module parameter, e.g., with the "aml_nfw.force"
	  kernel command line option.

config CONFIG_KEXEC
	bool "kexec system call"
	depends on !CONFIG_SMP || CONFIG_HOTPLUG_CPU
	select CONFIG_KEXEC_CORE
	help
	  kexec is a system call that implements the ability to shutdown your
	  current kernel, and to start another kernel.  It is like a reboot
	  but it is independent of the system firmware.   And like a reboot
	  you can start any kernel with it, not just Linux.

	  The name comes from the similarity to the exec system call.

	  It is an ongoing process to be certain the hardware in a machine
	  is properly shutdown, so do not be surprised if this code does not
	  initially work for you.  As of this writing the exact hardware
	  interface is strongly in flux, so no good recommendation can be
	  made.

config CONFIG_CRASH_DUMP
	  bool "kernel crash dumps"
	  depends on CONFIG_IA64_MCA_RECOVERY && (!CONFIG_SMP || CONFIG_HOTPLUG_CPU)
	  help
	    Generate crash dump after being started by kexec.

source "drivers/firmware/Kconfig"

endmenu

menu "Power management and ACPI options"

source "kernel/power/Kconfig"

source "drivers/acpi/Kconfig"

if CONFIG_PM
menu "CPU Frequency scaling"
source "drivers/cpufreq/Kconfig"
endmenu
endif

endmenu

config CONFIG_MSPEC
	tristate "Memory special operations driver"
	depends on CONFIG_IA64
	select CONFIG_IA64_UNCACHED_ALLOCATOR
	help
	  If you have an ia64 and you want to enable memory special
	  operations support (formerly known as fetchop), say Y here,
	  otherwise say N.