* Help needed on gfx-passthrough
@ 2010-03-18 9:29 Dietmar Hahn
2010-03-18 9:39 ` Han, Weidong
0 siblings, 1 reply; 5+ messages in thread
From: Dietmar Hahn @ 2010-03-18 9:29 UTC (permalink / raw)
To: xen-devel@lists.xensource.com; +Cc: Weidong Han
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Help needed on gfx-passthrough
2010-03-18 9:29 Help needed on gfx-passthrough Dietmar Hahn
@ 2010-03-18 9:39 ` Han, Weidong
2010-03-18 10:19 ` Dietmar Hahn
0 siblings, 1 reply; 5+ messages in thread
From: Han, Weidong @ 2010-03-18 9:39 UTC (permalink / raw)
To: Dietmar Hahn, xen-devel@lists.xensource.com
There is a wiki page for xen gfx passthru: http://wiki.xensource.com/xenwiki/XenVGAPassthrough. pls read it.
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. 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.
Regards,
Weidong
-----Original Message-----
From: Dietmar Hahn [mailto:dietmar.hahn@ts.fujitsu.com]
Sent: Thursday, March 18, 2010 5:29 PM
To: xen-devel@lists.xensource.com
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RE: Help needed on gfx-passthrough
2010-03-18 9:39 ` Han, Weidong
@ 2010-03-18 10:19 ` Dietmar Hahn
2010-03-19 6:21 ` Weidong Han
0 siblings, 1 reply; 5+ messages in thread
From: Dietmar Hahn @ 2010-03-18 10:19 UTC (permalink / raw)
To: xen-devel; +Cc: Han, Weidong
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?
> 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.
My problem is that I don't see any access to extended config registers.
Therefore my question for help in debugging to see what the vgabios is doing.
Thanks.
Dietmar.
>
> Regards,
> Weidong
>
>
> -----Original Message-----
> From: Dietmar Hahn [mailto:dietmar.hahn@ts.fujitsu.com]
> Sent: Thursday, March 18, 2010 5:29 PM
> To: xen-devel@lists.xensource.com
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RE: Help needed on gfx-passthrough
2010-03-18 10:19 ` Dietmar Hahn
@ 2010-03-19 6:21 ` Weidong Han
2010-03-19 9:21 ` Dietmar Hahn
0 siblings, 1 reply; 5+ messages in thread
From: Weidong Han @ 2010-03-19 6:21 UTC (permalink / raw)
To: Dietmar Hahn; +Cc: xen-devel@lists.xensource.com
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.
>> 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.
> 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.
Regards,
Weidong
> Thanks.
> Dietmar.
>
>> Regards,
>> Weidong
>>
>>
>> -----Original Message-----
>> From: Dietmar Hahn [mailto:dietmar.hahn@ts.fujitsu.com]
>> Sent: Thursday, March 18, 2010 5:29 PM
>> To: xen-devel@lists.xensource.com
>> 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.
>>
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RE: Help needed on gfx-passthrough
2010-03-19 6:21 ` Weidong Han
@ 2010-03-19 9:21 ` Dietmar Hahn
0 siblings, 0 replies; 5+ messages in thread
From: Dietmar Hahn @ 2010-03-19 9:21 UTC (permalink / raw)
To: xen-devel; +Cc: Weidong Han
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@ts.fujitsu.com]
> >> Sent: Thursday, March 18, 2010 5:29 PM
> >> To: xen-devel@lists.xensource.com
> >> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-19 9:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 9:29 Help needed on gfx-passthrough Dietmar Hahn
2010-03-18 9:39 ` Han, Weidong
2010-03-18 10:19 ` Dietmar Hahn
2010-03-19 6:21 ` Weidong Han
2010-03-19 9:21 ` Dietmar Hahn
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.