Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2023 23:18:58 +1030
From:      "Daniel O'Connor" <darius@dons.net.au>
To:        Mario Marietto <marietto2008@gmail.com>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: devctl: Failed to detach pci0:1:0:0: Device busy / devctl: Failed to set pci0:1:0:0 driver to ppt: Device busy
Message-ID:  <128F6D81-D71B-4BC7-9143-8205E826088F@dons.net.au>
In-Reply-To: <CA%2B1FSiiA3vn7saY4Xnhh1AwfO54f_pKxpPzB1KoECB_SG7=p6A@mail.gmail.com>
References:  <CA%2B1FSigT376-VQoKM-D96fpUZi5MWDbdNjjeAgdhnWs0vVzN-A@mail.gmail.com> <09A3D05B-E269-437F-8ACB-A150EBCACF4E@dons.net.au> <CA%2B1FSiiA3vn7saY4Xnhh1AwfO54f_pKxpPzB1KoECB_SG7=p6A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 1 Feb 2023, at 21:41, Mario Marietto <marietto2008@gmail.com> =
wrote:
> ---> Do you have 'vmm_load=3D"YES"' in loader.conf ?
>=20
> yes.
>=20
> ---> If you want to pass through the video card (as evidenced by =
devctl and pptdevs) then why have the nvidia driver installed?
>=20
> because I have 3 gpus on my PC. I use the intel gpu on the host ; I =
would like to use the nvidia gtx 1060 within a bhyve Linux vm and the =
2080 ti with the Linuxulator to run stable diffusion,or vice versa. =
Stable diffusion needs pytorch + cuda and they need the nVidia driver =
installed on FreeBSD and the modules loaded.
>=20
> My goal is to run stable diffusion and a bhyve / linux vm +my nvidia =
gpus attached.

I note that https://wiki.freebsd.org/bhyve/pci_passthru says "Note: VGA =
/ GPU pass-through devices are not currently supported" so perhaps that =
is why it is ignoring your pptdevs line.

Although that said some googling suggests that is not the case so I =
don't know, unfortunately I haven't tried it myself.

There are some threads about it on the forums, eg:
https://forums.freebsd.org/threads/bhyve-gpu-pass-through.83152/

Those suggest that modifications to bhyve are required before it will =
work properly but none of them are for vmm that I can see.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?128F6D81-D71B-4BC7-9143-8205E826088F>