From owner-freebsd-virtualization@freebsd.org Mon Apr 5 13:54:40 2021 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6160E5BA0A4 for ; Mon, 5 Apr 2021 13:54:40 +0000 (UTC) (envelope-from khng@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FDXG82Jgcz4bcM for ; Mon, 5 Apr 2021 13:54:40 +0000 (UTC) (envelope-from khng@FreeBSD.org) Received: from Kas-MacBook-Pro.lan (unknown [IPv6:2001:470:f816:0:88c1:d417:34c4:fb7a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: khng/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id CF0DD1A00 for ; Mon, 5 Apr 2021 13:54:39 +0000 (UTC) (envelope-from khng@FreeBSD.org) Subject: Re: bhyve iommu passthru ath0 To: freebsd-virtualization@freebsd.org References: <275fb099-a036-05fc-bd1f-706e1d01ff98@gmx.at> From: Ka Ho Ng Message-ID: Date: Mon, 5 Apr 2021 21:54:37 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 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, 05 Apr 2021 13:54:40 -0000 On 4/5/21 8:35 pm, infoomatic wrote: > fyi: I gave 13.0-RC4 a try, but this did not work out neither... > > > On 28.03.21 21:56, infoomatic wrote: >> Hi all, >> >> I own a pcengines apu2e4 where bhyve passthru is working in general. >> Passing through the i210AT NICs works fine. However, I bought a Compex >> WLE200NX a/b/g/n miniPCI card which is based on the Qualcomm Atheros >> AR9280 chip I also want to pass through. >> >> On the host I am running 12.2-RELEASE-p5. >> >> my loader.conf: >> >> hw.vmm.amdvi.enable=1 >> vmm_load="YES" >> pptdevs="1/0/0 3/0/0 4/0/0" >> hw.vmm.iommu.enable=1 >> >> >> pciconf -lv gives (relevant info; with igb0 used on the host): >> >> ppt0@pci0:1:0:0:    class=0x028000 card=0x3099168c chip=0x002a168c >> rev=0x01 hdr=0x00 >>     vendor     = 'Qualcomm Atheros' >>     device     = 'AR928X Wireless Network Adapter (PCI-Express)' >>     class      = network >> igb0@pci0:2:0:0:    class=0x020000 card=0x00008086 chip=0x157b8086 >> rev=0x03 hdr=0x00 >>     vendor     = 'Intel Corporation' >>     device     = 'I210 Gigabit Network Connection' >>     class      = network >>     subclass   = ethernet >> ppt1@pci0:3:0:0:    class=0x020000 card=0x00008086 chip=0x157b8086 >> rev=0x03 hdr=0x00 >>     vendor     = 'Intel Corporation' >>     device     = 'I210 Gigabit Network Connection' >>     class      = network >>     subclass   = ethernet >> ppt2@pci0:4:0:0:    class=0x020000 card=0x00008086 chip=0x157b8086 >> rev=0x03 hdr=0x00 >>     vendor     = 'Intel Corporation' >>     device     = 'I210 Gigabit Network Connection' >>     class      = network >>     subclass   = ethernet >> >> >> in my vm-bhyve config I have >> passthru0="1/0/0" >> passthru1="4/0/0" >> >> >> which works nicely with the i210 adapter, but not with the wifi adapter. >> The wifi adapter also works when not passing through and using it via >> the host. In the VM (tried both the 12.2-RELEASE and 13.0-RC3), I have >> tried to load/unload various modules (or e.g. tried >> dev.ath.0.hal.force_full_reset=1), I do not get any connections, wifi >> scans/lists do not work. Other configurations result in "ath0: Device >> timeout" or in "wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1". >> >> >> Any ideas how to resolve that? >> >> >> Regards, >> >> Robert >> >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > Could you cherry-pick the follow commits and see if they works? ede14736fd6d74db0374f4a233491ad5dc0e9b1d 74ada297e8978b8efda3dffdd1bb24aee7c5faa4 cf76495e0a30043503ef126f0a485e314730a221 03efa462b2ab3ae8166598363e9e83d4e5cf0398 Ka Ho