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 help 499e522c0dSAndrew Morton This option enables the use of hardware bit-reversal instructions on 509e522c0dSAndrew Morton architectures which support such operations. 51556d2f05SYalin Wang 52e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER 532922585bSDavid S. Miller bool 542922585bSDavid S. Miller 55e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER 56a08c5356SLinus Torvalds bool 57a08c5356SLinus Torvalds 58e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER 59e6226997SArnd Bergmann def_bool !ARCH_HAS_STRNCPY_FROM_USER 60e6226997SArnd Bergmann 61e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER 62e6226997SArnd Bergmann def_bool !ARCH_HAS_STRNLEN_USER 63e6226997SArnd Bergmann 644cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS 654cd5773aSAndy Shevchenko bool 664cd5773aSAndy Shevchenko 672c64e9cbSAndy Shevchenkosource "lib/math/Kconfig" 682c64e9cbSAndy Shevchenko 69b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP 70b923650bSMichael S. Tsirkin bool 71b923650bSMichael S. Tsirkin 7266eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP 7366eab4dfSMichael S. Tsirkin bool 7466eab4dfSMichael S. Tsirkin 754673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP 764673ca8eSMichael S. Tsirkin bool 7766eab4dfSMichael S. Tsirkin select GENERIC_PCI_IOMAP 784673ca8eSMichael S. Tsirkin 794ccf4beaSWolfram Sangconfig STMP_DEVICE 804ccf4beaSWolfram Sang bool 814ccf4beaSWolfram Sang 82bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF 83bc08b449SLinus Torvalds bool 84bc08b449SLinus Torvalds 8572d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER 8672d93104SLinus Torvalds bool 8772d93104SLinus Torvalds 882ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS 892ce0d7f9SMark Brown bool 902ce0d7f9SMark Brown 91031e3601SZhichang Yuanconfig INDIRECT_PIO 92031e3601SZhichang Yuan bool "Access I/O in non-MMIO mode" 93031e3601SZhichang Yuan depends on ARM64 94031e3601SZhichang Yuan help 95031e3601SZhichang Yuan On some platforms where no separate I/O space exists, there are I/O 96031e3601SZhichang Yuan hosts which can not be accessed in MMIO mode. Using the logical PIO 97031e3601SZhichang Yuan mechanism, the host-local I/O resource can be mapped into system 98031e3601SZhichang Yuan logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the 99031e3601SZhichang Yuan system can access the I/O devices with the mapped-logic PIO through 100031e3601SZhichang Yuan I/O accessors. 101031e3601SZhichang Yuan 102031e3601SZhichang Yuan This way has relatively little I/O performance cost. Please make 103031e3601SZhichang Yuan sure your devices really need this configure item enabled. 104031e3601SZhichang Yuan 105031e3601SZhichang Yuan When in doubt, say N. 106031e3601SZhichang Yuan 107ca2e3342SJohannes Bergconfig INDIRECT_IOMEM 108ca2e3342SJohannes Berg bool 109ca2e3342SJohannes Berg help 110ca2e3342SJohannes Berg This is selected by other options/architectures to provide the 111ca2e3342SJohannes Berg emulated iomem accessors. 112ca2e3342SJohannes Berg 113ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK 114ca2e3342SJohannes Berg bool 115ca2e3342SJohannes Berg depends on INDIRECT_IOMEM 116ca2e3342SJohannes Berg help 117ca2e3342SJohannes Berg If INDIRECT_IOMEM is selected, this enables falling back to plain 118ca2e3342SJohannes Berg mmio accesses when the IO memory address is not a registered 119ca2e3342SJohannes Berg emulated region. 120ca2e3342SJohannes Berg 121e56e1898SJustin M. Forbessource "lib/crypto/Kconfig" 122e56e1898SJustin M. Forbes 1231da177e4SLinus Torvaldsconfig CRC_CCITT 1241da177e4SLinus Torvalds tristate "CRC-CCITT functions" 1251da177e4SLinus Torvalds help 1261da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 1271da177e4SLinus Torvalds modules require CRC-CCITT functions, but a module built outside 1281da177e4SLinus Torvalds the kernel tree does. Such modules that use library CRC-CCITT 1291da177e4SLinus Torvalds functions require M here. 1301da177e4SLinus Torvalds 1317657ec1fSEvgeniy Polyakovconfig CRC16 1327657ec1fSEvgeniy Polyakov tristate "CRC16 functions" 1337657ec1fSEvgeniy Polyakov help 1347657ec1fSEvgeniy Polyakov This option is provided for the case where no in-kernel-tree 1357657ec1fSEvgeniy Polyakov modules require CRC16 functions, but a module built outside 1367657ec1fSEvgeniy Polyakov the kernel tree does. Such modules that use library CRC16 1377657ec1fSEvgeniy Polyakov functions require M here. 1387657ec1fSEvgeniy Polyakov 139f11f594eSMartin K. Petersenconfig CRC_T10DIF 140f11f594eSMartin K. Petersen tristate "CRC calculation for the T10 Data Integrity Field" 14168411521SHerbert Xu select CRYPTO 14268411521SHerbert Xu select CRYPTO_CRCT10DIF 143f11f594eSMartin K. Petersen help 144f11f594eSMartin K. Petersen This option is only needed if a module that's not in the 145f11f594eSMartin K. Petersen kernel tree needs to calculate CRC checks for use with the 146f11f594eSMartin K. Petersen SCSI data integrity subsystem. 147f11f594eSMartin K. Petersen 148f3813f4bSKeith Buschconfig CRC64_ROCKSOFT 149f3813f4bSKeith Busch tristate "CRC calculation for the Rocksoft model CRC64" 150f3813f4bSKeith Busch select CRC64 151f3813f4bSKeith Busch select CRYPTO 152f3813f4bSKeith Busch select CRYPTO_CRC64_ROCKSOFT 153f3813f4bSKeith Busch help 154f3813f4bSKeith Busch This option provides a CRC64 API to a registered crypto driver. 155f3813f4bSKeith Busch This is used with the block layer's data integrity subsystem. 156f3813f4bSKeith Busch 1573e7cbae7SIvo van Doornconfig CRC_ITU_T 1583e7cbae7SIvo van Doorn tristate "CRC ITU-T V.41 functions" 1593e7cbae7SIvo van Doorn help 1603e7cbae7SIvo van Doorn This option is provided for the case where no in-kernel-tree 1613e7cbae7SIvo van Doorn modules require CRC ITU-T V.41 functions, but a module built outside 1623e7cbae7SIvo van Doorn the kernel tree does. Such modules that use library CRC ITU-T V.41 1633e7cbae7SIvo van Doorn functions require M here. 1643e7cbae7SIvo van Doorn 1651da177e4SLinus Torvaldsconfig CRC32 16646c5801eSDarrick J. Wong tristate "CRC32/CRC32c functions" 1671da177e4SLinus Torvalds default y 168906d66dfSAkinobu Mita select BITREVERSE 1691da177e4SLinus Torvalds help 1701da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 17146c5801eSDarrick J. Wong modules require CRC32/CRC32c functions, but a module built outside 17246c5801eSDarrick J. Wong the kernel tree does. Such modules that use library CRC32/CRC32c 17346c5801eSDarrick J. Wong functions require M here. 1741da177e4SLinus Torvalds 1753863ef31SBob Pearsonconfig CRC32_SELFTEST 1765fb7f874SGeert Uytterhoeven tristate "CRC32 perform self test on init" 1773863ef31SBob Pearson depends on CRC32 1783863ef31SBob Pearson help 1793863ef31SBob Pearson This option enables the CRC32 library functions to perform a 1803863ef31SBob Pearson self test on initialization. The self test computes crc32_le 1813863ef31SBob Pearson and crc32_be over byte strings with random alignment and length 1823863ef31SBob Pearson and computes the total elapsed time and number of bytes processed. 1833863ef31SBob Pearson 1845cde7656SDarrick J. Wongchoice 1855cde7656SDarrick J. Wong prompt "CRC32 implementation" 1865cde7656SDarrick J. Wong depends on CRC32 1875cde7656SDarrick J. Wong default CRC32_SLICEBY8 18882edb4baSDarrick J. Wong help 18982edb4baSDarrick J. Wong This option allows a kernel builder to override the default choice 19082edb4baSDarrick J. Wong of CRC32 algorithm. Choose the default ("slice by 8") unless you 19182edb4baSDarrick J. Wong know that you need one of the others. 1925cde7656SDarrick J. Wong 1935cde7656SDarrick J. Wongconfig CRC32_SLICEBY8 1945cde7656SDarrick J. Wong bool "Slice by 8 bytes" 1955cde7656SDarrick J. Wong help 1965cde7656SDarrick J. Wong Calculate checksum 8 bytes at a time with a clever slicing algorithm. 1975cde7656SDarrick J. Wong This is the fastest algorithm, but comes with a 8KiB lookup table. 1985cde7656SDarrick J. Wong Most modern processors have enough cache to hold this table without 1995cde7656SDarrick J. Wong thrashing the cache. 2005cde7656SDarrick J. Wong 2015cde7656SDarrick J. Wong This is the default implementation choice. Choose this one unless 2025cde7656SDarrick J. Wong you have a good reason not to. 2035cde7656SDarrick J. Wong 2045cde7656SDarrick J. Wongconfig CRC32_SLICEBY4 2055cde7656SDarrick J. Wong bool "Slice by 4 bytes" 2065cde7656SDarrick J. Wong help 2075cde7656SDarrick J. Wong Calculate checksum 4 bytes at a time with a clever slicing algorithm. 2085cde7656SDarrick J. Wong This is a bit slower than slice by 8, but has a smaller 4KiB lookup 2095cde7656SDarrick J. Wong table. 2105cde7656SDarrick J. Wong 2115cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 2125cde7656SDarrick J. Wong 2135cde7656SDarrick J. Wongconfig CRC32_SARWATE 2145cde7656SDarrick J. Wong bool "Sarwate's Algorithm (one byte at a time)" 2155cde7656SDarrick J. Wong help 2165cde7656SDarrick J. Wong Calculate checksum a byte at a time using Sarwate's algorithm. This 2175cde7656SDarrick J. Wong is not particularly fast, but has a small 256 byte lookup table. 2185cde7656SDarrick J. Wong 2195cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 2205cde7656SDarrick J. Wong 2215cde7656SDarrick J. Wongconfig CRC32_BIT 2225cde7656SDarrick J. Wong bool "Classic Algorithm (one bit at a time)" 2235cde7656SDarrick J. Wong help 2245cde7656SDarrick J. Wong Calculate checksum one bit at a time. This is VERY slow, but has 2255cde7656SDarrick J. Wong no lookup table. This is provided as a debugging option. 2265cde7656SDarrick J. Wong 2275cde7656SDarrick J. Wong Only choose this option if you are debugging crc32. 2285cde7656SDarrick J. Wong 2295cde7656SDarrick J. Wongendchoice 2305cde7656SDarrick J. Wong 231feba04fdSColy Liconfig CRC64 232feba04fdSColy Li tristate "CRC64 functions" 233feba04fdSColy Li help 234feba04fdSColy Li This option is provided for the case where no in-kernel-tree 235feba04fdSColy Li modules require CRC64 functions, but a module built outside 236feba04fdSColy Li the kernel tree does. Such modules that use library CRC64 237feba04fdSColy Li functions require M here. 238feba04fdSColy Li 2390cbaa448SJeremy Kerrconfig CRC4 2400cbaa448SJeremy Kerr tristate "CRC4 functions" 2410cbaa448SJeremy Kerr help 2420cbaa448SJeremy Kerr This option is provided for the case where no in-kernel-tree 2430cbaa448SJeremy Kerr modules require CRC4 functions, but a module built outside 2440cbaa448SJeremy Kerr the kernel tree does. Such modules that use library CRC4 2450cbaa448SJeremy Kerr functions require M here. 2460cbaa448SJeremy Kerr 247ad241528SJan Nikitenkoconfig CRC7 248ad241528SJan Nikitenko tristate "CRC7 functions" 249ad241528SJan Nikitenko help 250ad241528SJan Nikitenko This option is provided for the case where no in-kernel-tree 251ad241528SJan Nikitenko modules require CRC7 functions, but a module built outside 252ad241528SJan Nikitenko the kernel tree does. Such modules that use library CRC7 253ad241528SJan Nikitenko functions require M here. 254ad241528SJan Nikitenko 2551da177e4SLinus Torvaldsconfig LIBCRC32C 2561da177e4SLinus Torvalds tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" 25793027354SHerbert Xu select CRYPTO 25869c35efcSHerbert Xu select CRYPTO_CRC32C 2591da177e4SLinus Torvalds help 2601da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 2611da177e4SLinus Torvalds modules require CRC32c functions, but a module built outside the 2621da177e4SLinus Torvalds kernel tree does. Such modules that use library CRC32c functions 2631da177e4SLinus Torvalds require M here. See Castagnoli93. 2641da177e4SLinus Torvalds Module will be libcrc32c. 2651da177e4SLinus Torvalds 2667150962dSArend van Sprielconfig CRC8 2677150962dSArend van Spriel tristate "CRC8 function" 2687150962dSArend van Spriel help 2697150962dSArend van Spriel This option provides CRC8 function. Drivers may select this 2707150962dSArend van Spriel when they need to do cyclic redundancy check according CRC8 2717150962dSArend van Spriel algorithm. Module will be called crc8. 2727150962dSArend van Spriel 2735d240522SNick Terrellconfig XXHASH 2745d240522SNick Terrell tristate 2755d240522SNick Terrell 276e65e1fc2SAl Viroconfig AUDIT_GENERIC 277e65e1fc2SAl Viro bool 278e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 279e65e1fc2SAl Viro default y 280e65e1fc2SAl Viro 2814b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC 2824b588411SAKASHI Takahiro bool 2834b588411SAKASHI Takahiro default n 2844b588411SAKASHI Takahiro 2854b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC 2864b588411SAKASHI Takahiro bool 2874b588411SAKASHI Takahiro depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT 2884b588411SAKASHI Takahiro default y 2894b588411SAKASHI Takahiro 290a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST 291a6a9c0f1SDaniel Borkmann bool "PRNG perform self test on init" 292a6a9c0f1SDaniel Borkmann help 293a6a9c0f1SDaniel Borkmann This option enables the 32 bit PRNG library functions to perform a 294a6a9c0f1SDaniel Borkmann self test on initialization. 295a6a9c0f1SDaniel Borkmann 2961da177e4SLinus Torvalds# 2971da177e4SLinus Torvalds# compression support is select'ed if needed 2981da177e4SLinus Torvalds# 2992da572c9SDan Streetmanconfig 842_COMPRESS 3005b571677SArnd Bergmann select CRC32 3012da572c9SDan Streetman tristate 3022da572c9SDan Streetman 3032da572c9SDan Streetmanconfig 842_DECOMPRESS 3045b571677SArnd Bergmann select CRC32 3052da572c9SDan Streetman tristate 3062da572c9SDan Streetman 3071da177e4SLinus Torvaldsconfig ZLIB_INFLATE 3081da177e4SLinus Torvalds tristate 3091da177e4SLinus Torvalds 3101da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 3111da177e4SLinus Torvalds tristate 3121fd4e5c3SAndrew Morton select BITREVERSE 3131da177e4SLinus Torvalds 314aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC 315aa5b395bSMikhail Zaslonko def_bool y 316aa5b395bSMikhail Zaslonko depends on S390 317aa5b395bSMikhail Zaslonko prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib" 318aa5b395bSMikhail Zaslonko help 319aa5b395bSMikhail Zaslonko Enable s390x hardware support for zlib in the kernel. 320aa5b395bSMikhail Zaslonko 32164c70b1cSRichard Purdieconfig LZO_COMPRESS 32264c70b1cSRichard Purdie tristate 32364c70b1cSRichard Purdie 32464c70b1cSRichard Purdieconfig LZO_DECOMPRESS 32564c70b1cSRichard Purdie tristate 32664c70b1cSRichard Purdie 327c72ac7a1SChanho Minconfig LZ4_COMPRESS 328c72ac7a1SChanho Min tristate 329c72ac7a1SChanho Min 330c72ac7a1SChanho Minconfig LZ4HC_COMPRESS 331c72ac7a1SChanho Min tristate 332c72ac7a1SChanho Min 333e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS 334e76e1fdfSKyungsik Lee tristate 335e76e1fdfSKyungsik Lee 33673f3d1b4SNick Terrellconfig ZSTD_COMPRESS 33773f3d1b4SNick Terrell select XXHASH 33873f3d1b4SNick Terrell tristate 33973f3d1b4SNick Terrell 34073f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS 34173f3d1b4SNick Terrell select XXHASH 34273f3d1b4SNick Terrell tristate 34373f3d1b4SNick Terrell 34424fa0402SLasse Collinsource "lib/xz/Kconfig" 34524fa0402SLasse Collin 3461da177e4SLinus Torvalds# 347c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 348c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 349c8531ab3SH. Peter Anvin# 350c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 3517856a16eSH. Peter Anvin select ZLIB_INFLATE 352c8531ab3SH. Peter Anvin tristate 353c8531ab3SH. Peter Anvin 354c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 355c8531ab3SH. Peter Anvin tristate 356c8531ab3SH. Peter Anvin 357c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 358c8531ab3SH. Peter Anvin tristate 359c8531ab3SH. Peter Anvin 3603ebe1243SLasse Collinconfig DECOMPRESS_XZ 3613ebe1243SLasse Collin select XZ_DEC 3623ebe1243SLasse Collin tristate 3633ebe1243SLasse Collin 364cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 365cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 366cacb246fSAlbin Tonnerre tristate 367cacb246fSAlbin Tonnerre 368e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4 369e76e1fdfSKyungsik Lee select LZ4_DECOMPRESS 370e76e1fdfSKyungsik Lee tristate 371e76e1fdfSKyungsik Lee 3724963bb2bSNick Terrellconfig DECOMPRESS_ZSTD 3734963bb2bSNick Terrell select ZSTD_DECOMPRESS 3744963bb2bSNick Terrell tristate 3754963bb2bSNick Terrell 376c8531ab3SH. Peter Anvin# 377f14f75b8SJes Sorensen# Generic allocator support is selected if needed 378f14f75b8SJes Sorensen# 379f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 3806341e62bSChristoph Jaeger bool 381f14f75b8SJes Sorensen 382f14f75b8SJes Sorensen# 3831da177e4SLinus Torvalds# reed solomon support is select'ed if needed 3841da177e4SLinus Torvalds# 3851da177e4SLinus Torvaldsconfig REED_SOLOMON 3861da177e4SLinus Torvalds tristate 3871da177e4SLinus Torvalds 3881da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 3896341e62bSChristoph Jaeger bool 3901da177e4SLinus Torvalds 3911da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 3926341e62bSChristoph Jaeger bool 3931da177e4SLinus Torvalds 3941da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 3956341e62bSChristoph Jaeger bool 3961da177e4SLinus Torvalds 3971da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 3986341e62bSChristoph Jaeger bool 3991da177e4SLinus Torvalds 400f7704347SDavid S. Miller# 401437aa565SIvan Djelic# BCH support is selected if needed 402437aa565SIvan Djelic# 403437aa565SIvan Djelicconfig BCH 404437aa565SIvan Djelic tristate 405437aa565SIvan Djelic 406437aa565SIvan Djelicconfig BCH_CONST_PARAMS 4076341e62bSChristoph Jaeger bool 408437aa565SIvan Djelic help 409437aa565SIvan Djelic Drivers may select this option to force specific constant 410437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 411437aa565SIvan Djelic (error correction capability). Those specific values must 412437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 413437aa565SIvan Djelic and BCH_CONST_T. 414437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 415437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 416437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 417437aa565SIvan Djelic When this option is selected, the BCH library supports 418437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 419437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 420437aa565SIvan Djelic parameters. 421437aa565SIvan Djelic 422437aa565SIvan Djelicconfig BCH_CONST_M 423437aa565SIvan Djelic int 424437aa565SIvan Djelic range 5 15 425437aa565SIvan Djelic help 426437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 427437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 428437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 429437aa565SIvan Djelic Drivers should declare a default value for this symbol if 430437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 431437aa565SIvan Djelic 432437aa565SIvan Djelicconfig BCH_CONST_T 433437aa565SIvan Djelic int 434437aa565SIvan Djelic help 435437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 436437aa565SIvan Djelic Drivers should declare a default value for this symbol if 437437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 438437aa565SIvan Djelic 439437aa565SIvan Djelic# 440f7704347SDavid S. Miller# Textsearch support is select'ed if needed 441f7704347SDavid S. Miller# 4422de4ff7bSThomas Grafconfig TEXTSEARCH 4436341e62bSChristoph Jaeger bool 4441da177e4SLinus Torvalds 445df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 446f7704347SDavid S. Miller tristate 447df3fb93aSThomas Graf 4488082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 44929cb9f9cSDavid S. Miller tristate 4508082e4edSPablo Neira Ayuso 4516408f79cSThomas Grafconfig TEXTSEARCH_FSM 452f7704347SDavid S. Miller tristate 4536408f79cSThomas Graf 4545db53f3eSJoern Engelconfig BTREE 4556341e62bSChristoph Jaeger bool 4565db53f3eSJoern Engel 457a88cc108SChris Wilsonconfig INTERVAL_TREE 4586341e62bSChristoph Jaeger bool 459a88cc108SChris Wilson help 460a88cc108SChris Wilson Simple, embeddable, interval-tree. Can find the start of an 461a88cc108SChris Wilson overlapping range in log(n) time and then iterate over all 462a88cc108SChris Wilson overlapping nodes. The algorithm is implemented as an 463a88cc108SChris Wilson augmented rbtree. 464a88cc108SChris Wilson 465a88cc108SChris Wilson See: 466a88cc108SChris Wilson 46714bbe3e3SMatthew Wilcox (Oracle) Documentation/core-api/rbtree.rst 468a88cc108SChris Wilson 469a88cc108SChris Wilson for more information. 470a88cc108SChris Wilson 47102c02bf1SMatthew Wilcoxconfig XARRAY_MULTI 47257578c2eSMatthew Wilcox bool 47302c02bf1SMatthew Wilcox help 47402c02bf1SMatthew Wilcox Support entries which occupy multiple consecutive indices in the 47502c02bf1SMatthew Wilcox XArray. 47657578c2eSMatthew Wilcox 4773cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY 4783cb98950SDavid Howells bool 4793cb98950SDavid Howells help 4803cb98950SDavid Howells Generic associative array. Can be searched and iterated over whilst 4813cb98950SDavid Howells it is being modified. It is also reasonably quick to search and 4823cb98950SDavid Howells modify. The algorithms are non-recursive, and the trees are highly 4833cb98950SDavid Howells capacious. 4843cb98950SDavid Howells 4853cb98950SDavid Howells See: 4863cb98950SDavid Howells 4875fb94e9cSMauro Carvalho Chehab Documentation/core-api/assoc_array.rst 4883cb98950SDavid Howells 4893cb98950SDavid Howells for more information. 4903cb98950SDavid Howells 4915ea81769SAl Viroconfig HAS_IOMEM 4926341e62bSChristoph Jaeger bool 4935ea81769SAl Viro depends on !NO_IOMEM 4945ea81769SAl Viro default y 4955ea81769SAl Viro 496ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP 4976341e62bSChristoph Jaeger bool 498ce816fa8SUwe Kleine-König depends on HAS_IOMEM && !NO_IOPORT_MAP 499ee36c2bfSAl Viro default y 500ee36c2bfSAl Viro 501cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig" 502411f0f3eSHeiko Carstens 503e80a0af4SBart Van Asscheconfig SGL_ALLOC 504e80a0af4SBart Van Assche bool 505e80a0af4SBart Van Assche default n 506e80a0af4SBart Van Assche 507a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER 508a4ce5a48SChristoph Hellwig bool 509a4ce5a48SChristoph Hellwig 510928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 511928923c7SGeert Uytterhoeven bool 512928923c7SGeert Uytterhoeven 513aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 514aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 515aab46da0SRusty Russell help 516aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 517aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 518aab46da0SRusty Russell stack overflow. 519aab46da0SRusty Russell 520c39649c3SBen Hutchingsconfig CPU_RMAP 521c39649c3SBen Hutchings bool 522c39649c3SBen Hutchings depends on SMP 523c39649c3SBen Hutchings 52475957ba3STom Herbertconfig DQL 52575957ba3STom Herbert bool 52675957ba3STom Herbert 527b0125085SGeorge Spelvinconfig GLOB 528b0125085SGeorge Spelvin bool 529b0125085SGeorge Spelvin# This actually supports modular compilation, but the module overhead 530b0125085SGeorge Spelvin# is ridiculous for the amount of code involved. Until an out-of-tree 531b0125085SGeorge Spelvin# driver asks for it, we'll just link it directly it into the kernel 532b0125085SGeorge Spelvin# when required. Since we're ignoring out-of-tree users, there's also 533b0125085SGeorge Spelvin# no need bother prompting for a manual decision: 534b0125085SGeorge Spelvin# prompt "glob_match() function" 535b0125085SGeorge Spelvin help 536b0125085SGeorge Spelvin This option provides a glob_match function for performing 537b0125085SGeorge Spelvin simple text pattern matching. It originated in the ATA code 538b0125085SGeorge Spelvin to blacklist particular drive models, but other device drivers 539b0125085SGeorge Spelvin may need similar functionality. 540b0125085SGeorge Spelvin 541b0125085SGeorge Spelvin All drivers in the Linux kernel tree that require this function 542b0125085SGeorge Spelvin should automatically select this option. Say N unless you 543b0125085SGeorge Spelvin are compiling an out-of tree driver which tells you that it 544b0125085SGeorge Spelvin depends on this. 545b0125085SGeorge Spelvin 5465f9be824SGeorge Spelvinconfig GLOB_SELFTEST 547ba95b045SGeert Uytterhoeven tristate "glob self-test on init" 5485f9be824SGeorge Spelvin depends on GLOB 5495f9be824SGeorge Spelvin help 5505f9be824SGeorge Spelvin This option enables a simple self-test of the glob_match 5515f9be824SGeorge Spelvin function on startup. It is primarily useful for people 5525f9be824SGeorge Spelvin working on the code to ensure they haven't introduced any 5535f9be824SGeorge Spelvin regressions. 5545f9be824SGeorge Spelvin 5555f9be824SGeorge Spelvin It only adds a little bit of code and slows kernel boot (or 5565f9be824SGeorge Spelvin module load) by a small amount, so you're welcome to play with 5575f9be824SGeorge Spelvin it, but you probably don't need it. 5585f9be824SGeorge Spelvin 559e9cc8bddSGeert Uytterhoeven# 560e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 561e9cc8bddSGeert Uytterhoeven# 562e9cc8bddSGeert Uytterhoevenconfig NLATTR 563e9cc8bddSGeert Uytterhoeven bool 564e9cc8bddSGeert Uytterhoeven 56509d4e0edSPaul Mackerras# 56609d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 56709d4e0edSPaul Mackerras# 56809d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 56909d4e0edSPaul Mackerras bool 57009d4e0edSPaul Mackerras 571b411b363SPhilipp Reisnerconfig LRU_CACHE 572b411b363SPhilipp Reisner tristate 573b411b363SPhilipp Reisner 574c6df4b17SDavid Millerconfig CLZ_TAB 575c6df4b17SDavid Miller bool 576c6df4b17SDavid Miller 577511cbce2SChristoph Hellwigconfig IRQ_POLL 578511cbce2SChristoph Hellwig bool "IRQ polling library" 579511cbce2SChristoph Hellwig help 580511cbce2SChristoph Hellwig Helper library to poll interrupt mitigation using polling. 581511cbce2SChristoph Hellwig 582d9c46b18SDmitry Kasatkinconfig MPILIB 5832e5f094bSDmitry Kasatkin tristate 584c6df4b17SDavid Miller select CLZ_TAB 585d9c46b18SDmitry Kasatkin help 586d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 587d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 588d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 589d9c46b18SDmitry Kasatkin 5905e8898e9SDmitry Kasatkinconfig SIGNATURE 5912e5f094bSDmitry Kasatkin tristate 5920d1f64f6SDmitry Kasatkin depends on KEYS 5930d1f64f6SDmitry Kasatkin select CRYPTO 594be440ec7SDmitry Kasatkin select CRYPTO_SHA1 595051dbb91SDmitry Kasatkin select MPILIB 596051dbb91SDmitry Kasatkin help 597051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 598051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 599051dbb91SDmitry Kasatkin 6004f75da36STal Gilboaconfig DIMLIB 601424adc32SUwe Kleine-König bool 6024f75da36STal Gilboa help 6034f75da36STal Gilboa Dynamic Interrupt Moderation library. 604991ad2b2SRandy Dunlap Implements an algorithm for dynamically changing CQ moderation values 6054f75da36STal Gilboa according to run time performance. 6064f75da36STal Gilboa 607ab253839SDavid Daney# 608ab253839SDavid Daney# libfdt files, only selected if needed. 609ab253839SDavid Daney# 610ab253839SDavid Daneyconfig LIBFDT 611ab253839SDavid Daney bool 612ab253839SDavid Daney 613a77ad6eaSDavid Howellsconfig OID_REGISTRY 614a77ad6eaSDavid Howells tristate 615a77ad6eaSDavid Howells help 616a77ad6eaSDavid Howells Enable fast lookup object identifier registry. 617a77ad6eaSDavid Howells 6180635eb8aSMatthew Garrettconfig UCS2_STRING 6190635eb8aSMatthew Garrett tristate 6200635eb8aSMatthew Garrett 62100b26474SVincenzo Frascino# 62200b26474SVincenzo Frascino# generic vdso 62300b26474SVincenzo Frascino# 62400b26474SVincenzo Frascinosource "lib/vdso/Kconfig" 62500b26474SVincenzo Frascino 626ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig" 627ee89bd6bSGeert Uytterhoeven 628f8bcbe62SRobert Jarzmikconfig SG_SPLIT 629f8bcbe62SRobert Jarzmik def_bool n 630f8bcbe62SRobert Jarzmik help 6317f7e92f7SGeert Uytterhoeven Provides a helper to split scatterlists into chunks, each chunk being 6327f7e92f7SGeert Uytterhoeven a scatterlist. This should be selected by a driver or an API which 6337f7e92f7SGeert Uytterhoeven whishes to split a scatterlist amongst multiple DMA channels. 634f8bcbe62SRobert Jarzmik 6359b1d6c89SMing Linconfig SG_POOL 6369b1d6c89SMing Lin def_bool n 6379b1d6c89SMing Lin help 6389b1d6c89SMing Lin Provides a helper to allocate chained scatterlists. This should be 6399b1d6c89SMing Lin selected by a driver or an API which whishes to allocate chained 6409b1d6c89SMing Lin scatterlist. 6419b1d6c89SMing Lin 642308c09f1SLaura Abbott# 643308c09f1SLaura Abbott# sg chaining option 644308c09f1SLaura Abbott# 645308c09f1SLaura Abbott 6467c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN 647308c09f1SLaura Abbott def_bool n 648308c09f1SLaura Abbott 64961031952SRoss Zwislerconfig ARCH_HAS_PMEM_API 65061031952SRoss Zwisler bool 65161031952SRoss Zwisler 65233dd7075SDan Williamsconfig MEMREGION 65333dd7075SDan Williams bool 65433dd7075SDan Williams 6559ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN 6569ffc1d19SDan Williams bool 6579ffc1d19SDan Williams 658bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures 659bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY 660bd79f947SChristoph Hellwig bool 661bd79f947SChristoph Hellwig 6620aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE 6630aed55afSDan Williams bool 6640aed55afSDan Williams 665ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a 666ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and 667ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report 668ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source 669ec6347bbSDan Williams# buffer. 670ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC 671522239b4SDan Williams bool 672522239b4SDan Williams 673214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up 674214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK 675214d8ca6SThomas Gleixner bool 676214d8ca6SThomas Gleixner 677cd11016eSAlexander Potapenkoconfig STACKDEPOT 678cd11016eSAlexander Potapenko bool 679cd11016eSAlexander Potapenko select STACKTRACE 680cd11016eSAlexander Potapenko 6812dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT 6822dba5eb1SVlastimil Babka bool 6832dba5eb1SVlastimil Babka select STACKDEPOT 6842dba5eb1SVlastimil Babka 685d2620936SYogesh Lalconfig STACK_HASH_ORDER 686d2620936SYogesh Lal int "stack depot hash size (12 => 4KB, 20 => 1024KB)" 687d2620936SYogesh Lal range 12 20 688d2620936SYogesh Lal default 20 689d2620936SYogesh Lal depends on STACKDEPOT 690d2620936SYogesh Lal help 691d2620936SYogesh Lal Select the hash size as a power of 2 for the stackdepot hash table. 692d2620936SYogesh Lal Choose a lower value to reduce the memory impact. 693d2620936SYogesh Lal 6944e66934eSEric Dumazetconfig REF_TRACKER 6954e66934eSEric Dumazet bool 6964e66934eSEric Dumazet depends on STACKTRACE_SUPPORT 6974e66934eSEric Dumazet select STACKDEPOT 6984e66934eSEric Dumazet 69988459642SOmar Sandovalconfig SBITMAP 70088459642SOmar Sandoval bool 70188459642SOmar Sandoval 70244091d29SJiri Pirkoconfig PARMAN 7039d25af69SGeert Uytterhoeven tristate "parman" if COMPILE_TEST 70444091d29SJiri Pirko 7053dfdecc6SRandy Dunlapconfig OBJAGG 7063dfdecc6SRandy Dunlap tristate "objagg" if COMPILE_TEST 7073dfdecc6SRandy Dunlap 7082de4ff7bSThomas Grafendmenu 709b35cd988SPalmer Dabbelt 71080b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP 71180b0ca98SChristoph Hellwig bool 71280b0ca98SChristoph Hellwig 713e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3 714b35cd988SPalmer Dabbelt bool 715b35cd988SPalmer Dabbelt 716e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3 717b35cd988SPalmer Dabbelt bool 718b35cd988SPalmer Dabbelt 719e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3 720b35cd988SPalmer Dabbelt bool 721b35cd988SPalmer Dabbelt 722e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3 723b35cd988SPalmer Dabbelt bool 724b35cd988SPalmer Dabbelt 725e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2 726b35cd988SPalmer Dabbelt bool 727b35cd988SPalmer Dabbelt 728e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2 729b35cd988SPalmer Dabbelt bool 730b8265621SJacob Keller 731527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED 732527701edSPalmer Dabbelt bool 733527701edSPalmer Dabbelt 734b8265621SJacob Kellerconfig PLDMFW 735b8265621SJacob Keller bool 736b8265621SJacob Keller default n 737b0706762SJames Bottomley 738b0706762SJames Bottomleyconfig ASN1_ENCODER 739b0706762SJames Bottomley tristate 740*cd705ea8SMichael Walle 741*cd705ea8SMichael Walleconfig POLYNOMIAL 742*cd705ea8SMichael Walle tristate 743