]> git.baikalelectronics.ru Git - kernel.git/commit
dmatest: correct raid6 PQ test
authorAnatolij Gustschin <agust@denx.de>
Mon, 15 Feb 2010 21:35:23 +0000 (22:35 +0100)
committerDan Williams <dan.j.williams@intel.com>
Mon, 1 Mar 2010 05:18:36 +0000 (22:18 -0700)
commite2cb886646a30002d42f5b7a52431040c5c62a22
tree8507157200c687012e13da8a5ea5088528c0151f
parent6dc2368dea99438db81cc19f97cf48d78de09f2b
dmatest: correct raid6 PQ test

The number of PQ sources specified by module parameter "pq_sources"
is always forced odd to fit into dmatest's destination verificaton
scheme. But number of PQ sources and coefficients as passed to the
driver's prep_dma_pq() is not adjusted accordingly.

Fix it now to get correct PQ testing results in the case passed
"pq_sources" parameter is even.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmatest.c