From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Sander Eikelenboom <linux@eikelenboom.it>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
xen-devel <xen-devel@lists.xenproject.org>,
qemu-devel@nongnu.org,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [Qemu-devel] [Xen-devel] RESEND [Xen-unstable][Qemu-xen] HVM Guest reading of Expansion ROM from passthroughed PCI device returns data from emulated VGA rom
Date: Mon, 2 Dec 2013 14:41:31 -0500 [thread overview]
Message-ID: <20131202194131.GA3212@phenom.dumpdata.com> (raw)
In-Reply-To: <656205981.20130917163339@eikelenboom.it>
On Tue, Sep 17, 2013 at 04:33:39PM +0200, Sander Eikelenboom wrote:
> *RESEND* due to exceeding the mailinglists limit for attachment size.
>
> Hi,
>
> I'm trying to get secondary vga-passthrough on a HVM guest to work with a AMD HD6570 and the native kernel radeon driver and kernel modesetting.
> So the guest still gets the emulated stdvga or cirrus device(used in my case here) as primary/boot vga adapter.
>
> - When i don't passthrough the radeon card, the linux native radeon driver loads fine.
> - When i do passtrough the device to a HVM with the same kernel:
> The driver in the guest tries to read the pci expansion rom from the passthroughed device to get the vbios.
> The driver reports a successful read, but fails because it can't find the right string at the right offset.
>
> So I inspected the rom by using sysfs with:
> echo 1 > /sys/bus/pci/devices/<BDF>/rom
> cat /sys/bus/pci/devices/<BDF>/rom
>
> - When i use this in dom0 (so without passthrough) i the contents of the ROM are valid (as expected since the driver loads fine)
> - When i use this in the Guest (passthrouhed), the contents of the ROM i get are not from the passedthrough adapter, but from the emulated cirrus card.
> (it's the same as the "tools/firmware/vgabios/VGABIOS-lgpl-latest.cirrus.bin")
I hadn't tried that, but I do get the same error:
[ 4.143445] [drm] radeon defaulting to kernel modesetting.
[ 4.143452] [drm] radeon kernel modesetting enabled.
[ 4.143525] checking generic (f0000000 160000) vs hw (110000000 10000000)
[ 4.143976] xen: --> pirq=24 -> irq=40 (gsi=40)
[ 4.147760] [drm] initializing kernel modesetting (RV770 0x1002:0x9440 0x174B:0xE850).
[ 4.148204] [drm] register mmio base: 0xF3040000
[ 4.148209] [drm] register mmio size: 65536
[ 4.152035] radeon 0000:00:06.0: >Expecting atombios for R600 GPU
[ 4.152040] radeon 0000:00:06.0: >Fatal error during GPU init
[ 4.152044] [drm] radeon: finishing device.
[ 4.152047] [TTM] Memory type 2 has not been initialized
[ 4.168163] radeon 0000:00:06.0: >no bo for sa manager
[ 4.174380] radeon: probe of 0000:00:06.0 failed with error -22
This is with the latest Xen version. No idea yet what is broken.
next prev parent reply other threads:[~2013-12-02 19:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 14:33 [Qemu-devel] RESEND [Xen-unstable][Qemu-xen] HVM Guest reading of Expansion ROM from passthroughed PCI device returns data from emulated VGA rom Sander Eikelenboom
2013-09-22 13:02 ` [Qemu-devel] [Xen-devel] " Pasi Kärkkäinen
2013-09-22 15:00 ` Sander Eikelenboom
2013-09-22 16:21 ` Pasi Kärkkäinen
2013-09-23 3:03 ` Wu, Feng
2013-09-24 21:24 ` Sander Eikelenboom
2013-10-01 16:15 ` Pasi Kärkkäinen
2013-12-02 19:41 ` Konrad Rzeszutek Wilk [this message]
2013-12-02 19:55 ` Sander Eikelenboom
2013-12-02 20:39 ` Konrad Rzeszutek Wilk
2013-12-02 20:59 ` Sander Eikelenboom
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=20131202194131.GA3212@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=anthony.perard@citrix.com \
--cc=linux@eikelenboom.it \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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).