AMD R9 Nano reset problem
Submitted by cre..@..il.com
Assigned to Default DRI bug account
Description
I am trying to passthrough R9 Nano to a VM, and facing some problems. After Windows 7 has been installed, the latest AMD Crimson edition driver is installed. At first time, the driver works properly. There appears to have the problem when I power off the vm and restart it. The driver was not working until I reboot the host.
Here is my system.
Manufacturer: Supermicro
Product Name: X10DAi
CPU: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
memory: 8GB
linux kernel: 3.19.0
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.19.0 root=UUID=fc28306a-e168-406a-805d-cadf70de53ec ro quiet splash intel-iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1 vt.handoff=7
I tried to use qemu version 2.3.1, 2.4.1, and 2.5.1.
I also added the device id number into the function vfio_setup_resetfn(), but the problem remains.
I start my virtual machine with the following code.
qemu-system-x86_64 -enable-kvm <br>
-M pc -m 4096 -cpu host <br>
-smp 4,sockets=1,cores=4,threads=1 <br>
-rtc base=localtime <br>
-vnc :0 <br>
-vga none <br>
-device lsi,id=scsi0,bus=pci.0 <br>
-device vfio-pci,host=03:00.0,x-vga=on <br>
-device vfio-pci,host=03:00.1 <br>
-hda $1 <br>
-monitor stdio