From owner-freebsd-stable@FreeBSD.ORG Thu Sep 1 12:21:15 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 CED8C1065673; Thu, 1 Sep 2011 12:21:15 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 790AE8FC1C; Thu, 1 Sep 2011 12:21:15 +0000 (UTC) Received: by gxk28 with SMTP id 28so1650325gxk.13 for ; Thu, 01 Sep 2011 05:21:14 -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=qzbC0Gq/Fp0Q0yXPZ2tOWnSQLCGu32sFUpsLJH7biyo=; b=Riilh0SHR4ZX1zSLONoxuRiXknWI3qatS5yRGbqQa3pSZGzheWF5FMByMcFE65aKAL iFhPJeG6AvooPClXEYpcnvaWruHdIsUDicrg1DjOfUEUl4kh7vWR+Yv6CQEZnXFoxQTm t6LevoRqTVV3s5u3+fcDeiZC7xjCMoxYy4R+o= MIME-Version: 1.0 Received: by 10.150.170.10 with SMTP id s10mr145876ybe.171.1314879674785; Thu, 01 Sep 2011 05:21:14 -0700 (PDT) Received: by 10.150.53.2 with HTTP; Thu, 1 Sep 2011 05:21:14 -0700 (PDT) In-Reply-To: References: <201108311334.10804.jhb@freebsd.org> <201108311717.03127.jhb@freebsd.org> Date: Thu, 1 Sep 2011 16:21:14 +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: Thu, 01 Sep 2011 12:21:15 -0000 On 1 September 2011 01:27, 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 hel= p to >>> > address issues several folks have reported. =A0The patch does two thi= ngs, 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 Lin= ux >>> > megaraid-sas driver uses this approach and some folks have tested a p= atch 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.= 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. > >> >> Also, does it work fine if you disable MSI-X via 'hw.pci.enable_msix=3D0= ' >> in the loader? > Yes, it allows to finish the boot. --=20 wbr, pluknet