<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>You can't really reset a card using SeaBIOS because it uses VGA
      arbitration, which has little to do with how an actual PCI
      passthrough would work IIRC. What makes you so sure that the issue
      comes from the gpu not resetting, is dmesg returning anything
      suspicious or is your qemu command completing successfully after
      you shutdown your VM? If you're not using libvirt, qemu is
      supposed to log error messages in the standard error stream
      instead, does anything abnormal come up when the VM shuts down?<br>
    </p>
    <p><br>
    </p>
    <p>- Nicolas<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2016-07-04 15:46, Gerhard de Clercq
      wrote:<br>
    </div>
    <blockquote
cite="mid:VI1PR0401MB1854AE523768F50D213E393CB8380@VI1PR0401MB1854.eurprd04.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p>I was actually running though command line so no libvirt log
          and I didn't see anything in journalctl though I'm not
          entirely sure what to look for. I do indeed pass some other
          devices. I also saw in dmesg dat vfio-pci was warning about
          the ROM being invalid when I tried to start a VM the second or
          later time but passing a vgabios explicitly didn't make any
          difference. Here is my command:</p>
        <p><br>
        </p>
        <div>sudo qemu-system-x86_64 -enable-kvm -M q35 -m 4G -cpu
core2duo,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,kvm=off,hv_vendor_id=badapple 
          -smp 4,sockets=1,cores=2,threads=2  -bios OVMF.fd -device
ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 -device
          i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e -device
          pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x1 -device
          piix3-usb-uhci,id=usb,bus=pci.2,addr=0x1 -device
          ahci,id=sata0,bus=pci.2,addr=0x5 -drive
          file=./Untitled.iso,if=none,id=drive-sata0-0-2,format=raw
          -device
          ide-hd,bus=ide.2,drive=drive-sata0-0-2,id=sata0-0-2,bootindex=1
          -drive
file=./nomachine.qcow2,if=none,media=disk,id=drive-sata0-0-0,format=qcow2
          -device ide-hd,bus=sata0.0,drive=drive-sata0-0-0,id=sata0-0-0
          -smbios type=2 -serial stdio -device
          vfio-pci,host=05:00.0,bus=pcie.0,multifunction=on -device
          vfio-pci,host=05:00.1,bus=pcie.0 -netdev
          tap,id=net0,ifname=tap0,script=no,downscript=no -device
          e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 -usb
          -device usb-host,hostbus=3,hostaddr=3 -vga none<br>
          <br>
          Also, I was wondering, is it definitely impossible to reset a
          card when using vfio-vga and seabios?<br>
        </div>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          color="#000000" face="Calibri, sans-serif"><b>From:</b>
          Nicolas Roy-Renaud <a class="moz-txt-link-rfc2396E" href="mailto:nicolas.roy-renaud.1@ens.etsmtl.ca"><nicolas.roy-renaud.1@ens.etsmtl.ca></a><br>
          <b>Sent:</b> 04 July 2016 07:18:12 PM<br>
          <b>To:</b> Gerhard de Clercq<br>
          <b>Cc:</b> vfio-users<br>
          <b>Subject:</b> Re: [vfio-users] No reset on GT730</font>
        <div> </div>
      </div>
      <div>
        <p>Are you passing through any other PCI devices, like USB
          controllers or soundcards? I'm guessing you've already checked
          your vm logs in /var/log/libvirt/qemu and the daemon logs in
          journalctl?<br>
        </p>
        <p><br>
        </p>
        <p>- Nicolas<br>
        </p>
        <br>
        <div class="moz-cite-prefix">On 2016-07-03 12:33, Gerhard de
          Clercq wrote:<br>
        </div>
        <blockquote
cite="mid:VI1PR0401MB18542BB04F0D4FD51F9EBD41B8270@VI1PR0401MB1854.eurprd04.prod.outlook.com"
          type="cite">
          <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
          <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
            <p>I am trying to set up PCI passthrough of my Nvidia GT730
              GPU on a fully up to date Fedora 24 system. I have managed
              to get it working but the problem is that it only works
              once after booting the host and to run again I need to
              reboot the host. I have determined that this is most
              likely caused by the fact that the GPU is not being reset.
              I bought this GPU because it has UEFI support after I
              could not get another one working with BIOS. It appeared
              as if though only AMD GPUs had a reset problem. Is this a
              known problem with this GPU and is there any way that I
              can try to force a reset?<br>
            </p>
          </div>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
vfio-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/vfio-users">https://www.redhat.com/mailman/listinfo/vfio-users</a>
</pre>
        </blockquote>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>