From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Teo En Ming (Zhang Enming)" Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Date: Tue, 25 Aug 2009 10:44:47 +0800 Message-ID: References: <715D42877B251141A38726ABF5CABF2C054B32ECD1@pdsmsx503.ccr.corp.intel.com> Reply-To: enming.teo@asiasoftsea.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0445787923==" Return-path: In-Reply-To: <715D42877B251141A38726ABF5CABF2C054B32ECD1@pdsmsx503.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weidong.han@intel.com Cc: xen-devel@lists.xensource.com, 'Alan Cox' , bengheng@eecs.umich.edu List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0445787923== Content-Type: multipart/alternative; boundary="----=_NextPart_000_00FB_01CA2571.112B1A10" This is a multi-part message in MIME format. ------=_NextPart_000_00FB_01CA2571.112B1A10 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Hi Weidong, Any detailed documentation for the two tasks you mentioned? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com _____ From: Han, Weidong [mailto:weidong.han@intel.com] Sent: Tuesday, August 25, 2009 10:09 AM To: 'enming.teo@asiasoftsea.net' Cc: 'bengheng@eecs.umich.edu'; 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Per our investigation, you cannot copy VGA bios from host 0xc0000 to guest for secondary gfx assignment. You can load it from a file. In addition, if you want to passthrough Nvidia G8400, you need to 1:1 map its MMIO BARs. Regards, Weidong _____ From: Mr. Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 8:59 To: enming.teo@asiasoftsea.net Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; Han, Weidong; Alan Cox Subject: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi, I should probably rename the subject of this email. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote: Dear Beng Heng, I understand that you got VGA passthrough working with Intel DQ45CB and an PCI-E x16 ATI Graphics card. I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. Could you share with me in details how you got VGA passthrough to work with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? Thank you. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: Hi When I boot up the computer using onboard Intel GMA 4500 as the primary VGA controller, I could still see the NVIDIA Geforce 8400 GS PCI Express x16 card in lspci. 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1) -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 03:35 AM, Mr. Teo En Ming (Zhang Enming) wrote: I have already compiled CONFIG_PCI_STUB=y statically into the kernel. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 03:33 AM, Mr. Teo En Ming (Zhang Enming) wrote: I find that following the instructions here at Xen Wiki VtdHowTo don't work: Binding Devices to pci-stub If using pv-ops dom0, also can use pci-stub to hide devices for assignment (example PCI device 01:00.0) * lspci -n * locate the entry for device 01:00. 0 and note down the vendor & device ID 8086:10b9 . ... 01:00.0 0200: 8086:10b9 (rev 06) ... * then use following commands to hide it: . echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0/driver/unbind echo "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/bind When I tried to "cat /sys/bus/pci/drivers/pci-stub/new_id", it says permission denied. My NVIDIA graphics card is using BDF 01:00.0. When I change directory to /sys/bus/pci/devices/0000:01:00.0/, sub-directory driver is not found at all. Then when I put in pci = [ '01:00.0' ] for the Windows XP Home HVM config, it complains about pciback but I am using paravirt-ops dom 0 kernel. And when I tried the "xm pci-list-assignable-devices", nothing shows up. I have already specified iommu=1 in grub. Hope the Intel folks can assist in this matter. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 03:23 AM, Mr. Teo En Ming (Zhang Enming) wrote: I have both the onboard Intel GMA 4500 and the PCI Express x16 NVIDIA Geforce 8400 GS. Ng Beng Heng at the University of Michigan has done it. He's using the same Intel DQ45CB as me. _____ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.65/2322 - Release Date: 08/24/09 12:55:00 ------=_NextPart_000_00FB_01CA2571.112B1A10 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
Hi Weidong,
 
Any detailed documentation for the two tasks = you=20 mentioned?
 
Regards,
 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)=20 BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte = Ltd
Tampines=20 Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN:=20 teoenming@hotmail.com
 


From: Han, Weidong=20 [mailto:weidong.han@intel.com]
Sent: Tuesday, August 25, 2009 = 10:09=20 AM
To: 'enming.teo@asiasoftsea.net'
Cc:=20 'bengheng@eecs.umich.edu'; 'xen-devel@lists.xensource.com'; 'Alan=20 Cox'
Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA = Geforce=20 8400 GS PCI Express x16

Per our investigation, you cannot copy VGA = bios from=20 host 0xc0000 to guest for secondary gfx assignment. You can load it from = a=20 file.
 
In addition, if you want to passthrough = Nvidia G8400,=20 you need to 1:1 map its MMIO BARs.
 
Regards,
Weidong


From: Mr. Teo En Ming (Zhang Enming) = [mailto:enming.teo@asiasoftsea.net]
Sent: = 2009=1B$BG/=1B(B8=1B$B7n=1B(B25=1B$BF|=1B(B=20 8:59
To: enming.teo@asiasoftsea.net
Cc:=20 bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; Han, Weidong; = Alan=20 Cox
Subject: VGA Passthrough with Intel DQ45CB and NVIDIA = Geforce 8400=20 GS PCI Express x16

Hi,

I should probably rename the subject of this = email.
--=20
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) =
BEng(Hons)(Mechanical Engineering)=20
Technical Support Engineer=20
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza=20
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of =
Singapore


On=20 08/25/2009 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote:=20
Dear Beng=20 Heng,

I understand that you got VGA passthrough working with = Intel=20 DQ45CB and an PCI-E x16 ATI Graphics card.

I have Intel DQ45CB = and=20 NVIDIA Geforce 8400 GS PCI-E x16.

Could you share with me in = details=20 how you got VGA passthrough to work with ATI PCI-E x16 when you set = onboard=20 VGA as your primary video adapter?

Thank you.
--=20
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) =
BEng(Hons)(Mechanical Engineering)=20
Technical Support Engineer=20
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza=20
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of =
Singapore


On=20 08/25/2009 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote:=20
Hi

When I boot up the computer using onboard = Intel GMA=20 4500 as the primary VGA controller, I could still see the NVIDIA = Geforce=20 8400 GS PCI Express x16 card in lspci.

00:02.0 VGA compatible = controller: Intel Corporation 4 Series Chipset Integrated Graphics=20 Controller (rev 03)
01:00.0 VGA compatible controller: nVidia = Corporation=20 GeForce 8400 GS (rev a1)


--=20
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) =
BEng(Hons)(Mechanical Engineering)=20
Technical Support Engineer=20
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza=20
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of =
Singapore


On=20 08/25/2009 03:35 AM, Mr. Teo En Ming (Zhang Enming) wrote:=20
I have=20 already compiled CONFIG_PCI_STUB=3Dy statically into the = kernel.

--=20
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) =
BEng(Hons)(Mechanical Engineering)=20
Technical Support Engineer=20
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza=20
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of =
Singapore


On=20 08/25/2009 03:33 AM, Mr. Teo En Ming (Zhang Enming) wrote:=20
I find=20 that following the instructions here at Xen Wiki VtdHowTo don't=20 work:

Binding = Devices to=20 pci-stub

If using pv-ops dom0, also can use pci-stub = to hide=20 devices for assignment (example PCI device 01:00.0) * lspci -n * = locate=20 the entry for device 01:00.0 and note down the vendor & = device ID=20 8086:10b9 .

...
01:00.0 0200: 8086:10b9 (rev =
06)
...

* then use following commands to hide it: . =

echo "8086 10b9" > =
/sys/bus/pci/drivers/pci-stub/new_id
echo "0000:01:00.0" > =
/sys/bus/pci/devices/0000:01:00.0/driver/unbind
echo "0000:01:00.0" > =
/sys/bus/pci/drivers/pci-stub/bind

When I tried to "cat /sys/bus/pci/drivers/pci-stub/new_id", it says =
permission denied.

My NVIDIA graphics card is using BDF 01:00.0. When I change directory to =

/sys/bus/pci/devices/0000:01:00.0/, sub-directory driver is not found at =
all.

Then when I put in pci =3D [ '01:00.0' ] for the Windows XP Home HVM =
config, it complains about pciback but I am using paravirt-ops dom 0 =
kernel.

And when I tried the "xm pci-list-assignable-devices", nothing shows up.

I have already specified iommu=3D1 in grub.

Hope the Intel folks can assist in this matter.


--=20
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) =
BEng(Hons)(Mechanical Engineering)=20
Technical Support Engineer=20
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza=20
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of =
Singapore


On=20 08/25/2009 03:23 AM, Mr. Teo En Ming (Zhang Enming) wrote:=20
I=20 have both the onboard Intel GMA 4500 and the PCI Express x16 = NVIDIA=20 Geforce 8400 GS.

Ng Beng Heng at the University of = Michigan=20 has done it. He's using the same Intel DQ45CB as me.=20 =








_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.c= om http://lists.xensource.com/= xen-devel


No virus found in this incoming = message.
Checked=20 by AVG - www.avg.com
Version: 8.5.392 / Virus Database: = 270.13.65/2322 -=20 Release Date: 08/24/09 12:55:00

------=_NextPart_000_00FB_01CA2571.112B1A10-- --===============0445787923== 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.xensource.com http://lists.xensource.com/xen-devel --===============0445787923==--