Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Sep 2015 13:30:29 -0700
From:      Jim Harris <jim.harris@gmail.com>
To:        "Bradley W. Dutton" <brad-fbsd-stable@duttonbros.com>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: ISCI bus_alloc_resource failed
Message-ID:  <CAJP=Hc_%2B4W=wrEZfD%2BdmZdiUtvi0PHZyvB9k9f=vxyTcF6s8ww@mail.gmail.com>
In-Reply-To: <20150907103435.Horde.z4GgTZD3-chqVxPgZhMklyM@duttonbros.com>
References:  <20150907103435.Horde.z4GgTZD3-chqVxPgZhMklyM@duttonbros.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--001a113d6772d7b858051f2e1ec4
Content-Type: text/plain; charset=UTF-8

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: <Intel(R) C600 Series Chipset SAS Controller (SATA mode)> 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,
> Brad
>
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>

--001a113d6772d7b858051f2e1ec4
Content-Type: application/octet-stream; name="isci_busmaster.patch"
Content-Disposition: attachment; filename="isci_busmaster.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ieadtkck0

ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaXNjaS9pc2NpLmMgYi9zeXMvZGV2L2lzY2kvaXNjaS5jCmlu
ZGV4IDJmMDcyN2QuLjVhMTA2NmMgMTAwNjQ0Ci0tLSBhL3N5cy9kZXYvaXNjaS9pc2NpLmMKKysr
IGIvc3lzL2Rldi9pc2NpL2lzY2kuYwpAQCAtMTYzLDYgKzE2Myw3IEBAIGlzY2lfYXR0YWNoKGRl
dmljZV90IGRldmljZSkKIAogCWdfaXNjaSA9IGlzY2k7CiAJaXNjaS0+ZGV2aWNlID0gZGV2aWNl
OworCXBjaV9lbmFibGVfYnVzbWFzdGVyKGRldmljZSk7CiAKIAlpc2NpX2FsbG9jYXRlX3BjaV9t
ZW1vcnkoaXNjaSk7CiAKQEAgLTI3Miw2ICsyNzMsNyBAQCBpc2NpX2RldGFjaChkZXZpY2VfdCBk
ZXZpY2UpCiAKIAkJcGNpX3JlbGVhc2VfbXNpKGRldmljZSk7CiAJfQorCXBjaV9kaXNhYmxlX2J1
c21hc3RlcihkZXZpY2UpOwogCiAJcmV0dXJuICgwKTsKIH0K
--001a113d6772d7b858051f2e1ec4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJP=Hc_%2B4W=wrEZfD%2BdmZdiUtvi0PHZyvB9k9f=vxyTcF6s8ww>