[vfio-users] Error RmInitAdapter failed! (0x24:0x1f:1127) from guest GPU
I am having issues on my guest VM with getting the NVidia drivers to work properly. I keep running into the following issue and get the error in title in my dmesg. What I do is... sudo apt-get update sudo apt-get install linux-image-generic sudo shutdown -r now sudo apt-get install build-essential linux-source linux-headers-`uname -r` sudo ./NVIDIA-Linux-x86_64-367.27.run After I install the NVidia drivers 367.27 and then run nvidia-smi. I then get "no devices were found" but the device shows up with lspci -vnnn on the guest with no problems and shows the driver is attached to the device. $ sudo nvidia-smi No devices were found $ dmesg | grep NVRM [ 636.432822] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 367.27 Thu Jun 9 18:53:27 PDT 2016 [ 647.951682] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 367.27 Thu Jun 9 18:53:27 PDT 2016 [ 664.443838] NVRM: RmInitAdapter failed! (0x24:0x1f:1127) [ 664.443844] NVRM: rm_init_adapter failed for device bearing minor number 0 I have added the flag kvm=off. I did "-cpu Haswell-noTSX,kvm=off" I can confirm that it is off by doing the following on the guest. dmesg | grep Booting [0.00] Booting paravirtualized kernel on bare hardware [0.088000] x86: Booting SMP configuration: Host: $uname -a Linux node-81 3.19.0-79-generic #87~14.04.1-Ubuntu SMP Wed Dec 21 18:12:31 UTC 2016 x86_64 GNU/Linux kvm -version QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5~u14.04+mos3) $virsh -version 1.2.9.3 Guest: $ uname -a Linux safsfd 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux #spci -vnnn 00:05.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1) (prog-if 00 [VGA controller]) Subsystem: NVIDIA Corporation Device 1132 Physical Slot: 5 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
Re: [vfio-users] Dual monitor with spice display + hdmi
It just treats them as independent displays. It can either mirror them, or extend the desktop onto multiple. It can't do multiple independent desktops. A real life example of this is a motherboard with onboard video coupled with a discrete GPU in a slot. As long as the onboard isn't disabled, they can work in tandem, at least for software rendering. From what I understand, as well, DirectX 12 and Vulkan both support hardware rendering with multiple GPUs of different brands. On Wed, Jan 18, 2017 at 1:45 PM, Will Marlerwrote: > That's an interesting scenario ... How does Windows handle multiple > graphics cards? Like, let's say this was all bare metal, and the machine > had 2 different models of nVidia cards and an ATI card, with a monitor > connected to each card. Would Windows be able to display a desktop on each > monitor, or span a single contiguous desktop across them? If yes then I'd > guess that what you're asking is at least theoretically possible, though > I've never tested personally. > > On Wed, Jan 18, 2017 at 12:19 PM, Jayme Howard wrote: > >> I've used both together, but I don't remember if one was mirroring the >> other or if I did it as dual-monitor. It was a configuration I abandoned >> early on. It DID work, but it caused (about 75% of the time) Nvidia code >> 43 issues for me. But it definitely did work outside of that. >> >> On Wed, Jan 18, 2017 at 1:08 PM, Doug Applegate > > wrote: >> >>> Is it possible for a guest VM to use both spice server graphics with >>> qxl video AND hdmi gpu passthrough? Could the guest be configured >>> (windows 10 in this case) see it as a dual-monitor setup? >>> >>> Has anyone tried this or gotten it to work? >>> >>> ___ >>> vfio-users mailing list >>> vfio-users@redhat.com >>> https://www.redhat.com/mailman/listinfo/vfio-users >>> >> >> >> ___ >> vfio-users mailing list >> vfio-users@redhat.com >> https://www.redhat.com/mailman/listinfo/vfio-users >> >> > ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
Re: [vfio-users] Dual monitor with spice display + hdmi
That's an interesting scenario ... How does Windows handle multiple graphics cards? Like, let's say this was all bare metal, and the machine had 2 different models of nVidia cards and an ATI card, with a monitor connected to each card. Would Windows be able to display a desktop on each monitor, or span a single contiguous desktop across them? If yes then I'd guess that what you're asking is at least theoretically possible, though I've never tested personally. On Wed, Jan 18, 2017 at 12:19 PM, Jayme Howardwrote: > I've used both together, but I don't remember if one was mirroring the > other or if I did it as dual-monitor. It was a configuration I abandoned > early on. It DID work, but it caused (about 75% of the time) Nvidia code > 43 issues for me. But it definitely did work outside of that. > > On Wed, Jan 18, 2017 at 1:08 PM, Doug Applegate > wrote: > >> Is it possible for a guest VM to use both spice server graphics with >> qxl video AND hdmi gpu passthrough? Could the guest be configured >> (windows 10 in this case) see it as a dual-monitor setup? >> >> Has anyone tried this or gotten it to work? >> >> ___ >> vfio-users mailing list >> vfio-users@redhat.com >> https://www.redhat.com/mailman/listinfo/vfio-users >> > > > ___ > vfio-users mailing list > vfio-users@redhat.com > https://www.redhat.com/mailman/listinfo/vfio-users > > ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
Re: [vfio-users] Dual monitor with spice display + hdmi
I've used both together, but I don't remember if one was mirroring the other or if I did it as dual-monitor. It was a configuration I abandoned early on. It DID work, but it caused (about 75% of the time) Nvidia code 43 issues for me. But it definitely did work outside of that. On Wed, Jan 18, 2017 at 1:08 PM, Doug Applegatewrote: > Is it possible for a guest VM to use both spice server graphics with > qxl video AND hdmi gpu passthrough? Could the guest be configured > (windows 10 in this case) see it as a dual-monitor setup? > > Has anyone tried this or gotten it to work? > > ___ > vfio-users mailing list > vfio-users@redhat.com > https://www.redhat.com/mailman/listinfo/vfio-users > ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
[vfio-users] Dual monitor with spice display + hdmi
Is it possible for a guest VM to use both spice server graphics with qxl video AND hdmi gpu passthrough? Could the guest be configured (windows 10 in this case) see it as a dual-monitor setup? Has anyone tried this or gotten it to work? ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
Re: [vfio-users] No HDMI audio from AMD RX480 when passed through to Windows 8.1 VM.
On Wed, Jan 18, 2017 at 11:44:11PM AEDT, Janusz wrote: > So Windows doesn't recognize audio device at all? you installed relive > drivers? you are sure there is no other "virtual" audio device selected > as default? Sorry, I certainly could have been clearer... Under sound devices in Device Manager, I do see the AMD HDMI audio device once I have installed the drivers, and prior to that I do see a high definition audio device being used with the WIndows generic drivers, which still doesn't work. The ReLive drivers for the GPU and the HDMI audio device are installed. I should also add that in a pure Windows install, the HDMI audio on the card works just fine. Luke ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
Re: [vfio-users] No HDMI audio from AMD RX480 when passed through to Windows 8.1 VM.
So Windows doesn't recognize audio device at all? you installed relive drivers? you are sure there is no other "virtual" audio device selected as default? On 01/18/2017 10:21 AM, Luke Yelavich wrote: > Greetings. > I'm writing with a rather annoying problem. I am unable to get audio output > through HDMI on an AMD RX480 card that is being passed through to a Windows > 8.1 VM. > > I am running Fedora 25 with all updates applied as of today, 18 January 2017. > I am using libvirt with qemu/KVM, and I am using virt-manager to set things > up. The graphics card itself works fine once the AMD drivers are installed. > > I was reading through the list archives, and noticed that someone else had a > similar suggestion. One suggestion I remember trying in that thread was to > configure the HDMI audio device as a sub-device of the main graphics card, > but that doesn't seem to have helped. You will notice that change in the XML > pasted below. > > One other thing that was asked in that thread was to provide the output of > the domxml-to-native command from virsh. In attempting to run that command, I > get > error: internal error: invalid PCI passthrough type 'default' > > Any help is much appreciated, XML is below. > > Thanks in advance. > > Luke > > > Win8.1-Pro-64 > fc91d936-dbfb-4ddc-a535-752680b969e0 > Windows 8.1 Professional 64-bit > 16777216 > 16777216 > 2 > > hvm > type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.fd > /var/lib/libvirt/qemu/nvram/Win8.1-Pro-64_VARS.fd > > > > > > > > > > > > > > > > > > > destroy > restart > restart > > > > > > /usr/bin/qemu-kvm > > > > > > > > >function='0x7'/> > > > >function='0x0' multifunction='on'/> > > > >function='0x1'/> > > > >function='0x2'/> > > >function='0x0'/> > > > > > > >function='0x0'/> > > > > > > > >function='0x0' multifunction='on'/> > > > > > > >function='0x1'/> > > > > > >function='0x0'/> > > >function='0x0'/> > > > > > ___ > vfio-users mailing list > vfio-users@redhat.com > https://www.redhat.com/mailman/listinfo/vfio-users ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users
[vfio-users] No HDMI audio from AMD RX480 when passed through to Windows 8.1 VM.
Greetings. I'm writing with a rather annoying problem. I am unable to get audio output through HDMI on an AMD RX480 card that is being passed through to a Windows 8.1 VM. I am running Fedora 25 with all updates applied as of today, 18 January 2017. I am using libvirt with qemu/KVM, and I am using virt-manager to set things up. The graphics card itself works fine once the AMD drivers are installed. I was reading through the list archives, and noticed that someone else had a similar suggestion. One suggestion I remember trying in that thread was to configure the HDMI audio device as a sub-device of the main graphics card, but that doesn't seem to have helped. You will notice that change in the XML pasted below. One other thing that was asked in that thread was to provide the output of the domxml-to-native command from virsh. In attempting to run that command, I get error: internal error: invalid PCI passthrough type 'default' Any help is much appreciated, XML is below. Thanks in advance. Luke Win8.1-Pro-64 fc91d936-dbfb-4ddc-a535-752680b969e0 Windows 8.1 Professional 64-bit 16777216 16777216 2 hvm /usr/share/edk2/ovmf/OVMF_CODE.fd /var/lib/libvirt/qemu/nvram/Win8.1-Pro-64_VARS.fd destroy restart restart /usr/bin/qemu-kvm ___ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users