<div dir="auto"><div>Also I had weird errors initially with my gpu.. turned out my power supply was failing and therefore not providing quite enough power.  Got a new power supply and all was well.  Just food for thought. <br><br><div data-smartmail="gmail_signature">scott</div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 23, 2017 6:40 PM, "Scott" <<a href="mailto:shewless@unleashed-web.org">shewless@unleashed-web.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Change the sample rate in Windows to DVD quality.. that made my sound crackles go away.<div dir="auto"><br></div><div dir="auto">Also ensure msi Interrupts enabled.<font color="#888888"><br><br><div data-smartmail="gmail_signature" dir="auto">scott</div></font></div></div><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Jan 23, 2017 6:24 PM, "P. Pronk" <<a href="mailto:vfio@pronk.nl" target="_blank">vfio@pronk.nl</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <p>That would be interesting to see indeed. Actually I bought the
      RX460 because first I wanted to use my old HD7850, but then my pc
      didnt even want to boot (linux, didnt try windows). It just hanged
      seconds after grub loading with a lot of those PCIe Bus Error's.
      Then I tried a couple Nvidia NVS295's I had but I couldnt get them
      to work properly (driver issues which caused mismatching colours).</p>
    <p>Probably there is just something wrong with that MSI RX480, as it
      gave those PCI-E Bus Error's also when it was the only GPU in my
      system (while I was waiting for the RX460). But then again, it's
      strange that the rom could be extracted correctly with GPU-Z under
      Windows. <br>
    </p>
    <p>I did a Unique Heaven test and the results where not bad, ~1350
      points and 53fps. But during some scenes it seemed the camera
      movement slowed down and then sped up significantly a couple of
      times. It didnt look like that was intentionaly but that said
      there was no drop in fps. Will do some more tests tomorrow as I am
      also not yet really happy with the sound quality (too much noise
      sometimes).<br>
    </p>
    Yes, I extracted the uefi bios from
    edk2.git-ovmf-x64-0-20170120.b<wbr>2426.gaa961de.noarch.rpm. See xml
    below.<br>
    <br>
    Cheers, Pim<br>
    --------------------------<br>
    <domain type='kvm'
    xmlns:qemu='<a class="m_2538515199531770476m_2018315969770409593moz-txt-link-freetext" href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank">http://libvirt.org<wbr>/schemas/domain/qemu/1.0</a>'><br>
      <name>win8</name><br>
      <uuid>8a96e6b2-6396-4e84-ba3b-<wbr>dedcb1e3d997</uuid><br>
      <memory unit='KiB'>8388608</memory><br>
      <currentMemory unit='KiB'>8388608</currentMem<wbr>ory><br>
      <memoryBacking><br>
        <hugepages/><br>
      </memoryBacking><br>
      <vcpu placement='static'>4</vcpu><br>
      <cputune><br>
        <vcpupin vcpu='0' cpuset='2'/><br>
        <vcpupin vcpu='1' cpuset='3'/><br>
        <vcpupin vcpu='2' cpuset='6'/><br>
        <vcpupin vcpu='3' cpuset='7'/><br>
      </cputune><br>
      <numatune><br>
        <memory mode='preferred' nodeset='0'/><br>
      </numatune><br>
      <os><br>
        <type arch='x86_64'
    machine='pc-i440fx-xenial'>hvm<wbr></type><br>
        <loader readonly='yes'
    type='pflash'>/usr/share/ovmf/<wbr>OVMF-win8.fd</loader><br>
       
    <nvram>/var/lib/libvirt/qemu/n<wbr>vram/win8_VARS.fd</nvram><br>
        <bootmenu enable='no'/><br>
      </os><br>
      <features><br>
        <acpi/><br>
        <apic/><br>
        <hyperv><br>
          <relaxed state='on'/><br>
          <vapic state='on'/><br>
          <spinlocks state='on' retries='8191'/><br>
        </hyperv><br>
      </features><br>
      <cpu mode='host-model'><br>
        <model fallback='allow'/><br>
        <topology sockets='1' cores='2' threads='2'/><br>
      </cpu><br>
      <clock offset='localtime'><br>
        <timer name='rtc' tickpolicy='catchup'/><br>
        <timer name='pit' tickpolicy='delay'/><br>
        <timer name='hpet' present='no'/><br>
        <timer name='hypervclock' present='yes'/><br>
      </clock><br>
      <on_poweroff>destroy</on_power<wbr>off><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/kvm-spice</<wbr>emulator><br>
        <disk type='block' device='disk'><br>
          <driver name='qemu' type='raw' cache='none'
    io='native'/><br>
          <source
dev='/dev/disk/by-path/ip-192.<wbr>168.1.2:3260-iscsi-iqn.2017-01<wbr>.nl.serv:zpool.virtual-lun-0'/<wbr>><br>
          <target dev='sda' bus='scsi'/><br>
          <boot order='1'/><br>
          <address type='drive' controller='0' bus='0' target='0'
    unit='0'/><br>
        </disk><br>
        <controller type='pci' index='0' model='pci-root'/><br>
        <controller type='usb' index='0'><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
    function='0x2'/><br>
        </controller><br>
        <controller type='scsi' index='0' model='virtio-scsi'><br>
          <driver queues='4'/><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
    function='0x0'/><br>
        </controller><br>
        <interface type='bridge'><br>
          <mac address='52:54:00:f4:37:6f'/><br>
          <source bridge='br0'/><br>
          <model type='virtio'/><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
    function='0x0'/><br>
        </interface><br>
        <sound model='ich6'><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
    function='0x0'/><br>
        </sound><br>
        <hostdev mode='subsystem' type='pci' managed='yes'><br>
          <source><br>
            <address domain='0x0000' bus='0x01' slot='0x00'
    function='0x0'/><br>
          </source><br>
          <rom
    file='/var/lib/libvirt/roms/11<wbr>3-MSITV341MH.152.rom'/><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
    function='0x0'/><br>
        </hostdev><br>
        <hostdev mode='subsystem' type='pci' managed='yes'><br>
          <source><br>
            <address domain='0x0000' bus='0x01' slot='0x00'
    function='0x1'/><br>
          </source><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0a'
    function='0x0'/><br>
        </hostdev><br>
        <hostdev mode='subsystem' type='usb' managed='yes'><br>
          <source><br>
            <vendor id='0x0141'/><br>
            <product id='0x2d55'/><br>
          </source><br>
        </hostdev><br>
        <hostdev mode='subsystem' type='usb' managed='yes'><br>
          <source><br>
            <vendor id='0x0168'/><br>
            <product id='0xc11d'/><br>
          </source><br>
        </hostdev><br>
        <memballoon model='virtio'><br>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08'
    function='0x0'/><br>
        </memballoon><br>
      </devices><br>
      <qemu:commandline><br>
        <qemu:env name='QEMU_PA_SAMPLES' value='4096'/><br>
        <qemu:env name='QEMU_AUDIO_DRV' value='pa'/><br>
        <qemu:env name='QEMU_PA_SERVER'
    value='/run/user/1000/pulse/na<wbr>tive'/><br>
      </qemu:commandline><br>
    </domain><br>
    <br>
    <br>
    <div class="m_2538515199531770476m_2018315969770409593moz-cite-prefix">On 23/01/17 22:51, Scott wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="auto">Hi 
        <div dir="auto"><br>
        </div>
        <div dir="auto">I downloaded a rom from the Internets.  There is
          a common site that has a library of them.  I have been meaning
          to try without the rom file too. Not sure it's necessary.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I think you have a tougher time because you have
          two AMD cards.  I am able to blacklist the AMD driver
          completely because my "other card" is Intel. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Are you using the uefi bios for your virtual
          machine?<br>
          <br>
          <div data-smartmail="gmail_signature" dir="auto">scott</div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Jan 23, 2017 9:37 AM, "P. Pronk"
          <<a href="mailto:vfio@pronk.nl" target="_blank">vfio@pronk.nl</a>>
          wrote:<br type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On
            2017-01-23 12:13, Manuel Ullmann wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              depending on the Polaris being a reference card<br>
            </blockquote>
            Thanks for your comments, but it seems the MSI Gaming X
            series is not a reference card (its factory overclocked).<br>
            <br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              So the vBios being bricked by the manufacturr should be
              also kept in mind.<br>
            </blockquote>
            I dont think this is the case here, as using GPU-Z under
            Windows shows a valid EFI rom. It seems a Linux issue only,
            I have submitted a case with MSI to see what they say.<br>
            <br>
            On 23/01/17 02:46, Scott wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              Here is my xml in case it helps:<br>
            </blockquote>
            Thanks, if I add the rom (the one I saved using GPU-Z under
            Windows) my display turns on.<br>
            <br>
            Unfortunately it didnt work then yet, as my dmesg was
            flooded with the following message:<br>
            vfio-pci 0000:01:00.0: BAR 0: can't reserve [mem
            0xc0000000-0xcfffffff 64bit pref]<br>
            <br>
            This was caused due grub loading vesafb for the RX480 as the
            graphical terminal was enabled. So in /etc/default/grub I
            had to add GRUB_GFXPAYLOAD_LINUX="text" and disable
            'GRUB_GFXMODE' (not sure about the last one as maybe thats
            implicit but it doesnt hurt either).<br>
            <br>
            Unfortunately that does mean I cant use ddccontrol it seems,
            as that complains about missing a framebuffer driver.
            Therefore I've also asked Asus whether they plan to support
            choosing the primary vga slot like Gigabyte does and they
            said 'they will discuss this internally'.<br>
            My Asus support agent actually had never heard of vfio
            before and repeatedly said that Asus only supports multiple
            GPU's when using SLI/Crossfire. So maybe if more people
            would contact their local Asus support agent and request
            this feature they are more willing to look at it? Who takes
            the hint? ;)<br>
            <br>
            I had to install the driver twice as the first time the
            install failed, but at the moment the GPU appears to be
            working correctly. Now first on to sound before I do some 3D
            testing.<br>
            <br>
            Kind rgds, Pim<br>
            <br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <br>
              Best regards,<br>
              Manuel<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Here is my xml in case it helps:<br>
                <br>
                <domain type='kvm'><br>
                <name>dozer</name><br>
                <uuid>989e9ee8-2e0a-asdf-asdf-<wbr>00a41fdb1b31</uuid><br>
                <title>dozer</title><br>
                <memory unit='KiB'>8388608</memory><br>
                <currentMemory unit='KiB'>8388608</currentMem<wbr>ory><br>
                <memoryBacking><br>
                <hugepages/><br>
                </memoryBacking><br>
                <vcpu placement='static'>4</vcpu><br>
                <cputune><br>
                <vcpupin vcpu='0' cpuset='4'/><br>
                <vcpupin vcpu='1' cpuset='5'/><br>
                <vcpupin vcpu='2' cpuset='6'/><br>
                <vcpupin vcpu='3' cpuset='7'/><br>
                </cputune><br>
                <os><br>
                <type arch='x86_64' machine='pc-i440fx-xenial'>hvm<wbr></type><br>
                <loader readonly='yes'<br>
                type='pflash'>/usr/share/OVMF/<wbr>OVMF_CODE.fd</loader><br>
                <nvram>/var/lib/libvirt/qemu/n<wbr>vram/dozer_VARS.fd</nvram><br>
                <boot dev='hd'/><br>
                </os><br>
                <features><br>
                <acpi/><br>
                <apic/><br>
                <hyperv><br>
                <relaxed state='on'/><br>
                <vapic state='on'/><br>
                <spinlocks state='on' retries='8191'/><br>
                </hyperv><br>
                </features><br>
                <cpu mode='host-passthrough'><br>
                <topology sockets='1' cores='4' threads='1'/><br>
                </cpu><br>
                <clock offset='localtime'><br>
                <timer name='rtc' tickpolicy='catchup'/><br>
                <timer name='pit' tickpolicy='delay'/><br>
                <timer name='hpet' present='no'/><br>
                <timer name='hypervclock' present='yes'/><br>
                </clock><br>
                <on_poweroff>destroy</on_power<wbr>off><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/kvm-spice</<wbr>emulator><br>
                <disk type='file' device='disk'><br>
                <driver name='qemu' type='qcow2'/><br>
                <source file='/var/lib/libvirt/images/<wbr>dozer.qcow2'/><br>
                <target dev='sda' bus='scsi'/><br>
                <address type='drive' controller='0' bus='0'
                target='0' unit='0'/><br>
                </disk><br>
                <disk type='block' device='disk'><br>
                <driver name='qemu' type='raw' cache='none'
                io='native'/><br>
                <source dev='/dev/sdb1'/><br>
                <target dev='sdb' bus='scsi'/><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'<br>
                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'<br>
                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'<br>
                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'<br>
                function='0x2'/><br>
                </controller><br>
                <controller type='scsi' index='0'
                model='virtio-scsi'><br>
                <driver queues='4'/><br>
                <address type='pci' domain='0x0000' bus='0x00'
                slot='0x05'<br>
                function='0x0'/><br>
                </controller><br>
                <controller type='pci' index='0'
                model='pci-root'/><br>
                <interface type='network'><br>
                <mac address='52:54:00:bb:4f:3b'/><br>
                <source network='default'/><br>
                <model type='virtio'/><br>
                <address type='pci' domain='0x0000' bus='0x00'
                slot='0x03'<br>
                function='0x0'/><br>
                </interface><br>
                <interface type='bridge'><br>
                <mac address='52:54:00:de:52:c9'/><br>
                <source bridge='br0'/><br>
                <model type='virtio'/><br>
                <address type='pci' domain='0x0000' bus='0x00'
                slot='0x09'<br>
                function='0x0'/><br>
                </interface><br>
                <hostdev mode='subsystem' type='pci'
                managed='yes'><br>
                <source><br>
                <address domain='0x0000' bus='0x01' slot='0x00'
                function='0x0'/><br>
                </source><br>
                <rom file='/var/lib/libvirt/roms/MS<wbr>I.RX480.4096.160720.rom'/><br>
                <address type='pci' domain='0x0000' bus='0x00'
                slot='0x02'<br>
                function='0x0'/><br>
                </hostdev><br>
                <hostdev mode='subsystem' type='pci'
                managed='yes'><br>
                <source><br>
                <address domain='0x0000' bus='0x01' slot='0x00'
                function='0x1'/><br>
                </source><br>
                <address type='pci' domain='0x0000' bus='0x00'
                slot='0x04'<br>
                function='0x0'/><br>
                </hostdev><br>
                <hostdev mode='subsystem' type='usb'
                managed='yes'><br>
                <source><br>
                <vendor id='0x24f0'/><br>
                <product id='0x0137'/><br>
                </source><br>
                </hostdev><br>
                <hostdev mode='subsystem' type='usb'
                managed='yes'><br>
                <source><br>
                <vendor id='0x1532'/><br>
                <product id='0x0016'/><br>
                </source><br>
                </hostdev><br>
                <hostdev mode='subsystem' type='usb'
                managed='yes'><br>
                <source><br>
                <vendor id='0x045e'/><br>
                <product id='0x070f'/><br>
                </source><br>
                </hostdev><br>
                <memballoon model='virtio'><br>
                <address type='pci' domain='0x0000' bus='0x00'
                slot='0x08'<br>
                function='0x0'/><br>
                </memballoon><br>
                </devices><br>
                </domain><br>
                <br>
                On Sun, Jan 22, 2017 at 4:30 PM, P. Pronk <<a href="mailto:vfio@pronk.nl" target="_blank"></a><a class="m_2538515199531770476m_2018315969770409593moz-txt-link-abbreviated" href="mailto:vfio@pronk.nl" target="_blank">vfio@pronk.nl</a>> wrote:<br>
                <br>
                    Thanks, that's good to know and I will try to
                specify the rom.<br>
                <br>
                    In the mean time, do you know which bios revision
                your card has?<br>
                    The other revision is<br>
                    <a href="https://www.techpowerup.com/vgabios/185395/msi-rx480-8192-160719" rel="noreferrer" target="_blank">https://www.techpowerup.com/vg<wbr>abios/185395/msi-rx480-8192-16<wbr>0719</a><br>
                <br>
                    So is it 113-MSITV341MH.151 or 113-MSITV341MH.152 ?<br>
                <br>
                    Pim<br>
                <br>
                <br>
                <br>
                    On 2017-01-22 20:46, Scott wrote:<br>
                <br>
                    I have that msi rx480 card working with pass
                through.<br>
                <br>
                        Note I had a much easier time using the uefi
                bios. I am<br>
                        currently<br>
                        specifying a rom file in my XML for my video
                card but I don't<br>
                        think<br>
                        that's entirely necessary.<br>
                <br>
                        scott<br>
                <br>
                        On Jan 22, 2017 12:47 PM, "P. Pronk" <<a href="mailto:vfio@pronk.nl" target="_blank"></a><a class="m_2538515199531770476m_2018315969770409593moz-txt-link-abbreviated" href="mailto:vfio@pronk.nl" target="_blank">vfio@pronk.nl</a>> wrote:<br>
                <br>
                                On Sun, 22 Jan 2017 11:55:57 +1100, Luke
                Yelavich<br>
                            wrote:<br>
                <br>
                                        Who is the manufacturer of both
                your AMD<br>
                                cards? So far as I<br>
                                understand<br>
                                things, its up to the manufacturer of
                the card to<br>
                                provide the<br>
                                appropriate ROM<br>
                                to suit the configuration of the card.
                Its likely that<br>
                                a ROM/BIOS<br>
                                update may<br>
                                fix your RX 480 card. Do both cards work
                under a pure<br>
                                Windows<br>
                                environment?<br>
                <br>
                <br>
                            That's a simple question but a difficult
                answer to get a<br>
                            pure<br>
                            Windows environment working again ;)<br>
                <br>
                            Anyway, I got the following results after
                using GPU-Z<br>
                            under Windows:<br>
                            The RX480 is a MSI Gaming X 8G:<br>
                            <a href="https://www.techpowerup.com/vgabios/187387/187387" rel="noreferrer" target="_blank">https://www.techpowerup.com/vg<wbr>abios/187387/187387</a>
                [1]<br>
                            and the RX460 is a XFX R460P4TFG5:<br>
                            <a href="https://www.techpowerup.com/vgabios/189230/189230" rel="noreferrer" target="_blank">https://www.techpowerup.com/vg<wbr>abios/189230/189230</a>
                [2]<br>
                <br>
                            Cheers, Pim<br>
                <br>
                            ______________________________<wbr>_________________<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<wbr>/listinfo/vfio-users</a>
                [3]<br>
                <br>
                <br>
                        Links:<br>
                        ------<br>
                        [1] <a href="https://www.techpowerup.com/vgabios/187387/187387" rel="noreferrer" target="_blank">https://www.techpowerup.com/vg<wbr>abios/187387/187387</a><br>
                        [2] <a href="https://www.techpowerup.com/vgabios/189230/189230" rel="noreferrer" target="_blank">https://www.techpowerup.com/vg<wbr>abios/189230/189230</a><br>
                        [3] <a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/vfio-users</a><br>
                <br>
                <br>
                <br>
                ______________________________<wbr>_________________<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<wbr>/listinfo/vfio-users</a><br>
              </blockquote>
            </blockquote>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div></div>
</div></blockquote></div><br></div></div></div>