xref: /openbmc/linux/lib/Kconfig (revision e56e1898)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Library configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
64370aa4aSLai Jiangshanconfig BINARY_PRINTF
74370aa4aSLai Jiangshan	def_bool n
84370aa4aSLai Jiangshan
91da177e4SLinus Torvaldsmenu "Library routines"
101da177e4SLinus Torvalds
11f5e70d0fSDavid Woodhouseconfig RAID6_PQ
12f5e70d0fSDavid Woodhouse	tristate
13f5e70d0fSDavid Woodhouse
14be85f93aSDaniel Verkampconfig RAID6_PQ_BENCHMARK
15be85f93aSDaniel Verkamp	bool "Automatically choose fastest RAID6 PQ functions"
16be85f93aSDaniel Verkamp	depends on RAID6_PQ
17be85f93aSDaniel Verkamp	default y
18be85f93aSDaniel Verkamp	help
19be85f93aSDaniel Verkamp	  Benchmark all available RAID6 PQ functions on init and choose the
20be85f93aSDaniel Verkamp	  fastest one.
21be85f93aSDaniel Verkamp
22d2218d4eSMatti Vaittinenconfig LINEAR_RANGES
23d2218d4eSMatti Vaittinen	tristate
24d2218d4eSMatti Vaittinen
25554aae35SVladimir Olteanconfig PACKING
26554aae35SVladimir Oltean	bool "Generic bitfield packing and unpacking"
27554aae35SVladimir Oltean	default n
28554aae35SVladimir Oltean	help
29554aae35SVladimir Oltean	  This option provides the packing() helper function, which permits
30554aae35SVladimir Oltean	  converting bitfields between a CPU-usable representation and a
31554aae35SVladimir Oltean	  memory representation that can have any combination of these quirks:
32554aae35SVladimir Oltean	    - Is little endian (bytes are reversed within a 32-bit group)
33554aae35SVladimir Oltean	    - The least-significant 32-bit word comes first (within a 64-bit
34554aae35SVladimir Oltean	      group)
35554aae35SVladimir Oltean	    - The most significant bit of a byte is at its right (bit 0 of a
36554aae35SVladimir Oltean	      register description is numerically 2^7).
37554aae35SVladimir Oltean	  Drivers may use these helpers to match the bit indices as described
38554aae35SVladimir Oltean	  in the data sheets of the peripherals they are in control of.
39554aae35SVladimir Oltean
40554aae35SVladimir Oltean	  When in doubt, say N.
41554aae35SVladimir Oltean
42a5cfc1ecSAkinobu Mitaconfig BITREVERSE
43a5cfc1ecSAkinobu Mita	tristate
44a5cfc1ecSAkinobu Mita
45556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE
46841c0090SChristoph Jaeger	bool
47556d2f05SYalin Wang	default n
48556d2f05SYalin Wang	depends on BITREVERSE
49556d2f05SYalin Wang	help
509e522c0dSAndrew Morton	  This option enables the use of hardware bit-reversal instructions on
519e522c0dSAndrew Morton	  architectures which support such operations.
52556d2f05SYalin Wang
53e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER
542922585bSDavid S. Miller	bool
552922585bSDavid S. Miller
56e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER
57a08c5356SLinus Torvalds	bool
58a08c5356SLinus Torvalds
59e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER
60e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNCPY_FROM_USER
61e6226997SArnd Bergmann
62e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER
63e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNLEN_USER
64e6226997SArnd Bergmann
654cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
664cd5773aSAndy Shevchenko	bool
674cd5773aSAndy Shevchenko
6819870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
699ba16087SJan Beulich	bool
7019870defSAlexander van Heukelum
712c64e9cbSAndy Shevchenkosource "lib/math/Kconfig"
722c64e9cbSAndy Shevchenko
73b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
74b923650bSMichael S. Tsirkin	bool
75b923650bSMichael S. Tsirkin
7666eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP
7766eab4dfSMichael S. Tsirkin	bool
7866eab4dfSMichael S. Tsirkin
794673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
804673ca8eSMichael S. Tsirkin	bool
8166eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
824673ca8eSMichael S. Tsirkin
834ccf4beaSWolfram Sangconfig STMP_DEVICE
844ccf4beaSWolfram Sang	bool
854ccf4beaSWolfram Sang
86bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
87bc08b449SLinus Torvalds	bool
88bc08b449SLinus Torvalds
8972d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
9072d93104SLinus Torvalds	bool
9172d93104SLinus Torvalds
922ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS
932ce0d7f9SMark Brown	bool
942ce0d7f9SMark Brown
95031e3601SZhichang Yuanconfig INDIRECT_PIO
96031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
97031e3601SZhichang Yuan	depends on ARM64
98031e3601SZhichang Yuan	help
99031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
100031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
101031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
102031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
103031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
104031e3601SZhichang Yuan	  I/O accessors.
105031e3601SZhichang Yuan
106031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
107031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
108031e3601SZhichang Yuan
109031e3601SZhichang Yuan	  When in doubt, say N.
110031e3601SZhichang Yuan
111ca2e3342SJohannes Bergconfig INDIRECT_IOMEM
112ca2e3342SJohannes Berg	bool
113ca2e3342SJohannes Berg	help
114ca2e3342SJohannes Berg	  This is selected by other options/architectures to provide the
115ca2e3342SJohannes Berg	  emulated iomem accessors.
116ca2e3342SJohannes Berg
117ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK
118ca2e3342SJohannes Berg	bool
119ca2e3342SJohannes Berg	depends on INDIRECT_IOMEM
120ca2e3342SJohannes Berg	help
121ca2e3342SJohannes Berg	  If INDIRECT_IOMEM is selected, this enables falling back to plain
122ca2e3342SJohannes Berg	  mmio accesses when the IO memory address is not a registered
123ca2e3342SJohannes Berg	  emulated region.
124ca2e3342SJohannes Berg
125*e56e1898SJustin M. Forbessource "lib/crypto/Kconfig"
126*e56e1898SJustin M. Forbes
1271da177e4SLinus Torvaldsconfig CRC_CCITT
1281da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
1291da177e4SLinus Torvalds	help
1301da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
1311da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
1321da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
1331da177e4SLinus Torvalds	  functions require M here.
1341da177e4SLinus Torvalds
1357657ec1fSEvgeniy Polyakovconfig CRC16
1367657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
1377657ec1fSEvgeniy Polyakov	help
1387657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
1397657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
1407657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
1417657ec1fSEvgeniy Polyakov	  functions require M here.
1427657ec1fSEvgeniy Polyakov
143f11f594eSMartin K. Petersenconfig CRC_T10DIF
144f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
14568411521SHerbert Xu	select CRYPTO
14668411521SHerbert Xu	select CRYPTO_CRCT10DIF
147f11f594eSMartin K. Petersen	help
148f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
149f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
150f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
151f11f594eSMartin K. Petersen
1523e7cbae7SIvo van Doornconfig CRC_ITU_T
1533e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
1543e7cbae7SIvo van Doorn	help
1553e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
1563e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
1573e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
1583e7cbae7SIvo van Doorn	  functions require M here.
1593e7cbae7SIvo van Doorn
1601da177e4SLinus Torvaldsconfig CRC32
16146c5801eSDarrick J. Wong	tristate "CRC32/CRC32c functions"
1621da177e4SLinus Torvalds	default y
163906d66dfSAkinobu Mita	select BITREVERSE
1641da177e4SLinus Torvalds	help
1651da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
16646c5801eSDarrick J. Wong	  modules require CRC32/CRC32c functions, but a module built outside
16746c5801eSDarrick J. Wong	  the kernel tree does. Such modules that use library CRC32/CRC32c
16846c5801eSDarrick J. Wong	  functions require M here.
1691da177e4SLinus Torvalds
1703863ef31SBob Pearsonconfig CRC32_SELFTEST
1715fb7f874SGeert Uytterhoeven	tristate "CRC32 perform self test on init"
1723863ef31SBob Pearson	depends on CRC32
1733863ef31SBob Pearson	help
1743863ef31SBob Pearson	  This option enables the CRC32 library functions to perform a
1753863ef31SBob Pearson	  self test on initialization. The self test computes crc32_le
1763863ef31SBob Pearson	  and crc32_be over byte strings with random alignment and length
1773863ef31SBob Pearson	  and computes the total elapsed time and number of bytes processed.
1783863ef31SBob Pearson
1795cde7656SDarrick J. Wongchoice
1805cde7656SDarrick J. Wong	prompt "CRC32 implementation"
1815cde7656SDarrick J. Wong	depends on CRC32
1825cde7656SDarrick J. Wong	default CRC32_SLICEBY8
18382edb4baSDarrick J. Wong	help
18482edb4baSDarrick J. Wong	  This option allows a kernel builder to override the default choice
18582edb4baSDarrick J. Wong	  of CRC32 algorithm.  Choose the default ("slice by 8") unless you
18682edb4baSDarrick J. Wong	  know that you need one of the others.
1875cde7656SDarrick J. Wong
1885cde7656SDarrick J. Wongconfig CRC32_SLICEBY8
1895cde7656SDarrick J. Wong	bool "Slice by 8 bytes"
1905cde7656SDarrick J. Wong	help
1915cde7656SDarrick J. Wong	  Calculate checksum 8 bytes at a time with a clever slicing algorithm.
1925cde7656SDarrick J. Wong	  This is the fastest algorithm, but comes with a 8KiB lookup table.
1935cde7656SDarrick J. Wong	  Most modern processors have enough cache to hold this table without
1945cde7656SDarrick J. Wong	  thrashing the cache.
1955cde7656SDarrick J. Wong
1965cde7656SDarrick J. Wong	  This is the default implementation choice.  Choose this one unless
1975cde7656SDarrick J. Wong	  you have a good reason not to.
1985cde7656SDarrick J. Wong
1995cde7656SDarrick J. Wongconfig CRC32_SLICEBY4
2005cde7656SDarrick J. Wong	bool "Slice by 4 bytes"
2015cde7656SDarrick J. Wong	help
2025cde7656SDarrick J. Wong	  Calculate checksum 4 bytes at a time with a clever slicing algorithm.
2035cde7656SDarrick J. Wong	  This is a bit slower than slice by 8, but has a smaller 4KiB lookup
2045cde7656SDarrick J. Wong	  table.
2055cde7656SDarrick J. Wong
2065cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
2075cde7656SDarrick J. Wong
2085cde7656SDarrick J. Wongconfig CRC32_SARWATE
2095cde7656SDarrick J. Wong	bool "Sarwate's Algorithm (one byte at a time)"
2105cde7656SDarrick J. Wong	help
2115cde7656SDarrick J. Wong	  Calculate checksum a byte at a time using Sarwate's algorithm.  This
2125cde7656SDarrick J. Wong	  is not particularly fast, but has a small 256 byte lookup table.
2135cde7656SDarrick J. Wong
2145cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
2155cde7656SDarrick J. Wong
2165cde7656SDarrick J. Wongconfig CRC32_BIT
2175cde7656SDarrick J. Wong	bool "Classic Algorithm (one bit at a time)"
2185cde7656SDarrick J. Wong	help
2195cde7656SDarrick J. Wong	  Calculate checksum one bit at a time.  This is VERY slow, but has
2205cde7656SDarrick J. Wong	  no lookup table.  This is provided as a debugging option.
2215cde7656SDarrick J. Wong
2225cde7656SDarrick J. Wong	  Only choose this option if you are debugging crc32.
2235cde7656SDarrick J. Wong
2245cde7656SDarrick J. Wongendchoice
2255cde7656SDarrick J. Wong
226feba04fdSColy Liconfig CRC64
227feba04fdSColy Li	tristate "CRC64 functions"
228feba04fdSColy Li	help
229feba04fdSColy Li	  This option is provided for the case where no in-kernel-tree
230feba04fdSColy Li	  modules require CRC64 functions, but a module built outside
231feba04fdSColy Li	  the kernel tree does. Such modules that use library CRC64
232feba04fdSColy Li	  functions require M here.
233feba04fdSColy Li
2340cbaa448SJeremy Kerrconfig CRC4
2350cbaa448SJeremy Kerr	tristate "CRC4 functions"
2360cbaa448SJeremy Kerr	help
2370cbaa448SJeremy Kerr	  This option is provided for the case where no in-kernel-tree
2380cbaa448SJeremy Kerr	  modules require CRC4 functions, but a module built outside
2390cbaa448SJeremy Kerr	  the kernel tree does. Such modules that use library CRC4
2400cbaa448SJeremy Kerr	  functions require M here.
2410cbaa448SJeremy Kerr
242ad241528SJan Nikitenkoconfig CRC7
243ad241528SJan Nikitenko	tristate "CRC7 functions"
244ad241528SJan Nikitenko	help
245ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
246ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
247ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
248ad241528SJan Nikitenko	  functions require M here.
249ad241528SJan Nikitenko
2501da177e4SLinus Torvaldsconfig LIBCRC32C
2511da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
25293027354SHerbert Xu	select CRYPTO
25369c35efcSHerbert Xu	select CRYPTO_CRC32C
2541da177e4SLinus Torvalds	help
2551da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
2561da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
2571da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
2581da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
2591da177e4SLinus Torvalds	  Module will be libcrc32c.
2601da177e4SLinus Torvalds
2617150962dSArend van Sprielconfig CRC8
2627150962dSArend van Spriel	tristate "CRC8 function"
2637150962dSArend van Spriel	help
2647150962dSArend van Spriel	  This option provides CRC8 function. Drivers may select this
2657150962dSArend van Spriel	  when they need to do cyclic redundancy check according CRC8
2667150962dSArend van Spriel	  algorithm. Module will be called crc8.
2677150962dSArend van Spriel
2685d240522SNick Terrellconfig XXHASH
2695d240522SNick Terrell	tristate
2705d240522SNick Terrell
271e65e1fc2SAl Viroconfig AUDIT_GENERIC
272e65e1fc2SAl Viro	bool
273e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
274e65e1fc2SAl Viro	default y
275e65e1fc2SAl Viro
2764b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2774b588411SAKASHI Takahiro	bool
2784b588411SAKASHI Takahiro	default n
2794b588411SAKASHI Takahiro
2804b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2814b588411SAKASHI Takahiro	bool
2824b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2834b588411SAKASHI Takahiro	default y
2844b588411SAKASHI Takahiro
285a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
286a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
287a6a9c0f1SDaniel Borkmann	help
288a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
289a6a9c0f1SDaniel Borkmann	  self test on initialization.
290a6a9c0f1SDaniel Borkmann
2911da177e4SLinus Torvalds#
2921da177e4SLinus Torvalds# compression support is select'ed if needed
2931da177e4SLinus Torvalds#
2942da572c9SDan Streetmanconfig 842_COMPRESS
2955b571677SArnd Bergmann	select CRC32
2962da572c9SDan Streetman	tristate
2972da572c9SDan Streetman
2982da572c9SDan Streetmanconfig 842_DECOMPRESS
2995b571677SArnd Bergmann	select CRC32
3002da572c9SDan Streetman	tristate
3012da572c9SDan Streetman
3021da177e4SLinus Torvaldsconfig ZLIB_INFLATE
3031da177e4SLinus Torvalds	tristate
3041da177e4SLinus Torvalds
3051da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
3061da177e4SLinus Torvalds	tristate
3071fd4e5c3SAndrew Morton	select BITREVERSE
3081da177e4SLinus Torvalds
309aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
310aa5b395bSMikhail Zaslonko	def_bool y
311aa5b395bSMikhail Zaslonko	depends on S390
312aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
313aa5b395bSMikhail Zaslonko	help
314aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
315aa5b395bSMikhail Zaslonko
31664c70b1cSRichard Purdieconfig LZO_COMPRESS
31764c70b1cSRichard Purdie	tristate
31864c70b1cSRichard Purdie
31964c70b1cSRichard Purdieconfig LZO_DECOMPRESS
32064c70b1cSRichard Purdie	tristate
32164c70b1cSRichard Purdie
322c72ac7a1SChanho Minconfig LZ4_COMPRESS
323c72ac7a1SChanho Min	tristate
324c72ac7a1SChanho Min
325c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
326c72ac7a1SChanho Min	tristate
327c72ac7a1SChanho Min
328e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
329e76e1fdfSKyungsik Lee	tristate
330e76e1fdfSKyungsik Lee
33173f3d1b4SNick Terrellconfig ZSTD_COMPRESS
33273f3d1b4SNick Terrell	select XXHASH
33373f3d1b4SNick Terrell	tristate
33473f3d1b4SNick Terrell
33573f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
33673f3d1b4SNick Terrell	select XXHASH
33773f3d1b4SNick Terrell	tristate
33873f3d1b4SNick Terrell
33924fa0402SLasse Collinsource "lib/xz/Kconfig"
34024fa0402SLasse Collin
3411da177e4SLinus Torvalds#
342c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
343c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
344c8531ab3SH. Peter Anvin#
345c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
3467856a16eSH. Peter Anvin	select ZLIB_INFLATE
347c8531ab3SH. Peter Anvin	tristate
348c8531ab3SH. Peter Anvin
349c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
350c8531ab3SH. Peter Anvin	tristate
351c8531ab3SH. Peter Anvin
352c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
353c8531ab3SH. Peter Anvin	tristate
354c8531ab3SH. Peter Anvin
3553ebe1243SLasse Collinconfig DECOMPRESS_XZ
3563ebe1243SLasse Collin	select XZ_DEC
3573ebe1243SLasse Collin	tristate
3583ebe1243SLasse Collin
359cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
360cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
361cacb246fSAlbin Tonnerre	tristate
362cacb246fSAlbin Tonnerre
363e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
364e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
365e76e1fdfSKyungsik Lee	tristate
366e76e1fdfSKyungsik Lee
3674963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
3684963bb2bSNick Terrell	select ZSTD_DECOMPRESS
3694963bb2bSNick Terrell	tristate
3704963bb2bSNick Terrell
371c8531ab3SH. Peter Anvin#
372f14f75b8SJes Sorensen# Generic allocator support is selected if needed
373f14f75b8SJes Sorensen#
374f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3756341e62bSChristoph Jaeger	bool
376f14f75b8SJes Sorensen
377f14f75b8SJes Sorensen#
3781da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3791da177e4SLinus Torvalds#
3801da177e4SLinus Torvaldsconfig REED_SOLOMON
3811da177e4SLinus Torvalds	tristate
3821da177e4SLinus Torvalds
3831da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
3846341e62bSChristoph Jaeger	bool
3851da177e4SLinus Torvalds
3861da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
3876341e62bSChristoph Jaeger	bool
3881da177e4SLinus Torvalds
3891da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
3906341e62bSChristoph Jaeger	bool
3911da177e4SLinus Torvalds
3921da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
3936341e62bSChristoph Jaeger	bool
3941da177e4SLinus Torvalds
395f7704347SDavid S. Miller#
396437aa565SIvan Djelic# BCH support is selected if needed
397437aa565SIvan Djelic#
398437aa565SIvan Djelicconfig BCH
399437aa565SIvan Djelic	tristate
400437aa565SIvan Djelic
401437aa565SIvan Djelicconfig BCH_CONST_PARAMS
4026341e62bSChristoph Jaeger	bool
403437aa565SIvan Djelic	help
404437aa565SIvan Djelic	  Drivers may select this option to force specific constant
405437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
406437aa565SIvan Djelic	  (error correction capability). Those specific values must
407437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
408437aa565SIvan Djelic	  and BCH_CONST_T.
409437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
410437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
411437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
412437aa565SIvan Djelic	  When this option is selected, the BCH library supports
413437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
414437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
415437aa565SIvan Djelic	  parameters.
416437aa565SIvan Djelic
417437aa565SIvan Djelicconfig BCH_CONST_M
418437aa565SIvan Djelic	int
419437aa565SIvan Djelic	range 5 15
420437aa565SIvan Djelic	help
421437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
422437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
423437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
424437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
425437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
426437aa565SIvan Djelic
427437aa565SIvan Djelicconfig BCH_CONST_T
428437aa565SIvan Djelic	int
429437aa565SIvan Djelic	help
430437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
431437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
432437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
433437aa565SIvan Djelic
434437aa565SIvan Djelic#
435f7704347SDavid S. Miller# Textsearch support is select'ed if needed
436f7704347SDavid S. Miller#
4372de4ff7bSThomas Grafconfig TEXTSEARCH
4386341e62bSChristoph Jaeger	bool
4391da177e4SLinus Torvalds
440df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
441f7704347SDavid S. Miller	tristate
442df3fb93aSThomas Graf
4438082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
44429cb9f9cSDavid S. Miller	tristate
4458082e4edSPablo Neira Ayuso
4466408f79cSThomas Grafconfig TEXTSEARCH_FSM
447f7704347SDavid S. Miller	tristate
4486408f79cSThomas Graf
4495db53f3eSJoern Engelconfig BTREE
4506341e62bSChristoph Jaeger	bool
4515db53f3eSJoern Engel
452a88cc108SChris Wilsonconfig INTERVAL_TREE
4536341e62bSChristoph Jaeger	bool
454a88cc108SChris Wilson	help
455a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
456a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
457a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
458a88cc108SChris Wilson	  augmented rbtree.
459a88cc108SChris Wilson
460a88cc108SChris Wilson	  See:
461a88cc108SChris Wilson
46214bbe3e3SMatthew Wilcox (Oracle)		Documentation/core-api/rbtree.rst
463a88cc108SChris Wilson
464a88cc108SChris Wilson	  for more information.
465a88cc108SChris Wilson
46602c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
46757578c2eSMatthew Wilcox	bool
46802c02bf1SMatthew Wilcox	help
46902c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
47002c02bf1SMatthew Wilcox	  XArray.
47157578c2eSMatthew Wilcox
4723cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
4733cb98950SDavid Howells	bool
4743cb98950SDavid Howells	help
4753cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4763cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
4773cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
4783cb98950SDavid Howells	  capacious.
4793cb98950SDavid Howells
4803cb98950SDavid Howells	  See:
4813cb98950SDavid Howells
4825fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
4833cb98950SDavid Howells
4843cb98950SDavid Howells	  for more information.
4853cb98950SDavid Howells
4865ea81769SAl Viroconfig HAS_IOMEM
4876341e62bSChristoph Jaeger	bool
4885ea81769SAl Viro	depends on !NO_IOMEM
4895ea81769SAl Viro	default y
4905ea81769SAl Viro
491ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
4926341e62bSChristoph Jaeger	bool
493ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
494ee36c2bfSAl Viro	default y
495ee36c2bfSAl Viro
496cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
497411f0f3eSHeiko Carstens
498e80a0af4SBart Van Asscheconfig SGL_ALLOC
499e80a0af4SBart Van Assche	bool
500e80a0af4SBart Van Assche	default n
501e80a0af4SBart Van Assche
502a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
503a4ce5a48SChristoph Hellwig	bool
504a4ce5a48SChristoph Hellwig
505928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
506928923c7SGeert Uytterhoeven	bool
507928923c7SGeert Uytterhoeven
508aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
509aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
510aab46da0SRusty Russell	help
511aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
512aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
513aab46da0SRusty Russell	  stack overflow.
514aab46da0SRusty Russell
515c39649c3SBen Hutchingsconfig CPU_RMAP
516c39649c3SBen Hutchings	bool
517c39649c3SBen Hutchings	depends on SMP
518c39649c3SBen Hutchings
51975957ba3STom Herbertconfig DQL
52075957ba3STom Herbert	bool
52175957ba3STom Herbert
522b0125085SGeorge Spelvinconfig GLOB
523b0125085SGeorge Spelvin	bool
524b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
525b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
526b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
527b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
528b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
529b0125085SGeorge Spelvin#	prompt "glob_match() function"
530b0125085SGeorge Spelvin	help
531b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
532b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
533b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
534b0125085SGeorge Spelvin	  may need similar functionality.
535b0125085SGeorge Spelvin
536b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
537b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
538b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
539b0125085SGeorge Spelvin	  depends on this.
540b0125085SGeorge Spelvin
5415f9be824SGeorge Spelvinconfig GLOB_SELFTEST
542ba95b045SGeert Uytterhoeven	tristate "glob self-test on init"
5435f9be824SGeorge Spelvin	depends on GLOB
5445f9be824SGeorge Spelvin	help
5455f9be824SGeorge Spelvin	  This option enables a simple self-test of the glob_match
5465f9be824SGeorge Spelvin	  function on startup.	It is primarily useful for people
5475f9be824SGeorge Spelvin	  working on the code to ensure they haven't introduced any
5485f9be824SGeorge Spelvin	  regressions.
5495f9be824SGeorge Spelvin
5505f9be824SGeorge Spelvin	  It only adds a little bit of code and slows kernel boot (or
5515f9be824SGeorge Spelvin	  module load) by a small amount, so you're welcome to play with
5525f9be824SGeorge Spelvin	  it, but you probably don't need it.
5535f9be824SGeorge Spelvin
554e9cc8bddSGeert Uytterhoeven#
555e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
556e9cc8bddSGeert Uytterhoeven#
557e9cc8bddSGeert Uytterhoevenconfig NLATTR
558e9cc8bddSGeert Uytterhoeven	bool
559e9cc8bddSGeert Uytterhoeven
56009d4e0edSPaul Mackerras#
56109d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
56209d4e0edSPaul Mackerras#
56309d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
56409d4e0edSPaul Mackerras       bool
56509d4e0edSPaul Mackerras
566b411b363SPhilipp Reisnerconfig LRU_CACHE
567b411b363SPhilipp Reisner	tristate
568b411b363SPhilipp Reisner
569c6df4b17SDavid Millerconfig CLZ_TAB
570c6df4b17SDavid Miller	bool
571c6df4b17SDavid Miller
572511cbce2SChristoph Hellwigconfig IRQ_POLL
573511cbce2SChristoph Hellwig	bool "IRQ polling library"
574511cbce2SChristoph Hellwig	help
575511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
576511cbce2SChristoph Hellwig
577d9c46b18SDmitry Kasatkinconfig MPILIB
5782e5f094bSDmitry Kasatkin	tristate
579c6df4b17SDavid Miller	select CLZ_TAB
580d9c46b18SDmitry Kasatkin	help
581d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
582d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
583d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
584d9c46b18SDmitry Kasatkin
5855e8898e9SDmitry Kasatkinconfig SIGNATURE
5862e5f094bSDmitry Kasatkin	tristate
5870d1f64f6SDmitry Kasatkin	depends on KEYS
5880d1f64f6SDmitry Kasatkin	select CRYPTO
589be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
590051dbb91SDmitry Kasatkin	select MPILIB
591051dbb91SDmitry Kasatkin	help
592051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
593051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
594051dbb91SDmitry Kasatkin
5954f75da36STal Gilboaconfig DIMLIB
596424adc32SUwe Kleine-König	bool
5974f75da36STal Gilboa	help
5984f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
599991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
6004f75da36STal Gilboa	  according to run time performance.
6014f75da36STal Gilboa
602ab253839SDavid Daney#
603ab253839SDavid Daney# libfdt files, only selected if needed.
604ab253839SDavid Daney#
605ab253839SDavid Daneyconfig LIBFDT
606ab253839SDavid Daney	bool
607ab253839SDavid Daney
608a77ad6eaSDavid Howellsconfig OID_REGISTRY
609a77ad6eaSDavid Howells	tristate
610a77ad6eaSDavid Howells	help
611a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
612a77ad6eaSDavid Howells
6130635eb8aSMatthew Garrettconfig UCS2_STRING
6140635eb8aSMatthew Garrett	tristate
6150635eb8aSMatthew Garrett
61600b26474SVincenzo Frascino#
61700b26474SVincenzo Frascino# generic vdso
61800b26474SVincenzo Frascino#
61900b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
62000b26474SVincenzo Frascino
621ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
622ee89bd6bSGeert Uytterhoeven
623f8bcbe62SRobert Jarzmikconfig SG_SPLIT
624f8bcbe62SRobert Jarzmik	def_bool n
625f8bcbe62SRobert Jarzmik	help
6267f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
6277f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
6287f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
629f8bcbe62SRobert Jarzmik
6309b1d6c89SMing Linconfig SG_POOL
6319b1d6c89SMing Lin	def_bool n
6329b1d6c89SMing Lin	help
6339b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
6349b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
6359b1d6c89SMing Lin	 scatterlist.
6369b1d6c89SMing Lin
637308c09f1SLaura Abbott#
638308c09f1SLaura Abbott# sg chaining option
639308c09f1SLaura Abbott#
640308c09f1SLaura Abbott
6417c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
642308c09f1SLaura Abbott	def_bool n
643308c09f1SLaura Abbott
64461031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
64561031952SRoss Zwisler	bool
64661031952SRoss Zwisler
64733dd7075SDan Williamsconfig MEMREGION
64833dd7075SDan Williams	bool
64933dd7075SDan Williams
6509ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
6519ffc1d19SDan Williams	bool
6529ffc1d19SDan Williams
653bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
654bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
655bd79f947SChristoph Hellwig	bool
656bd79f947SChristoph Hellwig
6570aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6580aed55afSDan Williams	bool
6590aed55afSDan Williams
660ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a
661ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and
662ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report
663ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source
664ec6347bbSDan Williams# buffer.
665ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC
666522239b4SDan Williams	bool
667522239b4SDan Williams
668214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
669214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
670214d8ca6SThomas Gleixner       bool
671214d8ca6SThomas Gleixner
672cd11016eSAlexander Potapenkoconfig STACKDEPOT
673cd11016eSAlexander Potapenko	bool
674cd11016eSAlexander Potapenko	select STACKTRACE
675cd11016eSAlexander Potapenko
676d2620936SYogesh Lalconfig STACK_HASH_ORDER
677d2620936SYogesh Lal	int "stack depot hash size (12 => 4KB, 20 => 1024KB)"
678d2620936SYogesh Lal	range 12 20
679d2620936SYogesh Lal	default 20
680d2620936SYogesh Lal	depends on STACKDEPOT
681d2620936SYogesh Lal	help
682d2620936SYogesh Lal	 Select the hash size as a power of 2 for the stackdepot hash table.
683d2620936SYogesh Lal	 Choose a lower value to reduce the memory impact.
684d2620936SYogesh Lal
6854e66934eSEric Dumazetconfig REF_TRACKER
6864e66934eSEric Dumazet	bool
6874e66934eSEric Dumazet	depends on STACKTRACE_SUPPORT
6884e66934eSEric Dumazet	select STACKDEPOT
6894e66934eSEric Dumazet
69088459642SOmar Sandovalconfig SBITMAP
69188459642SOmar Sandoval	bool
69288459642SOmar Sandoval
69344091d29SJiri Pirkoconfig PARMAN
6949d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
69544091d29SJiri Pirko
6963dfdecc6SRandy Dunlapconfig OBJAGG
6973dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
6983dfdecc6SRandy Dunlap
6992de4ff7bSThomas Grafendmenu
700b35cd988SPalmer Dabbelt
70180b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
70280b0ca98SChristoph Hellwig	bool
70380b0ca98SChristoph Hellwig
704e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
705b35cd988SPalmer Dabbelt	bool
706b35cd988SPalmer Dabbelt
707e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
708b35cd988SPalmer Dabbelt	bool
709b35cd988SPalmer Dabbelt
710e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
711b35cd988SPalmer Dabbelt	bool
712b35cd988SPalmer Dabbelt
713e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
714b35cd988SPalmer Dabbelt	bool
715b35cd988SPalmer Dabbelt
716e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
717b35cd988SPalmer Dabbelt	bool
718b35cd988SPalmer Dabbelt
719e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
720b35cd988SPalmer Dabbelt	bool
721b8265621SJacob Keller
722527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
723527701edSPalmer Dabbelt	bool
724527701edSPalmer Dabbelt
725b8265621SJacob Kellerconfig PLDMFW
726b8265621SJacob Keller	bool
727b8265621SJacob Keller	default n
728b0706762SJames Bottomley
729b0706762SJames Bottomleyconfig ASN1_ENCODER
730b0706762SJames Bottomley       tristate
731