Date: Fri, 27 Jun 2025 08:38:37 +0200 From: Corvin =?ISO-8859-1?Q?K=F6hne?= <corvink@FreeBSD.org> To: Stephan Althaus <Stephan.Althaus@Duedinghausen.eu>, virtualization@freebsd.org Subject: Re: bhyve: GPU passthrough for Nvidia cards Message-ID: <a8ec0352318568f747cac3133c4e008ecdd85f60.camel@FreeBSD.org> In-Reply-To: <c0cf8b11-3e21-4296-860c-17b87c9f2588@Duedinghausen.eu> References: <4785074a005d66ed92e5670b9fa4ce45a5d65eba.camel@FreeBSD.org> <c0cf8b11-3e21-4296-860c-17b87c9f2588@Duedinghausen.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Thu, 2025-06-26 at 16:49 +0200, Stephan Althaus wrote: > On 6/26/25 15:07, Corvin Köhne 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 > > (unconnected). > > So, is it safe to set the INTPIN register or what has to be done for it 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 > > FYI, I'm working on a desktop system with an RTX A500 on 15.0-CURRENT. Ubuntu dmesg reports "NVRM: Can't find an IRQ for your NVIDIA card!" by default. Setting the INTPIN register solve this issue and the card can be detected by the nvidia-smi command. However, as mentioned in my initial post, I'm not sure what has to be emulated to be able to set the INTPIN in a sane way. -- Kind regards, Corvin [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmhePG0ACgkQ2FTaVjFe AmouZw//Tfr/DqXm4tjNioW3IYwGAgTgtxww4FMO7UmrimZNwGoYS45jbzaK1cSl cfmkgFPOhDEn4oxpzQnD9ivntBF8/lPcoVrs+dHKZ2bntaircEgDevH0qyE+Brt2 uLv2V0Kciz5CEfzCZwwc/CHwSholwP9fIDciuiPeIab1gtuqKlimpZoSduyJaP14 hkzpMNIPVNJvqdgXGi1dKn3BjNIwvMf3M7NixCCJxT+OH2eyxlwXZ1rG7VnISJQO 87/+qU8XTjPeT9FrzFtT/u6ApeM8++kBOAzbQB0V92U5HsELxq8PZyYZ0NgdtAOZ cCs5VGKopifrInrLzk7+lmsowuf0TOpLolndoFf3APDxyQ/U3gJvVnaG7mDPkgcD zWSZh5ooFfkGREPVDTym508VxjhtkUPkQPjTTA2OdGgmfm/H2IFgBzO2VsHMFhK4 umiXucOglOc63dGy0rzk55hQPB/KmTQ1AN01l5T5UG2JCfo18smQXM0+YnAg0p73 UV3BLptmxSWtQKoJA+HawKhnDpeISqcJ5FrpkejMBINRa3GuF6qFVWA44JkUZLVq 1Bkmwng8EgGmo7bNtSbaryzblLajs+5I04ymJkjJaUpejsB0zyxA8xqJVq+NHTEu pgdjKczQmRNndykRMkbK3wpwMrq6I4ZQxGaYorc86/Jk0ZlqZW4= =HlFW -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a8ec0352318568f747cac3133c4e008ecdd85f60.camel>
