From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 13 19:19:35 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85D5A33C for ; Mon, 13 Apr 2015 19:19:35 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (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 2434D970 for ; Mon, 13 Apr 2015 19:19:35 +0000 (UTC) Received: by widdi4 with SMTP id di4so85762499wid.0 for ; Mon, 13 Apr 2015 12:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vFu4r+QW2bapKBedeT3ZF9W29Wozb1FPqB/kSYYyx0I=; b=p2vVNzrY1fMRBE+6K1p39psRjghBhogBWpFfyRxSuNQl7UGpM7HJQE61DMOgd44/JA UJfmCuR8LLD/KcEqoB3dhaIapHyPm2n4StsTebkY47J9chWRKBEg+XuQxDcklrFMSAfb OZQ9KwYTjtVwllBWxSoCpzZVXqI9AmepAKNqx075Szvn8o8D2wrvWj69TNtyTfc5F1q2 /gJub2OEyWUhOyyMyilqZ+j4S9tRM2XYwkYLURnaPfCOt1It4Xilp9dMWKYgthjFJYqJ vOOK6NummupHkgtGOYgdGj1vJRAF3kog1iFxLstU2mQ4qpUXt7Ky6UuoIRywT+UAedp4 h+Pg== MIME-Version: 1.0 X-Received: by 10.194.89.7 with SMTP id bk7mr30342362wjb.127.1428952773641; Mon, 13 Apr 2015 12:19:33 -0700 (PDT) Received: by 10.27.9.9 with HTTP; Mon, 13 Apr 2015 12:19:33 -0700 (PDT) In-Reply-To: References: Date: Mon, 13 Apr 2015 12:19:33 -0700 Message-ID: Subject: Re: Problem hiding USB host controller From: Neel Natu To: "Luis P. Mendes" Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 13 Apr 2015 19:19:35 -0000 Hi Luis, On Fri, Apr 10, 2015 at 4:50 PM, Luis P. Mendes wrote: > Hi Neel, > > > I updated my STABLE to r281384M and applied the patch. It seems that > the patch solved the issue: > > # pciconf -vl | grep ppt > ppt0@pci0:0:20:0: class=0x0c0330 card=0x8c311849 chip=0x8c318086 > rev=0x05 hdr=0x00 > ppt1@pci0:0:26:0: class=0x0c0320 card=0x8c2d1849 chip=0x8c2d8086 > rev=0x05 hdr=0x00 > ppt2@pci0:1:0:0: class=0x010601 card=0x91721849 chip=0x91721b4b > rev=0x11 hdr=0x00 > > As I'm not a developer, please tell me whether this patch will be > added to STABLE or if I need to patch again when I update the system > in the future. > I have committed the patch to HEAD: https://svnweb.freebsd.org/base?view=revision&revision=281499 I'll MFC it to 10-stable in a couple of weeks. best Neel > Thank you very much, > > > Luis > > 2015-04-10 6:30 GMT+01:00 Neel Natu : >> Hi Luis, >> >> This following patch should do the trick: >> https://people.freebsd.org/~neel/patches/usb_pci_probe_default.patch >> >> The patch is against -current although it applies cleanly to 10-stable as well. >> >> best >> Neel >> >> On Thu, Apr 9, 2015 at 3:32 PM, Luis P. Mendes wrote: >>> Hi, >>> >>> 2015-04-09 22:25 GMT+01:00 Neel Natu : >>>> Hi Luis, >>>> >>>> On Thu, Apr 9, 2015 at 1:43 PM, Luis P. Mendes wrote: >>>>> Hi, >>>>> >>>>> I'm trying to passthrough a USB host controller (2.0 or 3.0) but there >>>>> seems to be some kind of problem. >>>>> >>>>> # uname -a >>>>> FreeBSD leao 10.1-STABLE FreeBSD 10.1-STABLE #0 r279201: Mon Feb 23 >>>>> 18:55:46 UTC 2015 >>>>> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >>>>> >>>>> VT-d is enabled in bios. >>>>> CPU is a Intel Xeon E3-1246v3 Haswell >>>>> >>>>> >>>>> # cat /boot/loader.conf >>>>> # load radeon firmware not presented >>>>> pptdevs="0/26/0 1/0/0 0/20/0" >>>>> blackhole_load="YES" >>>>> >>>>> # pciconf -lv >>>>> # only relevant >>>>> ehci0@pci0:0:26:0: class=0x0c0320 card=0x8c2d1849 chip=0x8c2d8086 >>>>> rev=0x05 hdr=0x00 >>>>> vendor = 'Intel Corporation' >>>>> device = 'Lynx Point USB Enhanced Host Controller' >>>>> class = serial bus >>>>> subclass = USB >>>>> >>>>> xhci0@pci0:0:20:0: class=0x0c0330 card=0x8c311849 chip=0x8c318086 >>>>> rev=0x05 hdr=0x00 >>>>> vendor = 'Intel Corporation' >>>>> device = 'Lynx Point USB xHCI Host Controller' >>>>> class = serial bus >>>>> subclass = USB >>>>> >>>>> ppt0@pci0:1:0:0: class=0x010601 card=0x91721849 chip=0x91721b4b >>>>> rev=0x11 hdr=0x00 >>>>> >>>>> >>>>> Only the 1:0:0 disk controler is hidden. The two USB controllers, one >>>>> ehci and one xhci are not. >>>>> >>>>> Why don't the controllers get hidden? >>>>> Is the blackhole_load="YES" still relevant? I tried with and without >>>>> that line to no avail. >>>>> Is my STABLE version too old? >>>>> >>>> >>>> The blackhole driver is not needed anymore since that functionality >>>> was moved into vmm.ko. >>>> >>>> Can you replace the line blackhole_load="YES" to vmm_load="YES" in loader.conf? >>> >>> The vmm_load="YES" line was already present. >>> The full contents of the file are: >>> >>> % cat /boot/loader.conf >>> net.fibs=4 >>> >>> radeonkmsfw_CAICOS_pfp_load="YES" >>> radeonkmsfw_CAICOS_me_load="YES" >>> radeonkmsfw_BTC_rlc_load="YES" >>> radeonkmsfw_CAICOS_mc_load="YES" >>> radeonkms_load="YES" >>> >>> vmm_load="YES" >>> nmdm_load="YES" >>> if_bridge_load="YES" >>> if_tap_load="YES" >>> >>> pptdevs="1/0/0 0/20/0 0/26/0" >>> >>> >>> >>> Thanks, >>> >>> >>> Luis