<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">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">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">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>