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