Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2017 13:15:24 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        Rajil Saraswat <rajil.s@gmail.com>, freebsd-virtualization@freebsd.org
Subject:   Re: PCIE card with USB ports
Message-ID:  <201705152015.v4FKFOFW054596@pdx.rh.CN85.dnsmgr.net>
In-Reply-To: <20170515155043.GA2042@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.


-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705152015.v4FKFOFW054596>