From owner-freebsd-scsi@FreeBSD.ORG Tue Feb 28 08:05:18 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54B21106566B for ; Tue, 28 Feb 2012 08:05:18 +0000 (UTC) (envelope-from cstamas@digitus.itk.ppke.hu) Received: from jugisgw.ppke.hu (mailgw.ppke.hu [193.225.109.43]) by mx1.freebsd.org (Postfix) with ESMTP id 054628FC16 for ; Tue, 28 Feb 2012 08:05:17 +0000 (UTC) Received: from jugisgw.ppke.hu (localhost.localdomain [127.0.0.1]) by jugisgw.ppke.hu (Postfix) with ESMTP id AFD4C40146CB; Tue, 28 Feb 2012 09:05:25 +0100 (CET) X-PPKE-MailScanner-Watermark: 1331021122.31855@rtkq7dApJLLLR1m72EBBpQ X-PPKE-MailScanner-From: cstamas@digitus.itk.ppke.hu X-PPKE-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, pont=0, szukseges 5, autolearn=disabled) X-PPKE-MailScanner: Found to be clean X-PPKE-MailScanner-ID: 1S2I3l-00081H-P0 Received: from rivendell.itk.ppke.hu (rivendell.itk.ppke.hu [193.225.109.193]) by jugisgw.ppke.hu (Postfix) with ESMTP id AE95B40146D3; Tue, 28 Feb 2012 09:05:21 +0100 (CET) Received: by rivendell.itk.ppke.hu (Postfix, from userid 1000) id EAAD934B86; Tue, 28 Feb 2012 09:05:11 +0100 (CET) Date: Tue, 28 Feb 2012 09:05:11 +0100 From: Csillag Tamas To: Jan Mikkelsen Message-ID: <20120228080511.GN29886@rivendell> References: <20120223235932.GB19927@rivendell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Gnu/Linux X-PPKE-NOSPAM: I promise, I will never let anything happen to you. Nemo. X-PGP-Key: http://digitus.itk.ppke.hu/~cstamas/cstamas.pgp User-Agent: Mutt/1.5.20 (2009-06-14) Content-Transfer-Encoding: quoted-printable Cc: freebsd-scsi@freebsd.org Subject: Re: mfi timeout issues and patch that seems to work (PERC H800) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Csillag Tamas List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 08:05:18 -0000 On Sat, Feb 25, 2012 at 12:04:05PM +1100, Jan Mikkelsen wrote: > On 24/02/2012, at 10:59 AM, Csillag Tamas wrote: > > Hi, > >=20 > > I had the same issues with the Perc H800 controller as it is describe= d > > here:=20 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/140416 > > (Just for google I include the error here: > > mfi0: COMMAND 0xffffff80009c4b90 TIMEOUT AFTER 41 SECONDS) > > [ =E2=80=A6 ] > > however getting and compiling the newest kernel did NOT fix it for me= . > > Issuing commands with mfiutils still fixed the hang and everything > > returned to normal. > >=20 > > It seems that intensive read triggers the issue, but if you have writ= e > > concurrently you are fine (mostly). Restarting rsync is ideal for > > triggering this buggy condition. > >=20 > > I tried to poke around in the source code and in the end tweaked the > > patch (seen here before > > http://lists.freebsd.org/pipermail/freebsd-scsi/2011-March/004839.htm= l): > >=20 > > replacing > > (void)sc->mfi_read_fw_status(sc); > > with > > mfi_get_controller_info(sc); > > around line 933 > >=20 > > and after testing it for a day it seems to be solid. > > (The original patch did not help me.) > >=20 > > Can someone expert in the topic can confirm if any of this is correct= ? >=20 > The default value for hw.mfi.msi is 0. I had to set it to 1 in > /boot/loader.conf when using a 9261-8i controller. It might be worth > retesting with that setting and the standard kernel. I am not sure if I will have enough time for this (others starts to work on this machine), but will make a try. Thanks Regards, cstamas --=20 CSILLAG Tamas (cstamas) - http://digitus.itk.ppke.hu/~cstamas