Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2023 14:22:39 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        "Daniel O'Connor" <darius@dons.net.au>
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:  <CA%2B1FSijWyKw6Su4xJf4CuCeLKgyH%2B_Bt29uhc4e2xioaZZE1Pg@mail.gmail.com>
In-Reply-To: <4E67D54E-CF0E-4A56-9B6B-51C359B7CEE2@dons.net.au>
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> <4E67D54E-CF0E-4A56-9B6B-51C359B7CEE2@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000082a63305f3cb957a
Content-Type: text/plain; charset="UTF-8"

To put the pci addresses under ppt using the loader.conf always worked for
me. I would like to understand why it does not work anymore for some
months. Maybe some new feature and some obscure bug has been introduced
inside the bhyve source code. This is important to understand why I'm not
able to attach / detach the nVidia driver from the host to the guest os and
it lets me think that your consideration may be relevant in some way.

Il giorno ven 3 feb 2023 alle ore 14:17 Daniel O'Connor <darius@dons.net.au>
ha scritto:

>
>
> > 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?
> >
> > Why did you say this ? Are you aware of some bug that prevents a pci
> device from being passed if its driver is installed ?
>
> 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 :
> >
> > #kld_list="nvidia nvidia-modeset"
> >
> > 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
>
>

-- 
Mario.

--00000000000082a63305f3cb957a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span>To put the pci addresses under ppt using the loader.=
conf=20
always worked for me. I would like to understand why it does not work=20
anymore for some months. Maybe some new feature and some obscure bug has be=
en introduced inside the bhyve source code. This is important to understand=
 why I&#39;m not able to attach /=20
detach the nVidia driver from the host to the guest os and it lets me think=
 that your consideration may be relevant in some way.</span></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Il giorno ven 3=
 feb 2023 alle ore 14:17 Daniel O&#39;Connor &lt;<a href=3D"mailto:darius@d=
ons.net.au">darius@dons.net.au</a>&gt; ha scritto:<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><br>
<br>
&gt; On 3 Feb 2023, at 23:37, Mario Marietto &lt;<a href=3D"mailto:marietto=
2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>&gt; wrote:<br>
&gt; ---&gt; If you want to pass through the video card (as evidenced by de=
vctl and pptdevs) then why have the nvidia driver installed?<br>
&gt; <br>
&gt; Why did you say this ? Are you aware of some bug that prevents a pci d=
evice from being passed if its driver is installed ? <br>
<br>
No, it just seems pointless to have a driver for a card that it will never =
attach to because it is &#39;stolen&#39; by the passthrough driver.<br>
<br>
&gt; Maybe there is. Infact I made some progress. I have commented this lin=
e on /etc/rc.conf :<br>
&gt; <br>
&gt; #kld_list=3D&quot;nvidia nvidia-modeset&quot;<br>
&gt; <br>
&gt; and I&#39;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 vg=
apci). Do you think that it could be caused by a bug on the nvidia driver o=
r in the bhyve source code ? What do you suggest I do ?<br>
<br>
It seems very odd that loading the nvidia driver via rc.conf would &#39;bea=
t&#39; the passthrough driver loaded earlier in loader.conf.<br>
<br>
However I&#39;ve never tried any pass through stuff so no idea sorry.<br>
<br>
--<br>
Daniel O&#39;Connor<br>
&quot;The nice thing about standards is that there<br>
are so many of them to choose from.&quot;<br>
-- Andrew Tanenbaum<br>
<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature">Mario.<br></div>

--00000000000082a63305f3cb957a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijWyKw6Su4xJf4CuCeLKgyH%2B_Bt29uhc4e2xioaZZE1Pg>