<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Howdy!<br><br>I spent about 3 hours fiddling with the 280x trying to get the drivers to stop acting retarded. I plug in my 770 and add remove the hypervisor and it works instantly. I might give my friend his cars back to sell and keep the 770 after-all. The 770 appears in device manager just fine but i'm not sure how to go about actually using it. I can't seem to get rid of the emaulated "basic microsoft display adaptor".<br><br> <video><br>      <model type='cirrus' vram='16384' heads='1'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br></video><br><br>I keep deleting the first line but it keeps coming back. The emulated display won't let me change the resolution, thought that might be because of the emulated display adapter. Please advice<br><br><domain type='kvm'><br>  <name>generic-2</name><br>  <uuid>05b8ff63-7afc-4a17-9b72-70fc38029a0b</uuid><br>  <memory unit='KiB'>5144576</memory><br>  <currentMemory unit='KiB'>5144576</currentMemory><br>  <vcpu placement='static'>6</vcpu><br>  <os><br>    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type><br>    <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader><br>    <nvram>/var/lib/libvirt/qemu/nvram/generic-2_VARS.fd</nvram><br>  </os><br>  <features><br>    <acpi/><br>    <apic/><br>    <pae/><br>    <hyperv><br>      <relaxed state='off'/><br>      <vapic state='off'/><br>      <spinlocks state='off'/><br>    </hyperv><br>    <kvm><br>      <hidden state='on'/><br>    </kvm><br>    <vmport state='off'/><br>  </features><br>  <cpu mode='host-model'><br>    <model fallback='allow'/><br>  </cpu><br>  <clock offset='localtime'><br>    <timer name='hypervclock' present='no'/><br>  </clock><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>restart</on_reboot><br>  <on_crash>restart</on_crash><br>  <pm><br>    <suspend-to-mem enabled='no'/><br>    <suspend-to-disk enabled='no'/><br>  </pm><br>  <devices><br>    <emulator>/usr/bin/qemu-kvm</emulator><br>    <disk type='file' device='disk'><br>      <driver name='qemu' type='raw'/><br>      <source file='/usr/share/edk2.git/aarch64/image_file'/><br>      <target dev='hda' bus='ide'/><br>      <boot order='2'/><br>      <address type='drive' controller='0' bus='0' target='0' unit='0'/><br>    </disk><br>    <disk type='file' device='cdrom'><br>      <driver name='qemu' type='raw'/><br>      <source file='/home/ryan/kvm/win10.iso'/><br>      <target dev='hdb' bus='ide'/><br>      <readonly/><br>      <boot order='1'/><br>      <address type='drive' controller='0' bus='0' target='0' unit='1'/><br>    </disk><br>    <controller type='usb' index='0' model='ich9-ehci1'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/><br>    </controller><br>    <controller type='usb' index='0' model='ich9-uhci1'><br>      <master startport='0'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/><br>    </controller><br>    <controller type='usb' index='0' model='ich9-uhci2'><br>      <master startport='2'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/><br>    </controller><br>    <controller type='usb' index='0' model='ich9-uhci3'><br>      <master startport='4'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/><br>    </controller><br>    <controller type='pci' index='0' model='pci-root'/><br>    <controller type='ide' index='0'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br>    </controller><br>    <controller type='virtio-serial' index='0'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/><br>    </controller><br>    <interface type='network'><br>      <mac address='52:54:00:42:fd:b1'/><br>      <source network='default'/><br>      <model type='rtl8139'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>    </interface><br>    <serial type='pty'><br>      <target port='0'/><br>    </serial><br>    <console type='pty'><br>      <target type='serial' port='0'/><br>    </console><br>    <channel type='spicevmc'><br>      <target type='virtio' name='com.redhat.spice.0'/><br>      <address type='virtio-serial' controller='0' bus='0' port='1'/><br>    </channel><br>    <input type='mouse' bus='ps2'/><br>    <input type='keyboard' bus='ps2'/><br>    <graphics type='spice' autoport='yes'><br>      <image compression='off'/><br>    </graphics><br>    <sound model='ich6'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br>    </sound><br>    <video><br>      <model type='cirrus' vram='16384' heads='1'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br>    </video><br>    <hostdev mode='subsystem' type='pci' managed='yes'><br>      <source><br>        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/><br>      </source><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/><br>    </hostdev><br>    <hostdev mode='subsystem' type='pci' managed='yes'><br>      <source><br>        <address domain='0x0000' bus='0x04' slot='0x00' function='0x1'/><br>      </source><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/><br>    </hostdev><br>    <redirdev bus='usb' type='spicevmc'><br>    </redirdev><br>    <redirdev bus='usb' type='spicevmc'><br>    </redirdev><br>    <memballoon model='virtio'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/><br>    </memballoon><br>  </devices><br></domain><br><br><br><br><div><hr id="stopSpelling">Date: Fri, 2 Oct 2015 20:14:59 +0300<br>Subject: Re: [vfio-users] amd gpu not being seen<br>From: ihatethisfield@gmail.com<br>To: chimmychainsaw@hotmail.com<br>CC: vfio-users@redhat.com<br><br><p dir="ltr">My win10 VM goes black on boot from time to time. Just sayin'<br>
Also, there is a neighbor thread about some kind of regression in recent kernels.</p>
<div class="ecxgmail_quote">On Oct 2, 2015 8:08 PM, "Ryan Clawfish" <<a href="mailto:chimmychainsaw@hotmail.com">chimmychainsaw@hotmail.com</a>> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">I tried the solutions recommended to no avail. Switching pci slots and blacklisting the drivers seemed to have no effect on the horrible boot performance. I asked my friend if i could borrow my old 770 back to test it out in my arch machine and i had the same issues as before with the radeon card. I can't help but think the issue is either with my install or a bug with the latest 4.2.2.1 kernel as everything was working somewhat fine just a few days ago.<br><br> I decided to install fedora on a separate partition thinking if any os should work it's one made by redhat. And it did work! Sorta. Following alex's awesome vfio blog i got everything setup pretty much properly. Windows 10 boots normally with my 280x attached. My only issue now is trying to get windows 10 to stop crashing.Using seabios it crashes with the atikmdag error and with uefi it simply goes black. <br><div><hr>Date: Wed, 30 Sep 2015 10:55:39 +0300<br>Subject: Re: [vfio-users] amd gpu not being seen<br>From: <a href="mailto:ihatethisfield@gmail.com" target="_blank">ihatethisfield@gmail.com</a><br>To: <a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a><br>CC: <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br><br><p dir="ltr">Alright, i've studied your dmesg(fell asleep in one place), so:<br>
You should blacklist the radeon driver. It seems like it's interfering not only with vfio, but somehow manages to screw up nvidia host driver.<br>
And there is a high possibility that you should remove that wireless adapter and plug your third GPU there, because iommu grouping may be messed up.<br>
Your host GPU is plugged in the first slot and should be the only one doing VGA. But for some reason it is not.</p>
<p dir="ltr">After blacklisting the radeon driver, you should reinstall the guest system.</p>
<div>On Sep 29, 2015 6:23 PM, "Ryan Clawfish" <<a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a>> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">The output was huge and I thought only the vfio entries were relevant. My bad. I'm using vfio-pci because it's recommended on the arch wiki. I have not yet tried pci-stub. <br><br>I've added: <i>options vfio-pci ids=1002:6798,1002:aaa0</i> to /etc/modprobe.d/vfio.conf  <br><br>everything else is on <a href="http://pastebin.com/3DA3wUBd" target="_blank">http://pastebin.com/3DA3wUBd</a> <br><br><br><div><hr>Date: Tue, 29 Sep 2015 17:43:02 +0300<br>Subject: Re: [vfio-users] amd gpu not being seen<br>From: <a href="mailto:ihatethisfield@gmail.com" target="_blank">ihatethisfield@gmail.com</a><br>To: <a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a><br>CC: <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br><br><p dir="ltr">Why did you grep...<br>
Post the full one on pastebin or search for whatever using VGA or that GPUs. Do you use any kind of pre-binding(vfio-pci.ids=...) or pci-stub?</p>
<div>On Sep 29, 2015 5:36 PM, "Ryan Clawfish" <<a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a>> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><span dir="ltr">Hotmail really needs to start accepting code tags, it would make things so much neater. <br>

<br>

I'm using an fx 8350 with an asus m5a99 pro R2.0 motherboard. <br>

<b><br>

lspci -nn</b> <br>

04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Tahiti XT [Radeon HD 7970/8970 OEM / R9 280X] [1002:6798]<br>

04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT HDMI Audio [Radeon HD 7970 Series] [1002:aaa0]<br>

<br>

<b>[ryan@earth-archbox ~]$ dmesg | grep -i vfio</b><br>

[    1.066842] VFIO - User Level meta-driver version: 0.3<br>

[    1.079992] vfio_pci: add [1002:6798[ffff:ffff]] class 0x000000/00000000<br>

[    1.093349] vfio_pci: add [1002:aaa0[ffff:ffff]] class 0x000000/00000000<br>

[  108.858636] vfio-pci 0000:04:00.0: enabling device (0000 -> 0003)<br>

[  108.858820] vfio_ecap_init: 0000:04:00.0 hiding ecap 0x19@0x270<br>

[  108.858829] vfio_ecap_init: 0000:04:00.0 hiding ecap 0x1b@0x2d0<br>

[  108.875285] vfio-pci 0000:04:00.1: enabling device (0000 -> 0002)<br>

[ 1284.893125] vfio_ecap_init: 0000:04:00.0 hiding ecap 0x19@0x270<br>

[ 1284.893133] vfio_ecap_init: 0000:04:00.0 hiding ecap 0x1b@0x2d0<br>

[ 1284.909667] vfio-pci 0000:04:00.1: enabling device (0400 -> 0402)<br>

[ 1519.790793] vfio_ecap_init: 0000:04:00.0 hiding ecap 0x19@0x270<br>

[ 1519.790805] vfio_ecap_init: 0000:04:00.0 hiding ecap 0x1b@0x2d0<br>

[ 1519.810519] vfio-pci 0000:04:00.1: enabling device (0400 -> 0402)<br>

<b><br>

Hostdev</b><b><br>

</b></video><br>

    <hostdev mode='subsystem' type='pci' managed='yes'><br>

      <source><br>

        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/><br>

      </source><br>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/><br>

    </hostdev><br>

    <hostdev mode='subsystem' type='pci' managed='yes'><br>

      <source><br>

        <address domain='0x0000' bus='0x04' slot='0x00' function='0x1'/><br>

      </source><br>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/><br>

    </hostdev><b><br>

</b><b><br>

</b>So you managed to get crossfire inside the emulation? I didn't think
 it was possible but that would be beyond cool. Pain in the ass sure but
 still cool as hell.<br><br>also: In my pre coffee daze i accidentally replied to ihatethisfield and not the mailing list. Sorry about that. <br><br><br></span><div><div dir="ltr"><div dir="ltr"><b></b><div><hr>Date: Tue, 29 Sep 2015 07:46:23 +0300<br>Subject: Re: [vfio-users] amd gpu not being seen<br>From: <a href="mailto:ihatethisfield@gmail.com" target="_blank">ihatethisfield@gmail.com</a><br>To: <a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a><br>CC: <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br><br><p dir="ltr">Your attached XML file lacks the most important part: <hostdev> entries with your GPUs.<br>
Tell us about your CPU-MB combo and do lspci -nn and find all your needed devices in their respective iommu groups. And it would be good to see your dmesg, maybe you've forgot to blacklist some driver or something else tampers with VGA somehow.</p>
<p dir="ltr">Also, on my 2xHD7750 crossfire works flawlessly. They don't need a bridge to interconnect, but your cards might need it.</p>
<div>On Sep 29, 2015 4:26 AM, "Ryan Clawfish" <<a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a>> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">I'm rather happy with 2x 280x's. Hopefully i can use linux virtualization for convinence gaming and reboot into a windows partition when i want insane crossfire graphics. <br><br>To be honest i'm a noob at this and i don't really know what the hell i'm doing. I'm mostly following the arch wiki guide <a href="https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF" target="_blank">https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF</a>  Because /dev/vfios/17 did not exist I decided to reinstall arch and restart the process from scratch, roughly documenting my steps. Here's what i did. <br><br>installed qemu and rpmextract<br>extracted the gerd hoffmons eufi and moved it to /usr/share<br>downloaded libvirt <br>enabled libvirt and start it<br>installed ebtables dnsmasq  bridge-utils and bsd-netcat<br>added amd_iommu=on to /etc/default/grub, regenerated grub and rebuilt mkinitpcio<br>added modprobe vfio-pci <br>ran mkinitpcio<br>/etc/libvirt/qemu.conf added root permissions + /dev/vfio/17<br>created raw file for emulated hdd<br>installed virt-manager<br>sudo cp /usr/share/edk2.git/ovmf-x64/OVMF-pure-efi.fd /usr/share/ovmf/OVMF-win10.fd #pointless?<br>sudo ln -s /usr/share/ovmf/OVMF-win10.fd /usr/share/ovmf/OVMF-win10.fd                      #pointless<br>added uefi into in the os section of my xml file:<br>       <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader><br>       <nvram template='/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd'/><br>installed windows 10<br>installed radeon drivers<br>added target pci (gpu) from virt-manager gui <br><br>When i add the my gpu  the uefi is delayed and booting windows 10 takes forever. There are lots of artifacts and it lags to the point of being completely unusable.  I've tried adding my card via virt-manager gui and via the (depreciated?)<qemu:commandline>. Both have the same effect. <br><br>Here's my xml virt config file <a href="http://pastebin.com/sNxvXiQ6" target="_blank">http://pastebin.com/sNxvXiQ6</a><br><br><br><br><div><hr>Date: Mon, 28 Sep 2015 09:40:22 -0600<br>Subject: Re: [vfio-users] amd gpu not being seen<br>From: <a href="mailto:alex.l.williamson@gmail.com" target="_blank">alex.l.williamson@gmail.com</a><br>To: <a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a><br>CC: <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br><br><div dir="ltr"><div><div>On Mon, Sep 28, 2015 at 9:12 AM, Ryan Clawfish <span dir="ltr"><<a href="mailto:chimmychainsaw@hotmail.com" target="_blank">chimmychainsaw@hotmail.com</a>></span> wrote:<br><blockquote style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">


<div><div dir="ltr">


<div dir="ltr">


<div dir="ltr">My main issue is i keep getting an error saying "failed to get group 17" and "/dev/vfio/17 does not exist."  If i ls -a my /dev , i see /dev/vfio does not exist. I created it using mkdir, chmod 666 it and added it in /etc/libvirt/qemu.conf but the error persists. </div></div></div></div></blockquote><div><br></div><div>So all along, you've probably been trying to use legacy KVM device assignment, which led too the Code 43 with the GeForce card.  Too bad, IMHO, the 770 was a better card.  vfio has been the default for PCI hostdev devices since libvirt 1.1.3 and /dev/vfio/ should be present even before vfio is load since kernel v3.14.  Are you even building vfio support into your kernel?</div></div></div></div></div>                                      </div></div>
<br>_______________________________________________<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>
<a href="http://pastebin.com/HrCWcd6Shttp://pastebin.com/HrCWcd6Shttp://pastebin.com/HrCWcd6S" target="_blank">http://pastebin.com/HrCWcd6Shttp://pastebin.com/HrCWcd6Shttp://pastebin.com/HrCWcd6S</a><br></blockquote></div></div></div>
                                          </div></div>                                        </div></div>
<br>_______________________________________________<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></div>                                     </div></div>
<br>_______________________________________________<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></div>                                     </div></div>
<br>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com">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></div>                                     </div></body>
</html>