From owner-freebsd-stable@freebsd.org Mon Sep 7 23:43:28 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 0F42B9CCDAE for ; Mon, 7 Sep 2015 23:43:28 +0000 (UTC) (envelope-from brad-fbsd-stable@duttonbros.com) Received: from uno.duttonbros.com (duttonbros.com [173.164.136.189]) by mx1.freebsd.org (Postfix) with ESMTP id E189D1EBE for ; Mon, 7 Sep 2015 23:43:27 +0000 (UTC) (envelope-from brad-fbsd-stable@duttonbros.com) Received: from uno.duttonbros.com (localhost [127.0.0.1]) by uno.duttonbros.com (Postfix) with ESMTP id 3382B16B3; Mon, 7 Sep 2015 16:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=duttonbros.com; h=date :message-id:from:to:cc:subject:references:in-reply-to :content-type:mime-version; s=mail; bh=3cqTzjbFlwrFpl3u2kWvTzIhW 68=; b=0ePkV14oYnSGnTr0+V1Vu1lIGPrgg3vndzHq8oqGtW3T86D7yzGhRhhH4 9GOBOJQfUjJ2vaEVktDAdHsVb7JpIHjb/kZDvKAvGIl04+3478fbUua24kWBMbqs Oh4fov4q+qBPSlN57Mb/S8yOEOvsCp+YCGoY99SvOIAjOaZ9hI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=duttonbros.com; h=date :message-id:from:to:cc:subject:references:in-reply-to :content-type:mime-version; q=dns; s=mail; b=VvBte6j9UqzMRcklKCz sfSWWUYXZq0gO+y//YPgx1XHA6z8uk3MeCO9WZfl8gxAlQVr3SQgqN9KjOoAozXJ Q6eV6g245egcYPn2RhaQ4s/4QwzThA2wCUJDLMVq0XHjstx2b/8YkjfGG5vE3dpL Wa5e7hbgGnxZAsh3loyhwIfI= Received: from uno (localhost [127.0.0.1]) by uno.duttonbros.com (Postfix) with ESMTPS id 118D116B2; Mon, 7 Sep 2015 16:43:26 -0700 (PDT) Received: from 192.168.170.81 ([192.168.170.81]) by duttonbros.com (Horde Framework) with HTTP; Mon, 07 Sep 2015 16:43:25 -0700 Date: Mon, 07 Sep 2015 16:43:25 -0700 Message-ID: <20150907164325.Horde.io9Z4A3Tf_d_H8_SFneEIvf@duttonbros.com> From: "Bradley W. Dutton" To: Jim Harris Cc: FreeBSD-STABLE Mailing List Subject: Re: ISCI bus_alloc_resource failed References: <20150907103435.Horde.z4GgTZD3-chqVxPgZhMklyM@duttonbros.com> In-Reply-To: User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline 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: Mon, 07 Sep 2015 23:43:28 -0000 Quoting Jim Harris : > On Mon, Sep 7, 2015 at 10:34 AM, Bradley W. Dutton < > brad-fbsd-stable@duttonbros.com> wrote: > >> Hi, >> >> I'm having trouble with the isci driver in both stable and current. I see >> the following dmesg in stable: >> >> isci0: port >> 0x5000-0x50ff mem 0xe7afc000-0xe7afffff,0xe7400000-0xe77fffff irq 19 at >> device 0.0 on pci11 >> isci: 1:000051 ISCI bus_alloc_resource failed >> >> >> I'm running FreeBSD on VMWare ESXi 6 with vt-d passthrough of the isci >> devices, here is the relevant pciconf output: >> >> none2@pci0:3:0:0: class=0x0c0500 card=0x062815d9 chip=0x1d708086 >> rev=0x06 hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'C600/X79 series chipset SMBus Controller 0' >> class = serial bus >> subclass = SMBus >> cap 10[90] = PCI-Express 2 endpoint max data 128(128) link x32(x32) >> speed 5.0(5.0) ASPM disabled(L0s) >> cap 01[cc] = powerspec 3 supports D0 D3 current D0 >> cap 05[d4] = MSI supports 1 message >> ecap 000e[100] = ARI 1 >> isci0@pci0:11:0:0: class=0x010700 card=0x062815d9 chip=0x1d6b8086 >> rev=0x06 hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'C602 chipset 4-Port SATA Storage Control Unit' >> class = mass storage >> subclass = SAS >> cap 01[98] = powerspec 3 supports D0 D3 current D0 >> cap 10[c4] = PCI-Express 2 endpoint max data 128(128) link x32(x32) >> speed 5.0(5.0) ASPM disabled(L0s) >> cap 11[a0] = MSI-X supports 2 messages >> Table in map 0x10[0x2000], PBA in map 0x10[0x3000] >> ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected >> ecap 000e[138] = ARI 1 >> ecap 0017[180] = TPH Requester 1 >> ecap 0010[140] = SRIOV 1 >> >> >> I haven't tried booting on bare metal but running a linux distro (centos >> 7) in the same VM works without issue. Is is possible the SRIOV option is >> causing trouble? I don't see a BIOS option to disable that setting on this >> server like I have on some others. Any other ideas to get this working? >> > > I do not think the SRIOV is the problem here. I do notice that isci(4) > does not explicitly enable PCI busmaster, which will cause problems with > PCI passthrough. I've attached a patch that rectifies that issue. I'm not > certain that is the root cause of the interrupt resource allocation failure > though. > > Could you: > > 1) Apply the attached patch and retest. > 2) If you still see the resource allocation failure, reboot in verbose mode > and provide the resulting dmesg output. > > Thanks, > > -Jim Thanks for the patch although the same error still persists. Here is the verbose boot log: http://duttonbrosllc.com/misc/dmesg.boot Thanks, Brad