diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-03-09 10:05:23 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2018-03-26 09:56:28 -0400 |
commit | 889ce12b1650b3c388634451872638a08faf6d6b (patch) | |
tree | 04ddfa626bf6f08f902979006496c7af712c4cc5 | |
parent | d98983fbf27fbfc2210a1b9411aed84bf2004d0a (diff) |
raid: remove tile specific raid6 implementation
The Tile architecture is getting removed, so we no longer need this either.
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | include/linux/raid/pq.h | 1 | ||||
-rw-r--r-- | lib/raid6/Makefile | 6 | ||||
-rw-r--r-- | lib/raid6/algos.c | 3 | ||||
-rw-r--r-- | lib/raid6/test/Makefile | 7 | ||||
-rw-r--r-- | lib/raid6/tilegx.uc | 87 |
5 files changed, 0 insertions, 104 deletions
diff --git a/include/linux/raid/pq.h b/include/linux/raid/pq.h index 583cdd3d49ca..a366cc314479 100644 --- a/include/linux/raid/pq.h +++ b/include/linux/raid/pq.h | |||
@@ -105,7 +105,6 @@ extern const struct raid6_calls raid6_avx2x4; | |||
105 | extern const struct raid6_calls raid6_avx512x1; | 105 | extern const struct raid6_calls raid6_avx512x1; |
106 | extern const struct raid6_calls raid6_avx512x2; | 106 | extern const struct raid6_calls raid6_avx512x2; |
107 | extern const struct raid6_calls raid6_avx512x4; | 107 | extern const struct raid6_calls raid6_avx512x4; |
108 | extern const struct raid6_calls raid6_tilegx8; | ||
109 | extern const struct raid6_calls raid6_s390vx8; | 108 | extern const struct raid6_calls raid6_s390vx8; |
110 | 109 | ||
111 | struct raid6_recov_calls { | 110 | struct raid6_recov_calls { |
diff --git a/lib/raid6/Makefile b/lib/raid6/Makefile index 4add700ddfe3..44d6b46df051 100644 --- a/lib/raid6/Makefile +++ b/lib/raid6/Makefile | |||
@@ -7,7 +7,6 @@ raid6_pq-y += algos.o recov.o tables.o int1.o int2.o int4.o \ | |||
7 | raid6_pq-$(CONFIG_X86) += recov_ssse3.o recov_avx2.o mmx.o sse1.o sse2.o avx2.o avx512.o recov_avx512.o | 7 | raid6_pq-$(CONFIG_X86) += recov_ssse3.o recov_avx2.o mmx.o sse1.o sse2.o avx2.o avx512.o recov_avx512.o |
8 | raid6_pq-$(CONFIG_ALTIVEC) += altivec1.o altivec2.o altivec4.o altivec8.o | 8 | raid6_pq-$(CONFIG_ALTIVEC) += altivec1.o altivec2.o altivec4.o altivec8.o |
9 | raid6_pq-$(CONFIG_KERNEL_MODE_NEON) += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o | 9 | raid6_pq-$(CONFIG_KERNEL_MODE_NEON) += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o |
10 | raid6_pq-$(CONFIG_TILEGX) += tilegx8.o | ||
11 | raid6_pq-$(CONFIG_S390) += s390vx8.o recov_s390xc.o | 10 | raid6_pq-$(CONFIG_S390) += s390vx8.o recov_s390xc.o |
12 | 11 | ||
13 | hostprogs-y += mktables | 12 | hostprogs-y += mktables |
@@ -115,11 +114,6 @@ $(obj)/neon8.c: UNROLL := 8 | |||
115 | $(obj)/neon8.c: $(src)/neon.uc $(src)/unroll.awk FORCE | 114 | $(obj)/neon8.c: $(src)/neon.uc $(src)/unroll.awk FORCE |
116 | $(call if_changed,unroll) | 115 | $(call if_changed,unroll) |
117 | 116 | ||
118 | targets += tilegx8.c | ||
119 | $(obj)/tilegx8.c: UNROLL := 8 | ||
120 | $(obj)/tilegx8.c: $(src)/tilegx.uc $(src)/unroll.awk FORCE | ||
121 | $(call if_changed,unroll) | ||
122 | |||
123 | targets += s390vx8.c | 117 | targets += s390vx8.c |
124 | $(obj)/s390vx8.c: UNROLL := 8 | 118 | $(obj)/s390vx8.c: UNROLL := 8 |
125 | $(obj)/s390vx8.c: $(src)/s390vx.uc $(src)/unroll.awk FORCE | 119 | $(obj)/s390vx8.c: $(src)/s390vx.uc $(src)/unroll.awk FORCE |
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 476994723258..c65aa80d67ed 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c | |||
@@ -75,9 +75,6 @@ const struct raid6_calls * const raid6_algos[] = { | |||
75 | &raid6_altivec4, | 75 | &raid6_altivec4, |
76 | &raid6_altivec8, | 76 | &raid6_altivec8, |
77 | #endif | 77 | #endif |
78 | #if defined(CONFIG_TILEGX) | ||
79 | &raid6_tilegx8, | ||
80 | #endif | ||
81 | #if defined(CONFIG_S390) | 78 | #if defined(CONFIG_S390) |
82 | &raid6_s390vx8, | 79 | &raid6_s390vx8, |
83 | #endif | 80 | #endif |
diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile index be1010bdc435..fabc477b1417 100644 --- a/lib/raid6/test/Makefile +++ b/lib/raid6/test/Makefile | |||
@@ -51,9 +51,6 @@ else | |||
51 | OBJS += altivec1.o altivec2.o altivec4.o altivec8.o | 51 | OBJS += altivec1.o altivec2.o altivec4.o altivec8.o |
52 | endif | 52 | endif |
53 | endif | 53 | endif |
54 | ifeq ($(ARCH),tilegx) | ||
55 | OBJS += tilegx8.o | ||
56 | endif | ||
57 | 54 | ||
58 | .c.o: | 55 | .c.o: |
59 | $(CC) $(CFLAGS) -c -o $@ $< | 56 | $(CC) $(CFLAGS) -c -o $@ $< |
@@ -116,15 +113,11 @@ int16.c: int.uc ../unroll.awk | |||
116 | int32.c: int.uc ../unroll.awk | 113 | int32.c: int.uc ../unroll.awk |
117 | $(AWK) ../unroll.awk -vN=32 < int.uc > $@ | 114 | $(AWK) ../unroll.awk -vN=32 < int.uc > $@ |
118 | 115 | ||
119 | tilegx8.c: tilegx.uc ../unroll.awk | ||
120 | $(AWK) ../unroll.awk -vN=8 < tilegx.uc > $@ | ||
121 | |||
122 | tables.c: mktables | 116 | tables.c: mktables |
123 | ./mktables > tables.c | 117 | ./mktables > tables.c |
124 | 118 | ||
125 | clean: | 119 | clean: |
126 | rm -f *.o *.a mktables mktables.c *.uc int*.c altivec*.c neon*.c tables.c raid6test | 120 | rm -f *.o *.a mktables mktables.c *.uc int*.c altivec*.c neon*.c tables.c raid6test |
127 | rm -f tilegx*.c | ||
128 | 121 | ||
129 | spotless: clean | 122 | spotless: clean |
130 | rm -f *~ | 123 | rm -f *~ |
diff --git a/lib/raid6/tilegx.uc b/lib/raid6/tilegx.uc deleted file mode 100644 index 2dd291a11264..000000000000 --- a/lib/raid6/tilegx.uc +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | /* -*- linux-c -*- ------------------------------------------------------- * | ||
2 | * | ||
3 | * Copyright 2002 H. Peter Anvin - All Rights Reserved | ||
4 | * Copyright 2012 Tilera Corporation - All Rights Reserved | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
9 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
10 | * (at your option) any later version; incorporated herein by reference. | ||
11 | * | ||
12 | * ----------------------------------------------------------------------- */ | ||
13 | |||
14 | /* | ||
15 | * tilegx$#.c | ||
16 | * | ||
17 | * $#-way unrolled TILE-Gx SIMD for RAID-6 math. | ||
18 | * | ||
19 | * This file is postprocessed using unroll.awk. | ||
20 | * | ||
21 | */ | ||
22 | |||
23 | #include <linux/raid/pq.h> | ||
24 | |||
25 | /* Create 8 byte copies of constant byte */ | ||
26 | # define NBYTES(x) (__insn_v1addi(0, x)) | ||
27 | # define NSIZE 8 | ||
28 | |||
29 | /* | ||
30 | * The SHLBYTE() operation shifts each byte left by 1, *not* | ||
31 | * rolling over into the next byte | ||
32 | */ | ||
33 | static inline __attribute_const__ u64 SHLBYTE(u64 v) | ||
34 | { | ||
35 | /* Vector One Byte Shift Left Immediate. */ | ||
36 | return __insn_v1shli(v, 1); | ||
37 | } | ||
38 | |||
39 | /* | ||
40 | * The MASK() operation returns 0xFF in any byte for which the high | ||
41 | * bit is 1, 0x00 for any byte for which the high bit is 0. | ||
42 | */ | ||
43 | static inline __attribute_const__ u64 MASK(u64 v) | ||
44 | { | ||
45 | /* Vector One Byte Shift Right Signed Immediate. */ | ||
46 | return __insn_v1shrsi(v, 7); | ||
47 | } | ||
48 | |||
49 | |||
50 | void raid6_tilegx$#_gen_syndrome(int disks, size_t bytes, void **ptrs) | ||
51 | { | ||
52 | u8 **dptr = (u8 **)ptrs; | ||
53 | u64 *p, *q; | ||
54 | int d, z, z0; | ||
55 | |||
56 | u64 wd$$, wq$$, wp$$, w1$$, w2$$; | ||
57 | u64 x1d = NBYTES(0x1d); | ||
58 | u64 * z0ptr; | ||
59 | |||
60 | z0 = disks - 3; /* Highest data disk */ | ||
61 | p = (u64 *)dptr[z0+1]; /* XOR parity */ | ||
62 | q = (u64 *)dptr[z0+2]; /* RS syndrome */ | ||
63 | |||
64 | z0ptr = (u64 *)&dptr[z0][0]; | ||
65 | for ( d = 0 ; d < bytes ; d += NSIZE*$# ) { | ||
66 | wq$$ = wp$$ = *z0ptr++; | ||
67 | for ( z = z0-1 ; z >= 0 ; z-- ) { | ||
68 | wd$$ = *(u64 *)&dptr[z][d+$$*NSIZE]; | ||
69 | wp$$ = wp$$ ^ wd$$; | ||
70 | w2$$ = MASK(wq$$); | ||
71 | w1$$ = SHLBYTE(wq$$); | ||
72 | w2$$ = w2$$ & x1d; | ||
73 | w1$$ = w1$$ ^ w2$$; | ||
74 | wq$$ = w1$$ ^ wd$$; | ||
75 | } | ||
76 | *p++ = wp$$; | ||
77 | *q++ = wq$$; | ||
78 | } | ||
79 | } | ||
80 | |||
81 | const struct raid6_calls raid6_tilegx$# = { | ||
82 | raid6_tilegx$#_gen_syndrome, | ||
83 | NULL, /* XOR not yet implemented */ | ||
84 | NULL, | ||
85 | "tilegx$#", | ||
86 | 0 | ||
87 | }; | ||