From owner-freebsd-stable@freebsd.org Tue Sep 8 16:06:19 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15842A00BE3 for ; Tue, 8 Sep 2015 16:06:19 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5A2F1AE8 for ; Tue, 8 Sep 2015 16:06:18 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: by obqa2 with SMTP id a2so87348235obq.3 for ; Tue, 08 Sep 2015 09:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NKVrlMkAFUEgwScNYfNgtHHQ39EAS3FFGoysZM5Su+M=; b=OZDduO/ygq5boi6gKPuqsBrpatwBIJeJ0WA0vp7yIUCqvL6RTFy9XN8+5oXbiv7INA bF4FZ8hwtmZu0UPO62P4/TBBP9+ejudUz6SChypzpaLPGvu7zIyeML5PsAoBgw1UjHcK llQ7eR90ZECDLv+SAEupZWDUpd9Hq+vqMLwExZt0hQghgPcT5AcHQ6L2XLlrnbq24/JV KOtiTmxG9Ic6f6xbqgTYcgZJ/4vVUSh32wJkILUDrdxIicQml3B1/dV19Mtt0JTKx3ED uA6d8reLzJtsIMi/XughWOnZ+iJxJXi/VNESXQ9kUbF0MbJjHpK4ED4sfd3fgJ7n5xht cxzQ== MIME-Version: 1.0 X-Received: by 10.182.196.101 with SMTP id il5mr21347339obc.41.1441728377966; Tue, 08 Sep 2015 09:06:17 -0700 (PDT) Received: by 10.202.212.7 with HTTP; Tue, 8 Sep 2015 09:06:17 -0700 (PDT) In-Reply-To: <20150907223741.Horde.7eGz7ZE1dushY2mm-Ko3ZLO@duttonbros.com> References: <20150907103435.Horde.z4GgTZD3-chqVxPgZhMklyM@duttonbros.com> <514DD6B2-EBC3-43F7-8C2A-F8A1C77463F0@samsco.org> <20150907192909.Horde.sDaQSSkewl4vEHh-rJLXcfb@duttonbros.com> <20150907223741.Horde.7eGz7ZE1dushY2mm-Ko3ZLO@duttonbros.com> Date: Tue, 8 Sep 2015 09:06:17 -0700 Message-ID: Subject: Re: ISCI bus_alloc_resource failed From: Jim Harris To: "Bradley W. Dutton" Cc: Scott Long , FreeBSD-STABLE Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2015 16:06:19 -0000 On Mon, Sep 7, 2015 at 10:37 PM, Bradley W. Dutton < brad-fbsd-stable@duttonbros.com> wrote: > Quoting Jim Harris : > > On Mon, Sep 7, 2015 at 7:29 PM, Bradley W. Dutton < >> brad-fbsd-stable@duttonbros.com> wrote: >> >> There are 2 devices in the same group so I passed both of them: >>> http://duttonbrosllc.com/misc/vmware_esxi_passthrough_config.png >>> >>> At the time I wasn't sure if this was necessary but I just tried the >>> Centos 7 VM and it worked without the SMBus device being passed through. >>> I >>> then tried the FreeBSD VM without SMBus and saw the same allocation error >>> as before. Looks like the SMBus device is a red herring? >>> >>> >>> Looks like on ESXi we are using Xen HVM init ops, which do not enable >> MSI. >> And the isci driver is not reverting to INTx resource allocation when MSIx >> vector allocation fails. I've added reverting to INTx in the attached >> patch - can you try once more? >> >> Thanks, >> >> -Jim >> > > That patch worked. No allocation errors and the drives work as expected. > > Thanks again, > Brad > > Thanks Brad. Committed as r287563 (pci_enable_busmaster) and r287564 (pci_alloc_msix check).