Skip to content

Commit 09ec0f5

Browse files
committed
raid6test: add new corner case for ioatdma driver
With 24 disks and an ioatdma instance with 16 source support there is a corner case where the driver needs to be careful to account for the number of implied sources in the continuation case. Also bump the default case to test more than 16 sources now that it triggers different paths in offload drivers. Cc: Dave Jiang <dave.jiang@intel.com> Acked-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 59056e8 commit 09ec0f5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎crypto/async_tx/raid6test.c‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#undef pr
2929
#define pr(fmt, args...) pr_info("raid6test: " fmt, ##args)
3030

31-
#define NDISKS 16 /* Including P and Q */
31+
#define NDISKS 64 /* Including P and Q */
3232

3333
static struct page *dataptrs[NDISKS];
3434
static addr_conv_t addr_conv[NDISKS];
@@ -219,6 +219,14 @@ static int raid6_test(void)
219219
err += test(11, &tests);
220220
err += test(12, &tests);
221221
}
222+
223+
/* the 24 disk case is special for ioatdma as it is the boudary point
224+
* at which it needs to switch from 8-source ops to 16-source
225+
* ops for continuation (assumes DMA_HAS_PQ_CONTINUE is not set)
226+
*/
227+
if (NDISKS > 24)
228+
err += test(24, &tests);
229+
222230
err += test(NDISKS, &tests);
223231

224232
pr("\n");

0 commit comments

Comments
 (0)