From owner-freebsd-stable@FreeBSD.ORG Thu Sep 1 14:35:16 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 882DD106564A for ; Thu, 1 Sep 2011 14:35:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5EDFF8FC16 for ; Thu, 1 Sep 2011 14:35:16 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id F115C46B0A; Thu, 1 Sep 2011 10:35:15 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 759168A02E; Thu, 1 Sep 2011 10:35:15 -0400 (EDT) From: John Baldwin To: Sergey Kandaurov Date: Thu, 1 Sep 2011 07:07:11 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <201108311334.10804.jhb@freebsd.org> <201108311717.03127.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109010707.11442.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 01 Sep 2011 10:35:15 -0400 (EDT) Cc: stable@freebsd.org Subject: Re: mfi(4) patch to add MSI-X support, possibly address command timeouts X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 14:35:16 -0000 On Wednesday, August 31, 2011 5:27:09 pm Sergey Kandaurov wrote: > On 1 September 2011 01:17, John Baldwin wrote: > > On Wednesday, August 31, 2011 3:24:12 pm Sergey Kandaurov wrote: > >> On 31 August 2011 21:34, John Baldwin wrote: > >> > I'd like some folks to test a patch to the mfi(4) driver that may help to > >> > address issues several folks have reported. The patch does two things, first > >> > it adds some dummy reads of PCI registers when checking device status in the > >> > interrupt handler to "flush" the writes to ACK interrupts. The Linux > >> > megaraid-sas driver uses this approach and some folks have tested a patch from > >> > Scott Long which had a somewhat similar effect. Second, it enables the use of > >> > MSI-X interrupts for many newer devices. > >> > > >> > The patch is available below and at www.freebsd.org/~jhb/patches/mfi.patch > >> > >> mfi0: port 0x3000-0x30ff mem > >> 0x9dd40000-0x9dd43fff,0x9dd00000-0x9dd3ffff irq 26 at device 0.0 on > >> pci26 > >> mfi0: Using MSI-X > >> mfi0: Megaraid SAS driver Ver 3.00 > >> > >> However, booting never finishes ending up with: > >> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 58 SECONDS > >> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 88 SECONDS > >> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 118 SECONDS > >> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 148 SECONDS > >> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 179 SECONDS > >> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 209 SECONDS > > > > Did this work fine without the patch? > > Yes, like a charm. Hmm, the Linux driver definitely uses MSI-X for your board. What chipset do you have, and does your system use MSI IRQs for any other devices? Also, can you break into ddb and do 'show intrcnt' to see if you are getting interrupts for the mfi device? -- John Baldwin