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 43e9502ea6SJacob Kellerconfig PACKING_KUNIT_TEST 44e9502ea6SJacob Keller tristate "KUnit tests for packing library" if !KUNIT_ALL_TESTS 45e9502ea6SJacob Keller depends on PACKING && KUNIT 46e9502ea6SJacob Keller default KUNIT_ALL_TESTS 47e9502ea6SJacob Keller help 48e9502ea6SJacob Keller This builds KUnit tests for the packing library. 49e9502ea6SJacob Keller 50e9502ea6SJacob Keller For more information on KUnit and unit tests in general, 51e9502ea6SJacob Keller please refer to the KUnit documentation in Documentation/dev-tools/kunit/. 52e9502ea6SJacob Keller 53e9502ea6SJacob Keller When in doubt, say N. 54e9502ea6SJacob Keller 55a5cfc1ecSAkinobu Mitaconfig BITREVERSE 56a5cfc1ecSAkinobu Mita tristate 57a5cfc1ecSAkinobu Mita 58556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE 59841c0090SChristoph Jaeger bool 60556d2f05SYalin Wang default n 61556d2f05SYalin Wang help 629e522c0dSAndrew Morton This option enables the use of hardware bit-reversal instructions on 639e522c0dSAndrew Morton architectures which support such operations. 64556d2f05SYalin Wang 65e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER 662922585bSDavid S. Miller bool 672922585bSDavid S. Miller 68e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER 69a08c5356SLinus Torvalds bool 70a08c5356SLinus Torvalds 71e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER 72e6226997SArnd Bergmann def_bool !ARCH_HAS_STRNCPY_FROM_USER 73e6226997SArnd Bergmann 74e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER 75e6226997SArnd Bergmann def_bool !ARCH_HAS_STRNLEN_USER 76e6226997SArnd Bergmann 774cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS 784cd5773aSAndy Shevchenko bool 794cd5773aSAndy Shevchenko 802c64e9cbSAndy Shevchenkosource "lib/math/Kconfig" 812c64e9cbSAndy Shevchenko 82b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP 83b923650bSMichael S. Tsirkin bool 84b923650bSMichael S. Tsirkin 854673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP 864673ca8eSMichael S. Tsirkin bool 8766eab4dfSMichael S. Tsirkin select GENERIC_PCI_IOMAP 884673ca8eSMichael S. Tsirkin 894ccf4beaSWolfram Sangconfig STMP_DEVICE 904ccf4beaSWolfram Sang bool 914ccf4beaSWolfram Sang 92bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF 93bc08b449SLinus Torvalds bool 94bc08b449SLinus Torvalds 9572d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER 9672d93104SLinus Torvalds bool 9772d93104SLinus Torvalds 982ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS 992ce0d7f9SMark Brown bool 1002ce0d7f9SMark Brown 101031e3601SZhichang Yuanconfig INDIRECT_PIO 102031e3601SZhichang Yuan bool "Access I/O in non-MMIO mode" 103031e3601SZhichang Yuan depends on ARM64 104fcbfe812SNiklas Schnelle depends on HAS_IOPORT 105031e3601SZhichang Yuan help 106031e3601SZhichang Yuan On some platforms where no separate I/O space exists, there are I/O 107031e3601SZhichang Yuan hosts which can not be accessed in MMIO mode. Using the logical PIO 108031e3601SZhichang Yuan mechanism, the host-local I/O resource can be mapped into system 109031e3601SZhichang Yuan logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the 110031e3601SZhichang Yuan system can access the I/O devices with the mapped-logic PIO through 111031e3601SZhichang Yuan I/O accessors. 112031e3601SZhichang Yuan 113031e3601SZhichang Yuan This way has relatively little I/O performance cost. Please make 114031e3601SZhichang Yuan sure your devices really need this configure item enabled. 115031e3601SZhichang Yuan 116031e3601SZhichang Yuan When in doubt, say N. 117031e3601SZhichang Yuan 118ca2e3342SJohannes Bergconfig INDIRECT_IOMEM 119ca2e3342SJohannes Berg bool 120ca2e3342SJohannes Berg help 121ca2e3342SJohannes Berg This is selected by other options/architectures to provide the 122ca2e3342SJohannes Berg emulated iomem accessors. 123ca2e3342SJohannes Berg 124ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK 125ca2e3342SJohannes Berg bool 126ca2e3342SJohannes Berg depends on INDIRECT_IOMEM 127ca2e3342SJohannes Berg help 128ca2e3342SJohannes Berg If INDIRECT_IOMEM is selected, this enables falling back to plain 129ca2e3342SJohannes Berg mmio accesses when the IO memory address is not a registered 130ca2e3342SJohannes Berg emulated region. 131ca2e3342SJohannes Berg 132d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS 133d593d64fSPrasad Sodagudi bool "Register read/write tracing" 134d593d64fSPrasad Sodagudi depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS 135d593d64fSPrasad Sodagudi help 136d593d64fSPrasad Sodagudi Create tracepoints for MMIO read/write operations. These trace events 137d593d64fSPrasad Sodagudi can be used for logging all MMIO read/write operations. 138d593d64fSPrasad Sodagudi 139e56e1898SJustin M. Forbessource "lib/crypto/Kconfig" 140e56e1898SJustin M. Forbes 1411da177e4SLinus Torvaldsconfig CRC_CCITT 1421da177e4SLinus Torvalds tristate "CRC-CCITT functions" 1431da177e4SLinus Torvalds help 1441da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 1451da177e4SLinus Torvalds modules require CRC-CCITT functions, but a module built outside 1461da177e4SLinus Torvalds the kernel tree does. Such modules that use library CRC-CCITT 1471da177e4SLinus Torvalds functions require M here. 1481da177e4SLinus Torvalds 1497657ec1fSEvgeniy Polyakovconfig CRC16 1507657ec1fSEvgeniy Polyakov tristate "CRC16 functions" 1517657ec1fSEvgeniy Polyakov help 1527657ec1fSEvgeniy Polyakov This option is provided for the case where no in-kernel-tree 1537657ec1fSEvgeniy Polyakov modules require CRC16 functions, but a module built outside 1547657ec1fSEvgeniy Polyakov the kernel tree does. Such modules that use library CRC16 1557657ec1fSEvgeniy Polyakov functions require M here. 1567657ec1fSEvgeniy Polyakov 157f11f594eSMartin K. Petersenconfig CRC_T10DIF 158f11f594eSMartin K. Petersen tristate "CRC calculation for the T10 Data Integrity Field" 15968411521SHerbert Xu select CRYPTO 16068411521SHerbert Xu select CRYPTO_CRCT10DIF 161f11f594eSMartin K. Petersen help 162f11f594eSMartin K. Petersen This option is only needed if a module that's not in the 163f11f594eSMartin K. Petersen kernel tree needs to calculate CRC checks for use with the 164f11f594eSMartin K. Petersen SCSI data integrity subsystem. 165f11f594eSMartin K. Petersen 166f3813f4bSKeith Buschconfig CRC64_ROCKSOFT 167f3813f4bSKeith Busch tristate "CRC calculation for the Rocksoft model CRC64" 168f3813f4bSKeith Busch select CRC64 169f3813f4bSKeith Busch select CRYPTO 170f3813f4bSKeith Busch select CRYPTO_CRC64_ROCKSOFT 171f3813f4bSKeith Busch help 172f3813f4bSKeith Busch This option provides a CRC64 API to a registered crypto driver. 173f3813f4bSKeith Busch This is used with the block layer's data integrity subsystem. 174f3813f4bSKeith Busch 1753e7cbae7SIvo van Doornconfig CRC_ITU_T 1763e7cbae7SIvo van Doorn tristate "CRC ITU-T V.41 functions" 1773e7cbae7SIvo van Doorn help 1783e7cbae7SIvo van Doorn This option is provided for the case where no in-kernel-tree 1793e7cbae7SIvo van Doorn modules require CRC ITU-T V.41 functions, but a module built outside 1803e7cbae7SIvo van Doorn the kernel tree does. Such modules that use library CRC ITU-T V.41 1813e7cbae7SIvo van Doorn functions require M here. 1823e7cbae7SIvo van Doorn 1831da177e4SLinus Torvaldsconfig CRC32 18446c5801eSDarrick J. Wong tristate "CRC32/CRC32c functions" 1851da177e4SLinus Torvalds default y 186906d66dfSAkinobu Mita select BITREVERSE 1871da177e4SLinus Torvalds help 1881da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 18946c5801eSDarrick J. Wong modules require CRC32/CRC32c functions, but a module built outside 19046c5801eSDarrick J. Wong the kernel tree does. Such modules that use library CRC32/CRC32c 19146c5801eSDarrick J. Wong functions require M here. 1921da177e4SLinus Torvalds 1933863ef31SBob Pearsonconfig CRC32_SELFTEST 1945fb7f874SGeert Uytterhoeven tristate "CRC32 perform self test on init" 1953863ef31SBob Pearson depends on CRC32 1963863ef31SBob Pearson help 1973863ef31SBob Pearson This option enables the CRC32 library functions to perform a 1983863ef31SBob Pearson self test on initialization. The self test computes crc32_le 1993863ef31SBob Pearson and crc32_be over byte strings with random alignment and length 2003863ef31SBob Pearson and computes the total elapsed time and number of bytes processed. 2013863ef31SBob Pearson 2025cde7656SDarrick J. Wongchoice 2035cde7656SDarrick J. Wong prompt "CRC32 implementation" 2045cde7656SDarrick J. Wong depends on CRC32 2055cde7656SDarrick J. Wong default CRC32_SLICEBY8 20682edb4baSDarrick J. Wong help 20782edb4baSDarrick J. Wong This option allows a kernel builder to override the default choice 20882edb4baSDarrick J. Wong of CRC32 algorithm. Choose the default ("slice by 8") unless you 20982edb4baSDarrick J. Wong know that you need one of the others. 2105cde7656SDarrick J. Wong 2115cde7656SDarrick J. Wongconfig CRC32_SLICEBY8 2125cde7656SDarrick J. Wong bool "Slice by 8 bytes" 2135cde7656SDarrick J. Wong help 2145cde7656SDarrick J. Wong Calculate checksum 8 bytes at a time with a clever slicing algorithm. 2155cde7656SDarrick J. Wong This is the fastest algorithm, but comes with a 8KiB lookup table. 2165cde7656SDarrick J. Wong Most modern processors have enough cache to hold this table without 2175cde7656SDarrick J. Wong thrashing the cache. 2185cde7656SDarrick J. Wong 2195cde7656SDarrick J. Wong This is the default implementation choice. Choose this one unless 2205cde7656SDarrick J. Wong you have a good reason not to. 2215cde7656SDarrick J. Wong 2225cde7656SDarrick J. Wongconfig CRC32_SLICEBY4 2235cde7656SDarrick J. Wong bool "Slice by 4 bytes" 2245cde7656SDarrick J. Wong help 2255cde7656SDarrick J. Wong Calculate checksum 4 bytes at a time with a clever slicing algorithm. 2265cde7656SDarrick J. Wong This is a bit slower than slice by 8, but has a smaller 4KiB lookup 2275cde7656SDarrick J. Wong table. 2285cde7656SDarrick J. Wong 2295cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 2305cde7656SDarrick J. Wong 2315cde7656SDarrick J. Wongconfig CRC32_SARWATE 2325cde7656SDarrick J. Wong bool "Sarwate's Algorithm (one byte at a time)" 2335cde7656SDarrick J. Wong help 2345cde7656SDarrick J. Wong Calculate checksum a byte at a time using Sarwate's algorithm. This 2355cde7656SDarrick J. Wong is not particularly fast, but has a small 256 byte lookup table. 2365cde7656SDarrick J. Wong 2375cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 2385cde7656SDarrick J. Wong 2395cde7656SDarrick J. Wongconfig CRC32_BIT 2405cde7656SDarrick J. Wong bool "Classic Algorithm (one bit at a time)" 2415cde7656SDarrick J. Wong help 2425cde7656SDarrick J. Wong Calculate checksum one bit at a time. This is VERY slow, but has 2435cde7656SDarrick J. Wong no lookup table. This is provided as a debugging option. 2445cde7656SDarrick J. Wong 2455cde7656SDarrick J. Wong Only choose this option if you are debugging crc32. 2465cde7656SDarrick J. Wong 2475cde7656SDarrick J. Wongendchoice 2485cde7656SDarrick J. Wong 249feba04fdSColy Liconfig CRC64 250feba04fdSColy Li tristate "CRC64 functions" 251feba04fdSColy Li help 252feba04fdSColy Li This option is provided for the case where no in-kernel-tree 253feba04fdSColy Li modules require CRC64 functions, but a module built outside 254feba04fdSColy Li the kernel tree does. Such modules that use library CRC64 255feba04fdSColy Li functions require M here. 256feba04fdSColy Li 2570cbaa448SJeremy Kerrconfig CRC4 2580cbaa448SJeremy Kerr tristate "CRC4 functions" 2590cbaa448SJeremy Kerr help 2600cbaa448SJeremy Kerr This option is provided for the case where no in-kernel-tree 2610cbaa448SJeremy Kerr modules require CRC4 functions, but a module built outside 2620cbaa448SJeremy Kerr the kernel tree does. Such modules that use library CRC4 2630cbaa448SJeremy Kerr functions require M here. 2640cbaa448SJeremy Kerr 265ad241528SJan Nikitenkoconfig CRC7 266ad241528SJan Nikitenko tristate "CRC7 functions" 267ad241528SJan Nikitenko help 268ad241528SJan Nikitenko This option is provided for the case where no in-kernel-tree 269ad241528SJan Nikitenko modules require CRC7 functions, but a module built outside 270ad241528SJan Nikitenko the kernel tree does. Such modules that use library CRC7 271ad241528SJan Nikitenko functions require M here. 272ad241528SJan Nikitenko 2731da177e4SLinus Torvaldsconfig LIBCRC32C 2741da177e4SLinus Torvalds tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" 27593027354SHerbert Xu select CRYPTO 27669c35efcSHerbert Xu select CRYPTO_CRC32C 2771da177e4SLinus Torvalds help 2781da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 2791da177e4SLinus Torvalds modules require CRC32c functions, but a module built outside the 2801da177e4SLinus Torvalds kernel tree does. Such modules that use library CRC32c functions 2811da177e4SLinus Torvalds require M here. See Castagnoli93. 2821da177e4SLinus Torvalds Module will be libcrc32c. 2831da177e4SLinus Torvalds 2847150962dSArend van Sprielconfig CRC8 2857150962dSArend van Spriel tristate "CRC8 function" 2867150962dSArend van Spriel help 2877150962dSArend van Spriel This option provides CRC8 function. Drivers may select this 2887150962dSArend van Spriel when they need to do cyclic redundancy check according CRC8 2897150962dSArend van Spriel algorithm. Module will be called crc8. 2907150962dSArend van Spriel 2915d240522SNick Terrellconfig XXHASH 2925d240522SNick Terrell tristate 2935d240522SNick Terrell 294e65e1fc2SAl Viroconfig AUDIT_GENERIC 295e65e1fc2SAl Viro bool 296e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 297e65e1fc2SAl Viro default y 298e65e1fc2SAl Viro 2994b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC 3004b588411SAKASHI Takahiro bool 3014b588411SAKASHI Takahiro default n 3024b588411SAKASHI Takahiro 3034b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC 3044b588411SAKASHI Takahiro bool 3054b588411SAKASHI Takahiro depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT 3064b588411SAKASHI Takahiro default y 3074b588411SAKASHI Takahiro 308a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST 309a6a9c0f1SDaniel Borkmann bool "PRNG perform self test on init" 310a6a9c0f1SDaniel Borkmann help 311a6a9c0f1SDaniel Borkmann This option enables the 32 bit PRNG library functions to perform a 312a6a9c0f1SDaniel Borkmann self test on initialization. 313a6a9c0f1SDaniel Borkmann 3141da177e4SLinus Torvalds# 3151da177e4SLinus Torvalds# compression support is select'ed if needed 3161da177e4SLinus Torvalds# 3172da572c9SDan Streetmanconfig 842_COMPRESS 3185b571677SArnd Bergmann select CRC32 3192da572c9SDan Streetman tristate 3202da572c9SDan Streetman 3212da572c9SDan Streetmanconfig 842_DECOMPRESS 3225b571677SArnd Bergmann select CRC32 3232da572c9SDan Streetman tristate 3242da572c9SDan Streetman 3251da177e4SLinus Torvaldsconfig ZLIB_INFLATE 3261da177e4SLinus Torvalds tristate 3271da177e4SLinus Torvalds 3281da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 3291da177e4SLinus Torvalds tristate 3301fd4e5c3SAndrew Morton select BITREVERSE 3311da177e4SLinus Torvalds 332aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC 333aa5b395bSMikhail Zaslonko def_bool y 334aa5b395bSMikhail Zaslonko depends on S390 335aa5b395bSMikhail Zaslonko prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib" 336aa5b395bSMikhail Zaslonko help 337aa5b395bSMikhail Zaslonko Enable s390x hardware support for zlib in the kernel. 338aa5b395bSMikhail Zaslonko 33964c70b1cSRichard Purdieconfig LZO_COMPRESS 34064c70b1cSRichard Purdie tristate 34164c70b1cSRichard Purdie 34264c70b1cSRichard Purdieconfig LZO_DECOMPRESS 34364c70b1cSRichard Purdie tristate 34464c70b1cSRichard Purdie 345c72ac7a1SChanho Minconfig LZ4_COMPRESS 346c72ac7a1SChanho Min tristate 347c72ac7a1SChanho Min 348c72ac7a1SChanho Minconfig LZ4HC_COMPRESS 349c72ac7a1SChanho Min tristate 350c72ac7a1SChanho Min 351e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS 352e76e1fdfSKyungsik Lee tristate 353e76e1fdfSKyungsik Lee 354637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON 35573f3d1b4SNick Terrell select XXHASH 35673f3d1b4SNick Terrell tristate 35773f3d1b4SNick Terrell 358637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS 359637a642fSAlexey Kardashevskiy select ZSTD_COMMON 360637a642fSAlexey Kardashevskiy tristate 361637a642fSAlexey Kardashevskiy 36273f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS 363637a642fSAlexey Kardashevskiy select ZSTD_COMMON 36473f3d1b4SNick Terrell tristate 36573f3d1b4SNick Terrell 36624fa0402SLasse Collinsource "lib/xz/Kconfig" 36724fa0402SLasse Collin 3681da177e4SLinus Torvalds# 369c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 370c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 371c8531ab3SH. Peter Anvin# 372c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 3737856a16eSH. Peter Anvin select ZLIB_INFLATE 374c8531ab3SH. Peter Anvin tristate 375c8531ab3SH. Peter Anvin 376c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 377c8531ab3SH. Peter Anvin tristate 378c8531ab3SH. Peter Anvin 379c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 380c8531ab3SH. Peter Anvin tristate 381c8531ab3SH. Peter Anvin 3823ebe1243SLasse Collinconfig DECOMPRESS_XZ 3833ebe1243SLasse Collin select XZ_DEC 3843ebe1243SLasse Collin tristate 3853ebe1243SLasse Collin 386cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 387cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 388cacb246fSAlbin Tonnerre tristate 389cacb246fSAlbin Tonnerre 390e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4 391e76e1fdfSKyungsik Lee select LZ4_DECOMPRESS 392e76e1fdfSKyungsik Lee tristate 393e76e1fdfSKyungsik Lee 3944963bb2bSNick Terrellconfig DECOMPRESS_ZSTD 3954963bb2bSNick Terrell select ZSTD_DECOMPRESS 3964963bb2bSNick Terrell tristate 3974963bb2bSNick Terrell 398c8531ab3SH. Peter Anvin# 399f14f75b8SJes Sorensen# Generic allocator support is selected if needed 400f14f75b8SJes Sorensen# 401f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 4026341e62bSChristoph Jaeger bool 403f14f75b8SJes Sorensen 404f14f75b8SJes Sorensen# 4051da177e4SLinus Torvalds# reed solomon support is select'ed if needed 4061da177e4SLinus Torvalds# 4071da177e4SLinus Torvaldsconfig REED_SOLOMON 4081da177e4SLinus Torvalds tristate 4091da177e4SLinus Torvalds 4101da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 4116341e62bSChristoph Jaeger bool 4121da177e4SLinus Torvalds 4131da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 4146341e62bSChristoph Jaeger bool 4151da177e4SLinus Torvalds 4161da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 4176341e62bSChristoph Jaeger bool 4181da177e4SLinus Torvalds 4191da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 4206341e62bSChristoph Jaeger bool 4211da177e4SLinus Torvalds 422f7704347SDavid S. Miller# 423437aa565SIvan Djelic# BCH support is selected if needed 424437aa565SIvan Djelic# 425437aa565SIvan Djelicconfig BCH 426437aa565SIvan Djelic tristate 42702d7f74aSJohn Sanpe select BITREVERSE 428437aa565SIvan Djelic 429437aa565SIvan Djelicconfig BCH_CONST_PARAMS 4306341e62bSChristoph Jaeger bool 431437aa565SIvan Djelic help 432437aa565SIvan Djelic Drivers may select this option to force specific constant 433437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 434437aa565SIvan Djelic (error correction capability). Those specific values must 435437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 436437aa565SIvan Djelic and BCH_CONST_T. 437437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 438437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 439437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 440437aa565SIvan Djelic When this option is selected, the BCH library supports 441437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 442437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 443437aa565SIvan Djelic parameters. 444437aa565SIvan Djelic 445437aa565SIvan Djelicconfig BCH_CONST_M 446437aa565SIvan Djelic int 447437aa565SIvan Djelic range 5 15 448437aa565SIvan Djelic help 449437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 450437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 451437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 452437aa565SIvan Djelic Drivers should declare a default value for this symbol if 453437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 454437aa565SIvan Djelic 455437aa565SIvan Djelicconfig BCH_CONST_T 456437aa565SIvan Djelic int 457437aa565SIvan Djelic help 458437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 459437aa565SIvan Djelic Drivers should declare a default value for this symbol if 460437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 461437aa565SIvan Djelic 462437aa565SIvan Djelic# 463f7704347SDavid S. Miller# Textsearch support is select'ed if needed 464f7704347SDavid S. Miller# 4652de4ff7bSThomas Grafconfig TEXTSEARCH 4666341e62bSChristoph Jaeger bool 4671da177e4SLinus Torvalds 468df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 469f7704347SDavid S. Miller tristate 470df3fb93aSThomas Graf 4718082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 47229cb9f9cSDavid S. Miller tristate 4738082e4edSPablo Neira Ayuso 4746408f79cSThomas Grafconfig TEXTSEARCH_FSM 475f7704347SDavid S. Miller tristate 4766408f79cSThomas Graf 4775db53f3eSJoern Engelconfig BTREE 4786341e62bSChristoph Jaeger bool 4795db53f3eSJoern Engel 480a88cc108SChris Wilsonconfig INTERVAL_TREE 4816341e62bSChristoph Jaeger bool 482a88cc108SChris Wilson help 483a88cc108SChris Wilson Simple, embeddable, interval-tree. Can find the start of an 484a88cc108SChris Wilson overlapping range in log(n) time and then iterate over all 485a88cc108SChris Wilson overlapping nodes. The algorithm is implemented as an 486a88cc108SChris Wilson augmented rbtree. 487a88cc108SChris Wilson 488a88cc108SChris Wilson See: 489a88cc108SChris Wilson 49014bbe3e3SMatthew Wilcox (Oracle) Documentation/core-api/rbtree.rst 491a88cc108SChris Wilson 492a88cc108SChris Wilson for more information. 493a88cc108SChris Wilson 4945fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER 4955fe93786SJason Gunthorpe bool 4965fe93786SJason Gunthorpe depends on INTERVAL_TREE 4975fe93786SJason Gunthorpe 49802c02bf1SMatthew Wilcoxconfig XARRAY_MULTI 49957578c2eSMatthew Wilcox bool 50002c02bf1SMatthew Wilcox help 50102c02bf1SMatthew Wilcox Support entries which occupy multiple consecutive indices in the 50202c02bf1SMatthew Wilcox XArray. 50357578c2eSMatthew Wilcox 5043cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY 5053cb98950SDavid Howells bool 5063cb98950SDavid Howells help 5073cb98950SDavid Howells Generic associative array. Can be searched and iterated over whilst 5083cb98950SDavid Howells it is being modified. It is also reasonably quick to search and 5093cb98950SDavid Howells modify. The algorithms are non-recursive, and the trees are highly 5103cb98950SDavid Howells capacious. 5113cb98950SDavid Howells 5123cb98950SDavid Howells See: 5133cb98950SDavid Howells 5145fb94e9cSMauro Carvalho Chehab Documentation/core-api/assoc_array.rst 5153cb98950SDavid Howells 5163cb98950SDavid Howells for more information. 5173cb98950SDavid Howells 5188c8d2d96SKent Overstreetconfig CLOSURES 5198c8d2d96SKent Overstreet bool 5208c8d2d96SKent Overstreet 5215ea81769SAl Viroconfig HAS_IOMEM 5226341e62bSChristoph Jaeger bool 5235ea81769SAl Viro depends on !NO_IOMEM 5245ea81769SAl Viro default y 5255ea81769SAl Viro 526fcbfe812SNiklas Schnelleconfig HAS_IOPORT 527fcbfe812SNiklas Schnelle bool 528fcbfe812SNiklas Schnelle 529ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP 5306341e62bSChristoph Jaeger bool 531ce816fa8SUwe Kleine-König depends on HAS_IOMEM && !NO_IOPORT_MAP 532ee36c2bfSAl Viro default y 533ee36c2bfSAl Viro 534cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig" 535411f0f3eSHeiko Carstens 536e80a0af4SBart Van Asscheconfig SGL_ALLOC 537e80a0af4SBart Van Assche bool 538e80a0af4SBart Van Assche default n 539e80a0af4SBart Van Assche 540a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER 541a4ce5a48SChristoph Hellwig bool 542a4ce5a48SChristoph Hellwig 543928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 544928923c7SGeert Uytterhoeven bool 545928923c7SGeert Uytterhoeven 546aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 547aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 548aab46da0SRusty Russell help 549aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 550aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 551aab46da0SRusty Russell stack overflow. 552aab46da0SRusty Russell 5536f9c07beSYury Norovconfig FORCE_NR_CPUS 5545d272dd1SLinus Torvalds def_bool !SMP 5556f9c07beSYury Norov 556c39649c3SBen Hutchingsconfig CPU_RMAP 557c39649c3SBen Hutchings bool 558c39649c3SBen Hutchings depends on SMP 559c39649c3SBen Hutchings 56075957ba3STom Herbertconfig DQL 56175957ba3STom Herbert bool 56275957ba3STom Herbert 563b0125085SGeorge Spelvinconfig GLOB 564b0125085SGeorge Spelvin bool 565b0125085SGeorge Spelvin# This actually supports modular compilation, but the module overhead 566b0125085SGeorge Spelvin# is ridiculous for the amount of code involved. Until an out-of-tree 567b0125085SGeorge Spelvin# driver asks for it, we'll just link it directly it into the kernel 568b0125085SGeorge Spelvin# when required. Since we're ignoring out-of-tree users, there's also 569b0125085SGeorge Spelvin# no need bother prompting for a manual decision: 570b0125085SGeorge Spelvin# prompt "glob_match() function" 571b0125085SGeorge Spelvin help 572b0125085SGeorge Spelvin This option provides a glob_match function for performing 573b0125085SGeorge Spelvin simple text pattern matching. It originated in the ATA code 574b0125085SGeorge Spelvin to blacklist particular drive models, but other device drivers 575b0125085SGeorge Spelvin may need similar functionality. 576b0125085SGeorge Spelvin 577b0125085SGeorge Spelvin All drivers in the Linux kernel tree that require this function 578b0125085SGeorge Spelvin should automatically select this option. Say N unless you 579b0125085SGeorge Spelvin are compiling an out-of tree driver which tells you that it 580b0125085SGeorge Spelvin depends on this. 581b0125085SGeorge Spelvin 5825f9be824SGeorge Spelvinconfig GLOB_SELFTEST 583ba95b045SGeert Uytterhoeven tristate "glob self-test on init" 5845f9be824SGeorge Spelvin depends on GLOB 5855f9be824SGeorge Spelvin help 5865f9be824SGeorge Spelvin This option enables a simple self-test of the glob_match 5875f9be824SGeorge Spelvin function on startup. It is primarily useful for people 5885f9be824SGeorge Spelvin working on the code to ensure they haven't introduced any 5895f9be824SGeorge Spelvin regressions. 5905f9be824SGeorge Spelvin 5915f9be824SGeorge Spelvin It only adds a little bit of code and slows kernel boot (or 5925f9be824SGeorge Spelvin module load) by a small amount, so you're welcome to play with 5935f9be824SGeorge Spelvin it, but you probably don't need it. 5945f9be824SGeorge Spelvin 595e9cc8bddSGeert Uytterhoeven# 596e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 597e9cc8bddSGeert Uytterhoeven# 598e9cc8bddSGeert Uytterhoevenconfig NLATTR 599e9cc8bddSGeert Uytterhoeven bool 600e9cc8bddSGeert Uytterhoeven 60109d4e0edSPaul Mackerras# 60209d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 60309d4e0edSPaul Mackerras# 60409d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 60509d4e0edSPaul Mackerras bool 60609d4e0edSPaul Mackerras 607b411b363SPhilipp Reisnerconfig LRU_CACHE 608b411b363SPhilipp Reisner tristate 609b411b363SPhilipp Reisner 610c6df4b17SDavid Millerconfig CLZ_TAB 611c6df4b17SDavid Miller bool 612c6df4b17SDavid Miller 613511cbce2SChristoph Hellwigconfig IRQ_POLL 614511cbce2SChristoph Hellwig bool "IRQ polling library" 615511cbce2SChristoph Hellwig help 616511cbce2SChristoph Hellwig Helper library to poll interrupt mitigation using polling. 617511cbce2SChristoph Hellwig 618d9c46b18SDmitry Kasatkinconfig MPILIB 6192e5f094bSDmitry Kasatkin tristate 620c6df4b17SDavid Miller select CLZ_TAB 621d9c46b18SDmitry Kasatkin help 622d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 623d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 624d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 625d9c46b18SDmitry Kasatkin 6265e8898e9SDmitry Kasatkinconfig SIGNATURE 6272e5f094bSDmitry Kasatkin tristate 6280d1f64f6SDmitry Kasatkin depends on KEYS 6290d1f64f6SDmitry Kasatkin select CRYPTO 630be440ec7SDmitry Kasatkin select CRYPTO_SHA1 631051dbb91SDmitry Kasatkin select MPILIB 632051dbb91SDmitry Kasatkin help 633051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 634051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 635051dbb91SDmitry Kasatkin 6364f75da36STal Gilboaconfig DIMLIB 6370d5044b4SFlorian Fainelli tristate 638b65e697aSHeng Qi depends on NET 6394f75da36STal Gilboa help 6404f75da36STal Gilboa Dynamic Interrupt Moderation library. 641991ad2b2SRandy Dunlap Implements an algorithm for dynamically changing CQ moderation values 6424f75da36STal Gilboa according to run time performance. 6434f75da36STal Gilboa 644ab253839SDavid Daney# 645ab253839SDavid Daney# libfdt files, only selected if needed. 646ab253839SDavid Daney# 647ab253839SDavid Daneyconfig LIBFDT 648ab253839SDavid Daney bool 649ab253839SDavid Daney 650a77ad6eaSDavid Howellsconfig OID_REGISTRY 651a77ad6eaSDavid Howells tristate 652a77ad6eaSDavid Howells help 653a77ad6eaSDavid Howells Enable fast lookup object identifier registry. 654a77ad6eaSDavid Howells 6550635eb8aSMatthew Garrettconfig UCS2_STRING 6560635eb8aSMatthew Garrett tristate 6570635eb8aSMatthew Garrett 65800b26474SVincenzo Frascino# 65900b26474SVincenzo Frascino# generic vdso 66000b26474SVincenzo Frascino# 66100b26474SVincenzo Frascinosource "lib/vdso/Kconfig" 66200b26474SVincenzo Frascino 663ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig" 664ee89bd6bSGeert Uytterhoeven 665f8bcbe62SRobert Jarzmikconfig SG_SPLIT 666f8bcbe62SRobert Jarzmik def_bool n 667f8bcbe62SRobert Jarzmik help 6687f7e92f7SGeert Uytterhoeven Provides a helper to split scatterlists into chunks, each chunk being 6697f7e92f7SGeert Uytterhoeven a scatterlist. This should be selected by a driver or an API which 6707f7e92f7SGeert Uytterhoeven whishes to split a scatterlist amongst multiple DMA channels. 671f8bcbe62SRobert Jarzmik 6729b1d6c89SMing Linconfig SG_POOL 6739b1d6c89SMing Lin def_bool n 6749b1d6c89SMing Lin help 6759b1d6c89SMing Lin Provides a helper to allocate chained scatterlists. This should be 6769b1d6c89SMing Lin selected by a driver or an API which whishes to allocate chained 6779b1d6c89SMing Lin scatterlist. 6789b1d6c89SMing Lin 679308c09f1SLaura Abbott# 680308c09f1SLaura Abbott# sg chaining option 681308c09f1SLaura Abbott# 682308c09f1SLaura Abbott 6837c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN 684308c09f1SLaura Abbott def_bool n 685308c09f1SLaura Abbott 68661031952SRoss Zwislerconfig ARCH_HAS_PMEM_API 68761031952SRoss Zwisler bool 68861031952SRoss Zwisler 68933dd7075SDan Williamsconfig MEMREGION 69033dd7075SDan Williams bool 69133dd7075SDan Williams 6921156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION 6931156b441SDavidlohr Bueso bool 6941156b441SDavidlohr Bueso 6959ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN 6969ffc1d19SDan Williams bool 6979ffc1d19SDan Williams 698bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures 699bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY 700bd79f947SChristoph Hellwig bool 701bd79f947SChristoph Hellwig 7020aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE 7030aed55afSDan Williams bool 7040aed55afSDan Williams 705ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a 706ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and 707ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report 708ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source 709ec6347bbSDan Williams# buffer. 710ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC 711522239b4SDan Williams bool 712522239b4SDan Williams 713214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up 714214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK 715214d8ca6SThomas Gleixner bool 716214d8ca6SThomas Gleixner 717cd11016eSAlexander Potapenkoconfig STACKDEPOT 718cd11016eSAlexander Potapenko bool 719cd11016eSAlexander Potapenko select STACKTRACE 720fc60e0caSAndrey Konovalov help 721fc60e0caSAndrey Konovalov Stack depot: stack trace storage that avoids duplication 722cd11016eSAlexander Potapenko 7232dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT 7242dba5eb1SVlastimil Babka bool 7252dba5eb1SVlastimil Babka select STACKDEPOT 726fc60e0caSAndrey Konovalov help 727fc60e0caSAndrey Konovalov Always initialize stack depot during early boot 728fc60e0caSAndrey Konovalov 729fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES 730fc60e0caSAndrey Konovalov int "Maximum number of frames in trace saved in stack depot" 731fc60e0caSAndrey Konovalov range 1 256 732fc60e0caSAndrey Konovalov default 64 733fc60e0caSAndrey Konovalov depends on STACKDEPOT 7342dba5eb1SVlastimil Babka 7354e66934eSEric Dumazetconfig REF_TRACKER 7364e66934eSEric Dumazet bool 7374e66934eSEric Dumazet depends on STACKTRACE_SUPPORT 7384e66934eSEric Dumazet select STACKDEPOT 7394e66934eSEric Dumazet 74088459642SOmar Sandovalconfig SBITMAP 74188459642SOmar Sandoval bool 74288459642SOmar Sandoval 74344091d29SJiri Pirkoconfig PARMAN 7449d25af69SGeert Uytterhoeven tristate "parman" if COMPILE_TEST 74544091d29SJiri Pirko 7463dfdecc6SRandy Dunlapconfig OBJAGG 7473dfdecc6SRandy Dunlap tristate "objagg" if COMPILE_TEST 7483dfdecc6SRandy Dunlap 749de9e82c3SNeilBrownconfig LWQ_TEST 750de9e82c3SNeilBrown bool "Boot-time test for lwq queuing" 751de9e82c3SNeilBrown help 752de9e82c3SNeilBrown Run boot-time test of light-weight queuing. 753de9e82c3SNeilBrown 7542de4ff7bSThomas Grafendmenu 755b35cd988SPalmer Dabbelt 75680b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP 75780b0ca98SChristoph Hellwig bool 75880b0ca98SChristoph Hellwig 759e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3 760b35cd988SPalmer Dabbelt bool 761b35cd988SPalmer Dabbelt 762e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3 763b35cd988SPalmer Dabbelt bool 764b35cd988SPalmer Dabbelt 765e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3 766b35cd988SPalmer Dabbelt bool 767b35cd988SPalmer Dabbelt 768e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3 769b35cd988SPalmer Dabbelt bool 770b35cd988SPalmer Dabbelt 771e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2 772b35cd988SPalmer Dabbelt bool 773b35cd988SPalmer Dabbelt 774e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2 775b35cd988SPalmer Dabbelt bool 776b8265621SJacob Keller 777527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED 778527701edSPalmer Dabbelt bool 779527701edSPalmer Dabbelt 780b8265621SJacob Kellerconfig PLDMFW 781b8265621SJacob Keller bool 782b8265621SJacob Keller default n 783b0706762SJames Bottomley 784b0706762SJames Bottomleyconfig ASN1_ENCODER 785b0706762SJames Bottomley tristate 786cd705ea8SMichael Walle 787cd705ea8SMichael Walleconfig POLYNOMIAL 788cd705ea8SMichael Walle tristate 789a103f466SDave Jiang 790a103f466SDave Jiangconfig FIRMWARE_TABLE 791a103f466SDave Jiang bool 792bf9850f6SKuan-Wei Chiu 793bf9850f6SKuan-Wei Chiuconfig UNION_FIND 794bf9850f6SKuan-Wei Chiu bool 795*92a8b224SKuan-Wei Chiu 796*92a8b224SKuan-Wei Chiuconfig MIN_HEAP 797*92a8b224SKuan-Wei Chiu bool 798