xref: /linux/lib/raid/Kconfig (revision adfcf6e89bc1322c4a6cc37ad32e411cf0500622)
1# SPDX-License-Identifier: GPL-2.0
2
3config XOR_BLOCKS
4	tristate
5
6# selected by architectures that provide an optimized XOR implementation
7config XOR_BLOCKS_ARCH
8	depends on XOR_BLOCKS
9	default y if ALPHA
10	default y if ARM
11	default y if ARM64
12	default y if CPU_HAS_LSX		# loongarch
13	default y if ALTIVEC			# powerpc
14	default y if RISCV_ISA_V
15	default y if SPARC
16	default y if S390
17	default y if X86_32
18	default y if X86_64
19	bool
20
21config XOR_KUNIT_TEST
22	tristate "KUnit tests for xor_gen" if !KUNIT_ALL_TESTS
23	depends on KUNIT
24	depends on XOR_BLOCKS
25	default KUNIT_ALL_TESTS
26	help
27	  Unit tests for the XOR library functions.
28
29	  This is intended to help people writing architecture-specific
30	  optimized versions.  If unsure, say N.
31
32config RAID6_PQ
33	tristate
34
35# selected by architectures that provide an optimized PQ implementation
36config RAID6_PQ_ARCH
37	depends on RAID6_PQ
38	default y if KERNEL_MODE_NEON		# arm32/arm64
39	default y if LOONGARCH
40	default y if ALTIVEC			# powerpc
41	default y if RISCV_ISA_V
42	default y if S390
43	default y if X86
44	bool
45
46config RAID6_PQ_KUNIT_TEST
47	tristate "KUnit tests for RAID6 PQ functions" if !KUNIT_ALL_TESTS
48	depends on KUNIT
49	depends on RAID6_PQ
50	default KUNIT_ALL_TESTS
51	help
52	  Unit tests for the RAID6 PQ library functions.
53
54	  This is intended to help people writing architecture-specific
55	  optimized versions.  If unsure, say N.
56
57config RAID6_PQ_BENCHMARK
58	bool "Automatically choose fastest RAID6 PQ functions"
59	depends on RAID6_PQ
60	default y
61	help
62	  Benchmark all available RAID6 PQ functions on init and choose the
63	  fastest one.
64