Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2023 15:20:43 +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%2B1FSiix4Hv3GdWgNpKho0RC3TmqHagzZvR7_-e4OAZjLDvNrA@mail.gmail.com>
In-Reply-To: <CA%2B1FSiin466eL5p8PhvPPkM_8KwbE1pHH86=t7OK_%2BCbeS6Pgg@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> <4E67D54E-CF0E-4A56-9B6B-51C359B7CEE2@dons.net.au> <CA%2B1FSijWyKw6Su4xJf4CuCeLKgyH%2B_Bt29uhc4e2xioaZZE1Pg@mail.gmail.com> <D1D8A363-5587-4CDF-98C1-BDDFEC34AD0F@dons.net.au> <CA%2B1FSiin466eL5p8PhvPPkM_8KwbE1pHH86=t7OK_%2BCbeS6Pgg@mail.gmail.com>

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

I forgot that the pptdevs driver covers also the slot of the USB controller
:

ppt6@pci0:5:0:0:        class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x1b73
device=0x1100 subvendor=0x1b73 subdevice=0x1100

Il giorno ven 3 feb 2023 alle ore 15:17 Mario Marietto <
marietto2008@gmail.com> ha scritto:

> Very interesting behavior. I've added this new line in /etc/rc.conf :
> (until some minutes ago I didn't use it because I was using the intel
> driver,installed by the package : xf86-video-intel-2.99.917.916_2,1)
>
> kld_list="i915kms acpi_video"
>
> and this line in /boot/loader.conf :
>
> pptdevs="1/0/0 1/0/1 2/0/0 2/0/1 2/0/2 2/0/3 5/0/0"
>
> and boom. pptdevs worked again:
>
> # pciconf -l
>
> ppt0@pci0:1:0:0:        class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de
> device=0x1c02 subvendor=0x19da subdevice=0x2438
> ppt1@pci0:1:0:1:        class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de
> device=0x10f1 subvendor=0x19da subdevice=0x2438
> ppt2@pci0:2:0:0:        class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de
> device=0x1e04 subvendor=0x19da subdevice=0x2503
> ppt3@pci0:2:0:1:        class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de
> device=0x10f7 subvendor=0x19da subdevice=0x2503
> ppt4@pci0:2:0:2:        class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de
> device=0x1ad6 subvendor=0x19da subdevice=0x2503
> ppt5@pci0:2:0:3:        class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de
> device=0x1ad7 subvendor=0x19da subdevice=0x2503
>
> So,maybe there is some incompatibility between the intel and the pptdevs
> driver ? take also in consideration that on xorg.cong I'm still using the
> intel driver :
>
> Section "Device"
>        Identifier  "Card0"
>        Driver      "intel"
>        BusID       "PCI:0:2:0"
> EndSection.
>
> It's a confusing situation.
>
> Il giorno ven 3 feb 2023 alle ore 14:27 Daniel O'Connor <
> darius@dons.net.au> ha scritto:
>
>>
>>
>> > On 3 Feb 2023, at 23:52, Mario Marietto <marietto2008@gmail.com> wrote:
>> > 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.
>>
>> It would have been more helpful if you had said up front that it used to
>> work for you..
>>
>> Do you mean it used to work for these nvidia devices or something else,
>> or..?
>>
>> --
>> Daniel O'Connor
>> "The nice thing about standards is that there
>> are so many of them to choose from."
>> -- Andrew Tanenbaum
>>
>>
>
> --
> Mario.
>


-- 
Mario.

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

<div dir=3D"ltr"><div><span style=3D"font-family:arial,sans-serif"><span st=
yle=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">I forgot that th=
e pptdevs driver covers also the slot of the USB controller :<br></span></s=
pan></div><div><span style=3D"font-family:arial,sans-serif"><span style=3D"=
color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div=
><div><span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb=
(0,0,0);background-color:rgb(255,255,255)">ppt6@pci0:5:0:0: =C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c0330 rev=3D0x10 hdr=3D0x00 vendor=3D=
0x1b73 device=3D0x1100 subvendor=3D0x1b73 subdevice=3D0x1100</span></span><=
/div><div><span style=3D"font-family:monospace"></span></div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Il giorno ven =
3 feb 2023 alle ore 15:17 Mario Marietto &lt;<a href=3D"mailto:marietto2008=
@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>&gt; ha scritto:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><=
div><span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0=
,0,0);background-color:rgb(255,255,255)">Very interesting behavior. I&#39;v=
e added this new line in /etc/rc.conf : (until some minutes ago I didn&#39;=
t use it because I was using the intel driver,installed by the package : <s=
pan style=3D"font-family:monospace"><span style=3D"font-family:arial,sans-s=
erif"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">xf=
86-video-intel-2.99.917.916_2,1)</span></span></span></span></span></div><d=
iv><span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,=
0,0);background-color:rgb(255,255,255)"><span style=3D"font-family:monospac=
e"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br><=
/span></span></span></span></div><div><span style=3D"font-family:arial,sans=
-serif"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">=
<span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">kld_list=
=3D&quot;i915kms acpi_video&quot;</span><br></span></span></div><div><span =
style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0);back=
ground-color:rgb(255,255,255)"><br></span></span></div><div><span style=3D"=
font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0);background-co=
lor:rgb(255,255,255)">and this line in /boot/loader.conf :</span></span></d=
iv><div><span style=3D"font-family:arial,sans-serif"><span style=3D"color:r=
gb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><=
span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0)=
;background-color:rgb(255,255,255)"><span style=3D"font-family:monospace"><=
span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0)=
;background-color:rgb(255,255,255)">pptdevs=3D&quot;1/0/0 1/0/1 2/0/0 2/0/1=
 2/0/2 2/0/3 5/0/0&quot;</span></span><br></span></span></span></div><div><=
span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0)=
;background-color:rgb(255,255,255)"><br></span></span></div><div><span styl=
e=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0);backgrou=
nd-color:rgb(255,255,255)">and boom. pptdevs worked again:</span></span></d=
iv><div><span style=3D"font-family:arial,sans-serif"><span style=3D"color:r=
gb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><=
span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0)=
;background-color:rgb(255,255,255)"># pciconf -l<br></span></span></div><di=
v><span style=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0=
,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span s=
tyle=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0);backg=
round-color:rgb(255,255,255)">ppt0@pci0:1:0:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de devic=
e=3D0x1c02 subvendor=3D0x19da subdevice=3D0x2438
</span></span></div><span style=3D"font-family:monospace"><span style=3D"fo=
nt-family:arial,sans-serif">ppt1@pci0:1:0:1: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=
=3D0x10f1 subvendor=3D0x19da subdevice=3D0x2438
<br>ppt2@pci0:2:0:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x03=
0000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1e04 subvendor=3D0x19=
da subdevice=3D0x2503
<br>ppt3@pci0:2:0:1: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x04=
0300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x10f7 subvendor=3D0x19=
da subdevice=3D0x2503
<br>ppt4@pci0:2:0:2: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c=
0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1ad6 subvendor=3D0x19=
da subdevice=3D0x2503
<br>ppt5@pci0:2:0:3: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c=
8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1ad7 subvendor=3D0x19=
da subdevice=3D0x2503</span><br></span><div><br></div><div>So,maybe there i=
s some incompatibility between the intel and the pptdevs driver ? take also=
 in consideration that on xorg.cong I&#39;m still using the intel driver :<=
br></div><div><br></div><div><span style=3D"font-family:monospace"><span st=
yle=3D"font-family:arial,sans-serif"><span style=3D"color:rgb(0,0,0);backgr=
ound-color:rgb(255,255,255)">Section &quot;Device&quot;
</span><br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Identifier =C2=A0&quo=
t;Card0&quot;
<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Driver =C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0&quot;intel&quot;
<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0BusID =C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0&quot;PCI:0:2:0&quot;
<br>EndSection. <br></span></span></div><div><span style=3D"font-family:mon=
ospace"><span style=3D"font-family:arial,sans-serif"><br></span></span></di=
v><div><span style=3D"font-family:monospace"><span style=3D"font-family:ari=
al,sans-serif">It&#39;s a confusing situation.</span> <br></span></div></di=
v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Il g=
iorno ven 3 feb 2023 alle ore 14:27 Daniel O&#39;Connor &lt;<a href=3D"mail=
to:darius@dons.net.au" target=3D"_blank">darius@dons.net.au</a>&gt; ha scri=
tto:<br></div><blockquote class=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:52, Mario Marietto &lt;<a href=3D"mailto:marietto=
2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>&gt; wrote:<br>
&gt; 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 m=
onths. Maybe some new feature and some obscure bug has been introduced insi=
de the bhyve source code. This is important to understand why I&#39;m not a=
ble 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.<br>
<br>
It would have been more helpful if you had said up front that it used to wo=
rk for you..<br>
<br>
Do you mean it used to work for these nvidia devices or something else, or.=
.?<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">Mario.<br>=
</div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr">Mario.<br>=
</div>

--0000000000002f0bf005f3cc6574--



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