Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759515AbZFWPdR (ORCPT ); Tue, 23 Jun 2009 11:33:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760530AbZFWPbe (ORCPT ); Tue, 23 Jun 2009 11:31:34 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:53781 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760484AbZFWPbd (ORCPT ); Tue, 23 Jun 2009 11:31:33 -0400 Subject: Re: [PATCH 1/1] Reduce AACRAID hardware queue size From: James Bottomley To: Andy Whitcroft Cc: Adaptec OEM Raid Solutions , Mathias Urlichs , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1245756306-29023-2-git-send-email-apw@canonical.com> References: <1245756306-29023-1-git-send-email-apw@canonical.com> <1245756306-29023-2-git-send-email-apw@canonical.com> Content-Type: text/plain Date: Tue, 23 Jun 2009 10:31:29 -0500 Message-Id: <1245771089.4149.88.camel@mulgrave.site> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2312 Lines: 60 On Tue, 2009-06-23 at 12:25 +0100, Andy Whitcroft wrote: > From: Mathias Urlichs > > BugLink: http://bugzilla.kernel.org/show_bug.cgi?id=11120 > BugLink: http://bugs.launchpad.net/bugs/249964 > > Reduce the hardware queue size for the AACRAID controller. This controloler > suffers adapter aborts and scsi resets under high load otherwise: > > aacraid: Host adapter abort request (0,0,2,0) > aacraid: Host adapter abort request (0,0,3,0) > aacraid: Host adapter reset request. SCSI hang ? > aacraid: Host adapter abort request (0,0,0,0) > > Signed-Off-By: Mathias Urlichs > Signed-off-by: Andy Whitcroft > --- > drivers/scsi/aacraid/aacraid.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h > index cdbdec9..0d5d036 100644 > --- a/drivers/scsi/aacraid/aacraid.h > +++ b/drivers/scsi/aacraid/aacraid.h > @@ -24,7 +24,7 @@ > #define AAC_MAX_LUN (8) > > #define AAC_MAX_HOSTPHYSMEMPAGES (0xfffff) > -#define AAC_MAX_32BIT_SGBCOUNT ((unsigned short)256) > +#define AAC_MAX_32BIT_SGBCOUNT ((unsigned short)127) So I'm afraid this isn't a proper fix. It was a diagnostic test to see if SGBCOUNT was the root cause for this card. Incidentally, SGBCOUNT isn't queue depth, its maximum number of sectors in an individual transfer. What we'd need to show for this to be the fix is that every 32 bit aacraid card is affected, which, given the paucity of bug reports, I don't think so. Firstly, Matthias, can you see if on an unmodified aacraid, this fixes the problem for you: echo 63 > /sys/block//queue/max_sectors_kb 63 is because the parameter is in kb for sysfs, but in number of 512 byte blocks for the driver. If it does, we can likely just add it to the udev unusual devices and not bother with a kernel fix. To fix the kernel properly, we'd need to add an AAC_QUIRK for this adapter, which is a bit more work, so lets see if udev can fix it for us first ... James -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/