From owner-freebsd-virtualization@freebsd.org Mon Apr 5 12:35:08 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 2F9A65B69B3 for ; Mon, 5 Apr 2021 12:35:08 +0000 (UTC) (envelope-from infoomatic@gmx.at) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FDVVM01qtz4TSV for ; Mon, 5 Apr 2021 12:35:06 +0000 (UTC) (envelope-from infoomatic@gmx.at) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617626104; bh=RQWwux9/2o5Htykhpv8HptdE0dRc4g2EawSazLcQXS8=; h=X-UI-Sender-Class:Subject:From:To:References:Date:In-Reply-To; b=eYaLBPYojyIsqIYC3fA9cVJtTz0BPvFZEx2kdD1TakDk+ZdXkx+tx8ScEZq8pSEOs AvN6Bo8aM267GwILW/tH6b0w77rYYI6bxPfPiUttoYDaDneqLw35AYHW/qK2MplYEB xDZYqGJQ+IxD/dMWojFM/+XnFGTskfqgCbBCR3l4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.0.1.209] ([178.114.234.120]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M5fIQ-1lV4CI3DOk-007G08 for ; Mon, 05 Apr 2021 14:35:04 +0200 Subject: Re: bhyve iommu passthru ath0 From: infoomatic To: freebsd-virtualization@freebsd.org References: <275fb099-a036-05fc-bd1f-706e1d01ff98@gmx.at> Message-ID: Date: Mon, 5 Apr 2021 14:35:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <275fb099-a036-05fc-bd1f-706e1d01ff98@gmx.at> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:o18bPuoanyi+gHYuZ75Eo2bFBNqrD0A0sItH8FJe6v+Z83Kkqrw gChdKxRPoi6/jIoQnOpg84oUIklI/t7dtp6vdB8W5/+oI/hgPrBpfWkWY005HHoCob/Ryh0 I9n2eatm0I+r/POPJsyqe43B3WuY+oTBx5bmMFzsLKZk07cVKgUCYl/d/yjRs20XQz6esMx Q5OAIcbpYL/pLpz/B2aOw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:EmEV7qw3I9U=:8wSLzIC66ulU7VYkWVwrE4 7X/ZWq/ulRnsAYYXukdmUZ0+NEul+LWxz5jPZo7oe5awd7gcU3STbdI7xLq2r6LKl7V0VKQxh qtu5HhRWD03s54ohYsCg9mX3Ds+nUcm+DIdiJ3mF8EP8/fBU96z7QVPrGb36NeCbfPM4fvUD8 ahhVdQ4//oCA/Sq8hsymoGLCnsH2Y6gZLeYilnSs4qLhChaUQwvMornQoXO11Z+k2hSaTwrbQ UCVX6EwrHW/Lyw8E4VY1s8fQX9akiZDSeJYv6Zfetb9n167AR/HXY73dwPjagCmyF6kwtlsiG rYNUmUKPUAE0yxRFaYRS+mHH6VqZnmjTwVQm30QFwl7pbu1pswKKFsfnWwCva0bhcNwV7WfXx AF+XmKZTodS6r0FtlgIpnWzwBaUfCHjX92P2hFWEZYXha3840WkrwFPpFlniyMtC0DlWkja9C rpUvFx8WIEwPmucXW7LCRsZqdwUmsYXpJLolrca7jakGkbhWbD/aaVEtGcoPrF6taVjaN78pc YLxot4NsrMywmou8XTutBZ/Jw4ga2f/0Ng6VwPBVtf4z9uAp2W949bgt3ktTNWlfnYNzJNaXS z0aPf003SQcVBEuytmm9Wj2HKhpN/T/gtzybsfS9YMoP7A9N+0HfTXP2AFfopkxIDpp9RRx7F 7+k4DstSR2u/cAgYNgMewsCPSmuD6kFwGnUVSLjVGauVKPfLek+vGqCeqIx3Bw/C+s2QOHWCV wR6uOkZg+dRSMphYep6ypoCOCiY+MnOUL+ZI4mKF582WIlVX2je5fv9Dile+eyrhrgTDhNBLs k1wK5L8ld1NXEG6buycigxKUpMLMNwOESBlazhHISOUDmifpme++HYd2P5Ly/KYeiqa7MTUPP w+GVs6uhYRrxR/Vo7njCU0kuLkbzTfojYwkvZXNnRZ24HCNBkV7kPVIPeDwJ0ed+C/wAei75P 1HkBJZwwuAQ0kk9wyHNZcqk6zg7f4ZHBnbNCnVUoZgWBxLxSSt59pY+1XflEz8jsbca36Cb+o WdO3z7MGx0JNLG9270qdBXfnxcLziYDXMQR/c3gzTTdopEDUcI2FUegwQA6kUG1/ofr9M0F2Z Hcw5bAj1oA1pv43fBgdAkeYM4lOmKj1mByKkna1zT/mRckoWtu7xTx52MAajVXzTL+tvfaKIa xAaSPF1U8uKv9zm0PhBs2ZvpYIqom+ZMWAagAyXK+MVV1d1ji6QUDCZy6Z7neAWtoiwfo= X-Rspamd-Queue-Id: 4FDVVM01qtz4TSV X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=eYaLBPYo; dmarc=pass (policy=none) header.from=gmx.at; spf=pass (mx1.freebsd.org: domain of infoomatic@gmx.at designates 212.227.17.21 as permitted sender) smtp.mailfrom=infoomatic@gmx.at X-Spamd-Result: default: False [-4.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[212.227.17.21:from]; FREEMAIL_FROM(0.00)[gmx.at]; R_SPF_ALLOW(-0.20)[+ip4:212.227.17.0/27]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; DMARC_POLICY_ALLOW(-0.50)[gmx.at,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.17.21:from]; FROM_EQ_ENVFROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.227.17.21:from]; FREEMAIL_ENVFROM(0.00)[gmx.at]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[212.227.17.21:from:127.0.2.255]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-virtualization] 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 12:35:08 -0000 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=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 ch= ip=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 N= etwork 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 ch= ip=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 Netw= ork 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 ch= ip=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 Netw= ork 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 ch= ip=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 Netw= ork 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 > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@fre= ebsd.org"