From owner-freebsd-virtualization@freebsd.org Thu Aug 17 03:05:51 2017 Return-Path: Delivered-To: freebsd-virtualization@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 E4603DB62AB for ; Thu, 17 Aug 2017 03:05:51 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: from mail-pg0-x232.google.com (mail-pg0-x232.google.com [IPv6:2607:f8b0:400e:c05::232]) (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 AE27D81C65 for ; Thu, 17 Aug 2017 03:05:51 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: by mail-pg0-x232.google.com with SMTP id t80so5815306pgb.5 for ; Wed, 16 Aug 2017 20:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=eJ6cibfxPhPvs2cJA+r6+UFhHiuwG2yXkAryYpjkil0=; b=VkyypuqCdG5EoHegIw+QOZSJTT6WF3sIs66VhqGGhmgxk/Gx6S14sWnIwGDqrS8UmB RmE3JHBIWWqtX35oqtPnHWGvoJp1fGI0ciEhe8bnJFemuKqiBuSR6dsfS8ykeMHMxc06 xHoxrwTTcb1KOCGSFKHROX4DbPq08yTkoKiRKb8LXIdKK59G/2KqbPsLswmWkfot/L2u IQhDpyOfCfjp+L8GioMoz+DmuV8kOGVcLy4rNhgrbM5NzUl8/jCKdIvUV46Wrur03Dtf B16+CiaaaVlJVlzsqnXvAcqlZkKwCnSSJuO1ZA75jJF1tRfmb17jmGbybXJwEH9iKJVY EYRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=eJ6cibfxPhPvs2cJA+r6+UFhHiuwG2yXkAryYpjkil0=; b=P3aTxouTYDyPetjTqeu3QBHPs8EwI8Ir4l7cgngTsrIEMEZ4+91zBqRCZJHWRQF3pk 1CYfaJPLa1r/hvd1KQfraNb1x5cV28woF4Q6b8iFi+X/AYadJiDkbEylhe+XWqd7oNC9 ldwvn53lqWu2sUHO2rR4sRxRl1NBoAsigLy/CPiTTVtGvkndTCxpvKxDUcJiYEOLSSYA W9KyMrDG8FkQg//4aqjWXa4rnN3np7or5hyqXECo2z31B40+lIf6iubd1xMFtc2SVhsx v/MY8bBSb6ZDL3y+CMxMQQeSsSYi0pnkJ29g3puNDeLfsFkFmmmlr5Pkmd4wxmKBLO/p taqA== X-Gm-Message-State: AHYfb5gAYDgdDQuy/QexReDRtjMxWCTrShhsYMKX2BsRzZsywpGj2HZ2 j1NWbFrfqmIgY3XqokA= X-Received: by 10.84.128.66 with SMTP id 60mr4071075pla.201.1502939150791; Wed, 16 Aug 2017 20:05:50 -0700 (PDT) Received: from [172.16.1.28] (c-73-232-201-213.hsd1.tx.comcast.net. [73.232.201.213]) by smtp.gmail.com with ESMTPSA id 67sm3470821pgg.42.2017.08.16.20.05.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Aug 2017 20:05:49 -0700 (PDT) Subject: Re: My USB card is a bhyve killer To: freebsd-virtualization References: <131a715e-67bd-e9fc-b5ce-755259c00b79@freebsd.org> From: Rajil Saraswat Message-ID: Date: Wed, 16 Aug 2017 22:05:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <131a715e-67bd-e9fc-b5ce-755259c00b79@freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 03:05:52 -0000 Unfortunately, i dont see a stderr log. I am using vm-bhyve for managing the vm's. # pciconf -l -BbcV pci0:129:0:0 ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 rev=0x10 hdr=0x00 bar [10] = type Memory, range 64, base 0xfb200000, size 65536, enabled bar [18] = type Memory, range 64, base 0xfb211000, size 4096, enabled bar [20] = type Memory, range 64, base 0xfb210000, size 4096, enabled cap 01[40] = powerspec 3 supports D0 D1 D3 current D0 cap 05[50] = MSI supports 8 messages, 64 bit cap 10[70] = PCI-Express 2 endpoint max data 256(512) NS link x1(x1) speed 5.0(5.0) ASPM disabled(L0s/L1) cap 11[b0] = MSI-X supports 8 messages Table in map 0x18[0x0], PBA in map 0x20[0x0] ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected I havent yet managed to get a USB card to work stably with FreeBSD 11.1 [1]. This is my third card. They work fine if i boot into Ubuntu linux. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221491 On 08/16/2017 09:38 PM, Peter Grehan wrote: > Hi, > >> I have a PCIe USB card which is exported to the bhyve vm using >> passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos >> 7. Each time the OS has given a segmentation fault on bootup and killed >> the bhyve session. This is what i get in the bhyve-log: > > Is stderr logged anywhere ? That may have additional error output > from the bhyve passthru code. > >> The USB card works fine on the host and is detected by the xhci driver. >> The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card >> - Interface USB 3.0 4-Port" >> (https://www.amazon.com/gp/product/B00B6ZCNGM) >> >> ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 >> rev=0x10 hdr=0x00 >> vendor = 'Fresco Logic' >> device = 'FL1100 USB 3.0 Host Controller' >> class = serial bus >> subclass = USB > > Would you be able to post the output of > > pciconf -l -BbcV pci0:129:0:0 > > later, > > Peter.