Re: [vfio-users] Dual monitor with spice display + hdmi

2017-01-22 Thread Daimon Wang
Yes, I can confirm that a PC with on-board Intel card and an NV card can be 
configured for dual-monitor, with Aero on. And I can make a video window across 
both screen.However, I haven't success with Linux host. I've read in another 
thread that you can start 2 X server, each for one card.
While for VM, the qemu pass-through readme said IGD card can be the secondary 
card for calculation only (so no output). This mode is named "Universal 
Pass-Through", so maybe the NV card in this mode will have the same behavior?
Regards,Daimon 

On Thursday, January 19, 2017 3:57 AM, Jayme Howard  
wrote:
 

 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 Marler  wrote:

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


   ___
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users


Re: [vfio-users] amd rx480 invalid rom contents

2017-01-22 Thread Scott
Here is my xml in case it helps:


  dozer
  989e9ee8-2e0a-asdf-asdf-00a41fdb1b31
  dozer
  8388608
  8388608
  

  
  4
  




  
  
hvm
/usr/share/OVMF/OVMF_CODE.fd
/var/lib/libvirt/qemu/nvram/dozer_VARS.fd

  
  



  
  
  

  
  

  
  




  
  destroy
  restart
  restart
  


  
  
/usr/bin/kvm-spice

  
  
  
  


  
  
  
  


  


  
  


  
  


  
  


  
  



  
  
  
  


  
  
  
  


  

  
  
  


  

  
  


  


  


  


  


  


  


  

  



On Sun, Jan 22, 2017 at 4:30 PM, P. Pronk  wrote:

>
> Thanks, that's good to know and I will try to specify the rom.
>
> In the mean time, do you know which bios revision your card has? The other
> revision is https://www.techpowerup.com/vgabios/185395/msi-rx480-8192-16
> 0719
>
> So is it 113-MSITV341MH.151 or 113-MSITV341MH.152 ?
>
> Pim
>
>
>
> On 2017-01-22 20:46, Scott wrote:
>
>> I have that msi rx480 card working with pass through.
>>
>> Note I had a much easier time using the uefi bios. I am currently
>> specifying a rom file in my XML for my video card but I don't think
>> that's entirely necessary.
>>
>> scott
>>
>> On Jan 22, 2017 12:47 PM, "P. Pronk"  wrote:
>>
>> On Sun, 22 Jan 2017 11:55:57 +1100, Luke Yelavich wrote:
>>>
>>> Who is the manufacturer of both your AMD cards? So far as I
 understand
 things, its up to the manufacturer of the card to provide the
 appropriate ROM
 to suit the configuration of the card. Its likely that a ROM/BIOS
 update may
 fix your RX 480 card. Do both cards work under a pure Windows
 environment?

>>>
>>> That's a simple question but a difficult answer to get a pure
>>> Windows environment working again ;)
>>>
>>> Anyway, I got the following results after using GPU-Z under Windows:
>>> The RX480 is a MSI Gaming X 8G:
>>> https://www.techpowerup.com/vgabios/187387/187387 [1]
>>> and the RX460 is a XFX R460P4TFG5:
>>> https://www.techpowerup.com/vgabios/189230/189230 [2]
>>>
>>> Cheers, Pim
>>>
>>> ___
>>> vfio-users mailing list
>>> vfio-users@redhat.com
>>> https://www.redhat.com/mailman/listinfo/vfio-users [3]
>>>
>>
>>
>> Links:
>> --
>> [1] https://www.techpowerup.com/vgabios/187387/187387
>> [2] https://www.techpowerup.com/vgabios/189230/189230
>> [3] 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] amd rx480 invalid rom contents

2017-01-22 Thread P. Pronk


Thanks, that's good to know and I will try to specify the rom.

In the mean time, do you know which bios revision your card has? The 
other revision is 
https://www.techpowerup.com/vgabios/185395/msi-rx480-8192-160719


So is it 113-MSITV341MH.151 or 113-MSITV341MH.152 ?

Pim



On 2017-01-22 20:46, Scott wrote:

I have that msi rx480 card working with pass through.

Note I had a much easier time using the uefi bios. I am currently
specifying a rom file in my XML for my video card but I don't think
that's entirely necessary.

scott

On Jan 22, 2017 12:47 PM, "P. Pronk"  wrote:


On Sun, 22 Jan 2017 11:55:57 +1100, Luke Yelavich wrote:


Who is the manufacturer of both your AMD cards? So far as I
understand
things, its up to the manufacturer of the card to provide the
appropriate ROM
to suit the configuration of the card. Its likely that a ROM/BIOS
update may
fix your RX 480 card. Do both cards work under a pure Windows
environment?


That's a simple question but a difficult answer to get a pure
Windows environment working again ;)

Anyway, I got the following results after using GPU-Z under Windows:
The RX480 is a MSI Gaming X 8G:
https://www.techpowerup.com/vgabios/187387/187387 [1]
and the RX460 is a XFX R460P4TFG5:
https://www.techpowerup.com/vgabios/189230/189230 [2]

Cheers, Pim

___
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users [3]



Links:
--
[1] https://www.techpowerup.com/vgabios/187387/187387
[2] https://www.techpowerup.com/vgabios/189230/189230
[3] 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] Stuck at Tiano Core Splash Screen

2017-01-22 Thread Zachary Boley
I noticed you don't have the vendor_id args in the hyperv area

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#.22Error_43_:_Driver_failed_to_load.22_on_Nvidia_GPUs_passed_to_Windows_VMs

Give that a read, that's usually what you need as well as kvm=hidden

On Jan 22, 2017 2:54 PM, "Luke Yelavich"  wrote:

> On Mon, Jan 23, 2017 at 04:24:54AM AEDT, fenix23 . wrote:
> > Hi,
> >
> > I have working vm with passedthrough GTX 980 Ti. I run it with command
> > below.
>
> Looking at your XML, I think you need to change your cpu stanza as follows:
>
> You need to change:
>
>   
> Haswell-noTSX
>   
>
> to:
>
> 
>
> That way the exact model of your CPU is passed through to the guest VM.
> There may be more, but thats one thing I did notice at a glance which could
> be the cause.
>
> Luke
>
> ___
> 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] amd rx480 invalid rom contents

2017-01-22 Thread Scott
I have that msi rx480 card working with pass through.

Note I had a much easier time using the uefi bios. I am currently
specifying a rom file in my XML for my video card but I don't think that's
entirely necessary.

scott

On Jan 22, 2017 12:47 PM, "P. Pronk"  wrote:

> On Sun, 22 Jan 2017 11:55:57 +1100, Luke Yelavich wrote:
>
>> Who is the manufacturer of both your AMD cards? So far as I understand
>> things, its up to the manufacturer of the card to provide the appropriate
>> ROM
>> to suit the configuration of the card. Its likely that a ROM/BIOS update
>> may
>> fix your RX 480 card. Do both cards work under a pure Windows environment?
>>
>
>
> That's a simple question but a difficult answer to get a pure Windows
> environment working again ;)
>
> Anyway, I got the following results after using GPU-Z under Windows:
> The RX480 is a MSI Gaming X 8G: https://www.techpowerup.com/vg
> abios/187387/187387
> and the RX460 is a XFX R460P4TFG5: https://www.techpowerup.com/vg
> abios/189230/189230
>
> Cheers, Pim
>
> ___
> 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] amd rx480 invalid rom contents

2017-01-22 Thread P. Pronk

On Sun, 22 Jan 2017 11:55:57 +1100, Luke Yelavich wrote:

Who is the manufacturer of both your AMD cards? So far as I understand
things, its up to the manufacturer of the card to provide the 
appropriate ROM
to suit the configuration of the card. Its likely that a ROM/BIOS 
update may
fix your RX 480 card. Do both cards work under a pure Windows 
environment?



That's a simple question but a difficult answer to get a pure Windows 
environment working again ;)


Anyway, I got the following results after using GPU-Z under Windows:
The RX480 is a MSI Gaming X 8G: 
https://www.techpowerup.com/vgabios/187387/187387
and the RX460 is a XFX R460P4TFG5: 
https://www.techpowerup.com/vgabios/189230/189230


Cheers, Pim

___
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users


[vfio-users] Stuck at Tiano Core Splash Screen

2017-01-22 Thread fenix23 .
Hi,

I have working vm with passedthrough GTX 980 Ti. I run it with command
below.

QEMU_ALSA_DAC_BUFFER_SIZE=1881 QEMU_ALSA_DAC_PERIOD_SIZE=940
QEMU_AUDIO_DRV=alsa exec \
qemu-system-x86_64 \
  -enable-kvm \
  -smp cores=2,threads=2 \
  -m 12G \
  -cpu host,kvm=off \
  -vga none \
  -usb -usbdevice host:046d:c328 \
  -nographic \
  -usb -usbdevice host:046d:c069 \
  -device vfio-pci,host=01:00.0,multifunction=on,romfile=/root/vbios.rom \
-device vfio-pci,host=01:00.1 \
  -drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \
  -drive if=pflash,format=raw,file=/tmp/my_vars.fd \
  -device virtio-scsi-pci,id=scsi \
  -drive file=/home/iso/windows10_x64.iso,id=isocd,format=raw,if=none
-device scsi-cd,drive=isocd \
  -drive file=/home/iso/virtio-win.iso,id=virtio,format=raw,if=none -device
ide-cd,bus=ide.1,drive=virtio \
  -drive
file=/home/vm/firebird_ws/firebird_ws.img,id=disk,format=qcow2,if=none,cache=writeback
-device scsi-hd,drive=disk \
  -net nic -net bridge,br=br0 \


Now I'm trying to run it under libvirt but I only getting TianoCore splash
screen on GPU output and windows boot's up and in VNC i see code 43 on gpu
card.

How to debug it and make it run?

XML file below:


  windows10
  5fc3a2cf-e58c-4127-abf1-45c8572d9b8e
  4194304
  4194304
  4
  
hvm
/usr/share/OVMF/OVMF_CODE.fd
/tmp/my_vars.fd

  
  



  
  
  

  
  
Haswell-noTSX
  
  




  
  destroy
  restart
  restart
  


  
  
/usr/bin/kvm

  
  
  
  


  


  
  


  
  


  
  



  


  
  
  
  


  


  


  




  


  
  


  

  
  
  


  

  
  
  


  


  
  


  


  
  


  

  


Best Regards
Tomasz Strzelecki
___
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users


Re: [vfio-users] amd rx480 invalid rom contents

2017-01-22 Thread Rokas Kupstys
> ddccontrol
This is unrelated to your problem, but thank you very much for
mentioning this software. I was not aware of ddc/i2c or ddccontrol
before. After some tinkering i came up with full software kwm switch for
VMs
.
Hope it will be useful for ya people.

Rokas Kupstys

On 22/01/17 01:15, P. Pronk wrote:
> Hi all,
>
> Hope you can help me with this. I've built a new pc specifically with
> vfio in mind but unfortunately I can't get it too work. My pc consists
> of an Asus X99-M motherboard, Intel E5-1620v4, AMD RX480 in PCIE slot
> 1 (for Windows guest) and AMD RX460 in slot 3 (for Linux host). Both
> GPU's are connected to the same monitor, I will switch inputs by using
> ddccontrol.
>
> What is probably important to know, the one thing I missed when
> searching components is that Asus doesn't offer a 'boot gpu in slot X
> first' option. So that means when my pc boots it uses the RX480 as
> display. I have tried both setting the ids using pci-stub as vfio-pci,
> and although I can get the vfio-pci driver correctly assigned to the
> RX480 it seems in both cases there is a problem with the ROM.
>
> When I start my Windows guest, I can see a quite some CPU activity in
> virt-manager but the screen never turns on. The dmesg log says the
> following:
> ---
> [  216.982418] vgaarb: device changed decodes:
> PCI::01:00.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
> [  217.091942] device vnet0 entered promiscuous mode
> [  217.092107] br0: port 2(vnet0) entered forwarding state
> [  217.092123] br0: port 2(vnet0) entered forwarding state
> [  218.067955] vfio_ecap_init: :01:00.0 hiding ecap 0x19@0x270
> [  218.067961] vfio_ecap_init: :01:00.0 hiding ecap 0x1b@0x2d0
> [  218.067965] vfio_ecap_init: :01:00.0 hiding ecap 0x1e@0x370
> [  218.068429] vfio-pci :01:00.0: BAR 0: can't reserve [mem
> 0xc000-0xcfff 64bit pref]
> [  220.465312] kvm: zapping shadow pages for mmio generation wraparound
> [  220.465835] kvm: zapping shadow pages for mmio generation wraparound
> [  220.512593] vfio-pci :01:00.0: Invalid ROM contents
> [  220.512617] vfio-pci :01:00.0: Invalid ROM contents
> ---
>
> So I tried Alex's rom-parser, but unfortunately that doesnt seem to
> work either for the RX480:
> ---
> # ./rom-parser /tmp/rx480.rom
> Valid ROM signature found @0h, PCIR offset 24ch
> PCIR: type 0 (x86 PC-AT), vendor: 1002, device: 67df, class: 03
> PCIR: revision 0, vendor revision: f32
> Error, ran off the end
> ---
>
> For the RX460 it does work:
> ---
> # ./rom-parser /tmp/rx460.rom
> Valid ROM signature found @0h, PCIR offset 26ch
> PCIR: type 0 (x86 PC-AT), vendor: 1002, device: 67ef, class: 03
> PCIR: revision 0, vendor revision: f32
> Valid ROM signature found @ec00h, PCIR offset 1ch
> PCIR: type 3 (EFI), vendor: 1002, device: 67ef, class: 03
> PCIR: revision 0, vendor revision: 0
> EFI: Signature Valid, Subsystem: Boot, Machine: X64
> Last image
> ---
>
> I am running Linux Mint 18, which is basically Ubuntu 16.04.
> Kernel: Linux 4.4.0-59-generic
> Qemu: 1:2.5+dfsg-5ubuntu10.6
> Ovmf: 0~20160408.ffea0a2c-2
> Amdgpu: amdgpu-pro-16.50-362463
>
> Maybe related, in dmesg I also get these errors (repeatedly):
> ---
> [   17.918696] pcieport :00:02.0: AER: Multiple Corrected error
> received: id=0010
> [   17.918705] pcieport :00:02.0: PCIe Bus Error:
> severity=Corrected, type=Data Link Layer, id=0010(Receiver ID)
> [   17.918707] pcieport :00:02.0:   device [8086:6f04] error
> status/mask=0040/2000
> [   17.918708] pcieport :00:02.0:[ 6] Bad TLP
> ---
>
> See below the output of 'lspci -tv'
> ---
> -+-[:ff]-+-0b.0  Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3
> v4/Xeon D R3 QPI Link 0/1
>  +(shorted_but_a_lot_of_Intel_stuff)
>  \-[:00]-+-00.0  Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3
> v4/Xeon D DMI2
>  +-01.0-[03]--
>  +-02.0-[02]--+-00.0  Advanced Micro Devices, Inc.
> [AMD/ATI] Device 67ef
>  |\-00.1  Advanced Micro Devices, Inc.
> [AMD/ATI] Device aae0
>  +-03.0-[01]--+-00.0  Advanced Micro Devices, Inc.
> [AMD/ATI] Device 67df
>  |\-00.1  Advanced Micro Devices, Inc.
> [AMD/ATI] Device aaf0
>  +-05.0  Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3
> v4/Xeon D Map/VTd_Misc/System Management
>  +-05.1  Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3
> v4/Xeon D IIO Hot Plug
>  +-05.2  Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3
> v4/Xeon D IIO RAS/Control Status/Global Errors
>  +-05.4  Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3
> v4/Xeon D I/O APIC
>  +-11.0  Intel Corporation C610/X99 series chipset SPSR
>