From: David TECHER Subject: Re: =?utf-8?q?=5BXen-users=5D_=EF=BB=BF_Xen_VGA_Passthrou?= =?utf-8?q?gh_-_GTX_680_successfully_=EF=BB=BFhard-moded=09to_GRID_K2?= Date: Wed, 25 Sep 2013 16:10:23 +0100 (BST) Message-ID: <1380121823.72995.YahooMailNeo@web172001.mail.ir2.yahoo.com> References: <1379957311.87960.YahooMailNeo@web172003.mail.ir2.yahoo.com> <1379957703.78329.YahooMailNeo@web172003.mail.ir2.yahoo.com> <20130924151253.GF2924@reaktio.net> <0a0befc680ec51e540f6de1c3e59beba@mail.shatteredsilicon.net> <1380052012.28711.YahooMailNeo@web172005.mail.ir2.yahoo.com> Reply-To: David TECHER Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1428116377697656744==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gordan Bobic Cc: "xen-users@lists.xen.org" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============1428116377697656744== Content-Type: multipart/alternative; boundary="1242719849-625257987-1380121823=:72995" --1242719849-625257987-1380121823=:72995 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gordan,=0A=0A>Let me recap the problem. I only get this on the GTX680=0A>(Q= uadrified to K5000 or Gridified to K2, happens in both=0A>cases) in domU. I= t does NOT happen with a GTX470/480 modified=0A>to Q5000/Q6000. On bare met= al the modified GTX680 works fine,=0A>the issue does not arise. I only trie= d this on XP64, not=0A>attempted on Win7.=0A=0A"DL-DVI" for me means Dual L= ink DVI.=0AYes I have a DL-DVI capable monitor (Resolution: 2560x1440).=C2= =A0 I don't have monitor with Resolution =3D 2560x1600=0A=0AUsing =0A- my D= L-DVI monitor( =3D the Dual Link connector on my graphic card GTX680 is con= nected through=C2=A0 a Dual Link cable to my DL-DVI montior) =0A-my GTX 680= gridified to K2=0A-=C2=A0 high resolutions (2560x1440) =0A=0Amy domU XP64= =C2=A0 is able to boot properly. High resolutions is taken into account=0A= =0ATo avoid any misunderstanding I added a short youtube video where=C2=A0= =C2=A0 my configuration file is printed out and where the domU XP 64 is sta= rted, shutdown. After that the domU XP64 is restarted.=0A=0Ahttp://youtu.be= /UgIuPED-h44 =0A=0ANo black screen when the domU is started.=0A=0A=0A>Hang = on - are you saying that once the Nvidia driver is installed=0A>you can use= gfx_passthry=3D1 an you get the SeaBIOS output and the=0A>boot-up Windows = animaption on the domU monitor, rather than on=0A>the VNC console? Is your = passthrough GPU the primary in dom0?=0A=0AWith gfx_passthru =3D 1=C2=A0 the= boot-up Windows animation is on the VNC console.=0A=0A=0A=0A=0A=0A=0A=0A= =0A=0A=0A=0A=0A________________________________=0A De=C2=A0: Gordan Bobic <= gordan@bobich.net>=0A=C3=80=C2=A0: David TECHER =0AC= c=C2=A0: xen-users@lists.xen.org; Pasi K=C3=A4rkk=C3=A4inen ;= xen-devel@lists.xen.org =0AEnvoy=C3=A9 le : Mercredi 25 septembre 2013 9h5= 9=0AObjet=C2=A0: Re: [Xen-users] =EF=BB=BF[Xen-devel] Xen VGA Passthrough -= GTX 680 successfully =EF=BB=BFhard-moded=09to GRID K2=0A =0A=0AOn Tue, 24 = Sep 2013 20:46:52 +0100 (BST), David TECHER =0A wrote= :=0A=0A> - VM =3D Win XP 64: if I set RAM > 3GB then the VM get slower. VM = gets=0A> slower once NVIDIA driver is installed and that I restarted thsi V= M=0A> :(. I tried a couple of things but unfortunately I was not to fix it.= =0A=0AThat is really weird - I haven't observed any obvious slowdown=0Arela= ted to memory amount in XP64.=0A=0A> Setting RAM=C2=A0 DVI-I Connector=0A> = ----------------------------------------=0A> The dom0 has just started. The= re are two VMs (one XP 64 and one Win 7=0A> 64)=0A>=0A> Start XP 64...OK-->= Screen works!=0A> Stop XP 64...OK--> Screen works!=0A> Start XP 64...OK-->= Screen works!=0A> Restart XP 64...OK--> Screen works!=0A> Stop XP 64...OK-= -> Screen works!=0A> Start Win7 64 ...OK--> Screen works!=0A> Stop Win 64..= .OK--> Screen works!=0A> Start XP 64...KO ---> Black screen!!!=0A> xl destr= oy for this VM. And VM Win 7 64 can start properly...Screen=0A> works=0A>= =0A> Output B =3D> DVI Connector=0A> -------------------------------------= =0A> The dom0 has just started. There are two VMs (one XP 64 and one Win 7= =0A> 64)=0A> Start XP 64...OK --> Screen works!=0A>=0A> Stop XP 64...OK--> = Screen works!=0A> Start XP 64...OK--> Screen works!=0A> Restart XP 64...OK-= -> Screen works!=0A> Stop XP 64...OK--> Screen works!=0A> Start Win7 64 ...= OK--> Screen works!=0A> Stop Win7 64...OK--> Screen works!=0A> Start XP 64.= ..KO ---> Black screen!!!=0A> xl destroy for this VM. And Win 7 64 can star= t properly...Screen =0A> works=0A>=0A> Output C =3D=3D> mini HDMI=0A>=0A> -= -------------------------------=0A> The dom0 has just started. There are tw= o VMs (one XP 64 and one Win 7=0A> 64)=0A> Start XP 64...OK--> Screen works= !=0A> Stop XP 64...OK--> Screen works!=0A> Start XP 64...OK--> Screen works= !=0A> Restart XP 64...OK--> Screen works!=0A> Stop XP 64...OK--> Screen wor= ks!=0A> Start Win7 64 ...OK--> Screen works!=0A> Stop Win7 64...OK--> Scree= n works!=0A> Start XP 64...KO --> Black Screen.=0A> xl destroy for this VM.= And Win 7 64 can start properly...Screen =0A> works=0A>=0A> Conclusion: wh= atever the connector is it seems doable to restart XP =0A> 64=0A> ( no swit= ch to Win 7 64!)=0A=0AThis is presumably with the GTX680?=0ASo it seems to = not work is booting XP64 AFTER using Win7.=0A=0AWhat I was asking was a lit= tle different, though, and=0Aspecific to using dual-link DVI vs. single-lin= k. You do,=0Ahowever, seem to be able to use display-port, which=0Aanswers = a part of my question, since that doesn't work=0Afor me at all.=0A=0ALet me= recap the problem. I only get this on the GTX680=0A(Quadrified to K5000 or= Gridified to K2, happens in both=0Acases) in domU. It does NOT happen with= a GTX470/480 modified=0Ato Q5000/Q6000. On bare metal the modified GTX680 = works fine,=0Athe issue does not arise. I only tried this on XP64, not=0Aat= tempted on Win7.=0A=0ASetup:=0A- Xen 4.3.0=0A- XP64 domU=0A- GTX680 modifie= d to K5000=0A=0ASymptoms:=0A1) Using a VGA monitor works fine.=0A2) Using a= single-link DVI monitor works fine.=0A3) Using a monitor capable of dual-l= ink DVI modes but in low=0Aresolution where the card negotiates only a SL-D= VI mode=0A(<=3D 1280x800 on my Dell 3007WFP) works fine.=0A4) Using a DL-DV= I monitor with high resolution modes=0Arequiring DL-DVI link results in a b= lank screen (monitor goes=0Ato sleep immediately)=0A5) DisplayPort use with= active DL-DVI adapter results in=0Amonitor going to sleep in ANY mode (low= or high res).=0A=0AIn all cases the monitor is identified correctly and it= 's=0Aspecific modes are listed.=0A=0ASo to re-iterate the question - do you= have a DL-DVI=0Amonitor you can try connecting to your GTX680 and see=0Aif= DL modes work from domU XP64? Note: 1920x1200@60Hz=0Ais achievable using S= L-DVI with reduced blanking so not=0Aall monitors that do 1920x1200 are nec= essarily DL-DVI.=0AYou can check this by looking at the Xorg log file if yo= u=0Aare using the monitor on Linux, it should tell you what=0Abandwidth is = used for the mode. If if it is over 165MHz,=0Ait MUST be DL, if it is below= , it may well be SL.=0A=0A> For GTX480/Quadro 6000=0A> =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A>=0A> The latest VMs I set up = were a VM Win 7 64 and a VM Win XP 64. ( =3D 2=0A> VMs)=0A>=0A> - gfx_passt= hru=3D0 while setting up the VM -- before installing NVIDIA=0A> drivers. Wh= ile VMs were setting up I used (native) VNC connection.=0A> (vnc=3D1)=0A>= =0A> - gfx_passthru=3D1 once NVIDIA driver was installed.=0A>=0A> No patch = was used!=0A=0AHang on - are you saying that once the Nvidia driver is inst= alled=0Ayou can use gfx_passthry=3D1 an you get the SeaBIOS output and the= =0Aboot-up Windows animaption on the domU monitor, rather than on=0Athe VNC= console? Is your passthrough GPU the primary in dom0?=0A=0AAlso note that = if you have modified the GTX680 to a Grid K2 (well,=0Ahalf of a Grid K2), y= ou can actually soft-mod it using a similar=0Amethod to the Fermi (4xx seri= es) cards to K5000 (not that there=0Ais much point, mind you). You just hav= e to modify both the=0AUEFI straps in the UEFI header and the BIOS straps i= n the normal=0ABIOS wrapped into all that UEFI garbage (UEFI header is 1024= bytes,=0Aor 0x400 bytes in hex). Or you could just strip out the first 0x4= 00=0Abytes from the BIOS and all the trailing UEFI garbage after a=0Alittle= under 64KB - you can tell where the trailing padding starts=0Aby the fact = it's all 0xFF filled). At the very bottom are the UEFI=0Acrypto certs which= can also be removed.=0A=0ABut if you have gfx_passthrough=3D1 working with= out side-loading=0Athe BIOS with the 64KB limitation, there is probably no = point in=0Adoing this.=0A=0AGordan=0A=0A___________________________________= ____________=0AXen-users mailing list=0AXen-users@lists.xen.org=0Ahttp://li= sts.xen.org/xen-users --1242719849-625257987-1380121823=:72995 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Gordan,

>Le= t me recap the problem. I only get this on the GTX680
>(Quadrified t= o K5000 or Gridified to K2, happens in both
>cases) in domU. It does= NOT happen with a GTX470/480 modified
>to Q5000/Q6000. On bare meta= l the modified GTX680 works fine,
>the issue does not arise. I only = tried this on XP64, not
>attempted on Win7.

"DL-DVI" for me me= ans Dual Link DVI.
Yes I have a DL-DVI capable monitor (Resolution: 2560= x1440).  I don't have monitor with Resolution =3D 2560x1600

Usi= ng
- my DL-DVI monitor( =3D the Dual Link connector on my graphic card = GTX680 is connected through  a Dual Link cable to my DL-DVI montior) <= br>-my GTX 680 gridified to K2
-  high resolutions (2560x1440)
=
my domU XP64  is able to boot properly. High resolutions is taken into account

To avoid any misunderstanding I added a short youtube = video where   my configuration file is printed out and where the = domU XP 64 is started, shutdown. After that the domU XP64 is restarted.
=
http://youtu.be/UgIuPED-h44

No black screen when the domU is st= arted.


>Hang on - are you saying that once the Nvidia driver = is installed
>you can use gfx_passthry=3D1 an you get the SeaBIOS ou= tput and the
>boot-up Windows animaption on the domU monitor, rather= than on
>the VNC console? Is your passthrough GPU the primary in do= m0?

With gfx_passthru =3D 1  the boot-up Windows animation is o= n the VNC console.











De : Gordan Bobic <gordan@bobich.net>
=C3=80 : David TECHER &= lt;davidtecher@yahoo.fr>
Cc&nb= sp;: xen-users@lists.xen.org; Pasi K=C3=A4rkk=C3=A4inen <pasi= k@iki.fi>; xen-devel@lists.xen.org
Envoy=C3=A9 le : Mercredi 25 septembre 2013 9h59
Objet : Re: [Xen-users] = =EF=BB=BF[Xen-devel] Xen VGA Passthrough - GTX 680 successfully =EF=BB=BFha= rd-moded=09to GRID K2
On Tue, 24 Sep 2013 20:46:52 +0100 (BST), David TECHER
<davi= dtecher@yahoo.fr> wrote:

> - VM =3D Win XP 64: if I set RA= M > 3GB then the VM get slower. VM gets
> slower once NVIDIA driver is installed and that I restarted t= hsi VM
> :(. I tried a couple of things but unfortunately I was not t= o fix it.

That is really weird - I haven't observed any obvious slo= wdown
related to memory amount in XP64.

> Setting RAM  D= VI-I Connector
> ----------------------------------------
> The= dom0 has just started. There are two VMs (one XP 64 and one Win 7
> = 64)
>
> Start XP 64...OK--> Screen works!
> Stop XP 64= ...OK--> Screen works!
> Start XP 64...OK--> Screen works!
&= gt; Restart XP 64...OK--> Screen works!
> Stop XP 64...OK--> Sc= reen works!
> Start Win7 64 ...OK--> Screen works!
> Stop Wi= n 64...OK--> Screen works!
> Start XP 64...KO ---> Black screen= !!!
> xl destroy for this VM. And VM Win 7 64 can start properly...Sc= reen
> works
>
> Output B =3D> DVI Connector
> -------------------------------------
> The dom0 h= as just started. There are two VMs (one XP 64 and one Win 7
> 64)
= > Start XP 64...OK --> Screen works!
>
> Stop XP 64...OK-= -> Screen works!
> Start XP 64...OK--> Screen works!
> Re= start XP 64...OK--> Screen works!
> Stop XP 64...OK--> Screen w= orks!
> Start Win7 64 ...OK--> Screen works!
> Stop Win7 64.= ..OK--> Screen works!
> Start XP 64...KO ---> Black screen!!!> xl destroy for this VM. And Win 7 64 can start properly...Screen > works
>
> Output C =3D=3D> mini HDMI
>
> -= -------------------------------
> The dom0 has just started. There ar= e two VMs (one XP 64 and one Win 7
> 64)
> Start XP 64...OK--&g= t; Screen works!
> Stop XP 64...OK--> Screen works!
> Start = XP 64...OK--> Screen works!
> Restart XP 64...OK--> Screen works!
> Stop XP 64...OK--> Screen works!
> Start Win7 64 .= ..OK--> Screen works!
> Stop Win7 64...OK--> Screen works!
&= gt; Start XP 64...KO --> Black Screen.
> xl destroy for this VM. A= nd Win 7 64 can start properly...Screen
> works
>
> Conc= lusion: whatever the connector is it seems doable to restart XP
> 64=
> ( no switch to Win 7 64!)

This is presumably with the GTX6= 80?
So it seems to not work is booting XP64 AFTER using Win7.

W= hat I was asking was a little different, though, and
specific to using = dual-link DVI vs. single-link. You do,
however, seem to be able to use = display-port, which
answers a part of my question, since that doesn't w= ork
for me at all.

Let me recap the problem. I only get this on= the GTX680
(Quadrified to K5000 or Gridified to K2, happens in both cases) in domU. It does NOT happen with a GTX470/480 modified
to Q5000/Q6000. On bare metal the modified GTX680 works fine,
the issu= e does not arise. I only tried this on XP64, not
attempted on Win7.
=
Setup:
- Xen 4.3.0
- XP64 domU
- GTX680 modified to K5000<= br>
Symptoms:
1) Using a VGA monitor works fine.
2) Using a sin= gle-link DVI monitor works fine.
3) Using a monitor capable of dual-lin= k DVI modes but in low
resolution where the card negotiates only a SL-D= VI mode
(<=3D 1280x800 on my Dell 3007WFP) works fine.
4) Using = a DL-DVI monitor with high resolution modes
requiring DL-DVI link resul= ts in a blank screen (monitor goes
to sleep immediately)
5) Display= Port use with active DL-DVI adapter results in
monitor going to sleep i= n ANY mode (low or high res).

In all cases the monitor is identifie= d correctly and it's
specific modes are listed.

So to re-iterat= e the question - do you have a DL-DVI
monitor you can try connecting to your GTX680 and see
if DL modes work from domU XP64? Not= e: 1920= x1200@60Hz
is achievable using SL-DVI with reduced blanking so not<= br> all monitors that do 1920x1200 are necessarily DL-DVI.
You can chec= k this by looking at the Xorg log file if you
are using the monitor on = Linux, it should tell you what
bandwidth is used for the mode. If if it= is over 165MHz,
it MUST be DL, if it is below, it may well be SL.
<= br>> For GTX480/Quadro 6000
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D
>
> The latest VMs I set up were a VM = Win 7 64 and a VM Win XP 64. ( =3D 2
> VMs)
>
> - gfx_pas= sthru=3D0 while setting up the VM -- before installing NVIDIA
> drive= rs. While VMs were setting up I used (native) VNC connection.
> (vnc= =3D1)
>
> - gfx_passthru=3D1 once NVIDIA driver was installed.<= br>>
> No patch was used!

Hang on - are you saying that once the Nvidia driver is installed
you = can use gfx_passthry=3D1 an you get the SeaBIOS output and the
boot-up = Windows animaption on the domU monitor, rather than on
the VNC console?= Is your passthrough GPU the primary in dom0?

Also note that if you= have modified the GTX680 to a Grid K2 (well,
half of a Grid K2), you c= an actually soft-mod it using a similar
method to the Fermi (4xx series= ) cards to K5000 (not that there
is much point, mind you). You just hav= e to modify both the
UEFI straps in the UEFI header and the BIOS straps= in the normal
BIOS wrapped into all that UEFI garbage (UEFI header is = 1024 bytes,
or 0x400 bytes in hex). Or you could just strip out the fir= st 0x400
bytes from the BIOS and all the trailing UEFI garbage after a<= br> little under 64KB - you can tell where the trailing padding starts
= by the fact it's all 0xFF filled). At the very bottom are the UEFI
crypto certs which can also be removed.

But if you have gfx_passth= rough=3D1 working without side-loading
the BIOS with the 64KB limitatio= n, there is probably no point in
doing this.

Gordan

____= ___________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users


--1242719849-625257987-1380121823=:72995-- --===============1428116377697656744== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============1428116377697656744==--