From nobody Tue Feb 8 20:01:17 2022 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 607A819BD685 for ; Tue, 8 Feb 2022 20:01:34 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JtYmn0JZlz3C2v for ; Tue, 8 Feb 2022 20:01:29 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-yb1-xb35.google.com with SMTP id bt13so29105010ybb.2 for ; Tue, 08 Feb 2022 12:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8R/G6k1PeYa/gFv53p5qJMddE61FMW2Lohv3BjXi5qw=; b=CqKN3ZRe0GDLW2RrL0l8SY4FQhJqkQSPUrWzLPhML5SJ3ctWwJw1ULVKgvduaXa4jA AAJLLvtbDH8H8Mav3oysyvcWDXG27wUnL4pazxcE499WwBV58t0snq6AI2Z2lUP4f8P0 Bac2ygQV5Ny2VQB2Nj/GHZr95wcc5KrsNE6QayK5hfsTnUw0c3BBxB6BOibKyYZQ6KG8 6UckEe04YYANg/72bb6QJvAYAu8v6j9Q8VnilhYUof4gYOR4Mtkf1XjFXPsAdbqjZYpo Pxh3SyhG0aDp+H3gQVQcp6G2vVueh8ZwlXYTab1QFkZIjYalIYwKU5DrgqfdCSn7vH9q JNvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8R/G6k1PeYa/gFv53p5qJMddE61FMW2Lohv3BjXi5qw=; b=BDzP8JiGiehZRJ71c1erYQGd5HEdUkCvGCADtl5ewJgCy/oW3U4ZL5yWYQxS060q04 7gTCO7TQ3WZ1T7SZxOjzmcdd6FG8OOhWDVcgc8rK09TURYrivFKsAfGcRnFJoDWIztMl b2s1kt6cp5ZGkAYQnVtItFephH+MMtFqWpt7zbdOW4e7ELr7Sp46Jy8kBnjyCw15QWZ4 fL1Nf4rMFSrcjdxtcj5u/DBEMcvOsTU/B38+d+ebKpaTmbrQC70JWSXOwOxYizeGsLvo 1pLNcIh8U6vImMe4EVJEokAl2tU4vEEi9k3ASm+/UR0XLtT8iD6a5A+a9KYjnpqkMUnK 2c0A== X-Gm-Message-State: AOAM532EoTg6WPiNKibQOoyVDBvFUaRg4oW+GO09Zv1ACgyEVD9U/7d6 SI2DcqNPKI3amXdZhvLyMjbw3uM+iEE4OltHnG8TieqT X-Google-Smtp-Source: ABdhPJxaxSqBR2E65JLKGMYPWRbmEAQ/VHoiH0cVe5vd3ZhSOoDg03wUNy9+NgOVcsB2SKOiaauZnm8HXJ7GTsxVZEI= X-Received: by 2002:a25:35c5:: with SMTP id c188mr6380200yba.700.1644350488457; Tue, 08 Feb 2022 12:01:28 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Aryeh Friedman Date: Tue, 8 Feb 2022 15:01:17 -0500 Message-ID: Subject: Re: Multiple bugs on bhyve present on FreeBSD 13R p7 while passing thru USB controller and graphic card To: Mario Marietto Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000c03a0105d7872e3e" X-Rspamd-Queue-Id: 4JtYmn0JZlz3C2v X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=CqKN3ZRe; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::b35 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::b35:server fail]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b35:from]; MLMMJ_DEST(0.00)[freebsd-virtualization]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000c03a0105d7872e3e Content-Type: text/plain; charset="UTF-8" On Tue, Feb 8, 2022 at 12:46 PM Mario Marietto wrote: > In my system I have two graphic cards. This is the first one,configured as > default from the bios and used on the freebsd host : > > vgapci0@pci0:0:2:0: class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 > device=0x3e98 subvendor=0x1458 subdevice=0xd000 > vendor = 'Intel Corporation' > device = 'CoffeeLake-S GT2 [UHD Graphics 630]' > class = display > subclass = VGA > > > the USB controller that I'm trying to pass thru is the following : > > ppt0@pci0:1:0:0: class=0x0c0330 rev=0x03 hdr=0x00 vendor=0x1912 > device=0x0014 subvendor=0x1912 subdevice=0x0015 > vendor = 'Renesas Technology Corp.' > device = 'uPD720201 USB 3.0 Host Controller' > class = serial bus > subclass = USB > Is it on a completely different USB bus than any USB devices used by the host? > > the graphic card that I'm trying to pass thru is the following : > > ppt1@pci0:2:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x1e04 subvendor=0x19da subdevice=0x2503 > vendor = 'NVIDIA Corporation' > device = 'TU102 [GeForce RTX 2080 Ti]' > class = display > subclass = VGA > Is your "host" graphics card also a nVidia and do you have x11/nvidia-driver installed? If so the kernel module will load both of them in the host's /dev dir. -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org --000000000000c03a0105d7872e3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Feb 8, 2022 at 12:46 PM Mario= Marietto <marietto2008@gmail.= com> wrote:
In my system I have two graphic cards. This is the= first one,configured as default from the bios and used on the freebsd host= :

vgapci0@pci0:0:2:= 0: =C2=A0=C2=A0=C2=A0=C2=A0class=3D0x030000 rev=3D0x02 hdr=3D0x00 vendor=3D= 0x8086 device=3D0x3e98 subvendor=3D0x1458 subdevice=3D0xd000
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'Intel= Corporation'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'CoffeeLake-S= GT2 [UHD Graphics 630]'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D VGA


= the USB controller that I'm trying to pass thru is the following :

ppt0@pci0:1:0:0: =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c0330 rev=3D0x03 hdr=3D0x00 ven= dor=3D0x1912 device=3D0x0014 subvendor=3D0x1912 subdevice=3D0x0015
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'Renes= as Technology Corp.'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'uPD720201 US= B 3.0 Host Controller'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D serial bus
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D USB

Is it on a completely different USB bus = than any USB devices used by the host?
=C2=A0
=C2=A0
=
the graphic card t= hat I'm trying to pass thru is the following :

ppt1@pci0:2:0:0: =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x00 ven= dor=3D0x10de device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 [GeFor= ce RTX 2080 Ti]'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D VGA

Is your &quo= t;host" graphics card also a nVidia and do you have x11/nvidia-driver = installed?=C2=A0 If so the kernel module will load both of them in the host= 's /dev dir.



--
Aryeh M. Friedman, Lead Devel= oper, http://www.P= etiteCloud.org
--000000000000c03a0105d7872e3e--