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
[-- Attachment #1 --] 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. [-- Attachment #2 --] <div dir="ltr"><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">I forgot that the pptdevs driver covers also the slot of the USB controller :<br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">ppt6@pci0:5:0:0: class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x1b73 device=0x1100 subvendor=0x1b73 subdevice=0x1100</span></span></div><div><span style="font-family:monospace"></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 3 feb 2023 alle ore 15:17 Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="font-family:arial,sans-serif"><span style="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 minutes ago I didn't use it because I was using the intel driver,installed by the package : <span style="font-family:monospace"><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">xf86-video-intel-2.99.917.916_2,1)</span></span></span></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">kld_list="i915kms acpi_video"</span><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">and this line in /boot/loader.conf :</span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:monospace"><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">pptdevs="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="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">and boom. pptdevs worked again:</span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"># pciconf -l<br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">ppt0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1c02 subvendor=0x19da subdevice=0x2438 </span></span></div><span style="font-family:monospace"><span style="font-family:arial,sans-serif">ppt1@pci0:1:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x10f1 subvendor=0x19da subdevice=0x2438 <br>ppt2@pci0:2:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1e04 subvendor=0x19da subdevice=0x2503 <br>ppt3@pci0:2:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x10f7 subvendor=0x19da subdevice=0x2503 <br>ppt4@pci0:2:0:2: class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad6 subvendor=0x19da subdevice=0x2503 <br>ppt5@pci0:2:0:3: class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad7 subvendor=0x19da subdevice=0x2503</span><br></span><div><br></div><div>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 :<br></div><div><br></div><div><span style="font-family:monospace"><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Section "Device" </span><br> Identifier "Card0" <br> Driver "intel" <br> BusID "PCI:0:2:0" <br>EndSection. <br></span></span></div><div><span style="font-family:monospace"><span style="font-family:arial,sans-serif"><br></span></span></div><div><span style="font-family:monospace"><span style="font-family:arial,sans-serif">It's a confusing situation.</span> <br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 3 feb 2023 alle ore 14:27 Daniel O'Connor <<a href="mailto:darius@dons.net.au" target="_blank">darius@dons.net.au</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="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="mailto:marietto2008@gmail.com" target="_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 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.<br> <br> It would have been more helpful if you had said up front that it used to work 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="all"><br>-- <br><div dir="ltr">Mario.<br></div> </blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Mario.<br></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiix4Hv3GdWgNpKho0RC3TmqHagzZvR7_-e4OAZjLDvNrA>
