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: [RFC][QEMU] ATI graphics VBIOS passthru support

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-devel] RE: [RFC][QEMU] ATI graphics VBIOS passthru support
From: Wei Huang <wei.huang2@xxxxxxx>
Date: Fri, 10 Dec 2010 17:40:19 -0600
Cc: "Wang2, Wei" <Wei.Wang2@xxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "djmagee@xxxxxxxxxxxx" <djmagee@xxxxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Delivery-date: Fri, 10 Dec 2010 15:41:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20101207100052.GN2754@xxxxxxxxxxx>
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: <EE335F95F28A664DB4A21289D2AA053B8E1EA326@xxxxxxxxxxxxxxxxxxx> <EECC125FCE18E740AF561189E1260285052799@xxxxxxxxxxxxxxxxxxxxxxx> <EE335F95F28A664DB4A21289D2AA053B8E1EA4C8@xxxxxxxxxxxxxxxxxxx> <EECC125FCE18E740AF561189E126028505279A@xxxxxxxxxxxxxxxxxxxxxxx> <EE335F95F28A664DB4A21289D2AA053B8E512791@xxxxxxxxxxxxxxxxxxx> <EE335F95F28A664DB4A21289D2AA053B8E5128A0@xxxxxxxxxxxxxxxxxxx> <20101207100052.GN2754@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
Hi,

The attached patch supports dynamic detection of BARs (both MMIO and PIO). Hopefully it can alleviate some of the issues you saw with ATI gfx passthru. Please let me know whether it works better for you.

Thanks,
-Wei

On 12/07/2010 04:00 AM, Pasi Kärkkäinen wrote:
On Wed, Oct 13, 2010 at 04:37:10PM -0500, Huang2, Wei wrote:
    Sorry, hold on a second. This fix seems corrupt my pci config space after
    several runs.

Hello,

Any updates to these patches? Many users have been asking about amd/ati vga 
passthru stuff..

-- Pasi


    -Wei



    From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
    [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Huang2, Wei
    Sent: Wednesday, October 13, 2010 3:47 PM
    To: djmagee@xxxxxxxxxxxx; Kay, Allen M; Ian Jackson
    Cc: Wang2, Wei; Xen-devel
    Subject: RE: [Xen-devel] RE: [RFC][QEMU] ATI graphics VBIOS passthru
    support



    Hi Allen and Doug,



    Could you fix the following line in save_pci_conf_space() of
    tools/python/xen/util/pci.py?



            "for i in range(0, 256, 4):" to "for i in range(0, 512, 4):"



    This solves my black screen issue. Please let me know the results.





    Thanks,

    -Wei



    From: djmagee@xxxxxxxxxxxx [mailto:djmagee@xxxxxxxxxxxx]
    Sent: Friday, October 08, 2010 10:53 AM
    To: Huang2, Wei; Kay, Allen M; Ian Jackson
    Cc: Xen-devel; Wang2, Wei
    Subject: RE: [Xen-devel] RE: [RFC][QEMU] ATI graphics VBIOS passthru
    support



    Wei,

                    These were guests that had never seen the catalyst driver
    before.  I booted each three with the graphics device and usb devices
    assigned, they worked fine using the basic VGA driver, then installed
    fresh Catalyst 10.9, rebooted, and each one crashed.



                    Let me know if there's any other info I can provide that
    will help you debug.  The motherboard is a DQ45CB, running xen-unstable
    c/s 22155 using `dom0_mem=768M iommu=1' on the grub line, and using pvops
    Dom0 from stable-2.6.32.x commit 179eca50.



    Doug Magee



    From: Huang2, Wei [mailto:Wei.Huang2@xxxxxxx]
    Sent: Friday, October 08, 2010 11:41 AM
    To: djmagee@xxxxxxxxxxxx; Kay, Allen M; Ian Jackson
    Cc: Xen-devel; Wang2, Wei
    Subject: RE: [Xen-devel] RE: [RFC][QEMU] ATI graphics VBIOS passthru
    support



    Hi Doug,



    Regarding Catalyst driver, we never saw guest crashing. Was it a fresh
    Catalyst installation or an existing guest image? We felt this VBIOS patch
    might not provide all necessary resources to driver, which got upset.
    Currently we are debugging it with our driver team and will let you know
    the update.



    Thanks,

    -Wei



    From: djmagee@xxxxxxxxxxxx [mailto:djmagee@xxxxxxxxxxxx]
    Sent: Friday, October 08, 2010 9:41 AM
    To: Huang2, Wei; Kay, Allen M; Ian Jackson
    Cc: Xen-devel
    Subject: RE: [Xen-devel] RE: [RFC][QEMU] ATI graphics VBIOS passthru
    support



    Wei,

                    I've tested with a Radeon 4770 and it the VBIOS works
    without a problem, through many guest (re)boots, so it seems pretty
    solid.  I tested a linux guest (fairly standard Fedora 12), Windows XP,
    and Windows 7 (without accelerated drivers).  The open radeon linux driver
    works fine.



    The Catalyst driver fails in Windows XP (STOP 0x000000EA, thread stuck in
    device driver), windows 7 (STOP 0x00000116, driver fails to properly
    reset?), and linux (total system freeze).  This seems to be different than
    the `Blank Screen' problem you report, as the driver is clearly not
    functioning properly.



    Doug Magee



    From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
    [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Huang2, Wei
    Sent: Friday, October 08, 2010 9:57 AM
    To: Kay, Allen M; Ian Jackson
    Cc: Xen-devel
    Subject: [Xen-devel] RE: [RFC][QEMU] ATI graphics VBIOS passthru support



    Hi Allen,



    Yes, Catalyst driver is the one from public website. The driver still has
    a  minor issue with this VBIOS patch. The purpose of submitting VBIOS
    patch is to get community feedbacks. After we figure out the root cause of
    black screen, I will formally submit a patch for inclusion.



    Thanks,

    -Wei



    From: Kay, Allen M [mailto:allen.m.kay@xxxxxxxxx]
    Sent: Friday, October 08, 2010 2:21 AM
    To: Huang2, Wei; Ian Jackson
    Cc: Xen-devel
    Subject: RE: [RFC][QEMU] ATI graphics VBIOS passthru support



    Hi Wei,



    Is Catalyst driver the one on AMD website?  I think that's what I have in
    my win7 guest and it matches the symptom you are describing.  "lspci"
    reports my ATI card is a V5700 - although it says v3750 on the box.  Where
    can I get a working driver?



    The patch looks reasonable to me in general.



    Allen



    From: Huang2, Wei [mailto:Wei.Huang2@xxxxxxx]
    Sent: Thursday, October 07, 2010 9:06 PM
    To: Kay, Allen M; Ian Jackson
    Cc: Xen-devel
    Subject: RE: [RFC][QEMU] ATI graphics VBIOS passthru support



    Hi Allen,



    Thanks for testing it out. We have tested this patch with Radeon 4850,
    4870, FirePro V5700 and FirePro M5800. Unfortunately we don't have V3750
    at hand. It is very possible this patch isn't compatible with V3750. We
    will try to get hold of one for debugging. For graphics which work with
    this path, users should be able to get rid of emulated gfx (such as
    Cirrus). I have successfully installed a Windows guest VM using this
    patch.



    I also want to point out that there is still an issue. Users will see a
    black screen after installing Catalyst driver. Even though the screen
    appears to be black, the driver is actually functioning correctly (3DMark
    can be run with external monitor). Our driver team is currently debugging
    it and they believe this is easy to fix.



    What is your opinion on this patch (and the solution) in general?



    -Wei



    From: Kay, Allen M [mailto:allen.m.kay@xxxxxxxxx]
    Sent: Thursday, October 07, 2010 6:58 PM
    To: Huang2, Wei; Ian Jackson
    Cc: Xen-devel
    Subject: RE: [RFC][QEMU] ATI graphics VBIOS passthru support



    Hi Wei,



    This patch did not cause any problems with Intel IGD passthrough for me.
    However, the monitor remained blank if I pass through ATI Firepro V3750
    either as the primary display device or the secondary device
    (gfx_passthru=1/0).  Passing it through as the secondary device used to
    work.



    Have you tested the patch with this graphics card?



    Allen



    From: Huang2, Wei [mailto:Wei.Huang2@xxxxxxx]
    Sent: Thursday, October 07, 2010 9:57 AM
    To: Ian Jackson
    Cc: Xen-devel; Kay, Allen M
    Subject: [RFC][QEMU] ATI graphics VBIOS passthru support



    Hi Ian,



    There have been a lot of interest on gfx passthru recently. This patch
    enables ATI VBIOS in passthru mode. The guest VM system BIOS (including
    Windows boot logo) can now show in passthru screen. We have tested with
    various Windows and Linux guest VMs. Please help review it. We are also
    looking forward to comments and suggestions from Xen community users.



    Signed-off-by: Wei Huang<wei.huang2@xxxxxxx>

    Signed-off-by: Wei Wang<wei.wang2@xxxxxxx>




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


Attachment: ati_vbios_patch_with_bar_detection.txt
Description: ati_vbios_patch_with_bar_detection.txt

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