summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-12-17 13:55:38 -0700
committerDan Williams <dan.j.williams@intel.com>2009-12-17 13:55:38 -0700
commit21fd461fa81a0a170f68b39fdea7efc1f5adc29e (patch)
tree3c4a1f8f5d9347a6a1ccde7952532cee5df0931d
parentfa1753c68b55aade9ad6e59f493814cf50b6eef8 (diff)
downloadlinux-crypto-21fd461fa81a0a170f68b39fdea7efc1f5adc29e.tar.gz
linux-crypto-21fd461fa81a0a170f68b39fdea7efc1f5adc29e.zip
async_tx: expand async raid6 test to cover ioatdma corner case
Add explicit 11 and 12 disks cases to exercise the 0 < src_cnt % 8 < 3 corner case in the ioatdma driver. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--crypto/async_tx/raid6test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c
index 3ec27c7e..f84f6b43 100644
--- a/crypto/async_tx/raid6test.c
+++ b/crypto/async_tx/raid6test.c
@@ -214,6 +214,13 @@ static int raid6_test(void)
err += test(4, &tests);
if (NDISKS > 5)
err += test(5, &tests);
+ /* the 11 and 12 disk cases are special for ioatdma (p-disabled
+ * q-continuation without extended descriptor)
+ */
+ if (NDISKS > 12) {
+ err += test(11, &tests);
+ err += test(12, &tests);
+ }
err += test(NDISKS, &tests);
pr("\n");