WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] RE: Help needed on gfx-passthrough

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] RE: Help needed on gfx-passthrough
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Date: Fri, 19 Mar 2010 10:21:05 +0100
Cc: Weidong Han <weidong.han@xxxxxxxxx>
Delivery-date: Fri, 19 Mar 2010 02:21:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=dietmar.hahn@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1268990727; x=1300526727; h=from:to:subject:date:cc:references:in-reply-to: mime-version:content-transfer-encoding:message-id; z=From:=20Dietmar=20Hahn=20<dietmar.hahn@xxxxxxxxxxxxxx> |To:=20xen-devel@xxxxxxxxxxxxxxxxxxx|Subject:=20Re:=20[Xe n-devel]=20RE:=20Help=20needed=20on=20gfx-passthrough |Date:=20Fri,=2019=20Mar=202010=2010:21:05=20+0100|Cc:=20 Weidong=20Han=20<weidong.han@xxxxxxxxx>|References:=20<20 1003181029.11631.dietmar.hahn@xxxxxxxxxxxxxx>=20<20100318 1119.32389.dietmar.hahn@xxxxxxxxxxxxxx>=20<4BA317E8.30806 06@xxxxxxxxx>|In-Reply-To:=20<4BA317E8.3080606@xxxxxxxxx> |MIME-Version:=201.0|Content-Transfer-Encoding:=207bit |Message-Id:=20<201003191021.05847.dietmar.hahn@xxxxxxxxx u.com>; bh=TOZNydM7qo0wjWBgk4r62ppkeiFtghe2IJu5iELDhwg=; b=idTmb2tNEvYRno6dcTY+aO9jJen6O6yLw8t2xya0LsL4lEDhvLhGGCRP FvH1qxG825QiwJoaRWsnkBtmfUA2wmZFNIF9zB4AGtyOr5lm6U7V9Eow3 qDO+a1lVT9nLD0z0EWofoyjsWzFZPSwCMY3HVBrQ+Vm8ybhI80nMfEeVc UAFtwhYosqXLBXnpqFxqUXktjva3Ek1UhUqU9GyKTmBmjD0smnp5PKp7U ES9rfUzpETBiqnS8WUKV0xDnzmmtD;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: References:In-Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id; b=hNhWejF+DMCqJFFqAzd4CFShk2LjqghyDArJLUskZkKVb1xmkoaJW5Ms dUPTcSM7iWe8QTUEYAOtLo8jqwkcGBP0YFfkDg4D4rEmEJ5Yk1R3vLVjV SpyBIbkvUuR3c1uKeM/3dqKhOT2ht+0mPLxU0MwZlnzjUPVLW2al7WKuR Z3RF/kAPASxP0szVIAoAiaY3My9WEluFEt0+/N5Ybv0VImzYnunXulqCL +TIpyez01hC287DxwIx11tV35Vm9A;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BA317E8.3080606@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201003181029.11631.dietmar.hahn@xxxxxxxxxxxxxx> <201003181119.32389.dietmar.hahn@xxxxxxxxxxxxxx> <4BA317E8.3080606@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.1 (Linux/2.6.31.12-0.1-desktop; KDE/4.4.1; x86_64; ; )
Am 19.03.2010 schrieb Weidong Han:
> Dietmar Hahn wrote:
> > Am 18.03.2010 schrieb Han, Weidong:
> >   
> >> There is a wiki page for xen gfx passthru: 
> >> http://wiki.xensource.com/xenwiki/XenVGAPassthrough. pls read it.
> >>     
> > Yes I did this.
> >   
> >> I didn't try your gfx card. As you know, some vbios of nVidia gfx cards 
> >> have vbios re-execution issue, which results in no display in VGA mode.
> >>     
> > Yes I read this on the mailing list, you mean FLR issues?
> >   
> Not exactly. Another possibility is that vbios bits may be truncated or 
> modified after initialization in host, thus it might result in 
> re-execution issue.
This would be very ugly.

> 
> >> You can have a try with loading vbios from file and make vBAR = pBAR. You 
> >> can find the corresponding patches in xen-devel mailing list.
> >>     
> >
> > I tried this already.
> > I want to look a little bit deeper to understand whats going on.
> > I saw your igd_passthru patch qemu hw/pci.c for special handling of some 
> > pci config registers of the host bridge and maybe I need a similar patch
> > for the special PCI Express Graphics Port bridge.
> >   
> Discrete gfx card is an independent pci device. I don't think it will 
> depend on platform. IGD is integrated in chipset, and there are some 
> dependencies on chipset.
This sounds reasonable.

> > My problem is that I don't see any access to extended config registers.
> >   
> PCIe extended config registers (>256bytes) are not virtualized in Xen qemu.
> 
> > Therefore my question for help in debugging to see what the vgabios is 
> > doing.
> >   
> I don't know how to see what vgabios is doing. If you can find the 
> vgabios engineer, maybe you can dump and send gfx register values to him 
> for analysis.
I don't know whether this is possible.
Thanks.
Dietmar.

> 
> Regards,
> Weidong
> > Thanks.
> > Dietmar.
> >   
> >> Regards,
> >> Weidong
> >>
> >>
> >> -----Original Message-----
> >> From: Dietmar Hahn [mailto:dietmar.hahn@xxxxxxxxxxxxxx] 
> >> Sent: Thursday, March 18, 2010 5:29 PM
> >> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> >> Cc: Han, Weidong
> >> Subject: Help needed on gfx-passthrough
> >>
> >> Hi list,
> >>
> >> I try to get gfx-passthrough on a laptop:
> >> Intel PM45 Express chipset with extern nvidia craphics card G96M [Quadro 
> >> FX 770M]
> >> I can't see the bios boot messages and also not the grub boot loader.
> >> The domU linux boot messages appear on the screen.
> >>
> >> For me it looks like the vgabios gets not started or works not well.
> >> In the domU I can read the vgabios from /dev/mem and it's the same as in 
> >> dom0.
> >> If I change the hvmloader to use the standard vgabios from firmware/vgabios
> >> I see the bios and grub boot messages.
> >>
> >> I added some tracing to qemu-dm (pt_*read/write and pci_*read/write) to see
> >> accesses to the emulated chipset and graphics card but I can see no 
> >> difference
> >> between using the original vgabios or the emulated vgabios within the 
> >> hvmloader.
> >>
> >> Now my question: how can I debug this problem. How can I see whether the 
> >> vgabios
> >> gets started and initialises the graphics card? 
> >> I'am not fit enough in this area and documentation is very rare!
> >> Thanks in advance!
> >>
> >> Dietmar.
> >>

-- 
Company details: http://ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>