]> Git Repo - linux.git/blame - lib/Kconfig
io_uring: handle completions in the core
[linux.git] / lib / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
1da177e4
LT
2#
3# Library configuration
4#
5
4370aa4a
LJ
6config BINARY_PRINTF
7 def_bool n
8
1da177e4
LT
9menu "Library routines"
10
f5e70d0f
DW
11config RAID6_PQ
12 tristate
13
be85f93a
DV
14config RAID6_PQ_BENCHMARK
15 bool "Automatically choose fastest RAID6 PQ functions"
16 depends on RAID6_PQ
17 default y
18 help
19 Benchmark all available RAID6 PQ functions on init and choose the
20 fastest one.
21
d2218d4e
MV
22config LINEAR_RANGES
23 tristate
24
554aae35
VO
25config PACKING
26 bool "Generic bitfield packing and unpacking"
27 default n
28 help
29 This option provides the packing() helper function, which permits
30 converting bitfields between a CPU-usable representation and a
31 memory representation that can have any combination of these quirks:
32 - Is little endian (bytes are reversed within a 32-bit group)
33 - The least-significant 32-bit word comes first (within a 64-bit
34 group)
35 - The most significant bit of a byte is at its right (bit 0 of a
36 register description is numerically 2^7).
37 Drivers may use these helpers to match the bit indices as described
38 in the data sheets of the peripherals they are in control of.
39
40 When in doubt, say N.
41
a5cfc1ec
AM
42config BITREVERSE
43 tristate
44
556d2f05 45config HAVE_ARCH_BITREVERSE
841c0090 46 bool
556d2f05 47 default n
556d2f05 48 help
9e522c0d
AM
49 This option enables the use of hardware bit-reversal instructions on
50 architectures which support such operations.
556d2f05 51
e6226997 52config ARCH_HAS_STRNCPY_FROM_USER
2922585b
DM
53 bool
54
e6226997 55config ARCH_HAS_STRNLEN_USER
a08c5356
LT
56 bool
57
e6226997
AB
58config GENERIC_STRNCPY_FROM_USER
59 def_bool !ARCH_HAS_STRNCPY_FROM_USER
60
61config GENERIC_STRNLEN_USER
62 def_bool !ARCH_HAS_STRNLEN_USER
63
4cd5773a
AS
64config GENERIC_NET_UTILS
65 bool
66
2c64e9cb
AS
67source "lib/math/Kconfig"
68
b923650b
MT
69config NO_GENERIC_PCI_IOPORT_MAP
70 bool
71
66eab4df
MT
72config GENERIC_PCI_IOMAP
73 bool
74
4673ca8e
MT
75config GENERIC_IOMAP
76 bool
66eab4df 77 select GENERIC_PCI_IOMAP
4673ca8e 78
4ccf4bea
WS
79config STMP_DEVICE
80 bool
22b361d1 81
bc08b449
LT
82config ARCH_USE_CMPXCHG_LOCKREF
83 bool
84
72d93104
LT
85config ARCH_HAS_FAST_MULTIPLIER
86 bool
87
2ce0d7f9
MB
88config ARCH_USE_SYM_ANNOTATIONS
89 bool
90
031e3601
ZY
91config INDIRECT_PIO
92 bool "Access I/O in non-MMIO mode"
93 depends on ARM64
94 help
95 On some platforms where no separate I/O space exists, there are I/O
96 hosts which can not be accessed in MMIO mode. Using the logical PIO
97 mechanism, the host-local I/O resource can be mapped into system
98 logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
99 system can access the I/O devices with the mapped-logic PIO through
100 I/O accessors.
101
102 This way has relatively little I/O performance cost. Please make
103 sure your devices really need this configure item enabled.
104
105 When in doubt, say N.
106
ca2e3342
JB
107config INDIRECT_IOMEM
108 bool
109 help
110 This is selected by other options/architectures to provide the
111 emulated iomem accessors.
112
113config INDIRECT_IOMEM_FALLBACK
114 bool
115 depends on INDIRECT_IOMEM
116 help
117 If INDIRECT_IOMEM is selected, this enables falling back to plain
118 mmio accesses when the IO memory address is not a registered
119 emulated region.
120
e56e1898
JF
121source "lib/crypto/Kconfig"
122
abfed87e
JD
123config LIB_MEMNEQ
124 bool
125
1da177e4
LT
126config CRC_CCITT
127 tristate "CRC-CCITT functions"
128 help
129 This option is provided for the case where no in-kernel-tree
130 modules require CRC-CCITT functions, but a module built outside
131 the kernel tree does. Such modules that use library CRC-CCITT
132 functions require M here.
133
7657ec1f
EP
134config CRC16
135 tristate "CRC16 functions"
136 help
137 This option is provided for the case where no in-kernel-tree
138 modules require CRC16 functions, but a module built outside
139 the kernel tree does. Such modules that use library CRC16
140 functions require M here.
141
f11f594e
MP
142config CRC_T10DIF
143 tristate "CRC calculation for the T10 Data Integrity Field"
68411521
HX
144 select CRYPTO
145 select CRYPTO_CRCT10DIF
f11f594e
MP
146 help
147 This option is only needed if a module that's not in the
148 kernel tree needs to calculate CRC checks for use with the
149 SCSI data integrity subsystem.
150
f3813f4b
KB
151config CRC64_ROCKSOFT
152 tristate "CRC calculation for the Rocksoft model CRC64"
153 select CRC64
154 select CRYPTO
155 select CRYPTO_CRC64_ROCKSOFT
156 help
157 This option provides a CRC64 API to a registered crypto driver.
158 This is used with the block layer's data integrity subsystem.
159
3e7cbae7
ID
160config CRC_ITU_T
161 tristate "CRC ITU-T V.41 functions"
162 help
163 This option is provided for the case where no in-kernel-tree
164 modules require CRC ITU-T V.41 functions, but a module built outside
165 the kernel tree does. Such modules that use library CRC ITU-T V.41
166 functions require M here.
167
1da177e4 168config CRC32
46c5801e 169 tristate "CRC32/CRC32c functions"
1da177e4 170 default y
906d66df 171 select BITREVERSE
1da177e4
LT
172 help
173 This option is provided for the case where no in-kernel-tree
46c5801e
DW
174 modules require CRC32/CRC32c functions, but a module built outside
175 the kernel tree does. Such modules that use library CRC32/CRC32c
176 functions require M here.
1da177e4 177
3863ef31 178config CRC32_SELFTEST
5fb7f874 179 tristate "CRC32 perform self test on init"
3863ef31
BP
180 depends on CRC32
181 help
182 This option enables the CRC32 library functions to perform a
183 self test on initialization. The self test computes crc32_le
184 and crc32_be over byte strings with random alignment and length
185 and computes the total elapsed time and number of bytes processed.
186
5cde7656
DW
187choice
188 prompt "CRC32 implementation"
189 depends on CRC32
190 default CRC32_SLICEBY8
82edb4ba
DW
191 help
192 This option allows a kernel builder to override the default choice
193 of CRC32 algorithm. Choose the default ("slice by 8") unless you
194 know that you need one of the others.
5cde7656
DW
195
196config CRC32_SLICEBY8
197 bool "Slice by 8 bytes"
198 help
199 Calculate checksum 8 bytes at a time with a clever slicing algorithm.
200 This is the fastest algorithm, but comes with a 8KiB lookup table.
201 Most modern processors have enough cache to hold this table without
202 thrashing the cache.
203
204 This is the default implementation choice. Choose this one unless
205 you have a good reason not to.
206
207config CRC32_SLICEBY4
208 bool "Slice by 4 bytes"
209 help
210 Calculate checksum 4 bytes at a time with a clever slicing algorithm.
211 This is a bit slower than slice by 8, but has a smaller 4KiB lookup
212 table.
213
214 Only choose this option if you know what you are doing.
215
216config CRC32_SARWATE
217 bool "Sarwate's Algorithm (one byte at a time)"
218 help
219 Calculate checksum a byte at a time using Sarwate's algorithm. This
220 is not particularly fast, but has a small 256 byte lookup table.
221
222 Only choose this option if you know what you are doing.
223
224config CRC32_BIT
225 bool "Classic Algorithm (one bit at a time)"
226 help
227 Calculate checksum one bit at a time. This is VERY slow, but has
228 no lookup table. This is provided as a debugging option.
229
230 Only choose this option if you are debugging crc32.
231
232endchoice
233
feba04fd
CL
234config CRC64
235 tristate "CRC64 functions"
236 help
237 This option is provided for the case where no in-kernel-tree
238 modules require CRC64 functions, but a module built outside
239 the kernel tree does. Such modules that use library CRC64
240 functions require M here.
241
0cbaa448
JK
242config CRC4
243 tristate "CRC4 functions"
244 help
245 This option is provided for the case where no in-kernel-tree
246 modules require CRC4 functions, but a module built outside
247 the kernel tree does. Such modules that use library CRC4
248 functions require M here.
249
ad241528
JN
250config CRC7
251 tristate "CRC7 functions"
252 help
253 This option is provided for the case where no in-kernel-tree
254 modules require CRC7 functions, but a module built outside
255 the kernel tree does. Such modules that use library CRC7
256 functions require M here.
257
1da177e4
LT
258config LIBCRC32C
259 tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
93027354 260 select CRYPTO
69c35efc 261 select CRYPTO_CRC32C
1da177e4
LT
262 help
263 This option is provided for the case where no in-kernel-tree
264 modules require CRC32c functions, but a module built outside the
265 kernel tree does. Such modules that use library CRC32c functions
266 require M here. See Castagnoli93.
267 Module will be libcrc32c.
268
7150962d
AS
269config CRC8
270 tristate "CRC8 function"
271 help
272 This option provides CRC8 function. Drivers may select this
273 when they need to do cyclic redundancy check according CRC8
274 algorithm. Module will be called crc8.
275
5d240522
NT
276config XXHASH
277 tristate
278
e65e1fc2
AV
279config AUDIT_GENERIC
280 bool
281 depends on AUDIT && !AUDIT_ARCH
282 default y
283
4b588411
AT
284config AUDIT_ARCH_COMPAT_GENERIC
285 bool
286 default n
287
288config AUDIT_COMPAT_GENERIC
289 bool
290 depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
291 default y
292
a6a9c0f1
DB
293config RANDOM32_SELFTEST
294 bool "PRNG perform self test on init"
a6a9c0f1
DB
295 help
296 This option enables the 32 bit PRNG library functions to perform a
297 self test on initialization.
298
1da177e4
LT
299#
300# compression support is select'ed if needed
301#
2da572c9 302config 842_COMPRESS
5b571677 303 select CRC32
2da572c9
DS
304 tristate
305
306config 842_DECOMPRESS
5b571677 307 select CRC32
2da572c9
DS
308 tristate
309
1da177e4
LT
310config ZLIB_INFLATE
311 tristate
312
313config ZLIB_DEFLATE
314 tristate
1fd4e5c3 315 select BITREVERSE
1da177e4 316
aa5b395b
MZ
317config ZLIB_DFLTCC
318 def_bool y
319 depends on S390
320 prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
321 help
322 Enable s390x hardware support for zlib in the kernel.
323
64c70b1c
RP
324config LZO_COMPRESS
325 tristate
326
327config LZO_DECOMPRESS
328 tristate
329
c72ac7a1
CM
330config LZ4_COMPRESS
331 tristate
332
333config LZ4HC_COMPRESS
334 tristate
335
e76e1fdf
KL
336config LZ4_DECOMPRESS
337 tristate
338
73f3d1b4
NT
339config ZSTD_COMPRESS
340 select XXHASH
341 tristate
342
343config ZSTD_DECOMPRESS
344 select XXHASH
345 tristate
346
24fa0402
LC
347source "lib/xz/Kconfig"
348
c8531ab3
PA
349#
350# These all provide a common interface (hence the apparent duplication with
351# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
352#
353config DECOMPRESS_GZIP
7856a16e 354 select ZLIB_INFLATE
c8531ab3
PA
355 tristate
356
357config DECOMPRESS_BZIP2
358 tristate
359
360config DECOMPRESS_LZMA
361 tristate
362
3ebe1243
LC
363config DECOMPRESS_XZ
364 select XZ_DEC
365 tristate
366
cacb246f
AT
367config DECOMPRESS_LZO
368 select LZO_DECOMPRESS
369 tristate
370
e76e1fdf
KL
371config DECOMPRESS_LZ4
372 select LZ4_DECOMPRESS
373 tristate
374
4963bb2b
NT
375config DECOMPRESS_ZSTD
376 select ZSTD_DECOMPRESS
377 tristate
378
f14f75b8
JS
379#
380# Generic allocator support is selected if needed
381#
382config GENERIC_ALLOCATOR
6341e62b 383 bool
f14f75b8 384
1da177e4
LT
385#
386# reed solomon support is select'ed if needed
387#
388config REED_SOLOMON
389 tristate
390
391config REED_SOLOMON_ENC8
6341e62b 392 bool
1da177e4
LT
393
394config REED_SOLOMON_DEC8
6341e62b 395 bool
1da177e4
LT
396
397config REED_SOLOMON_ENC16
6341e62b 398 bool
1da177e4
LT
399
400config REED_SOLOMON_DEC16
6341e62b 401 bool
1da177e4 402
437aa565
ID
403#
404# BCH support is selected if needed
405#
406config BCH
407 tristate
408
409config BCH_CONST_PARAMS
6341e62b 410 bool
437aa565
ID
411 help
412 Drivers may select this option to force specific constant
413 values for parameters 'm' (Galois field order) and 't'
414 (error correction capability). Those specific values must
415 be set by declaring default values for symbols BCH_CONST_M
416 and BCH_CONST_T.
417 Doing so will enable extra compiler optimizations,
418 improving encoding and decoding performance up to 2x for
419 usual (m,t) values (typically such that m*t < 200).
420 When this option is selected, the BCH library supports
421 only a single (m,t) configuration. This is mainly useful
422 for NAND flash board drivers requiring known, fixed BCH
423 parameters.
424
425config BCH_CONST_M
426 int
427 range 5 15
428 help
429 Constant value for Galois field order 'm'. If 'k' is the
430 number of data bits to protect, 'm' should be chosen such
431 that (k + m*t) <= 2**m - 1.
432 Drivers should declare a default value for this symbol if
433 they select option BCH_CONST_PARAMS.
434
435config BCH_CONST_T
436 int
437 help
438 Constant value for error correction capability in bits 't'.
439 Drivers should declare a default value for this symbol if
440 they select option BCH_CONST_PARAMS.
441
f7704347
DM
442#
443# Textsearch support is select'ed if needed
444#
2de4ff7b 445config TEXTSEARCH
6341e62b 446 bool
1da177e4 447
df3fb93a 448config TEXTSEARCH_KMP
f7704347 449 tristate
df3fb93a 450
8082e4ed 451config TEXTSEARCH_BM
29cb9f9c 452 tristate
8082e4ed 453
6408f79c 454config TEXTSEARCH_FSM
f7704347 455 tristate
6408f79c 456
5db53f3e 457config BTREE
6341e62b 458 bool
5db53f3e 459
a88cc108 460config INTERVAL_TREE
6341e62b 461 bool
a88cc108
CW
462 help
463 Simple, embeddable, interval-tree. Can find the start of an
464 overlapping range in log(n) time and then iterate over all
465 overlapping nodes. The algorithm is implemented as an
466 augmented rbtree.
467
468 See:
469
14bbe3e3 470 Documentation/core-api/rbtree.rst
a88cc108
CW
471
472 for more information.
473
02c02bf1 474config XARRAY_MULTI
57578c2e 475 bool
02c02bf1
MW
476 help
477 Support entries which occupy multiple consecutive indices in the
478 XArray.
57578c2e 479
3cb98950
DH
480config ASSOCIATIVE_ARRAY
481 bool
482 help
483 Generic associative array. Can be searched and iterated over whilst
484 it is being modified. It is also reasonably quick to search and
485 modify. The algorithms are non-recursive, and the trees are highly
486 capacious.
487
488 See:
489
5fb94e9c 490 Documentation/core-api/assoc_array.rst
3cb98950
DH
491
492 for more information.
493
5ea81769 494config HAS_IOMEM
6341e62b 495 bool
5ea81769
AV
496 depends on !NO_IOMEM
497 default y
498
ce816fa8 499config HAS_IOPORT_MAP
6341e62b 500 bool
ce816fa8 501 depends on HAS_IOMEM && !NO_IOPORT_MAP
ee36c2bf
AV
502 default y
503
cf65a0f6 504source "kernel/dma/Kconfig"
411f0f3e 505
e80a0af4
BVA
506config SGL_ALLOC
507 bool
508 default n
509
a4ce5a48
CH
510config IOMMU_HELPER
511 bool
512
928923c7
GU
513config CHECK_SIGNATURE
514 bool
515
aab46da0
RR
516config CPUMASK_OFFSTACK
517 bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
518 help
519 Use dynamic allocation for cpumask_var_t, instead of putting
520 them on the stack. This is a bit more expensive, but avoids
521 stack overflow.
522
c39649c3
BH
523config CPU_RMAP
524 bool
525 depends on SMP
526
75957ba3
TH
527config DQL
528 bool
529
b0125085
GS
530config GLOB
531 bool
532# This actually supports modular compilation, but the module overhead
533# is ridiculous for the amount of code involved. Until an out-of-tree
534# driver asks for it, we'll just link it directly it into the kernel
535# when required. Since we're ignoring out-of-tree users, there's also
536# no need bother prompting for a manual decision:
537# prompt "glob_match() function"
538 help
539 This option provides a glob_match function for performing
540 simple text pattern matching. It originated in the ATA code
541 to blacklist particular drive models, but other device drivers
542 may need similar functionality.
543
544 All drivers in the Linux kernel tree that require this function
545 should automatically select this option. Say N unless you
546 are compiling an out-of tree driver which tells you that it
547 depends on this.
548
5f9be824 549config GLOB_SELFTEST
ba95b045 550 tristate "glob self-test on init"
5f9be824
GS
551 depends on GLOB
552 help
553 This option enables a simple self-test of the glob_match
554 function on startup. It is primarily useful for people
555 working on the code to ensure they haven't introduced any
556 regressions.
557
558 It only adds a little bit of code and slows kernel boot (or
559 module load) by a small amount, so you're welcome to play with
560 it, but you probably don't need it.
561
e9cc8bdd
GU
562#
563# Netlink attribute parsing support is select'ed if needed
564#
565config NLATTR
566 bool
567
09d4e0ed
PM
568#
569# Generic 64-bit atomic support is selected if needed
570#
571config GENERIC_ATOMIC64
572 bool
573
b411b363
PR
574config LRU_CACHE
575 tristate
576
c6df4b17
DM
577config CLZ_TAB
578 bool
579
511cbce2
CH
580config IRQ_POLL
581 bool "IRQ polling library"
582 help
583 Helper library to poll interrupt mitigation using polling.
584
d9c46b18 585config MPILIB
2e5f094b 586 tristate
c6df4b17 587 select CLZ_TAB
d9c46b18
DK
588 help
589 Multiprecision maths library from GnuPG.
590 It is used to implement RSA digital signature verification,
591 which is used by IMA/EVM digital signature extension.
592
5e8898e9 593config SIGNATURE
2e5f094b 594 tristate
0d1f64f6
DK
595 depends on KEYS
596 select CRYPTO
be440ec7 597 select CRYPTO_SHA1
051dbb91
DK
598 select MPILIB
599 help
600 Digital signature verification. Currently only RSA is supported.
601 Implementation is done using GnuPG MPI library
602
4f75da36 603config DIMLIB
424adc32 604 bool
4f75da36
TG
605 help
606 Dynamic Interrupt Moderation library.
991ad2b2 607 Implements an algorithm for dynamically changing CQ moderation values
4f75da36
TG
608 according to run time performance.
609
ab253839
DD
610#
611# libfdt files, only selected if needed.
612#
613config LIBFDT
614 bool
615
a77ad6ea
DH
616config OID_REGISTRY
617 tristate
618 help
619 Enable fast lookup object identifier registry.
620
0635eb8a 621config UCS2_STRING
68d4b3df 622 tristate
0635eb8a 623
00b26474
VF
624#
625# generic vdso
626#
627source "lib/vdso/Kconfig"
628
ee89bd6b
GU
629source "lib/fonts/Kconfig"
630
f8bcbe62
RJ
631config SG_SPLIT
632 def_bool n
633 help
7f7e92f7
GU
634 Provides a helper to split scatterlists into chunks, each chunk being
635 a scatterlist. This should be selected by a driver or an API which
636 whishes to split a scatterlist amongst multiple DMA channels.
f8bcbe62 637
9b1d6c89
ML
638config SG_POOL
639 def_bool n
640 help
641 Provides a helper to allocate chained scatterlists. This should be
642 selected by a driver or an API which whishes to allocate chained
643 scatterlist.
644
308c09f1
LA
645#
646# sg chaining option
647#
648
7c703e54 649config ARCH_NO_SG_CHAIN
308c09f1
LA
650 def_bool n
651
61031952
RZ
652config ARCH_HAS_PMEM_API
653 bool
654
33dd7075
DW
655config MEMREGION
656 bool
657
9ffc1d19
DW
658config ARCH_HAS_MEMREMAP_COMPAT_ALIGN
659 bool
660
bd79f947
CH
661# use memcpy to implement user copies for nommu architectures
662config UACCESS_MEMCPY
663 bool
664
0aed55af
DW
665config ARCH_HAS_UACCESS_FLUSHCACHE
666 bool
667
ec6347bb
DW
668# arch has a concept of a recoverable synchronous exception due to a
669# memory-read error like x86 machine-check or ARM data-abort, and
670# implements copy_mc_to_{user,kernel} to abort and report
671# 'bytes-transferred' if that exception fires when accessing the source
672# buffer.
673config ARCH_HAS_COPY_MC
522239b4
DW
674 bool
675
214d8ca6
TG
676# Temporary. Goes away when all archs are cleaned up
677config ARCH_STACKWALK
678 bool
679
cd11016e
AP
680config STACKDEPOT
681 bool
682 select STACKTRACE
683
2dba5eb1
VB
684config STACKDEPOT_ALWAYS_INIT
685 bool
686 select STACKDEPOT
687
d2620936
YL
688config STACK_HASH_ORDER
689 int "stack depot hash size (12 => 4KB, 20 => 1024KB)"
690 range 12 20
691 default 20
692 depends on STACKDEPOT
693 help
694 Select the hash size as a power of 2 for the stackdepot hash table.
695 Choose a lower value to reduce the memory impact.
696
4e66934e
ED
697config REF_TRACKER
698 bool
699 depends on STACKTRACE_SUPPORT
700 select STACKDEPOT
701
88459642
OS
702config SBITMAP
703 bool
704
44091d29 705config PARMAN
9d25af69 706 tristate "parman" if COMPILE_TEST
44091d29 707
3dfdecc6
RD
708config OBJAGG
709 tristate "objagg" if COMPILE_TEST
710
2de4ff7b 711endmenu
b35cd988 712
80b0ca98
CH
713config GENERIC_IOREMAP
714 bool
715
e3d59805 716config GENERIC_LIB_ASHLDI3
b35cd988
PD
717 bool
718
e3d59805 719config GENERIC_LIB_ASHRDI3
b35cd988
PD
720 bool
721
e3d59805 722config GENERIC_LIB_LSHRDI3
b35cd988
PD
723 bool
724
e3d59805 725config GENERIC_LIB_MULDI3
b35cd988
PD
726 bool
727
e3d59805 728config GENERIC_LIB_CMPDI2
b35cd988
PD
729 bool
730
e3d59805 731config GENERIC_LIB_UCMPDI2
b35cd988 732 bool
b8265621 733
527701ed
PD
734config GENERIC_LIB_DEVMEM_IS_ALLOWED
735 bool
736
b8265621
JK
737config PLDMFW
738 bool
739 default n
b0706762
JB
740
741config ASN1_ENCODER
742 tristate
cd705ea8
MW
743
744config POLYNOMIAL
745 tristate
This page took 0.995952 seconds and 4 git commands to generate.