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

[Xen-devel] Radeon HD5770 and VGA passthrough (vBAR=pBAR not enough?)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Radeon HD5770 and VGA passthrough (vBAR=pBAR not enough?)
From: FeepingCreature <default_357-line@xxxxxxxx>
Date: Mon, 12 Jul 2010 12:24:22 +0200
Delivery-date: Mon, 12 Jul 2010 11:05:05 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1278930263; bh=SFnvV5q1ajyA44CtUxZODsvaU/2wBRT50+UTGgaVLGg=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=stzqRCTpCsyV90YAHTL/tJezuAODl0Ua4FujVyVUe6DVOSswpS6iLOpLlIjh/JgsqvOutYzjwOAIVubFIT7VrbHlMss2faGcxtYY7i5CFACmQi2v5g3g8ViqwkrOv1ypBtKpQTmhlHae6fHDpnyfkuX6SGXZkUfYb8k5IGRQB5E=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=JGn0uzPbqzQ0ySTXLC0G6WL19abjVA42EnEu42CB4pnivhjY6RoT+O2OzdDjaVpCO5Ywc652Nzl8Vv5skGrOhtZ09DSk4pb1sao7vHKQf+V+DW6OtAveSafAvhvxJeekpEyrxllX5JpThgie+aFdSyfSVqLFAXtjAZZ5Ku3XnU4= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100328 Thunderbird/3.0.3
Hi,

I've been trying these last few days to get primary VGA passthrough to
work on my ATI Radeon HD5770 card.

I'm running hg head with the secondary patches applied (external
graphics BIOS, vbar=pbar), and in VGA mode this works fine.

The problem is that ati2dvag crashes whenever it tries to switch to any
driver-run graphics mode.

------ win xp starts its vga-based boot screen. All is well.
(XEN) domctl.c:1002:d0 memory_map:remove: gfn=c0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:1002:d0 memory_map:remove: gfn=d0020 mfn=d0020 nr_mfns=20
(XEN) domctl.c:1072:d0 ioport_map:remove f_gport=d000 f_mport=d000 np=100
(XEN) domctl.c:992:d0 memory_map:add: gfn=c0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:992:d0 memory_map:add: gfn=d0020 mfn=d0020 nr_mfns=20
(XEN) domctl.c:1048:d0 ioport_map:add f_gport=d000 f_mport=d000 np=100
(XEN) domctl.c:1002:d0 memory_map:remove: gfn=f1000 mfn=d0040 nr_mfns=4
(XEN) domctl.c:992:d0 memory_map:add: gfn=f1000 mfn=d0040 nr_mfns=4
(XEN) grant_table.c:1121:d8 Expanding dom (8) grant table from (4) to
(32) frames.
(XEN) irq.c:309: Dom8 callback via changed to GSI 28
------ driver activation happens here
(XEN) domctl.c:1002:d0 memory_map:remove: gfn=c0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:1002:d0 memory_map:remove: gfn=d0020 mfn=d0020 nr_mfns=20
(XEN) domctl.c:1072:d0 ioport_map:remove f_gport=d000 f_mport=d000 np=100
-- note the different addresses!
(XEN) domctl.c:992:d0 memory_map:add: gfn=e0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:992:d0 memory_map:add: gfn=fbfe0 mfn=d0020 nr_mfns=20
(XEN) domctl.c:1048:d0 ioport_map:add f_gport=d000 f_mport=d000 np=100
(XEN) domctl.c:1002:d0 memory_map:remove: gfn=f1000 mfn=d0040 nr_mfns=4
(XEN) domctl.c:992:d0 memory_map:add: gfn=f1000 mfn=d0040 nr_mfns=4

So the graphics card driver evidently tries to allocate its resources
somewhere else than where they start out as. If I boot into VGA mode,
the resources tab of the card confirms this.

I have a sneaking suspicion that this breaks vBAR=pBAR, but I don't know
how to verify or fix it. I believe that the correct thing to do might be
to reallocate the graphics card's resources at the new address windows
gives me, but I have no idea how to go about that. Any help would be
appreciated.


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

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