Kconfig 16 KB

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