Date: Sun, 28 Mar 2021 21:56:35 +0200 From: infoomatic <infoomatic@gmx.at> To: freebsd-virtualization@freebsd.org Subject: bhyve iommu passthru ath0 Message-ID: <275fb099-a036-05fc-bd1f-706e1d01ff98@gmx.at>
next in thread | raw e-mail | index | archive | help
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=3D1 vmm_load=3D"YES" pptdevs=3D"1/0/0 3/0/0 4/0/0" hw.vmm.iommu.enable=3D1 pciconf -lv gives (relevant info; with igb0 used on the host): ppt0@pci0:1:0:0:=C2=A0=C2=A0=C2=A0 class=3D0x028000 card=3D0x3099168c chip= =3D0x002a168c rev=3D0x01 hdr=3D0x00 =C2=A0=C2=A0=C2=A0 vendor=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'Qualcomm Atheros' =C2=A0=C2=A0=C2=A0 device=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'AR928X Wireless Net= work Adapter (PCI-Express)' =C2=A0=C2=A0=C2=A0 class=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D network igb0@pci0:2:0:0:=C2=A0=C2=A0=C2=A0 class=3D0x020000 card=3D0x00008086 chip= =3D0x157b8086 rev=3D0x03 hdr=3D0x00 =C2=A0=C2=A0=C2=A0 vendor=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'Intel Corporation' =C2=A0=C2=A0=C2=A0 device=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'I210 Gigabit Networ= k Connection' =C2=A0=C2=A0=C2=A0 class=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D network =C2=A0=C2=A0=C2=A0 subclass=C2=A0=C2=A0 =3D ethernet ppt1@pci0:3:0:0:=C2=A0=C2=A0=C2=A0 class=3D0x020000 card=3D0x00008086 chip= =3D0x157b8086 rev=3D0x03 hdr=3D0x00 =C2=A0=C2=A0=C2=A0 vendor=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'Intel Corporation' =C2=A0=C2=A0=C2=A0 device=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'I210 Gigabit Networ= k Connection' =C2=A0=C2=A0=C2=A0 class=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D network =C2=A0=C2=A0=C2=A0 subclass=C2=A0=C2=A0 =3D ethernet ppt2@pci0:4:0:0:=C2=A0=C2=A0=C2=A0 class=3D0x020000 card=3D0x00008086 chip= =3D0x157b8086 rev=3D0x03 hdr=3D0x00 =C2=A0=C2=A0=C2=A0 vendor=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'Intel Corporation' =C2=A0=C2=A0=C2=A0 device=C2=A0=C2=A0=C2=A0=C2=A0 =3D 'I210 Gigabit Networ= k Connection' =C2=A0=C2=A0=C2=A0 class=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D network =C2=A0=C2=A0=C2=A0 subclass=C2=A0=C2=A0 =3D ethernet in my vm-bhyve config I have passthru0=3D"1/0/0" passthru1=3D"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=3D1), 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=3D-1 retry=3D1". Any ideas how to resolve that? Regards, Robert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?275fb099-a036-05fc-bd1f-706e1d01ff98>