[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: devctl: Failed to detach pci0:1:0:0: Device busy / devctl: Failed to set pci0:1:0:0 driver to pp
From:       Mario Marietto <marietto2008 () gmail ! com>
Date:       2023-02-03 14:20:43
Message-ID: CA+1FSiix4Hv3GdWgNpKho0RC3TmqHagzZvR7_-e4OAZjLDvNrA () mail ! gmail ! com
[Download RAW message or body]

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 #3 (text/html)]

<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 \
&lt;<a href="mailto:marietto2008@gmail.com" \
target="_blank">marietto2008@gmail.com</a>&gt; 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&#39;ve 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 : <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=&quot;i915kms \
acpi_video&quot;</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=&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="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&#39;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 &quot;Device&quot; \
</span><br>               Identifier   &quot;Card0&quot; <br>               Driver    \
&quot;intel&quot; <br>               BusID             &quot;PCI:0:2:0&quot;
<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&#39;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&#39;Connor &lt;<a href="mailto:darius@dons.net.au" \
target="_blank">darius@dons.net.au</a>&gt; 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>
&gt; On 3 Feb 2023, at 23:52, Mario Marietto &lt;<a \
href="mailto:marietto2008@gmail.com" target="_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 \
months. Maybe some new feature and some obscure bug has been introduced inside the \
bhyve source code. This is important to understand why I&#39;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&#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="all"><br>-- <br><div dir="ltr">Mario.<br></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Mario.<br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic