<div>Oh my goodness!  I've removed rombar=0 and voila!  (Strangely even with other configurations it's failed before but I must have been doing something else wrong.  It's not worth questioning it now :P.)<br></div><div><br></div><div>Cheers Alex, you're a lifesaver.<br></div><div><br></div><div>-Matthew<br></div><div><br></div><div class="protonmail_signature_block">Sent from <a href="https://protonmail.com">ProtonMail</a>, Swiss-based encrypted email.<br></div><div><br></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [vfio-users] [help] Pci passthrough - I've probably done something really obvious wrong<br></div><div>Local Time: March 19, 2016 3:06 PM<br></div><div>UTC Time: March 19, 2016 3:06 PM<br></div><div>From: alex.l.williamson@gmail.com<br></div><div>To: mwolfie@protonmail.com<br></div><div>CC: vfio-users@redhat.com<br></div><div><br></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Sat, Mar 19, 2016 at 7:38 AM, Matthew Wolffsohn <span dir="ltr"><<a href="mailto:mwolfie@protonmail.com">mwolfie@protonmail.com</a>></span> wrote:<br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div>Hi Vfio-users,<br></div><div><br></div><div>I'm trying to passthrough a single GPU (originally I was trying to passthrough two, but I have removed the other from the system to reduce the chance it could be causing a problem) to a standard Windows 8 VM.  Unfortunately upon starting the VM I get no output to either of my displays and the qemu output is spammed with dma errors such as below:<br></div><div><br></div><div>dma: command 78 not supported<br></div><div>dma: command 78 not supported<br></div><div>dma: command 80 not supported<br></div><div>dma: command 80 not supported<br></div><div>dma: command c8 not supported<br></div><div>dma: command c8 not supported<br></div><div>dma: command 80 not supported<br></div><div>dma: command 80 not supported<br></div><div>dma: command c8 not supported<br></div><div>dma: command c8 not supported<br></div><div>dma: command f8 not supported<br></div><div>dma: command c not supported<br></div><div>dma: command 84 not supported<br></div><div>...snip...<br></div></blockquote><div><br></div><div>These are not coming from vfio, they're generated by the i8257 dma controller in QEMU.<br></div><div> <br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div>Let me run through some of the other specifics of my system.  I'm currently assigning the GPU to pci-stub using the grub commandline:<br></div><div>[root@UnforseenCircumstances ~]# cat /proc/cmdline <br></div><div>BOOT_IMAGE=/boot/vmlinuz-linux-vfio root=UUID=8aa1247d-5b3c-4282-b666-d4000ff5a517 rw quiet splash resume=UUID=17129c2f-d322-4662-8bf5-d1ca010968e6 i915.enable_hd_vgaarb=1 intel_iommu=on pci-stub.ids=10de:1200,10de:0e0c<br></div><div><br></div><div>I am also attempting to use an Intel iGPU has the host's display, for that reason I'm trying to use the vga arbitration patch.  Strangely however, I still seem to have hardware accelleration on my iGPU - Shouldn't that be impossible due to the nature of the patch?<br></div><div>After booting I use the following command to rebind the gpu to vfio-pci:<br></div><div>[root@UnforseenCircumstances ~]# cat bindcmd.txt<br></div><div>sudo /usr/bin/vfio-bind 0000:01:00.0 0000:01:00.1<br></div><div><br></div><div>I cannot use OVMF as my GPU is a Geforce 560 Ti, it has not UEFI ROM support so SeaBios is my only option.<br></div><div>[root@UnforseenCircumstances ~]# lspci -nnk | grep NVIDIA<br></div><div>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF114 [GeForce GTX 560 Ti] [10de:1200] (rev a1)<br></div><div>01:00.1 Audio device [0403]: NVIDIA Corporation GF114 HDMI Audio Controller [10de:0e0c] (rev a1)<br></div></blockquote><div><br></div><div>Fermi cards don't have a great success record with device assignment for some reason.<br></div><div> <br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div>And finally, as my GPU ROM won't play ball with me I'm using a downloaded ROM from TechpowerUp (For the same model!)<br></div><div>[root@UnforseenCircumstances ~]# cat startvm.sh <br></div><div>#!/bin/bash<br></div><div><br></div><div>qemu-system-x86_64 \<br></div><div>-enable-kvm -m 1024 -cpu host,kvm=off \<br></div><div>-smp 4,sockets=1,cores=4,threads=1 \<br></div><div>-device vfio-pci,host=01:00.0,x-vga=on,rombar=0,romfile=/root/gpurom.rom \<br></div></blockquote><div><br></div><div>rombar=0 is clearly wrong, but I don't know if it's the source of your problems.<br></div><div> <br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div><br></div><div>-device vfio-pci,host=01:00.1 \<br></div><div>-vga none \<br></div><div>-device virtio-scsi-pci,id=scsi \<br></div><div>-drive file=/home/mwolffsohn/kvm/win8.iso,id=isocd,format=raw,if=none -device scsi-cd,drive=isocd \<br></div><div>-drive file=/root/win.img,id=disk,format=qcow2,if=none,cache=writeback -device scsi-hd,drive=disk \<br></div><div>-drive file=/home/mwolffsohn/kvm/virtio-win.iso,id=virtiocd,if=none,format=raw -device ide-cd,bus=ide.1,drive=virtiocd<br></div><div><br></div><div>Hopefully I'm doing something really obvious wrong because this has been confusing me for ages!<br></div><div>Many thanks in advance,<br></div><div><br></div><div>-Matthew Wolffsohn<br></div><div><br></div><div>Sent from <a href="https://protonmail.com">ProtonMail</a>, Swiss-based encrypted email.<br></div><div><br></div><div>_______________________________________________<br></div><div>
vfio-users mailing list<br></div><div>
<a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br></div><div>
<a rel="noreferrer" href="https://www.redhat.com/mailman/listinfo/vfio-users">https://www.redhat.com/mailman/listinfo/vfio-users</a><br></div><div>
<br></div></blockquote></div></div></div></blockquote><div><br></div>