<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 8, 2016 at 3:20 PM, Stein van Broekhoven <span dir="ltr"><<a href="mailto:stein@aapjeisbaas.nl" target="_blank">stein@aapjeisbaas.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I tried 2 things to avoid: "fglrx driver claiming the interrupt"<br>
Start vm before fglrx gets to claiming it. (bad idea!)<br>
<br>
Edit xorg related config to see what is connecting the driver to the card. (better idea)<br>
All i found was PCI:1:0:0 (first GPU) in the config<br>
Also tried "# aticonfig --adapter=0 --initial" and got the same config as my system created for me.<br>
<br>
Any ideas on how i can keep the following process from claiming it?<br>
dmesg:<br>
[   12.361476] <6>[fglrx] Firegl kernel thread PID: 659<br>
[   12.361547] <6>[fglrx] Firegl kernel thread PID: 660<br>
[   12.361616] <6>[fglrx] Firegl kernel thread PID: 661<br>
[   12.361730] <6>[fglrx] IRQ 55 Enabled<br>
[   12.439300] <6>[fglrx] Reserved FB block: Shared offset:0, size:1000000<br>
[   12.439302] <6>[fglrx] Reserved FB block: Unshared offset:fab4000, size:4000<br>
[   12.439303] <6>[fglrx] Reserved FB block: Unshared offset:fab8000, size:548000<br>
<br>
ps faux:<br>
root         2  0.0  0.0      0     0 ?        S    22:53   0:00 [kthreadd]<br>
...<br>
root       659  0.0  0.0      0     0 ?        S    22:53   0:00  \_ [firegl]<br>
...</blockquote><div><br></div><div>As I said before, you need to use pci-stub or vfio-pci to prevent fglrx from claiming the device, follow something like this guide -  <a href="http://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-3-host.html">http://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-3-host.html</a></div><div><br></div><div>I can't guess why trying to start the vm before fglrx was a "bad idea" in your first case, getting pci-stub or vfio-pci bound to the device before fglrx can break it is usually the recommended practice.  In the simplest case, just add pci-stub.ids=1002:6758 to your kernel commandline.</div></div></div></div>