Date: Fri, 3 Feb 2023 15:17:19 +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%2B1FSiin466eL5p8PhvPPkM_8KwbE1pHH86=t7OK_%2BCbeS6Pgg@mail.gmail.com> In-Reply-To: <D1D8A363-5587-4CDF-98C1-BDDFEC34AD0F@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> <CA%2B1FSijWyKw6Su4xJf4CuCeLKgyH%2B_Bt29uhc4e2xioaZZE1Pg@mail.gmail.com> <D1D8A363-5587-4CDF-98C1-BDDFEC34AD0F@dons.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000000a96f05f3cc59f4 Content-Type: text/plain; charset="UTF-8" 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. --00000000000000a96f05f3cc59f4 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)">Very interesting= behavior. I've added this new line in /etc/rc.conf : (until some minut= es ago I didn't use it because I was using the intel driver,installed b= y the package : <span style=3D"font-family:monospace"><span style=3D"font-f= amily:arial,sans-serif"><span style=3D"color:rgb(0,0,0);background-color:rg= b(255,255,255)">xf86-video-intel-2.99.917.916_2,1)</span></span></span></sp= an></span></div><div><span style=3D"font-family:arial,sans-serif"><span sty= le=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"fo= nt-family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(2= 55,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"i915kms acpi_video"</span><br></span></span= ></div><div><span style=3D"font-family:arial,sans-serif"><span style=3D"col= or:rgb(0,0,0);background-color:rgb(255,255,255)"><br></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)">and this line in /boot/loader.conf = :</span></span></div><div><span style=3D"font-family:arial,sans-serif"><spa= n 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)"><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"1/0= /0 1/0/1 2/0/0 2/0/1 2/0/2 2/0/3 5/0/0"</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 style=3D"font-family:arial,sans-serif"><span style=3D"color= :rgb(0,0,0);background-color:rgb(255,255,255)">and boom. pptdevs worked aga= in:</span></span></div><div><span style=3D"font-family:arial,sans-serif"><s= pan 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)"># pciconf -l<br></s= pan></span></div><div><span style=3D"font-family:arial,sans-serif"><span st= yle=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></spa= n></div><div><span style=3D"font-family:arial,sans-serif"><span style=3D"co= lor:rgb(0,0,0);background-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 device=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'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 "Device" </span><br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Identifier =C2=A0&quo= t;Card0" <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"intel" <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"PCI:0:2:0" <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'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'Connor <<a href=3D"mail= to:darius@dons.net.au" target=3D"_blank">darius@dons.net.au</a>> 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> > On 3 Feb 2023, at 23:52, Mario Marietto <<a href=3D"mailto:marietto= 2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>> wrote:<br> > 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'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'Connor<br> "The nice thing about standards is that there<br> are so many of them to choose from."<br> -- Andrew Tanenbaum<br> <br> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr">Mario.<br>= </div> --00000000000000a96f05f3cc59f4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiin466eL5p8PhvPPkM_8KwbE1pHH86=t7OK_%2BCbeS6Pgg>