mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 18:41:48 +00:00
b5dceda1f7
The raid6_gfexp table represents {2}^n values for 0 <= n < 256. The Linux async_tx framework pass values from raid6_gfexp as coefficients for each source to prep_dma_pq() callback of DMA channel with PQ capability. This creates problem for RAID6 offload engines (such as Broadcom SBA) which take disk position (i.e. log of {2}) instead of multiplicative cofficients from raid6_gfexp table. This patch adds raid6_gflog table having log-of-2 value for any given x such that 0 <= x < 256. For any given disk coefficient x, the corresponding disk position is given by raid6_gflog[x]. The RAID6 offload engine driver can use this newly added raid6_gflog table to get disk position from multiplicative coefficient. Signed-off-by: Anup Patel <anup.patel@broadcom.com> Reviewed-by: Scott Branden <scott.branden@broadcom.com> Reviewed-by: Ray Jui <ray.jui@broadcom.com> Acked-by: Shaohua Li <shli@fb.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> |
||
---|---|---|
.. | ||
test | ||
.gitignore | ||
algos.c | ||
altivec.uc | ||
avx2.c | ||
avx512.c | ||
int.uc | ||
Makefile | ||
mktables.c | ||
mmx.c | ||
neon.c | ||
neon.uc | ||
recov_avx2.c | ||
recov_avx512.c | ||
recov_s390xc.c | ||
recov_ssse3.c | ||
recov.c | ||
s390vx.uc | ||
sse1.c | ||
sse2.c | ||
tilegx.uc | ||
unroll.awk | ||
x86.h |