xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad@darnok.org>
To: Pavel Mat??ja <pavel@netsafe.cz>
Cc: xen-devel@lists.xensource.com
Subject: Re: [Xen-users]    VGA passthough still not working
Date: Tue, 31 Jan 2012 17:54:27 -0400	[thread overview]
Message-ID: <20120131215427.GA32295@andromeda.dapyr.net> (raw)
In-Reply-To: <201201252052.17845.pavel@netsafe.cz>

On Wed, Jan 25, 2012 at 08:52:17PM +0100, Pavel Mat??ja wrote:
> On Wed 25. of January 2012 20:29:12 Pavel Mat??ja wrote:
> > On Wed 25. of January 2012 17:52:11 Doug Magee wrote:
> > > Also, i believe you said the card you're trying to pass through is not
> > > the primary card in your host system.  If that's the case, don't use
> > > gfx_passthru or expect to get the video bios working.  The 'primary'
> > > video adapter owns certain io ports and memory areas that are consitent
> > > from machine to machine.  Also, the system will copy the vbios from the
> > > card to a location in memory (0xc0000) so it can execute at boot time.
> > > 
> > > Xen's gfx_passthru code depends on all of these factors.  As the code
> > > stands, if you use gfx_passthru on a secondary card, it will still copy
> > > the vbios from the primary card (as it simply reads memory from
> > > 0xc0000), and directly map io ports and low memory areas to those used
> > > by the primary card in the host system.  In this case the guest will
> > > almost certainly never get past executing ROMBIOS, and the host may or
> > > may not lock up or experience 'issues'.
> > 
> > This will do the trick with secondary card (replace path to VGA BIOS):
> > 
> > --- xen-unstable.hg.working/tools/ioemu-remote/hw/pt-graphics.c 2012-01-25
> > 20:26:37.927654890 +0100
> > +++ xen-unstable.hg.working.generic/tools/ioemu-remote/hw/pt-graphics.c
> > 2011-07-30 13:57:57.347396095 +0200
> > @@ -487,10 +487,10 @@
> >  {
> >      int fd;
> >      uint32_t bios_size = 0;
> > -    uint32_t start = 0;
> > +    uint32_t start = 0xC0000;
> >      uint16_t magic = 0;
> > 
> > -    if ( (fd = open("/lib/firmware/ASUS.HD6850.1024.101007.bin",
> > O_RDONLY)) < 0 )

How does one "extract" the bios from the ATI cards? With NVidia I
noticed could do it via /sys/kernel/debug/dri/0/vbios.rom.

But that is not present on ATI cards. Did you instrument the radeon
driver to dump it somewhere?

  parent reply	other threads:[~2012-01-31 21:54 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 13:05 VGA passthough still not working Sandi Romih
2012-01-20 15:47 ` Pasi Kärkkäinen
2012-01-20 16:49   ` Sandi Romih
2012-01-20 18:53     ` [Xen-devel] " Likarpenkov Alexander
2012-01-20 19:24       ` [Xen-users] " chris
2012-01-20 19:46         ` [Xen-devel] " John Sherwood
2012-01-20 19:56           ` Likarpenkov Alexander
2012-01-23 11:45           ` [Xen-users] " Sandi Romih
2012-01-23 11:49             ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 12:01               ` Likarpenkov Alexander
2012-01-24  1:53             ` [Xen-users] " Konrad Rzeszutek Wilk
2012-01-20 19:48         ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 11:25         ` [Xen-users] " Sandi Romih
2012-01-23 11:39           ` Ian Campbell
2012-01-23 11:47             ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 13:17             ` [Xen-users] " Tobias Geiger
2012-01-23 13:36               ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 15:43               ` Re : [Xen-users] " David TECHER
2012-01-24  1:50               ` Konrad Rzeszutek Wilk
2012-01-24 14:12                 ` djmagee
2012-01-24 14:33                   ` [Xen-devel] " Likarpenkov Alexander
2012-01-24 18:41                     ` [Xen-users] " Doug Magee
2012-01-25  8:26                       ` [Xen-devel] " Likarpenkov Alexander
2012-01-25 16:52                         ` [Xen-users] " Doug Magee
2012-01-25 19:29                           ` Pavel Matěja
2012-01-25 19:52                             ` Pavel Matěja
2012-01-25 20:29                               ` Doug Magee
2012-01-25 20:48                                 ` Pavel Matěja
2012-01-25 21:29                                   ` Doug Magee
2012-01-26  8:19                                     ` Pavel Mateja
2012-01-25 20:55                                 ` Pavel Matěja
2012-01-31 21:54                               ` Konrad Rzeszutek Wilk [this message]
2012-02-01  8:23                                 ` Pavel Mateja
2012-01-26 10:53                           ` [Xen-devel] " Likarpenkov Alexander
2012-01-26 14:28                           ` Likarpenkov Alexander
2012-01-25 16:54                         ` Future of xend and xl (Was: Re: [Xen-users] VGA passthough still not working) Ian Campbell
2012-01-25 19:43                           ` [Xen-users] Future of xend and xl (Was: " Florian Heigl
2012-01-26 11:31                             ` Ian Campbell
2012-01-27 10:38                               ` xl vs xm - hernya (bad results) Likarpenkov Alexander
2012-01-27 11:02                                 ` Likarpenkov Alexander
2012-02-01 18:05                                   ` [Xen-users] " Stefano Stabellini
2012-01-26 11:49                             ` [Xen-users] Future of xend and xl (Was: Re: VGA passthough still not working) Stefano Stabellini
2012-01-26 14:36                               ` [Xen-devel] " Likarpenkov Alexander
2012-01-26 15:34                               ` [Xen-users] " Jim Fehlig
2012-01-24 14:37                   ` [Xen-users] VGA passthough still not working Tobias Geiger
2012-01-24 14:54                     ` [Xen-devel] " Likarpenkov Alexander
2012-01-24 15:15                     ` Likarpenkov Alexander
2012-01-24 16:21                       ` [Xen-users] " Tobias Geiger
2012-01-24 16:36                       ` Tobias Geiger
2012-01-24 16:52                       ` Tobias Geiger
2012-01-24 18:31                     ` Doug Magee
2012-01-25  9:39                       ` Tobias Geiger
2012-01-25 17:23                         ` Doug Magee
2012-01-26 11:49                           ` Tobias Geiger
2012-01-24 11:32               ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 11:43           ` Likarpenkov Alexander
2012-01-23 11:15       ` [Xen-users] " Sandi Romih
2012-01-23 11:33         ` [Xen-devel] " Likarpenkov Alexander
2012-01-20 20:32     ` Pasi Kärkkäinen
2012-01-23 11:53       ` Sandi Romih
2012-01-24  1:55         ` Konrad Rzeszutek Wilk
2012-02-01 10:31           ` [Xen-devel] " Likarpenkov Alexander
2012-02-01 11:12             ` Likarpenkov Alexander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120131215427.GA32295@andromeda.dapyr.net \
    --to=konrad@darnok.org \
    --cc=pavel@netsafe.cz \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).