From owner-freebsd-stable@FreeBSD.ORG Wed Aug 31 19:55:17 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 4CAC91065673 for ; Wed, 31 Aug 2011 19:55:17 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 034718FC13 for ; Wed, 31 Aug 2011 19:55:16 +0000 (UTC) Received: by gwb15 with SMTP id 15so498959gwb.13 for ; Wed, 31 Aug 2011 12:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FiVy3lO73i34SwkAuQsFUUa9cFyBSnGhALuNf/kYpKQ=; b=KDmnEVH4okR0os5RMfgvNFi9CmPBGEPH1dlboPtyZ9Q4VYHoxS5VSUft1wxfvVJ/cA IKgOzb+G+zD1hlM9U1Vu3YAmKDHEn5RQJDfQyKZWm8XdKkbOOxjzXKdgYw5XtXtRxwwO uLfALHfNrsxz+b7G2zdKB//PCtdbDV6Pp1PO4= MIME-Version: 1.0 Received: by 10.150.225.21 with SMTP id x21mr662883ybg.114.1314818652108; Wed, 31 Aug 2011 12:24:12 -0700 (PDT) Received: by 10.150.53.2 with HTTP; Wed, 31 Aug 2011 12:24:12 -0700 (PDT) In-Reply-To: <201108311334.10804.jhb@freebsd.org> References: <201108311334.10804.jhb@freebsd.org> Date: Wed, 31 Aug 2011 23:24:12 +0400 Message-ID: From: Sergey Kandaurov To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Wed, 31 Aug 2011 19:55:17 -0000 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. =A0The 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. =A0The Linux > megaraid-sas driver uses this approach and some folks have tested a patch= from > Scott Long which had a somewhat similar effect. =A0Second, 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.patc= h 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 Patch applied and tested on RELENG_8_2. mfi0@pci0:26:0:0: class=3D0x010400 card=3D0x03b21014 chip=3D0x0079100= 0 rev=3D0x03 hdr=3D0x00 vendor =3D 'LSI Logic (Was: Symbios Logic, NCR)' class =3D mass storage subclass =3D RAID bar [10] =3D type I/O Port, range 32, base 0x3000, size 256, enabled bar [14] =3D type Memory, range 64, base 0x9dd40000, size 16384, enab= led bar [1c] =3D type Memory, range 64, base 0x9dd00000, size 262144, ena= bled cap 01[50] =3D powerspec 3 supports D0 D1 D2 D3 current D0 cap 10[68] =3D PCI-Express 2 endpoint max data 256(4096) link x8(x8) cap 03[d0] =3D VPD cap 05[a8] =3D MSI supports 1 message, 64 bit cap 11[c0] =3D MSI-X supports 15 messages in map 0x14 ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 1 corrected ecap 0004[138] =3D unknown 1 --=20 wbr, pluknet