From owner-freebsd-virtualization@freebsd.org Wed May 17 00:49:40 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 2D5D9D702EF for ; Wed, 17 May 2017 00:49:40 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (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 E490D10D3 for ; Wed, 17 May 2017 00:49:39 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: by mail-oi0-x234.google.com with SMTP id h4so46297848oib.3 for ; Tue, 16 May 2017 17:49:39 -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; bh=RYZHvseIt4n2+3WQI9xRvKoVu1SK0Mgx8K6RaxSubdU=; b=g8Sc5/351rZlUark0e4DjPMmNN97w60xPNl2eYuukY8KdZTbrm/8wzFZvlRXDomRl/ yQ8KsLcYIeYNie/KFUVXb6nVEWDam8lu3bLAZHTE0pOwyiirqbo4OrYUA2KM3hiqFrAm V+vLjmTnr5FU3hpZCWZrFHVbw79sx/of0DASEdMc/M5lzH4aOEoaSv2kH+b6sp4K4ZAn P2rXlIDDGUgNhH9x63CxBHWIe+fspzpGdgYeGOwLKjXzuuFwuPUsYX3HuXZ9DRAw6hvp OlXAzIyGcmOp5pAEwo6//8LVmPBihEcpHloGnCADRlc6k23nan7OlGszcbIpEXs9clG9 aTOA== 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; bh=RYZHvseIt4n2+3WQI9xRvKoVu1SK0Mgx8K6RaxSubdU=; b=pht8e2GEZRWpSLMW1aTT/FtAabM/T7PS+T1qAaVBqM2wnhyni+4Jj1JRn4niBzsPdH QYvttb3Zm3wW5u3y3fGTOvJff8iB9N3lT/MNIdKWlZ34R70OyEJKI9zWNiksIgp0T4UH ah1KnEq8ETyO7C9LuoZ2Vk3H3WHW1MCLC30+yAW6BOJeoPSxd26IUpD5YZZx+rS0r/mW X+MFKSEZLtGPyArEVLAWQ58REnNdkmQsQhMaou/ZOhw4HErMEP+3Pmo3J6HbZpd2LcRb oNjCC+dWM2YEAJPaVRcryeOYkZ1jTFo/4T7n/UhkA5TLACwf4L1D4EL5vmpIlMpuQqJO KAkQ== X-Gm-Message-State: AODbwcDGVtoLWhDqAlGqTSTB4aNjz2Xam8OyXpFFE7Gx/IhegpYOTMDJ ELwUy3x11WmaJs0NltQ= X-Received: by 10.202.6.196 with SMTP id 187mr454918oig.58.1494982179129; Tue, 16 May 2017 17:49:39 -0700 (PDT) Received: from ?IPv6:2601:2c2:200:24bb:80e5:eed3:7a84:e697? ([2601:2c2:200:24bb:80e5:eed3:7a84:e697]) by smtp.gmail.com with ESMTPSA id w197sm253865oie.8.2017.05.16.17.49.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 May 2017 17:49:38 -0700 (PDT) Subject: Re: PCIE card with USB ports To: freebsd-virtualization@freebsd.org References: <201705152015.v4FKFOFW054596@pdx.rh.CN85.dnsmgr.net> From: Rajil Saraswat Message-ID: <8ef4d8db-3268-d12c-ef0c-b39ad1e4efbf@gmail.com> Date: Tue, 16 May 2017 19:49:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <201705152015.v4FKFOFW054596@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Wed, 17 May 2017 00:49:40 -0000 On 05/15/2017 03:15 PM, Rodney W. Grimes wrote: >> Rajil Saraswat wrote this message on Sun, May 14, 2017 at 16:03 -0500: >>> On 05/14/2017 12:40 PM, John-Mark Gurney wrote: >>>> Rajil Saraswat wrote this message on Sat, May 13, 2017 at 20:34 -0500: >>>>> I am looking for a recommendation for an out-of-the-box working PCIE >>>>> card with USB controller. >>>> They all should just work. The driver interface is standardized and >>>> should just work no mater what card you pick. >>>> >>> I came across the following post wherein there was some issue with a >>> card. Is that no longer the problem in FreeBSD-11? >>> >>> https://lists.freebsd.org/pipermail/freebsd-virtualization/2015-February/003371.html >> Yes, it has been fixed/addressed and was committed before 11: >> https://svnweb.freebsd.org/base/head/usr.sbin/bhyve/pci_passthru.c?revision=297932&view=markup > One still must be very carefull about picking cards for pci passthru usage, > it has far tighter restrictions than "cards that just work with FreeBSD". > The card must have BAR's that are page aligned, and iirc of integral > multiple of page in size. > > Many cards fail this restriction. When I was doing the AMD/IOmmu > code testing for Anish about 50% of the cards I grabed to test with > failed because of these contrataints. These cards worked fine with > FreeBSD using them native. > > I tried this Mailiya card (https://www.amazon.com/gp/product/B01G86538S) based on Renesas uPD720201 chipset and it worked fine.