From nobody Thu Jun 26 23:33:41 2025 X-Original-To: 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 4bSw4B1jCkz5yx4M for ; Thu, 26 Jun 2025 23:33:46 +0000 (UTC) (envelope-from rcocker87@gmail.com) Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bSw496jDsz3PYK; Thu, 26 Jun 2025 23:33:45 +0000 (UTC) (envelope-from rcocker87@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-3df2ccbb895so11358965ab.3; Thu, 26 Jun 2025 16:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750980823; x=1751585623; darn=freebsd.org; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=aXif1b6JifqgTkaJDpPrPotF2rJufp3xW3JMou5Z+Qk=; b=O6rpWkj/o3ledqj7IwWO3ttI1IAyl3FkDyP7qs2Ib2VMMhnG1nywKYgZpBRXSMyUaY 5nDJgUtEZs5s7eVHIal7oTbX8ucIfgtTC4sKxxhl0sBq38b7OtCcFhHoHbjwMEC60kg0 xGttYTy7f7dUqcUPUbL9uKW1aWjv/KTGNT1X60COSOnjw4iCaBlTerAHQus0foyoPUWI AnlPZWLgqUKVOjpEX7ngZbHOV0z2PQI+66dN7JcZMXU9Yuc9MEsehn418A99Nl1Skxjs KuOw0KKImDHaULDM3r3akU5NkttqoRH93RRD5fWGINTGUdce2VCbO1GAzk1/LeksMHVp sJsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750980823; x=1751585623; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aXif1b6JifqgTkaJDpPrPotF2rJufp3xW3JMou5Z+Qk=; b=GZgmyjKnlhEFNNFTNnS8KC8BiYm4NlTPQbereU+LQxUCywXke6qXp2lXA3ubPiCuwS ppWdXhFHSpE3hloBUxPQl1+V2xhrg7W0x+mZQ30CG0UlEmW+kBXmCf/pmkeNaFo1wHx0 GUep9ntZ2cGtXHtqUw0VpHggUQo4RK+mrf6/PVO5F749YAC146gVq5KsULlj0+Y8jimO WCONrixCn1904jRMrhdfnaehjmx23nBDj6YzDU/RA0qGbWT8SJam+D33j6ss6mQ8E3Ca gtHGEJswiFCfEPOAHnjyIzDyaiM1mvWqercj2iDKGSlmbPfnK3iwLp7/2/y7pZsXgOSk GcpA== X-Gm-Message-State: AOJu0Yz5kEwvj+GG4v5Nu4gey9YUKgavvdUfGp5IlCqS1RptgOIk1KVY dqgqhSHXsQgIPx0BcedgbMrKuaM+bklf63vTBE3tl3EcMMX3wd9awMK7vZE+0zER X-Gm-Gg: ASbGncuEG7j0TuuASfmeUFvBeIN7UP8PNa/4pJUJNiRAqRxCEzQQjvTE8YzxdJVdoDR GZPW3mccFa/zFp67JQX0b81pS4bSS/s/ad8rv/Zywg0pDOTtyhXrN0IxPmnuS5nUgLmFEW7ZHXo T9u7jJMRZ/zvZVRMF8Pt+U8PnYRzvsS1JtBvLfPuJ5BZLoRmcXYZ6GxJUPYmZOAGgMceCMk960e 2hQ8/rlBI6X7XPjelj6aGwvhJp9DKll2jSHmnfrT64PnXQdIwx5UisENe+i4VCBT7RJHb4j7eGP jN0Ovt/mJSG4TEaJ4dV3EThfYAT9ppJBZxtOTXeCWRWanHfZ4YBn3vuvCUnGoSSpmd5x3YMaFxz amugbuR4uymgS7GlrRTykoX00mozLoPH639WN+jUz80rEWmWZxP4= X-Google-Smtp-Source: AGHT+IGIHu2fOPegPvz3I+nCvyUnghQzEc2bOyZmlr5jtj1j+155KW9NJ2NdF4+yxmUhT3PxEAMN8w== X-Received: by 2002:a05:6e02:318f:b0:3dd:cacb:b88d with SMTP id e9e14a558f8ab-3df4ab8469amr17872485ab.14.1750980823066; Thu, 26 Jun 2025 16:33:43 -0700 (PDT) Received: from MN2PR20MB3168.namprd20.prod.outlook.com ([2603:1036:302:40c1::5]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3df49fd566dsm2708595ab.1.2025.06.26.16.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 16:33:42 -0700 (PDT) From: Robert Cocker To: Nuno Teixeira , Stephan Althaus CC: "virtualization@freebsd.org" Subject: Re: bhyve: GPU passthrough for Nvidia cards Thread-Topic: bhyve: GPU passthrough for Nvidia cards Thread-Index: AWw1NGUwNXUheFQ2uQax0hKrn7q3HTg3MDQxZ3hGU27aZgB13w== X-MS-Exchange-MessageSentRepresentingType: 1 Date: Thu, 26 Jun 2025 23:33:41 +0000 Message-ID: References: <4785074a005d66ed92e5670b9fa4ce45a5d65eba.camel@FreeBSD.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-ms-reactions: allow Content-Type: multipart/alternative; boundary="_000_MN2PR20MB31681D1566D16CA5E9DA7B5DFE7AAMN2PR20MB3168namp_" List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 X-Rspamd-Queue-Id: 4bSw496jDsz3PYK X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] --_000_MN2PR20MB31681D1566D16CA5E9DA7B5DFE7AAMN2PR20MB3168namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey group, I am also interested in this space of base system. Has anyone pulled the do= cumentation for what is currently available for GPU drivers for base system Robert ________________________________ From: owner-freebsd-virtualization@FreeBSD.org on behalf of Nuno Teixeira Sent: Thursday, June 26, 2025 4:47:36 PM To: Stephan Althaus Cc: virtualization@freebsd.org Subject: Re: bhyve: GPU passthrough for Nvidia cards Hello Stephan, A year a go I did try passtrhu a dedicated nvidia GTX 1650 while using inte= grated intel graphics (laptop Lenovo Legion 5 15IMH05). Windows detected ca= rd but nvidia drivers install failed at some point. On this laptop I did setup bios to use integrated graphics so I can passthr= u dedicated nvidia. Think I will give a new try since I follow main. Are you using laptops for this usecase? Thanks! Stephan Althaus > escreveu (quinta, 26/06/2025 =E0(s) 15:50): On 6/26/25 15:07, Corvin K=F6hne wrote: > Hi, > > I'm currently experimenting with GPU passthrough for Nvidia cards. All I = have to > do to make it work with Ubuntu guests, is setting the INTPIN register to = any > value instead of just 0x00. Unfortunately, I'm unfamiliar with PCI legacy > interrupts and how they work. The INTLINE register is set to 0xFF (unconn= ected). > So, is it safe to set the INTPIN register or what has to be done for it t= o work > as expected? > > Any help would be appreciated. > > Hi! You surely mean 'newer' NVidia cards, as my GT1030 works with FreeBSD 14.2 Host and ubuntu guest, NVIdia driver 570, (and Win guest btw) out-of-the-box, no kernel/driver modding... Regards, Stephan -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --_000_MN2PR20MB31681D1566D16CA5E9DA7B5DFE7AAMN2PR20MB3168namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey group,

I am also interested in this space of base system. Has anyone pulled the do= cumentation for what is currently available for GPU drivers for base system=  

Robert

From: owner-freebsd-virtual= ization@FreeBSD.org <owner-freebsd-virtualization@FreeBSD.org> on beh= alf of Nuno Teixeira <eduardo@freebsd.org>
Sent: Thursday, June 26, 2025 4:47:36 PM
To: Stephan Althaus <Stephan.Althaus@duedinghausen.eu>
Cc: virtualization@freebsd.org <virtualization@freebsd.org> Subject: Re: bhyve: GPU passthrough for Nvidia cards
 
Hello Stephan,

A year a go I did try passtrhu a dedicated nvidia GTX 1650 while using inte= grated intel graphics (laptop Lenovo Legion 5 15IMH05). Windows detected ca= rd but nvidia drivers install failed at some point.
On this laptop I did setup bios to use integrated graphics so I can passthr= u dedicated nvidia.

Think I will give a new try since I follow main.

Are you using laptops for this usecase?

Thanks!

Stephan Althaus <Stephan.Althaus@duedinghausen.eu&g= t; escreveu (quinta, 26/06/2025 =E0(s) 15:50):
On 6/26/25 15:07, Corvin K=F6hne wrote:
> Hi,
>
> I'm currently experimenting with GPU passthrough for Nvidia cards. All= I have to
> do to make it work with Ubuntu guests, is setting the INTPIN register = to any
> value instead of just 0x00. Unfortunately, I'm unfamiliar with PCI leg= acy
> interrupts and how they work. The INTLINE register is set to 0xFF (unc= onnected).
> So, is it safe to set the INTPIN register or what has to be done for i= t to work
> as expected?
>
> Any help would be appreciated.
>
>
Hi!

You surely mean 'newer' NVidia cards, as my GT1030 works with FreeBSD
14.2 Host and ubuntu guest, NVIdia driver 570, (and Win guest btw)
out-of-the-box, no kernel/driver modding...

Regards,

Stephan





--
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>= ;   Web:  https://FreeBSD.org
--_000_MN2PR20MB31681D1566D16CA5E9DA7B5DFE7AAMN2PR20MB3168namp_--