Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2023 23:47:20 +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:  <4E67D54E-CF0E-4A56-9B6B-51C359B7CEE2@dons.net.au>
In-Reply-To: <CA%2B1FSigVQr=B0FNvgWXHgTgSRWnc8cfo2zJf6azt2P1uLT%2BasQ@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> <128F6D81-D71B-4BC7-9143-8205E826088F@dons.net.au> <CA%2B1FSigVQr=B0FNvgWXHgTgSRWnc8cfo2zJf6azt2P1uLT%2BasQ@mail.gmail.com>

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


> On 3 Feb 2023, at 23:37, Mario Marietto <marietto2008@gmail.com> =
wrote:
> ---> If you want to pass through the video card (as evidenced by =
devctl and pptdevs) then why have the nvidia driver installed?
>=20
> Why did you say this ? Are you aware of some bug that prevents a pci =
device from being passed if its driver is installed ?=20

No, it just seems pointless to have a driver for a card that it will =
never attach to because it is 'stolen' by the passthrough driver.

> Maybe there is. Infact I made some progress. I have commented this =
line on /etc/rc.conf :
>=20
> #kld_list=3D"nvidia nvidia-modeset"
>=20
> and I've been able to detach and reattach the 4 slots of the 2080 ti. =
I think that if I load the nvidia modules on the rc.conf,they interfere =
with a later attaching / detaching of 1 or 2 slots of the gpu (hdac and =
vgapci). Do you think that it could be caused by a bug on the nvidia =
driver or in the bhyve source code ? What do you suggest I do ?

It seems very odd that loading the nvidia driver via rc.conf would =
'beat' the passthrough driver loaded earlier in loader.conf.

However I've never tried any pass through stuff so no idea sorry.

--
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?4E67D54E-CF0E-4A56-9B6B-51C359B7CEE2>