<p dir="ltr">Was the card used by a driver before the script? </p>
<p dir="ltr">The bug possibly occurs because the driver it was on left the card in an incorrect state.</p>
<p dir="ltr">Try to plug this device directly at boot to vfio-pci.</p>
<div class="gmail_quote">On 15 Jan 2016 12:02 pm, "thibaut noah" <<a href="mailto:thibaut.noah@gmail.com">thibaut.noah@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hum, the card is already linked to vfio-pci with the script you gave me, did i miss something?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 11:55 GMT+01:00 Quentin Deldycke <span dir="ltr"><<a href="mailto:quentindeldycke@gmail.com" target="_blank">quentindeldycke@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If it is the case, try to boot with the card directly binded to vfio-pci. I think on aw blog there is an explenation on how to do it.<div>(I don't use such, i manage other ways :P But to blacklist xhci is a bad idea for you i think.)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div><div><div>
<br><div class="gmail_quote">On 15 January 2016 at 11:42, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hum, the card doesn't need linux support right? Since it will only be use by the vm</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 11:41 GMT+01:00 Quentin Deldycke <span dir="ltr"><<a href="mailto:quentindeldycke@gmail.com" target="_blank">quentindeldycke@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Don't know if these things are affected by pci reset.<div><br></div><div>I did not encounter such problems.</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div><div><div>
<br><div class="gmail_quote">On 15 January 2016 at 11:40, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Seems that i cannot boot the vm with the card attached through the xml file in libvirt, i stay on the loading screen (tianocore whathever).<br>Anybody knows this issue?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 10:59 GMT+01:00 thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thanks for the help, the output after launching the script is totally weird :<br>new_id invalid argument<br>bind no such device<br><br>But the kernel in use is vfio-pci, gonna try the vm asap, thanks for the help :)</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 10:50 GMT+01:00 Quentin Deldycke <span dir="ltr"><<a href="mailto:quentindeldycke@gmail.com" target="_blank">quentindeldycke@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah no, sorry -_-'<div><br></div><div>This is the vendor id / product id of the pci device.</div><div><br></div><div>This part could be ommited, but not sure. I let it in the script so better that it stay there =)</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div><div><div>
<br><div class="gmail_quote">On 15 January 2016 at 10:48, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Just so we're clear when you do <span style="font-size:12.8px">echo "1b21 0612" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/</span><span style="font-size:12.8px">new_id<br>you're creating a new id for the device in vfio-pci right? This number can be totally random?</span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 10:44 GMT+01:00 Quentin Deldycke <span dir="ltr"><<a href="mailto:quentindeldycke@gmail.com" target="_blank">quentindeldycke@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">To do this dynamically, i use scripts which in sum do:<div><br></div><div>Unbinding:</div><div><div>echo 0000:0a:00.0 | sudo tee /sys/bus/pci/devices/0000:0a:00.0/driver/unbind</div></div><div>It means => on the driver actually used by 0000:0a:00.0, unbind the device 0000:0a:00.0<br></div><div><br></div><div>Binding to vfio:</div><div>echo "1b21 0612" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/new_id<br></div><div>echo "0000:0a:00:0" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/bind<br></div><div><br></div><div><br></div><div>I use them for:</div><div> - nvme device</div><div> - sata controller</div><div><br></div><div>You could do same for GPU. But actually, it break dpm, so you have shitty performance.</div><div>It is usefull for me to bind back to host as the nvme device seems to be lost with vfio-pci and host sleep. (can be recovered with loading nvme)</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div><div><div>
<br><div class="gmail_quote">On 15 January 2016 at 10:37, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I actually have no clue about how to unbind the device from xhci driver and bind it to vfio.<br>It was explain in some tutorials for graphic cards but not for other devices so i'm totally lost.<br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 10:35 GMT+01:00 Quentin Deldycke <span dir="ltr"><<a href="mailto:quentindeldycke@gmail.com" target="_blank">quentindeldycke@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is no difference. <div><br></div><div>lspci to find your card, you bind it to vfio-pci and use virt-manager to add the card.</div><div><br></div><div>Should work out of the box. Juste take care that this device is unbind from your xhci driver on host. then binded to vfio-pci.</div><div><br></div><div>Take care of the iommu groups like the graphic card.</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div>
<br><div class="gmail_quote"><span>On 15 January 2016 at 10:32, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr">Hello, i'm currently trying to passthrough an usb card controler to solve my usb issues (like audio glitches on headset and allow plug and play), problem is it seems that no one did tutorials for this and i'm a bit lost, only tutorial i found was to passthrough an internal usb controler.<br>Anybody got some documentation to share?</div>
<br></span>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</blockquote></div>