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