Re: devctl: Failed to detach pci0:1:0:0: Device busy / devctl: Failed to set pci0:1:0:0 driver to ppt: Device busy

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Fri, 03 Feb 2023 14:20:43 UTC
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.