diff options
Diffstat (limited to 'lib/raid6/algos.c')
-rw-r--r-- | lib/raid6/algos.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 975c6e0434bd..7857049fd7d3 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c | |||
@@ -49,6 +49,10 @@ const struct raid6_calls * const raid6_algos[] = { | |||
49 | &raid6_avx2x1, | 49 | &raid6_avx2x1, |
50 | &raid6_avx2x2, | 50 | &raid6_avx2x2, |
51 | #endif | 51 | #endif |
52 | #ifdef CONFIG_AS_AVX512 | ||
53 | &raid6_avx512x1, | ||
54 | &raid6_avx512x2, | ||
55 | #endif | ||
52 | #endif | 56 | #endif |
53 | #if defined(__x86_64__) && !defined(__arch_um__) | 57 | #if defined(__x86_64__) && !defined(__arch_um__) |
54 | &raid6_sse2x1, | 58 | &raid6_sse2x1, |
@@ -59,6 +63,11 @@ const struct raid6_calls * const raid6_algos[] = { | |||
59 | &raid6_avx2x2, | 63 | &raid6_avx2x2, |
60 | &raid6_avx2x4, | 64 | &raid6_avx2x4, |
61 | #endif | 65 | #endif |
66 | #ifdef CONFIG_AS_AVX512 | ||
67 | &raid6_avx512x1, | ||
68 | &raid6_avx512x2, | ||
69 | &raid6_avx512x4, | ||
70 | #endif | ||
62 | #endif | 71 | #endif |
63 | #ifdef CONFIG_ALTIVEC | 72 | #ifdef CONFIG_ALTIVEC |
64 | &raid6_altivec1, | 73 | &raid6_altivec1, |
@@ -69,6 +78,9 @@ const struct raid6_calls * const raid6_algos[] = { | |||
69 | #if defined(CONFIG_TILEGX) | 78 | #if defined(CONFIG_TILEGX) |
70 | &raid6_tilegx8, | 79 | &raid6_tilegx8, |
71 | #endif | 80 | #endif |
81 | #if defined(CONFIG_S390) | ||
82 | &raid6_s390vx8, | ||
83 | #endif | ||
72 | &raid6_intx1, | 84 | &raid6_intx1, |
73 | &raid6_intx2, | 85 | &raid6_intx2, |
74 | &raid6_intx4, | 86 | &raid6_intx4, |
@@ -89,12 +101,18 @@ void (*raid6_datap_recov)(int, size_t, int, void **); | |||
89 | EXPORT_SYMBOL_GPL(raid6_datap_recov); | 101 | EXPORT_SYMBOL_GPL(raid6_datap_recov); |
90 | 102 | ||
91 | const struct raid6_recov_calls *const raid6_recov_algos[] = { | 103 | const struct raid6_recov_calls *const raid6_recov_algos[] = { |
104 | #ifdef CONFIG_AS_AVX512 | ||
105 | &raid6_recov_avx512, | ||
106 | #endif | ||
92 | #ifdef CONFIG_AS_AVX2 | 107 | #ifdef CONFIG_AS_AVX2 |
93 | &raid6_recov_avx2, | 108 | &raid6_recov_avx2, |
94 | #endif | 109 | #endif |
95 | #ifdef CONFIG_AS_SSSE3 | 110 | #ifdef CONFIG_AS_SSSE3 |
96 | &raid6_recov_ssse3, | 111 | &raid6_recov_ssse3, |
97 | #endif | 112 | #endif |
113 | #ifdef CONFIG_S390 | ||
114 | &raid6_recov_s390xc, | ||
115 | #endif | ||
98 | &raid6_recov_intx1, | 116 | &raid6_recov_intx1, |
99 | NULL | 117 | NULL |
100 | }; | 118 | }; |