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" 271280d4b7SUladzislau Koshchanka select BITREVERSE 28554aae35SVladimir Oltean default n 29554aae35SVladimir Oltean help 30554aae35SVladimir Oltean This option provides the packing() helper function, which permits 31554aae35SVladimir Oltean converting bitfields between a CPU-usable representation and a 32554aae35SVladimir Oltean memory representation that can have any combination of these quirks: 33554aae35SVladimir Oltean - Is little endian (bytes are reversed within a 32-bit group) 34554aae35SVladimir Oltean - The least-significant 32-bit word comes first (within a 64-bit 35554aae35SVladimir Oltean group) 36554aae35SVladimir Oltean - The most significant bit of a byte is at its right (bit 0 of a 37554aae35SVladimir Oltean register description is numerically 2^7). 38554aae35SVladimir Oltean Drivers may use these helpers to match the bit indices as described 39554aae35SVladimir Oltean in the data sheets of the peripherals they are in control of. 40554aae35SVladimir Oltean 41554aae35SVladimir Oltean When in doubt, say N. 42554aae35SVladimir Oltean 43a5cfc1ecSAkinobu Mitaconfig BITREVERSE 44a5cfc1ecSAkinobu Mita tristate 45a5cfc1ecSAkinobu Mita 46556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE 47841c0090SChristoph Jaeger bool 48556d2f05SYalin Wang default n 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 682c64e9cbSAndy Shevchenkosource "lib/math/Kconfig" 692c64e9cbSAndy Shevchenko 70b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP 71b923650bSMichael S. Tsirkin bool 72b923650bSMichael S. Tsirkin 734673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP 744673ca8eSMichael S. Tsirkin bool 7566eab4dfSMichael S. Tsirkin select GENERIC_PCI_IOMAP 764673ca8eSMichael S. Tsirkin 774ccf4beaSWolfram Sangconfig STMP_DEVICE 784ccf4beaSWolfram Sang bool 794ccf4beaSWolfram Sang 80bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF 81bc08b449SLinus Torvalds bool 82bc08b449SLinus Torvalds 8372d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER 8472d93104SLinus Torvalds bool 8572d93104SLinus Torvalds 862ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS 872ce0d7f9SMark Brown bool 882ce0d7f9SMark Brown 89031e3601SZhichang Yuanconfig INDIRECT_PIO 90031e3601SZhichang Yuan bool "Access I/O in non-MMIO mode" 91031e3601SZhichang Yuan depends on ARM64 92fcbfe812SNiklas Schnelle depends on HAS_IOPORT 93031e3601SZhichang Yuan help 94031e3601SZhichang Yuan On some platforms where no separate I/O space exists, there are I/O 95031e3601SZhichang Yuan hosts which can not be accessed in MMIO mode. Using the logical PIO 96031e3601SZhichang Yuan mechanism, the host-local I/O resource can be mapped into system 97031e3601SZhichang Yuan logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the 98031e3601SZhichang Yuan system can access the I/O devices with the mapped-logic PIO through 99031e3601SZhichang Yuan I/O accessors. 100031e3601SZhichang Yuan 101031e3601SZhichang Yuan This way has relatively little I/O performance cost. Please make 102031e3601SZhichang Yuan sure your devices really need this configure item enabled. 103031e3601SZhichang Yuan 104031e3601SZhichang Yuan When in doubt, say N. 105031e3601SZhichang Yuan 106ca2e3342SJohannes Bergconfig INDIRECT_IOMEM 107ca2e3342SJohannes Berg bool 108ca2e3342SJohannes Berg help 109ca2e3342SJohannes Berg This is selected by other options/architectures to provide the 110ca2e3342SJohannes Berg emulated iomem accessors. 111ca2e3342SJohannes Berg 112ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK 113ca2e3342SJohannes Berg bool 114ca2e3342SJohannes Berg depends on INDIRECT_IOMEM 115ca2e3342SJohannes Berg help 116ca2e3342SJohannes Berg If INDIRECT_IOMEM is selected, this enables falling back to plain 117ca2e3342SJohannes Berg mmio accesses when the IO memory address is not a registered 118ca2e3342SJohannes Berg emulated region. 119ca2e3342SJohannes Berg 120d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS 121d593d64fSPrasad Sodagudi bool "Register read/write tracing" 122d593d64fSPrasad Sodagudi depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS 123d593d64fSPrasad Sodagudi help 124d593d64fSPrasad Sodagudi Create tracepoints for MMIO read/write operations. These trace events 125d593d64fSPrasad Sodagudi can be used for logging all MMIO read/write operations. 126d593d64fSPrasad Sodagudi 127e56e1898SJustin M. Forbessource "lib/crypto/Kconfig" 128e56e1898SJustin M. Forbes 1291da177e4SLinus Torvaldsconfig CRC_CCITT 1301da177e4SLinus Torvalds tristate "CRC-CCITT functions" 1311da177e4SLinus Torvalds help 1321da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 1331da177e4SLinus Torvalds modules require CRC-CCITT functions, but a module built outside 1341da177e4SLinus Torvalds the kernel tree does. Such modules that use library CRC-CCITT 1351da177e4SLinus Torvalds functions require M here. 1361da177e4SLinus Torvalds 1377657ec1fSEvgeniy Polyakovconfig CRC16 1387657ec1fSEvgeniy Polyakov tristate "CRC16 functions" 1397657ec1fSEvgeniy Polyakov help 1407657ec1fSEvgeniy Polyakov This option is provided for the case where no in-kernel-tree 1417657ec1fSEvgeniy Polyakov modules require CRC16 functions, but a module built outside 1427657ec1fSEvgeniy Polyakov the kernel tree does. Such modules that use library CRC16 1437657ec1fSEvgeniy Polyakov functions require M here. 1447657ec1fSEvgeniy Polyakov 145f11f594eSMartin K. Petersenconfig CRC_T10DIF 146f11f594eSMartin K. Petersen tristate "CRC calculation for the T10 Data Integrity Field" 14768411521SHerbert Xu select CRYPTO 14868411521SHerbert Xu select CRYPTO_CRCT10DIF 149f11f594eSMartin K. Petersen help 150f11f594eSMartin K. Petersen This option is only needed if a module that's not in the 151f11f594eSMartin K. Petersen kernel tree needs to calculate CRC checks for use with the 152f11f594eSMartin K. Petersen SCSI data integrity subsystem. 153f11f594eSMartin K. Petersen 154f3813f4bSKeith Buschconfig CRC64_ROCKSOFT 155f3813f4bSKeith Busch tristate "CRC calculation for the Rocksoft model CRC64" 156f3813f4bSKeith Busch select CRC64 157f3813f4bSKeith Busch select CRYPTO 158f3813f4bSKeith Busch select CRYPTO_CRC64_ROCKSOFT 159f3813f4bSKeith Busch help 160f3813f4bSKeith Busch This option provides a CRC64 API to a registered crypto driver. 161f3813f4bSKeith Busch This is used with the block layer's data integrity subsystem. 162f3813f4bSKeith Busch 1633e7cbae7SIvo van Doornconfig CRC_ITU_T 1643e7cbae7SIvo van Doorn tristate "CRC ITU-T V.41 functions" 1653e7cbae7SIvo van Doorn help 1663e7cbae7SIvo van Doorn This option is provided for the case where no in-kernel-tree 1673e7cbae7SIvo van Doorn modules require CRC ITU-T V.41 functions, but a module built outside 1683e7cbae7SIvo van Doorn the kernel tree does. Such modules that use library CRC ITU-T V.41 1693e7cbae7SIvo van Doorn functions require M here. 1703e7cbae7SIvo van Doorn 1711da177e4SLinus Torvaldsconfig CRC32 17246c5801eSDarrick J. Wong tristate "CRC32/CRC32c functions" 1731da177e4SLinus Torvalds default y 174906d66dfSAkinobu Mita select BITREVERSE 1751da177e4SLinus Torvalds help 1761da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 17746c5801eSDarrick J. Wong modules require CRC32/CRC32c functions, but a module built outside 17846c5801eSDarrick J. Wong the kernel tree does. Such modules that use library CRC32/CRC32c 17946c5801eSDarrick J. Wong functions require M here. 1801da177e4SLinus Torvalds 1813863ef31SBob Pearsonconfig CRC32_SELFTEST 1825fb7f874SGeert Uytterhoeven tristate "CRC32 perform self test on init" 1833863ef31SBob Pearson depends on CRC32 1843863ef31SBob Pearson help 1853863ef31SBob Pearson This option enables the CRC32 library functions to perform a 1863863ef31SBob Pearson self test on initialization. The self test computes crc32_le 1873863ef31SBob Pearson and crc32_be over byte strings with random alignment and length 1883863ef31SBob Pearson and computes the total elapsed time and number of bytes processed. 1893863ef31SBob Pearson 1905cde7656SDarrick J. Wongchoice 1915cde7656SDarrick J. Wong prompt "CRC32 implementation" 1925cde7656SDarrick J. Wong depends on CRC32 1935cde7656SDarrick J. Wong default CRC32_SLICEBY8 19482edb4baSDarrick J. Wong help 19582edb4baSDarrick J. Wong This option allows a kernel builder to override the default choice 19682edb4baSDarrick J. Wong of CRC32 algorithm. Choose the default ("slice by 8") unless you 19782edb4baSDarrick J. Wong know that you need one of the others. 1985cde7656SDarrick J. Wong 1995cde7656SDarrick J. Wongconfig CRC32_SLICEBY8 2005cde7656SDarrick J. Wong bool "Slice by 8 bytes" 2015cde7656SDarrick J. Wong help 2025cde7656SDarrick J. Wong Calculate checksum 8 bytes at a time with a clever slicing algorithm. 2035cde7656SDarrick J. Wong This is the fastest algorithm, but comes with a 8KiB lookup table. 2045cde7656SDarrick J. Wong Most modern processors have enough cache to hold this table without 2055cde7656SDarrick J. Wong thrashing the cache. 2065cde7656SDarrick J. Wong 2075cde7656SDarrick J. Wong This is the default implementation choice. Choose this one unless 2085cde7656SDarrick J. Wong you have a good reason not to. 2095cde7656SDarrick J. Wong 2105cde7656SDarrick J. Wongconfig CRC32_SLICEBY4 2115cde7656SDarrick J. Wong bool "Slice by 4 bytes" 2125cde7656SDarrick J. Wong help 2135cde7656SDarrick J. Wong Calculate checksum 4 bytes at a time with a clever slicing algorithm. 2145cde7656SDarrick J. Wong This is a bit slower than slice by 8, but has a smaller 4KiB lookup 2155cde7656SDarrick J. Wong table. 2165cde7656SDarrick J. Wong 2175cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 2185cde7656SDarrick J. Wong 2195cde7656SDarrick J. Wongconfig CRC32_SARWATE 2205cde7656SDarrick J. Wong bool "Sarwate's Algorithm (one byte at a time)" 2215cde7656SDarrick J. Wong help 2225cde7656SDarrick J. Wong Calculate checksum a byte at a time using Sarwate's algorithm. This 2235cde7656SDarrick J. Wong is not particularly fast, but has a small 256 byte lookup table. 2245cde7656SDarrick J. Wong 2255cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 2265cde7656SDarrick J. Wong 2275cde7656SDarrick J. Wongconfig CRC32_BIT 2285cde7656SDarrick J. Wong bool "Classic Algorithm (one bit at a time)" 2295cde7656SDarrick J. Wong help 2305cde7656SDarrick J. Wong Calculate checksum one bit at a time. This is VERY slow, but has 2315cde7656SDarrick J. Wong no lookup table. This is provided as a debugging option. 2325cde7656SDarrick J. Wong 2335cde7656SDarrick J. Wong Only choose this option if you are debugging crc32. 2345cde7656SDarrick J. Wong 2355cde7656SDarrick J. Wongendchoice 2365cde7656SDarrick J. Wong 237feba04fdSColy Liconfig CRC64 238feba04fdSColy Li tristate "CRC64 functions" 239feba04fdSColy Li help 240feba04fdSColy Li This option is provided for the case where no in-kernel-tree 241feba04fdSColy Li modules require CRC64 functions, but a module built outside 242feba04fdSColy Li the kernel tree does. Such modules that use library CRC64 243feba04fdSColy Li functions require M here. 244feba04fdSColy Li 2450cbaa448SJeremy Kerrconfig CRC4 2460cbaa448SJeremy Kerr tristate "CRC4 functions" 2470cbaa448SJeremy Kerr help 2480cbaa448SJeremy Kerr This option is provided for the case where no in-kernel-tree 2490cbaa448SJeremy Kerr modules require CRC4 functions, but a module built outside 2500cbaa448SJeremy Kerr the kernel tree does. Such modules that use library CRC4 2510cbaa448SJeremy Kerr functions require M here. 2520cbaa448SJeremy Kerr 253ad241528SJan Nikitenkoconfig CRC7 254ad241528SJan Nikitenko tristate "CRC7 functions" 255ad241528SJan Nikitenko help 256ad241528SJan Nikitenko This option is provided for the case where no in-kernel-tree 257ad241528SJan Nikitenko modules require CRC7 functions, but a module built outside 258ad241528SJan Nikitenko the kernel tree does. Such modules that use library CRC7 259ad241528SJan Nikitenko functions require M here. 260ad241528SJan Nikitenko 2611da177e4SLinus Torvaldsconfig LIBCRC32C 2621da177e4SLinus Torvalds tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" 26393027354SHerbert Xu select CRYPTO 26469c35efcSHerbert Xu select CRYPTO_CRC32C 2651da177e4SLinus Torvalds help 2661da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 2671da177e4SLinus Torvalds modules require CRC32c functions, but a module built outside the 2681da177e4SLinus Torvalds kernel tree does. Such modules that use library CRC32c functions 2691da177e4SLinus Torvalds require M here. See Castagnoli93. 2701da177e4SLinus Torvalds Module will be libcrc32c. 2711da177e4SLinus Torvalds 2727150962dSArend van Sprielconfig CRC8 2737150962dSArend van Spriel tristate "CRC8 function" 2747150962dSArend van Spriel help 2757150962dSArend van Spriel This option provides CRC8 function. Drivers may select this 2767150962dSArend van Spriel when they need to do cyclic redundancy check according CRC8 2777150962dSArend van Spriel algorithm. Module will be called crc8. 2787150962dSArend van Spriel 2795d240522SNick Terrellconfig XXHASH 2805d240522SNick Terrell tristate 2815d240522SNick Terrell 282e65e1fc2SAl Viroconfig AUDIT_GENERIC 283e65e1fc2SAl Viro bool 284e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 285e65e1fc2SAl Viro default y 286e65e1fc2SAl Viro 2874b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC 2884b588411SAKASHI Takahiro bool 2894b588411SAKASHI Takahiro default n 2904b588411SAKASHI Takahiro 2914b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC 2924b588411SAKASHI Takahiro bool 2934b588411SAKASHI Takahiro depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT 2944b588411SAKASHI Takahiro default y 2954b588411SAKASHI Takahiro 296a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST 297a6a9c0f1SDaniel Borkmann bool "PRNG perform self test on init" 298a6a9c0f1SDaniel Borkmann help 299a6a9c0f1SDaniel Borkmann This option enables the 32 bit PRNG library functions to perform a 300a6a9c0f1SDaniel Borkmann self test on initialization. 301a6a9c0f1SDaniel Borkmann 3021da177e4SLinus Torvalds# 3031da177e4SLinus Torvalds# compression support is select'ed if needed 3041da177e4SLinus Torvalds# 3052da572c9SDan Streetmanconfig 842_COMPRESS 3065b571677SArnd Bergmann select CRC32 3072da572c9SDan Streetman tristate 3082da572c9SDan Streetman 3092da572c9SDan Streetmanconfig 842_DECOMPRESS 3105b571677SArnd Bergmann select CRC32 3112da572c9SDan Streetman tristate 3122da572c9SDan Streetman 3131da177e4SLinus Torvaldsconfig ZLIB_INFLATE 3141da177e4SLinus Torvalds tristate 3151da177e4SLinus Torvalds 3161da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 3171da177e4SLinus Torvalds tristate 3181fd4e5c3SAndrew Morton select BITREVERSE 3191da177e4SLinus Torvalds 320aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC 321aa5b395bSMikhail Zaslonko def_bool y 322aa5b395bSMikhail Zaslonko depends on S390 323aa5b395bSMikhail Zaslonko prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib" 324aa5b395bSMikhail Zaslonko help 325aa5b395bSMikhail Zaslonko Enable s390x hardware support for zlib in the kernel. 326aa5b395bSMikhail Zaslonko 32764c70b1cSRichard Purdieconfig LZO_COMPRESS 32864c70b1cSRichard Purdie tristate 32964c70b1cSRichard Purdie 33064c70b1cSRichard Purdieconfig LZO_DECOMPRESS 33164c70b1cSRichard Purdie tristate 33264c70b1cSRichard Purdie 333c72ac7a1SChanho Minconfig LZ4_COMPRESS 334c72ac7a1SChanho Min tristate 335c72ac7a1SChanho Min 336c72ac7a1SChanho Minconfig LZ4HC_COMPRESS 337c72ac7a1SChanho Min tristate 338c72ac7a1SChanho Min 339e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS 340e76e1fdfSKyungsik Lee tristate 341e76e1fdfSKyungsik Lee 342637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON 34373f3d1b4SNick Terrell select XXHASH 34473f3d1b4SNick Terrell tristate 34573f3d1b4SNick Terrell 346637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS 347637a642fSAlexey Kardashevskiy select ZSTD_COMMON 348637a642fSAlexey Kardashevskiy tristate 349637a642fSAlexey Kardashevskiy 35073f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS 351637a642fSAlexey Kardashevskiy select ZSTD_COMMON 35273f3d1b4SNick Terrell tristate 35373f3d1b4SNick Terrell 35424fa0402SLasse Collinsource "lib/xz/Kconfig" 35524fa0402SLasse Collin 3561da177e4SLinus Torvalds# 357c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 358c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 359c8531ab3SH. Peter Anvin# 360c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 3617856a16eSH. Peter Anvin select ZLIB_INFLATE 362c8531ab3SH. Peter Anvin tristate 363c8531ab3SH. Peter Anvin 364c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 365c8531ab3SH. Peter Anvin tristate 366c8531ab3SH. Peter Anvin 367c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 368c8531ab3SH. Peter Anvin tristate 369c8531ab3SH. Peter Anvin 3703ebe1243SLasse Collinconfig DECOMPRESS_XZ 3713ebe1243SLasse Collin select XZ_DEC 3723ebe1243SLasse Collin tristate 3733ebe1243SLasse Collin 374cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 375cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 376cacb246fSAlbin Tonnerre tristate 377cacb246fSAlbin Tonnerre 378e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4 379e76e1fdfSKyungsik Lee select LZ4_DECOMPRESS 380e76e1fdfSKyungsik Lee tristate 381e76e1fdfSKyungsik Lee 3824963bb2bSNick Terrellconfig DECOMPRESS_ZSTD 3834963bb2bSNick Terrell select ZSTD_DECOMPRESS 3844963bb2bSNick Terrell tristate 3854963bb2bSNick Terrell 386c8531ab3SH. Peter Anvin# 387f14f75b8SJes Sorensen# Generic allocator support is selected if needed 388f14f75b8SJes Sorensen# 389f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 3906341e62bSChristoph Jaeger bool 391f14f75b8SJes Sorensen 392f14f75b8SJes Sorensen# 3931da177e4SLinus Torvalds# reed solomon support is select'ed if needed 3941da177e4SLinus Torvalds# 3951da177e4SLinus Torvaldsconfig REED_SOLOMON 3961da177e4SLinus Torvalds tristate 3971da177e4SLinus Torvalds 3981da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 3996341e62bSChristoph Jaeger bool 4001da177e4SLinus Torvalds 4011da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 4026341e62bSChristoph Jaeger bool 4031da177e4SLinus Torvalds 4041da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 4056341e62bSChristoph Jaeger bool 4061da177e4SLinus Torvalds 4071da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 4086341e62bSChristoph Jaeger bool 4091da177e4SLinus Torvalds 410f7704347SDavid S. Miller# 411437aa565SIvan Djelic# BCH support is selected if needed 412437aa565SIvan Djelic# 413437aa565SIvan Djelicconfig BCH 414437aa565SIvan Djelic tristate 41502d7f74aSJohn Sanpe select BITREVERSE 416437aa565SIvan Djelic 417437aa565SIvan Djelicconfig BCH_CONST_PARAMS 4186341e62bSChristoph Jaeger bool 419437aa565SIvan Djelic help 420437aa565SIvan Djelic Drivers may select this option to force specific constant 421437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 422437aa565SIvan Djelic (error correction capability). Those specific values must 423437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 424437aa565SIvan Djelic and BCH_CONST_T. 425437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 426437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 427437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 428437aa565SIvan Djelic When this option is selected, the BCH library supports 429437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 430437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 431437aa565SIvan Djelic parameters. 432437aa565SIvan Djelic 433437aa565SIvan Djelicconfig BCH_CONST_M 434437aa565SIvan Djelic int 435437aa565SIvan Djelic range 5 15 436437aa565SIvan Djelic help 437437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 438437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 439437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 440437aa565SIvan Djelic Drivers should declare a default value for this symbol if 441437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 442437aa565SIvan Djelic 443437aa565SIvan Djelicconfig BCH_CONST_T 444437aa565SIvan Djelic int 445437aa565SIvan Djelic help 446437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 447437aa565SIvan Djelic Drivers should declare a default value for this symbol if 448437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 449437aa565SIvan Djelic 450437aa565SIvan Djelic# 451f7704347SDavid S. Miller# Textsearch support is select'ed if needed 452f7704347SDavid S. Miller# 4532de4ff7bSThomas Grafconfig TEXTSEARCH 4546341e62bSChristoph Jaeger bool 4551da177e4SLinus Torvalds 456df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 457f7704347SDavid S. Miller tristate 458df3fb93aSThomas Graf 4598082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 46029cb9f9cSDavid S. Miller tristate 4618082e4edSPablo Neira Ayuso 4626408f79cSThomas Grafconfig TEXTSEARCH_FSM 463f7704347SDavid S. Miller tristate 4646408f79cSThomas Graf 4655db53f3eSJoern Engelconfig BTREE 4666341e62bSChristoph Jaeger bool 4675db53f3eSJoern Engel 468a88cc108SChris Wilsonconfig INTERVAL_TREE 4696341e62bSChristoph Jaeger bool 470a88cc108SChris Wilson help 471a88cc108SChris Wilson Simple, embeddable, interval-tree. Can find the start of an 472a88cc108SChris Wilson overlapping range in log(n) time and then iterate over all 473a88cc108SChris Wilson overlapping nodes. The algorithm is implemented as an 474a88cc108SChris Wilson augmented rbtree. 475a88cc108SChris Wilson 476a88cc108SChris Wilson See: 477a88cc108SChris Wilson 47814bbe3e3SMatthew Wilcox (Oracle) Documentation/core-api/rbtree.rst 479a88cc108SChris Wilson 480a88cc108SChris Wilson for more information. 481a88cc108SChris Wilson 4825fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER 4835fe93786SJason Gunthorpe bool 4845fe93786SJason Gunthorpe depends on INTERVAL_TREE 4855fe93786SJason Gunthorpe 48602c02bf1SMatthew Wilcoxconfig XARRAY_MULTI 48757578c2eSMatthew Wilcox bool 48802c02bf1SMatthew Wilcox help 48902c02bf1SMatthew Wilcox Support entries which occupy multiple consecutive indices in the 49002c02bf1SMatthew Wilcox XArray. 49157578c2eSMatthew Wilcox 4923cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY 4933cb98950SDavid Howells bool 4943cb98950SDavid Howells help 4953cb98950SDavid Howells Generic associative array. Can be searched and iterated over whilst 4963cb98950SDavid Howells it is being modified. It is also reasonably quick to search and 4973cb98950SDavid Howells modify. The algorithms are non-recursive, and the trees are highly 4983cb98950SDavid Howells capacious. 4993cb98950SDavid Howells 5003cb98950SDavid Howells See: 5013cb98950SDavid Howells 5025fb94e9cSMauro Carvalho Chehab Documentation/core-api/assoc_array.rst 5033cb98950SDavid Howells 5043cb98950SDavid Howells for more information. 5053cb98950SDavid Howells 5068c8d2d96SKent Overstreetconfig CLOSURES 5078c8d2d96SKent Overstreet bool 5088c8d2d96SKent Overstreet 5095ea81769SAl Viroconfig HAS_IOMEM 5106341e62bSChristoph Jaeger bool 5115ea81769SAl Viro depends on !NO_IOMEM 5125ea81769SAl Viro default y 5135ea81769SAl Viro 514fcbfe812SNiklas Schnelleconfig HAS_IOPORT 515fcbfe812SNiklas Schnelle bool 516fcbfe812SNiklas Schnelle 517ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP 5186341e62bSChristoph Jaeger bool 519ce816fa8SUwe Kleine-König depends on HAS_IOMEM && !NO_IOPORT_MAP 520ee36c2bfSAl Viro default y 521ee36c2bfSAl Viro 522cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig" 523411f0f3eSHeiko Carstens 524e80a0af4SBart Van Asscheconfig SGL_ALLOC 525e80a0af4SBart Van Assche bool 526e80a0af4SBart Van Assche default n 527e80a0af4SBart Van Assche 528a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER 529a4ce5a48SChristoph Hellwig bool 530a4ce5a48SChristoph Hellwig 531928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 532928923c7SGeert Uytterhoeven bool 533928923c7SGeert Uytterhoeven 534aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 535aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 536aab46da0SRusty Russell help 537aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 538aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 539aab46da0SRusty Russell stack overflow. 540aab46da0SRusty Russell 5416f9c07beSYury Norovconfig FORCE_NR_CPUS 5425d272dd1SLinus Torvalds def_bool !SMP 5436f9c07beSYury Norov 544c39649c3SBen Hutchingsconfig CPU_RMAP 545c39649c3SBen Hutchings bool 546c39649c3SBen Hutchings depends on SMP 547c39649c3SBen Hutchings 54875957ba3STom Herbertconfig DQL 54975957ba3STom Herbert bool 55075957ba3STom Herbert 551b0125085SGeorge Spelvinconfig GLOB 552b0125085SGeorge Spelvin bool 553b0125085SGeorge Spelvin# This actually supports modular compilation, but the module overhead 554b0125085SGeorge Spelvin# is ridiculous for the amount of code involved. Until an out-of-tree 555b0125085SGeorge Spelvin# driver asks for it, we'll just link it directly it into the kernel 556b0125085SGeorge Spelvin# when required. Since we're ignoring out-of-tree users, there's also 557b0125085SGeorge Spelvin# no need bother prompting for a manual decision: 558b0125085SGeorge Spelvin# prompt "glob_match() function" 559b0125085SGeorge Spelvin help 560b0125085SGeorge Spelvin This option provides a glob_match function for performing 561b0125085SGeorge Spelvin simple text pattern matching. It originated in the ATA code 562b0125085SGeorge Spelvin to blacklist particular drive models, but other device drivers 563b0125085SGeorge Spelvin may need similar functionality. 564b0125085SGeorge Spelvin 565b0125085SGeorge Spelvin All drivers in the Linux kernel tree that require this function 566b0125085SGeorge Spelvin should automatically select this option. Say N unless you 567b0125085SGeorge Spelvin are compiling an out-of tree driver which tells you that it 568b0125085SGeorge Spelvin depends on this. 569b0125085SGeorge Spelvin 5705f9be824SGeorge Spelvinconfig GLOB_SELFTEST 571ba95b045SGeert Uytterhoeven tristate "glob self-test on init" 5725f9be824SGeorge Spelvin depends on GLOB 5735f9be824SGeorge Spelvin help 5745f9be824SGeorge Spelvin This option enables a simple self-test of the glob_match 5755f9be824SGeorge Spelvin function on startup. It is primarily useful for people 5765f9be824SGeorge Spelvin working on the code to ensure they haven't introduced any 5775f9be824SGeorge Spelvin regressions. 5785f9be824SGeorge Spelvin 5795f9be824SGeorge Spelvin It only adds a little bit of code and slows kernel boot (or 5805f9be824SGeorge Spelvin module load) by a small amount, so you're welcome to play with 5815f9be824SGeorge Spelvin it, but you probably don't need it. 5825f9be824SGeorge Spelvin 583e9cc8bddSGeert Uytterhoeven# 584e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 585e9cc8bddSGeert Uytterhoeven# 586e9cc8bddSGeert Uytterhoevenconfig NLATTR 587e9cc8bddSGeert Uytterhoeven bool 588e9cc8bddSGeert Uytterhoeven 58909d4e0edSPaul Mackerras# 59009d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 59109d4e0edSPaul Mackerras# 59209d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 59309d4e0edSPaul Mackerras bool 59409d4e0edSPaul Mackerras 595b411b363SPhilipp Reisnerconfig LRU_CACHE 596b411b363SPhilipp Reisner tristate 597b411b363SPhilipp Reisner 598c6df4b17SDavid Millerconfig CLZ_TAB 599c6df4b17SDavid Miller bool 600c6df4b17SDavid Miller 601511cbce2SChristoph Hellwigconfig IRQ_POLL 602511cbce2SChristoph Hellwig bool "IRQ polling library" 603511cbce2SChristoph Hellwig help 604511cbce2SChristoph Hellwig Helper library to poll interrupt mitigation using polling. 605511cbce2SChristoph Hellwig 606d9c46b18SDmitry Kasatkinconfig MPILIB 6072e5f094bSDmitry Kasatkin tristate 608c6df4b17SDavid Miller select CLZ_TAB 609d9c46b18SDmitry Kasatkin help 610d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 611d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 612d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 613d9c46b18SDmitry Kasatkin 6145e8898e9SDmitry Kasatkinconfig SIGNATURE 6152e5f094bSDmitry Kasatkin tristate 6160d1f64f6SDmitry Kasatkin depends on KEYS 6170d1f64f6SDmitry Kasatkin select CRYPTO 618be440ec7SDmitry Kasatkin select CRYPTO_SHA1 619051dbb91SDmitry Kasatkin select MPILIB 620051dbb91SDmitry Kasatkin help 621051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 622051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 623051dbb91SDmitry Kasatkin 6244f75da36STal Gilboaconfig DIMLIB 6250d5044b4SFlorian Fainelli tristate 626*b65e697aSHeng Qi depends on NET 6274f75da36STal Gilboa help 6284f75da36STal Gilboa Dynamic Interrupt Moderation library. 629991ad2b2SRandy Dunlap Implements an algorithm for dynamically changing CQ moderation values 6304f75da36STal Gilboa according to run time performance. 6314f75da36STal Gilboa 632ab253839SDavid Daney# 633ab253839SDavid Daney# libfdt files, only selected if needed. 634ab253839SDavid Daney# 635ab253839SDavid Daneyconfig LIBFDT 636ab253839SDavid Daney bool 637ab253839SDavid Daney 638a77ad6eaSDavid Howellsconfig OID_REGISTRY 639a77ad6eaSDavid Howells tristate 640a77ad6eaSDavid Howells help 641a77ad6eaSDavid Howells Enable fast lookup object identifier registry. 642a77ad6eaSDavid Howells 6430635eb8aSMatthew Garrettconfig UCS2_STRING 6440635eb8aSMatthew Garrett tristate 6450635eb8aSMatthew Garrett 64600b26474SVincenzo Frascino# 64700b26474SVincenzo Frascino# generic vdso 64800b26474SVincenzo Frascino# 64900b26474SVincenzo Frascinosource "lib/vdso/Kconfig" 65000b26474SVincenzo Frascino 651ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig" 652ee89bd6bSGeert Uytterhoeven 653f8bcbe62SRobert Jarzmikconfig SG_SPLIT 654f8bcbe62SRobert Jarzmik def_bool n 655f8bcbe62SRobert Jarzmik help 6567f7e92f7SGeert Uytterhoeven Provides a helper to split scatterlists into chunks, each chunk being 6577f7e92f7SGeert Uytterhoeven a scatterlist. This should be selected by a driver or an API which 6587f7e92f7SGeert Uytterhoeven whishes to split a scatterlist amongst multiple DMA channels. 659f8bcbe62SRobert Jarzmik 6609b1d6c89SMing Linconfig SG_POOL 6619b1d6c89SMing Lin def_bool n 6629b1d6c89SMing Lin help 6639b1d6c89SMing Lin Provides a helper to allocate chained scatterlists. This should be 6649b1d6c89SMing Lin selected by a driver or an API which whishes to allocate chained 6659b1d6c89SMing Lin scatterlist. 6669b1d6c89SMing Lin 667308c09f1SLaura Abbott# 668308c09f1SLaura Abbott# sg chaining option 669308c09f1SLaura Abbott# 670308c09f1SLaura Abbott 6717c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN 672308c09f1SLaura Abbott def_bool n 673308c09f1SLaura Abbott 67461031952SRoss Zwislerconfig ARCH_HAS_PMEM_API 67561031952SRoss Zwisler bool 67661031952SRoss Zwisler 67733dd7075SDan Williamsconfig MEMREGION 67833dd7075SDan Williams bool 67933dd7075SDan Williams 6801156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION 6811156b441SDavidlohr Bueso bool 6821156b441SDavidlohr Bueso 6839ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN 6849ffc1d19SDan Williams bool 6859ffc1d19SDan Williams 686bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures 687bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY 688bd79f947SChristoph Hellwig bool 689bd79f947SChristoph Hellwig 6900aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE 6910aed55afSDan Williams bool 6920aed55afSDan Williams 693ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a 694ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and 695ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report 696ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source 697ec6347bbSDan Williams# buffer. 698ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC 699522239b4SDan Williams bool 700522239b4SDan Williams 701214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up 702214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK 703214d8ca6SThomas Gleixner bool 704214d8ca6SThomas Gleixner 705cd11016eSAlexander Potapenkoconfig STACKDEPOT 706cd11016eSAlexander Potapenko bool 707cd11016eSAlexander Potapenko select STACKTRACE 708fc60e0caSAndrey Konovalov help 709fc60e0caSAndrey Konovalov Stack depot: stack trace storage that avoids duplication 710cd11016eSAlexander Potapenko 7112dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT 7122dba5eb1SVlastimil Babka bool 7132dba5eb1SVlastimil Babka select STACKDEPOT 714fc60e0caSAndrey Konovalov help 715fc60e0caSAndrey Konovalov Always initialize stack depot during early boot 716fc60e0caSAndrey Konovalov 717fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES 718fc60e0caSAndrey Konovalov int "Maximum number of frames in trace saved in stack depot" 719fc60e0caSAndrey Konovalov range 1 256 720fc60e0caSAndrey Konovalov default 64 721fc60e0caSAndrey Konovalov depends on STACKDEPOT 7222dba5eb1SVlastimil Babka 7234e66934eSEric Dumazetconfig REF_TRACKER 7244e66934eSEric Dumazet bool 7254e66934eSEric Dumazet depends on STACKTRACE_SUPPORT 7264e66934eSEric Dumazet select STACKDEPOT 7274e66934eSEric Dumazet 72888459642SOmar Sandovalconfig SBITMAP 72988459642SOmar Sandoval bool 73088459642SOmar Sandoval 73144091d29SJiri Pirkoconfig PARMAN 7329d25af69SGeert Uytterhoeven tristate "parman" if COMPILE_TEST 73344091d29SJiri Pirko 7343dfdecc6SRandy Dunlapconfig OBJAGG 7353dfdecc6SRandy Dunlap tristate "objagg" if COMPILE_TEST 7363dfdecc6SRandy Dunlap 737de9e82c3SNeilBrownconfig LWQ_TEST 738de9e82c3SNeilBrown bool "Boot-time test for lwq queuing" 739de9e82c3SNeilBrown help 740de9e82c3SNeilBrown Run boot-time test of light-weight queuing. 741de9e82c3SNeilBrown 7422de4ff7bSThomas Grafendmenu 743b35cd988SPalmer Dabbelt 74480b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP 74580b0ca98SChristoph Hellwig bool 74680b0ca98SChristoph Hellwig 747e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3 748b35cd988SPalmer Dabbelt bool 749b35cd988SPalmer Dabbelt 750e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3 751b35cd988SPalmer Dabbelt bool 752b35cd988SPalmer Dabbelt 753e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3 754b35cd988SPalmer Dabbelt bool 755b35cd988SPalmer Dabbelt 756e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3 757b35cd988SPalmer Dabbelt bool 758b35cd988SPalmer Dabbelt 759e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2 760b35cd988SPalmer Dabbelt bool 761b35cd988SPalmer Dabbelt 762e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2 763b35cd988SPalmer Dabbelt bool 764b8265621SJacob Keller 765527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED 766527701edSPalmer Dabbelt bool 767527701edSPalmer Dabbelt 768b8265621SJacob Kellerconfig PLDMFW 769b8265621SJacob Keller bool 770b8265621SJacob Keller default n 771b0706762SJames Bottomley 772b0706762SJames Bottomleyconfig ASN1_ENCODER 773b0706762SJames Bottomley tristate 774cd705ea8SMichael Walle 775cd705ea8SMichael Walleconfig POLYNOMIAL 776cd705ea8SMichael Walle tristate 777a103f466SDave Jiang 778a103f466SDave Jiangconfig FIRMWARE_TABLE 779a103f466SDave Jiang bool 780