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 35config RAID6_PQ_KUNIT_TEST 36 tristate "KUnit tests for RAID6 PQ functions" if !KUNIT_ALL_TESTS 37 depends on KUNIT 38 depends on RAID6_PQ 39 default KUNIT_ALL_TESTS 40 help 41 Unit tests for the RAID6 PQ library functions. 42 43 This is intended to help people writing architecture-specific 44 optimized versions. If unsure, say N. 45 46config RAID6_PQ_BENCHMARK 47 bool "Automatically choose fastest RAID6 PQ functions" 48 depends on RAID6_PQ 49 default y 50 help 51 Benchmark all available RAID6 PQ functions on init and choose the 52 fastest one. 53