<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Running into some issues with passing through an R9 380 (besides the usual reset bug). Processor's a 5960x, if that's relevant.</div>

<div> </div>

<div>First up, I'm running Arch Linux on kernel 4.4.5. For what it's worth, the issues occurred on the latest Fedora kernel, too.</div>

<div> </div>

<div>I'm using OVMF rather than VGA, vfio-pci only, no pci-stub. The passthrough itself works, using either libvirt or QEMU directly. However, I'm only seeing ~60% of native GPU performance running benchmarks in the VM. Other than that, the VM performs fine (although it takes an oddly long time to boot).</div>

<div> </div>

<div>My QEMU options are as follows:</div>

<div> </div>

<div>taskset -ac 4-15 qemu-system-x86_64 \<br/>
    -name Win10 \<br/>
    -enable-kvm \<br/>
    -nodefaults \<br/>
    -nodefconfig \<br/>
    -rtc base=localtime \<br/>
    -cpu host \<br/>
    -smp sockets=1,cores=6,threads=2 \<br/>
    -m 24756 \<br/>
    -soundhw hda \<br/>
    -serial none \<br/>
    -parallel none \<br/>
    -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd \<br/>
    -drive if=virtio,format=raw,cache=none,aio=native,file=/dev/guests/win10 \<br/>
    -device vfio-pci,host=02:00.0,multifunction=on \<br/>
    -device vfio-pci,host=02:00.1 \<br/>
    -usb -device usb-host,hostbus=2,hostaddr=4 \<br/>
    -usb -device usb-host,hostbus=2,hostaddr=3</div>

<div> </div>

<div>Both the devices I'm passing through constitute a whole IOMMU group.</div>

<div> </div>

<div>dmesg doesn't bring up any errors. To be honest, I'm not sure how to begin deciphering this, as you can probably tell. This is the first time I've attempted GPU passthrough, on a new system, and after reading about the workarounds necessary to get nvidia cards working I figured AMD was the better choice. Clearly I was wrong!</div>

<div> </div>

<div>Did I make an (expensive!) mistake in purchasing a R9 380, or have other people had better luck? Does anyone know how to go about improving performance? I haven't experimented with hugepages, but the problem seems to be solely "graphical" in nature. CPU pinning doesn't seem to make any difference, as you'd expect.</div>

<div> </div>
</div></div></body></html>