Skip to contentSkip to conversation

Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

DISCUSSION David TECHER 5 participants 15 messages Sep 23, 2013 – Sep 28, 2013 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi Gordan,

I wanted to let you know that today I decided to have a try for my GTX 680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so VGA passthrough could work.

Following instructions found on http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/ I just removed two resistors.

Here is a screenshot taken from a VM (Ubuntu 12.04 32 bits) with more 8GB of RAM.

http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/

I did the test on another VM (Windows 7 64 bits).  I was able to play games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very impressive.

I just added a youtube video about my tests for my hard-moded card

http://youtu.be/L1RoOx8wC7A

Apologies I am French so I am speaking in French in the video. Just to show that it works perfectly.

Kind regards.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Apologies I forgot to add the image from Linux

http://img11.hostingpics.net/pics/528734ScreenshotXen430GTX680HardmodedGRIDK2.png

________________________________
De : David TECHER <[email protected]>
À : "[email protected]" <[email protected]>
Cc : "[email protected]" <[email protected]>; "[email protected]" <[email protected]> Envoyé le : Lundi 23 septembre 2013 19h28
Objet : [Xen-devel] Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Hi Gordan,

I wanted to let you know that today I decided to have a try for my GTX 680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so VGA passthrough could work.

Following instructions found on http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/ I just removed two resistors.

Here is a screenshot taken from a VM (Ubuntu 12.04 32 bits) with more 8GB of RAM.

http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/

I did the test on another VM (Windows 7 64 bits).  I was able to play games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very
impressive.

I just added a youtube video about my tests for my hard-moded card

http://youtu.be/L1RoOx8wC7A

Apologies I am French so I am speaking in French in the video. Just to show that it works perfectly.

Kind regards.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#15 lore raw
In reply to David TECHER
Quoted 7 lines · David TECHER

Hi Gordan,

I wanted to let you know that today I decided to have a try for my GTX
680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so VGA passthrough could work.

FYI, GTX680 modified to a K5000 also works fine for VGA passthrough. I haven't noticed any difference in the functionality.

Quoted 3 lines

Following instructions found on
http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/
I just removed two resistors.

Just out of interest - are your video outputs working correctly? Can you get DL-DVI output or DP output without problems? I find that on bare metal, it works fine, but in a Xen VM, SL-DVI works, but DL-DVI doesn't. DP also works on bare metal, but doesn't work at all domU.

As far as I can tell, nobody has had the same issue before. Then again, AFAIK, nobody else is running this setup with an XP64 domU, which is why I am particularly interested to hear if you are seeing the same issue (you mentioned you also run XP64).

Quoted 5 lines

I did the test on another VM (Windows 7 64 bits). I was able to play games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very impressive.

Indeed. As I have mentioned a number of times before, a faux-Quadro setup is far, far superior to an ATI setup when it comes to VGA passthrough.

And I wouldn't say it's impressive per se - it is normal and expected. OTOH, having to reboot dom0 when rebooting domU is utterly broken and unfit for purpose.

Gordan

#4 lore raw

Re: Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

In reply to a message not in the archive

Trying to resend this mail!

TO PASI

Xen 4.3.0 is used without any patch.
For both GTX680/GRIDK2 and GTX480/Quadro6000
=======================================

- VM = Linux 32/64: I can set RAM > 3GB. Playing games, watchings videos etc...All is fine!

- VM = Win 7 64: I can set RAM > 3GB. Playign games, watchings videos etc...All is fine!

-
VM = Win XP 64: if I   set RAM > 3GB then the VM get slower. VM gets slower once NVIDIA driver is installed and that I restarted thsi VM :(. I tried a couple of things but unfortunately I was not to fix it.
Setting RAM <= 3GB for Win XP 64 I had a nice VM to play games, watch
videos etc... XP 64 is a bit pain!

GTX480/Quadro 6000:
=================
As

Gordan said it is not doable to restart the domU (well known issue!).
But the soft-moded card could be interesting for playing games . I test Gordan's method on two differents
cards and it works pretty well!

If restarting dom0 is not a problem then here is a (not-updated) link

http://www.davidgis.fr/blog/index.php?2013/09/18/969-xen-430-vga-passthrough-gtx-480-soft-moded-to-quadro-6000

GTX680/GRIDK2: Gigabyte GV N680OC-2GD
====================================

With GTX680 hard-moded I "tried" GRIDK2 -- not K5000 --.

If you have and_only_if you have  a Gigabyte GV N680OC-2GD

there are two SMD resistors to remove as explained by reading two messages

http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/msg207550/#msg207550
http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/msg207795/#msg207795

Just take of  where resistors are located  in the image below (I am not the author of this image!)

http://www.eevblog.com/forum/projects/hacking-nvidia-cards-into-their-professional-counterparts/?action=dlattach;attach=43392;image

Removing SMD resistors could be done without any soldering iron :). Those components are the easiest to remove. It could be done using tweezers and a fire source.

I did it using a knife and a candle (old school).

For K5000 a soldering iron is required! (not tested!)

=========================================================================================================================

TO GORDAN

GTX 680/GRIDK2: DL-DVI/DP/SL-DVI
================================

I don't really if the following test will reply to your question but here are the connectors I tested on my card

http://www.davidgis.fr/download/GTX680_Outputs.jpg

3 Connectors have been tested. I will try here to share a complete/idiot test  I did. Here is a minor issue I found

Output A=>  DVI-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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
Start Win7 64 ...OK--> Screen works!
Stop Win 64...OK--> Screen works!
Start XP 64...KO ---> Black screen!!!
xl destroy for this VM. And VM Win 7 64 can start properly...Screen works

Output B => DVI 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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
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 ==> mini HDMI

--------------------------------
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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
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

Conclusion: whatever the connector is it seems doable to restart XP 64 ( no switch to Win 7 64!)

For GTX480/Quadro 6000
====================

The latest VMs I set up were a VM Win 7 64 and a VM Win XP 64. ( = 2 VMs)

- gfx_passthru=0 while setting up the VM -- before installing NVIDIA drivers. While VMs were setting up I used (native) VNC connection. (vnc=1)

- gfx_passthru=1 once NVIDIA driver was installed. No patch was used!

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw

Re: Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

In reply to a message not in the archive
Quoted 3 lines · David TECHER

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

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

Quoted 46 lines

Setting RAM DVI-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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
Start Win7 64 ...OK--> Screen works!
Stop Win 64...OK--> Screen works!
Start XP 64...KO ---> Black screen!!!
xl destroy for this VM. And VM Win 7 64 can start properly...Screen works

Output B => DVI 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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
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 ==> mini HDMI

--------------------------------
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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
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

Quoted 2 lines

Conclusion: whatever the connector is it seems doable to restart XP 64 ( no switch to Win 7 64!)

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

What 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 work 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 issue does not arise. I only tried this on XP64, not attempted on Win7.

Setup:
- Xen 4.3.0
- XP64 domU
- GTX680 modified to K5000

Symptoms:
1) Using a VGA monitor works fine.
2) Using a single-link DVI monitor works fine.
3) Using a monitor capable of dual-link DVI modes but in low resolution where the card negotiates only a SL-DVI mode (<= 1280x800 on my Dell 3007WFP) works fine.
4) Using a DL-DVI monitor with high resolution modes requiring DL-DVI link results in a blank screen (monitor goes to sleep immediately)
5) DisplayPort use with active DL-DVI adapter results in monitor going to sleep in ANY mode (low or high res).

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

So to re-iterate 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? Note: 1920x1200@60Hz is achievable using SL-DVI with reduced blanking so not all monitors that do 1920x1200 are necessarily DL-DVI. You can check 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.

Quoted 6 lines

For GTX480/Quadro 6000
====================

The latest VMs I set up were a VM Win 7 64 and a VM Win XP 64. ( = 2 VMs)

Quoted 7 lines

- gfx_passthru=0 while setting up the VM -- before installing NVIDIA drivers. While VMs were setting up I used (native) VNC connection. (vnc=1)

- gfx_passthru=1 once NVIDIA driver was installed.

No patch was used!

Hang on - are you saying that once the Nvidia driver is installed you can use gfx_passthry=1 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 can 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 have 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 first 0x400 bytes from the BIOS and all the trailing UEFI garbage after a 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_passthrough=1 working without side-loading the BIOS with the 64KB limitation, there is probably no point in doing this.

Gordan

#7 lore raw

Re: [Xen-users]  Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Gordan,

Quoted 6 lines

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 issue does not arise. I only tried this on XP64, not attempted on Win7.

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

Using
- my DL-DVI monitor( = the Dual Link connector on my graphic card GTX680 is connected through  a Dual Link cable to my DL-DVI montior) -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 started.

Quoted 4 lines

Hang on - are you saying that once the Nvidia driver is installed you can use gfx_passthry=1 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?

With gfx_passthru = 1  the boot-up Windows animation is on the VNC console.

________________________________
De : Gordan Bobic <[email protected]>
À : David TECHER <[email protected]>
Cc : [email protected]; Pasi Kärkkäinen <[email protected]>; [email protected] Envoyé le : Mercredi 25 septembre 2013 9h59
Objet : Re: [Xen-users] [Xen-devel] Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Quoted 3 lines · David TECHER

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

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

Quoted 48 lines

Setting RAM  DVI-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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
Start Win7 64 ...OK--> Screen works!
Stop Win 64...OK--> Screen works!
Start XP 64...KO ---> Black screen!!!
xl destroy for this VM. And VM Win 7 64 can start properly...Screen works

Output B => DVI 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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
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 ==> mini HDMI

--------------------------------
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!
Restart XP 64...OK--> Screen works!
Stop XP 64...OK--> Screen works!
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

Quoted 3 lines

Conclusion: whatever the connector is it seems doable to restart XP 64
( no switch to Win 7 64!)

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

What 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 work 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 issue does not arise. I only tried this on XP64, not attempted on Win7.

Setup:
- Xen 4.3.0
- XP64 domU
- GTX680 modified to K5000

Symptoms:
1) Using a VGA monitor works fine.
2) Using a single-link DVI monitor works fine.
3) Using a monitor capable of dual-link DVI modes but in low resolution where the card negotiates only a SL-DVI mode (<= 1280x800 on my Dell 3007WFP) works fine.
4) Using a DL-DVI monitor with high resolution modes requiring DL-DVI link results in a blank screen (monitor goes to sleep immediately)
5) DisplayPort use with active DL-DVI adapter results in monitor going to sleep in ANY mode (low or high res).

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

So to re-iterate 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? Note: 1920x1200@60Hz is achievable using SL-DVI with reduced blanking so not all monitors that do 1920x1200 are necessarily DL-DVI. You can check 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.

Quoted 6 lines

For GTX480/Quadro 6000
====================

The latest VMs I set up were a VM Win 7 64 and a VM Win XP 64. ( = 2 VMs)

Quoted 7 lines

- gfx_passthru=0 while setting up the VM -- before installing NVIDIA drivers. While VMs were setting up I used (native) VNC connection. (vnc=1)

- gfx_passthru=1 once NVIDIA driver was installed.

No patch was used!

Hang on - are you saying that once the Nvidia driver is installed you can use gfx_passthry=1 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 can 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 have 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 first 0x400 bytes from the BIOS and all the trailing UEFI garbage after a 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_passthrough=1 working without side-loading the BIOS with the 64KB limitation, there is probably no point in doing this.

Gordan

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#8 lore raw

Re: [Xen-users]  Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Quoted 13 lines · David TECHER

Gordan,

Quoted 6 lines

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 issue does not arise. I only tried this on XP64, not attempted on Win7.

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

Quoted 8 lines

Using
- my DL-DVI monitor( = the Dual Link connector on my graphic card GTX680 is connected through a Dual Link cable to my DL-DVI montior) -my GTX 680 gridified to K2
- high resolutions (2560x1440)

my domU XP64 is able to boot properly. High resolutions is taken into account

Right, OK. So you can achieve the DL-DVI mode without problems on your setup. Which means the problem isn't universally applicable to Xen 4.3.0 + modified GTX680 + XP64 domU. Which begs the question of what is different about my setup...

Quoted 7 lines

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 started.

The issue on my setup isn't about _starting_ the domU - if I get the domU started in low-res mode, changing to a higher res-mode puts the monitor to sleep. When the confirmation dialog box times out, it reverts back to original low-res mode, and the monitor wakes up again.

Quoted 7 lines
Quoted 4 lines

Hang on - are you saying that once the Nvidia driver is installed you can use gfx_passthry=1 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?

With gfx_passthru = 1 the boot-up Windows animation is on the VNC console.

I _may_ be wrong here, but doesn't the gfx_passthru=1 get ignored in that case? If it was working, the BIOS level and bootup output should come up on the passthru GPU, should it not? I guess gfx_passthru=1 just disables the emulated Cirrus VGA, but in that case the boot-up animation shouldn't show up on VNC.

So I'm not sure what is going on in this case.

Gordan

#9 lore raw

Re: [Xen-users] ??? Xen VGA Passthrough - GTX 680 successfully ???hard-moded?to GRID K2

Quoted 4 lines · Gordan Bobic
Quoted 3 lines

With gfx_passthru = 1 the boot-up Windows animation is on the VNC console.

Quoted 8 lines

I _may_ be wrong here, but doesn't the gfx_passthru=1 get ignored in that case? If it was working, the BIOS level and bootup output should come up on the passthru GPU, should it not? I guess gfx_passthru=1 just disables the emulated Cirrus VGA, but in that case the boot-up animation shouldn't show up on VNC.

So I'm not sure what is going on in this case.

Correct, with gfx_passthru=1 the physical GPU should show the windows boot animation, not the cirrus/vnc emulated graphics.

So gfx_passthru=1 is not working, and the GPU is passed as secondary..

-- Pasi

Quoted 1 line

Gordan

#10 lore raw

Re: [Xen-users]  Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

In reply to Gordan Bobic
Quoted 8 lines

I _may_ be wrong here, but doesn't the gfx_passthru=1 get ignored in that case? If it was working, the BIOS level and bootup output should come up on the passthru GPU, should it not? I guess gfx_passthru=1 just disables the emulated Cirrus VGA, but in that case the boot-up animation shouldn't show up on VNC.

So I'm not sure what is going on in this case.

Oh No you're right. I am mistaken (Apologies!). The boot-up animation doesn't appear on the VNC console.

I tested it an re-checked it on both XP 64 and Win 7 64.

David

________________________________
De : Gordan Bobic <[email protected]>
À : David TECHER <[email protected]>
Cc : [email protected]; Pasi Kärkkäinen <[email protected]>; [email protected] Envoyé le : Mercredi 25 septembre 2013 17h41
Objet : Re: [Xen-users] [Xen-devel] Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Quoted 13 lines · David TECHER

Gordan,

Quoted 1 line

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 issue does not arise. I only tried this on XP64, not

Quoted 1 line

attempted on Win7.

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

Quoted 8 lines

Using
- my DL-DVI monitor( = the Dual Link connector on my graphic card GTX680 is connected through a Dual Link cable to my DL-DVI montior) -my GTX 680 gridified to K2
- high resolutions (2560x1440)

my domU XP64 is able to boot properly. High resolutions is taken into account

Right, OK. So you can achieve the DL-DVI mode without problems on your setup. Which means the problem isn't universally applicable to Xen 4.3.0 + modified GTX680 + XP64 domU. Which begs the question of what is different about my setup...

Quoted 8 lines

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 started.

The issue on my setup isn't about _starting_ the domU - if I get the domU started in low-res mode, changing to a higher res-mode puts the monitor to sleep. When the confirmation dialog box times out, it reverts back to original low-res mode, and the monitor wakes up again.

Quoted 7 lines
Quoted 1 line

Hang on - are you saying that once the Nvidia driver is installed

  >you can use gfx_passthry=1 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?

With gfx_passthru = 1 the boot-up Windows animation is on the VNC console.

I _may_ be wrong here, but doesn't the gfx_passthru=1 get ignored in that case? If it was working, the BIOS level and bootup output should come up on the passthru GPU, should it not? I guess gfx_passthru=1 just disables the emulated Cirrus VGA, but in that case the boot-up animation shouldn't show up on VNC.

So I'm not sure what is going on in this case.

Gordan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#11 lore raw

Re: [Xen-users]  Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Quoted 6 lines · David TECHER
Quoted 5 lines

I _may_ be wrong here, but doesn't the gfx_passthru=1 get ignored in that case? If it was working, the BIOS level and bootup output should come up on the passthru GPU, should it not? I guess gfx_passthru=1 just disables the emulated Cirrus VGA, but in that case the boot-up animation shouldn't show up on VNC.

Quoted 6 lines
Quoted 1 line

So I'm not sure what is going on in this case.

Oh No you're right. I am mistaken (Apologies!). The boot-up animation doesn't appear on the VNC console.

I tested it an re-checked it on both XP 64 and Win 7 64.

Right. And since you aren't side-loading the GPU BIOS, I would guess the boot-up animation doesn't appear at all. It runs headless right up to the point where the GPU driver loads in Windows.

Gordan

#12 lore raw

Re: [Xen-users]  Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

There is one exception for the boot-up animation if you have a domU where ATI card was installed.

I have a domU Win 7 64 which I use for my previous ATI tests.

After removing my ATI card and putting my GTX 680 back in  this domU I remove AMD driver and I installed NVIDIA driver.

When this domU is starting up the boot-up animation appears only in the VNC console. After that the animation is "frozen" on boot-up animation  in VNC and the Windows screen (login screen) appears in my physical monitor.

This domU above is a different domU than the 2 other domUs (Win XP 64 and Win 7 64) freshly installed.

________________________________
De : Gordan Bobic <[email protected]>
À : David TECHER <[email protected]>
Cc : [email protected]; Pasi Kärkkäinen <[email protected]>; [email protected] Envoyé le : Mercredi 25 septembre 2013 18h07
Objet : Re: [Xen-users] [Xen-devel] Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Quoted 6 lines · David TECHER
Quoted 1 line

I _may_ be wrong here, but doesn't the gfx_passthru=1 get ignored

  >in that case? If it was working, the BIOS level and bootup output >should come up on the passthru GPU, should it not? I guess >gfx_passthru=1 just disables the emulated Cirrus VGA, but in that >case the boot-up animation shouldn't show up on VNC.

Quoted 6 lines
Quoted 1 line

So I'm not sure what is going on in this case.

Oh No you're right. I am mistaken (Apologies!). The boot-up animation doesn't appear on the VNC console.

I tested it an re-checked it on both XP 64 and Win 7 64.

Right. And since you aren't side-loading the GPU BIOS, I would guess the boot-up animation doesn't appear at all. It runs headless right up to the point where the GPU driver loads in Windows.

Gordan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#16 lore raw
In reply to Gordan Bobic
Quoted 32 lines · Gordan Bobic
Quoted 7 lines · David TECHER

Hi Gordan,

I wanted to let you know that today I decided to have a try for my GTX
680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so VGA passthrough could work.

FYI, GTX680 modified to a K5000 also works fine for VGA passthrough. I haven't noticed any difference in the functionality.

Quoted 3 lines

Following instructions found on
http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/
I just removed two resistors.

Just out of interest - are your video outputs working correctly? Can you get DL-DVI output or DP output without problems? I find that on bare metal, it works fine, but in a Xen VM, SL-DVI works, but DL-DVI doesn't. DP also works on bare metal, but doesn't work at all domU.

As far as I can tell, nobody has had the same issue before. Then again, AFAIK, nobody else is running this setup with an XP64 domU, which is why I am particularly interested to hear if you are seeing the same issue (you mentioned you also run XP64).

Quoted 5 lines

I did the test on another VM (Windows 7 64 bits). I was able to play games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very impressive.

Quoted 7 lines

Indeed. As I have mentioned a number of times before, a faux-Quadro setup is far, far superior to an ATI setup when it comes to VGA passthrough.

And I wouldn't say it's impressive per se - it is normal and expected. OTOH, having to reboot dom0 when rebooting domU is utterly broken and unfit for purpose.

I am a bit late to this part - was there an serial output or some other way to figure out why dom0 rebooted?

Quoted 7 lines

Gordan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#17 lore raw
Quoted 41 lines · Konrad Rzeszutek Wilk
Quoted 40 lines · Gordan Bobic
Quoted 3 lines · David TECHER

Hi Gordan,

I wanted to let you know that today I decided to have a try for my

GTX

Quoted 3 lines

680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so

VGA

Quoted 1 line

passthrough could work.

FYI, GTX680 modified to a K5000 also works fine for VGA passthrough. I haven't noticed any difference in the functionality.

Quoted 4 lines

Following instructions found on

http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/
I just removed two resistors.

Just out of interest - are your video outputs working correctly? Can you get DL-DVI output or DP output without problems? I find that on bare metal, it works fine, but in a Xen VM, SL-DVI works, but DL-DVI doesn't. DP also works on bare metal, but doesn't work at all domU.

As far as I can tell, nobody has had the same issue before. Then again, AFAIK, nobody else is running this setup with an XP64 domU, which is why I am particularly interested to hear if you are seeing the same issue (you mentioned you also run XP64).

Quoted 1 line

I did the test on another VM (Windows 7 64 bits). I was able to

play

Quoted 4 lines

games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very impressive.

Indeed. As I have mentioned a number of times before, a faux-Quadro setup is far, far superior to an ATI setup when it comes to VGA passthrough.

Quoted 6 lines
Quoted 3 lines

And I wouldn't say it's impressive per se - it is normal and expected. OTOH, having to reboot dom0 when rebooting domU is utterly broken and unfit for purpose.

I am a bit late to this part - was there an serial output or some other way to figure out why dom0 rebooted?

Because I pressed the reset button? :)
The dom0 didn't reboot, it just crashed and locked up solid. And sorry, no serial output or anything useful in the logs.

One thing that occurs to me is that this could plausibly have been a compound problem in my case, between the usual ATI issues and my duff IOMMU hardware (hoping to do some more work on those patches soon, but I have a more pressing task of getting some updates and testing in place for my RedSleeve Linux distro (EL6 for ARM) for a client at the moment).

Gordan

#13 lore raw
In reply to David TECHER

Does HDMI audio work coming from the video card in this sort of setup?

Quoted 60 lines · David TECHER

Apologies I forgot to add the image from Linux

http://img11.hostingpics.net/pics/528734ScreenshotXen430GTX680HardmodedGRIDK2.png

------------------------------
*De :* David TECHER <[email protected]>
*À :* "[email protected]" <[email protected]>
*Cc :* "[email protected]" <[email protected]>; " [email protected]" <[email protected]> *Envoyé le :* Lundi 23 septembre 2013 19h28
*Objet :* [Xen-devel] Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Hi Gordan,

I wanted to let you know that today I decided to have a try for my GTX
680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so VGA passthrough could work.

Following instructions found on
http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/I just removed two resistors.

Here is a screenshot taken from a VM (Ubuntu 12.04 32 bits) with more 8GB of RAM.

http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/

I did the test on another VM (Windows 7 64 bits). I was able to play games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very impressive.

I just added a youtube video about my tests for my hard-moded card

http://youtu.be/L1RoOx8wC7A

Apologies I am French so I am speaking in French in the video. Just to show that it works perfectly.

Kind regards.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Quoted 5 lines

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#14 lore raw

I haven't tried plugging it into a TV to get audio output tested, but the HDMI audio device gets detected in domU and shows up as functioning without any issues. So unless somebody has evidence to the contrary, it almost certainly works just fine.

Gordan

Quoted 74 lines · David Erickson

Does HDMI audio work coming from the video card in this sort of setup?

On Mon, Sep 23, 2013 at 10:35 AM, David TECHER <[email protected] <mailto:[email protected]>> wrote:

Apologies I forgot to add the image from Linux

http://img11.hostingpics.net/pics/528734ScreenshotXen430GTX680HardmodedGRIDK2.png

------------------------------------------------------------------------
*De :* David TECHER <[email protected] <mailto:[email protected]>> *À :* "[email protected] <mailto:[email protected]>" <[email protected] <mailto:[email protected]>>
*Cc :* "[email protected] <mailto:[email protected]>" <[email protected] <mailto:[email protected]>>; "[email protected] <mailto:[email protected]>" <[email protected] <mailto:[email protected]>> *Envoyé le :* Lundi 23 septembre 2013 19h28
*Objet :* [Xen-devel] Xen VGA Passthrough - GTX 680 successfully hard-moded to GRID K2

Hi Gordan,

I wanted to let you know that today I decided to have a try for my GTX 680. Gigabite GTX 680 2048 MB GDDR5.

I know that this particular card could be hard-moded to GRID K2 so VGA passthrough could work.

Following instructions found on
http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/
I just removed two resistors.

Here is a screenshot taken from a VM (Ubuntu 12.04 32 bits) with more 8GB of RAM.

http://www.eevblog.com/forum/chat/hacking-nvidia-cards-into-their-professional-counterparts/420/

I did the test on another VM (Windows 7 64 bits). I was able to play games, shutdown the VM, restart the VM without restarting the dom0.

I am very impressed. Restarting domU (Linux or Windows) without restarting the dom0 is very impressive.

I just added a youtube video about my tests for my hard-moded card

http://youtu.be/L1RoOx8wC7A

Apologies I am French so I am speaking in French in the video. Just to show that it works perfectly.

Kind regards.

_______________________________________________
Xen-devel mailing list
[email protected] <mailto:[email protected]>
http://lists.xen.org/xen-devel

_______________________________________________
Xen-users mailing list
[email protected] <mailto:[email protected]>
http://lists.xen.org/xen-users