linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@intel.com>
To: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: maciej.sosnowski@intel.com, Dan Williams <dan.j.williams@intel.com>
Subject: [PATCH 2/3] async_tx: expand async raid6 test to cover ioatdma corner case
Date: Tue, 22 Dec 2009 17:26:01 -0700	[thread overview]
Message-ID: <20091223002600.32335.55048.stgit@dwillia2-linux.ch.intel.com> (raw)
In-Reply-To: <20091223002518.32335.27768.stgit@dwillia2-linux.ch.intel.com>

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>
---

 crypto/async_tx/raid6test.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c
index 3ec27c7..f84f6b4 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");

  parent reply	other threads:[~2009-12-23  0:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-23  0:25 [PATCH 0/3] ioatdma fixes for 2.6.33-rc Dan Williams
2009-12-23  0:25 ` [PATCH 1/3] ioat3: fix p-disabled q-continuation Dan Williams
2009-12-28 16:08   ` Sosnowski, Maciej
2009-12-23  0:26 ` Dan Williams [this message]
2009-12-28 16:09   ` [PATCH 2/3] async_tx: expand async raid6 test to cover ioatdma corner case Sosnowski, Maciej
2009-12-23  0:26 ` [PATCH 3/3] ioat2,3: put channel hardware in known state at init Dan Williams
2009-12-28 16:09   ` Sosnowski, Maciej

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091223002600.32335.55048.stgit@dwillia2-linux.ch.intel.com \
    --to=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=maciej.sosnowski@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).