From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gennady Marchenko Subject: Re: Xen, ustable and VGA passthrough Date: Sat, 21 May 2011 19:58:19 +0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0633633277==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Liwei Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0633633277== Content-Type: multipart/alternative; boundary=90e6ba6e8f1c9b721c04a3cb4ef3 --90e6ba6e8f1c9b721c04a3cb4ef3 Content-Type: text/plain; charset=UTF-8 Hello again Liwei! Thanks for your patch it applied good :) With your patch I can run my ATI 5450 as primary GPU (I have no secondary at all) as basic VGA: Windows XP can start and show the desktop if it has no installed drivers. It is very big progress for me :) After I installed drivers it can't init the GPU. I think when you tries to install Win7 you got same - because it already have buildin drivers and tries to init extended display mode. My logs is: root@xen:/var/log/xen# tail -f /var/log/xen/qemu-dm-winxp.log (here domU started up) pt_iomem_map: e_phys=d0000000 maddr=d0000000 type=8 len=268435456 index=0 first_map=1 pt_bar_reg_read: first read BARs of gfx pt_bar_reg_read: first read BARs of gfx pt_iomem_map: e_phys=febc0000 maddr=febc0000 type=0 len=131072 index=2 first_map=1 pt_bar_reg_read: first read BARs of gfx pt_bar_reg_read: first read BARs of gfx pt_ioport_map: e_phys=e000 pio_base=e000 len=256 index=4 first_map=1 pt_iomem_map: e_phys=f1000000 maddr=febfc000 type=0 len=16384 index=0 first_map=1 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. (here I see windows xp 'load' progress with logo, mayb it tries to init vga) pt_iomem_map: e_phys=ffffffff maddr=d0000000 type=8 len=268435456 index=0 first_map=0 pt_iomem_map: e_phys=ffffffff maddr=febc0000 type=0 len=131072 index=2 first_map=0 pt_ioport_map: e_phys=ffff pio_base=e000 len=256 index=4 first_map=0 pt_iomem_map: e_phys=d0000000 maddr=d0000000 type=8 len=268435456 index=0 first_map=0 pt_iomem_map: e_phys=febc0000 maddr=febc0000 type=0 len=131072 index=2 first_map=0 pt_ioport_map: e_phys=e000 pio_base=e000 len=256 index=4 first_map=0 pt_iomem_map: e_phys=ffffffff maddr=febfc000 type=0 len=16384 index=0 first_map=0 pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:06.0][Offset:30h][Length:4] pt_iomem_map: e_phys=f1000000 maddr=febfc000 type=0 len=16384 index=0 first_map=0 (here it must start to show the desktop) pt_iomem_map: e_phys=ffffffff maddr=d0000000 type=8 len=268435456 index=0 first_map=0 pt_iomem_map: e_phys=ffffffff maddr=febc0000 type=0 len=131072 index=2 first_map=0 pt_ioport_map: e_phys=ffff pio_base=e000 len=256 index=4 first_map=0 pt_iomem_map: e_phys=e0000000 maddr=d0000000 type=8 len=268435456 index=0 first_map=0 pt_iomem_map: e_phys=fbfe0000 maddr=febc0000 type=0 len=131072 index=2 first_map=0 pt_ioport_map: e_phys=e000 pio_base=e000 len=256 index=4 first_map=0 (but something goes wrong :)) reset requested in cpu_handle_ioreq. Issued domain 6 reboot It may be problem with memory map in dsdt.asl but I don't know how it may fix. :( Thanks a lot for your patch. Gennady. On Fri, May 20, 2011 at 10:08 AM, Liwei wrote: > Hello Gennady! > Wasn't planning on posting the patch until it works. Also not sure > if it'll end up destroying stuff so, do take care! Not my fault if > unfortunate stuff happens! > The patch was hastily created on a separate Ubuntu machine with > the source partition mounted, so I couldn't do a compile test nor am I > sure if all the changes I made are in the patch. Tell me if it doesn't > compile after applying the patch, I probably missed a file or two. > Patch is based on the original VGA passthrough patches posted by > Weidong, modified to account for the ROMBIOS code being moved to its > own file. It includes the claim cycle patch for secondary graphics > card passthrough as well. > Remember to place your graphics card's firmware into > tools/firmware/vgabios/ after each "make clean". > > Regards, > Liwei > > > On 20 May 2011 08:11, Gennady Marchenko > wrote: > > Hi Liwei! > > Some days ago you post a report to xen-devel about your tries to run your > > vga in pt mode on xen unstable.So could you share the last patched > sources > > are you tried to work? > > Because I can't apply several patch to current unstable could you share > it > > please? > > I'm already have done about IGD but can't PT the primary ati 5450 at all > :( > > Best wishes, > > Gennady. > --90e6ba6e8f1c9b721c04a3cb4ef3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello again Liwei!

Thanks for your patch it applied good= :)

With your patch I can run my ATI 5450 as prima= ry GPU (I have no secondary at all) as basic VGA:

Windows XP can start and show the desktop if it has no installed drivers. I= t is very big progress for me :)

After I installed= drivers it can't init the GPU. I think when you tries to install Win7 = you got same - because it already have buildin drivers and tries to init ex= tended display mode.
My logs is:

root@xen:/var/log/xen# tail = -f /var/log/xen/qemu-dm-winxp.log
(here domU started up)
pt_iomem_map: e_phys=3Dd0000000 maddr=3Dd0000000 type=3D8 len=3D268435456= index=3D0 first_map=3D1
pt_bar_reg_read: first read BARs of gfx
pt_bar_reg_read: fir= st read BARs of gfx
pt_iomem_map: e_phys=3Dfebc0000 maddr=3Dfebc0= 000 type=3D0 len=3D131072 index=3D2 first_map=3D1
pt_bar_reg_read= : first read BARs of gfx
pt_bar_reg_read: first read BARs of gfx
pt_ioport_map: e_phy= s=3De000 pio_base=3De000 len=3D256 index=3D4 first_map=3D1
pt_iom= em_map: e_phys=3Df1000000 maddr=3Dfebfc000 type=3D0 len=3D16384 index=3D0 f= irst_map=3D1
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is = rw state.
platform_fixed_ioport: changed ro/rw state of ROM memor= y area. now is ro state.




(here I see windows xp 'load' progress with log= o, mayb it tries to init vga)
pt_iomem_map: e_phys=3Dffffffff mad= dr=3Dd0000000 type=3D8 len=3D268435456 index=3D0 first_map=3D0
pt= _iomem_map: e_phys=3Dffffffff maddr=3Dfebc0000 type=3D0 len=3D131072 index= =3D2 first_map=3D0
pt_ioport_map: e_phys=3Dffff pio_base=3De000 len=3D256 index=3D4 first= _map=3D0
pt_iomem_map: e_phys=3Dd0000000 maddr=3Dd0000000 type=3D= 8 len=3D268435456 index=3D0 first_map=3D0
pt_iomem_map: e_phys=3D= febc0000 maddr=3Dfebc0000 type=3D0 len=3D131072 index=3D2 first_map=3D0
pt_ioport_map: e_phys=3De000 pio_base=3De000 len=3D256 index=3D4 first= _map=3D0
pt_iomem_map: e_phys=3Dffffffff maddr=3Dfebfc000 type=3D= 0 len=3D16384 index=3D0 first_map=3D0
pt_pci_write_config: Warnin= g: Guest attempt to set address to unused Base Address Register. [00:06.0][= Offset:30h][Length:4]
pt_iomem_map: e_phys=3Df1000000 maddr=3Dfebfc000 type=3D0 len=3D16384 = index=3D0 first_map=3D0


(here it mu= st start to show the desktop)
pt_iomem_map: e_phys=3Dffffffff mad= dr=3Dd0000000 type=3D8 len=3D268435456 index=3D0 first_map=3D0
pt_iomem_map: e_phys=3Dffffffff maddr=3Dfebc0000 type=3D0 len=3D131072= index=3D2 first_map=3D0
pt_ioport_map: e_phys=3Dffff pio_base=3D= e000 len=3D256 index=3D4 first_map=3D0
pt_iomem_map: e_phys=3De00= 00000 maddr=3Dd0000000 type=3D8 len=3D268435456 index=3D0 first_map=3D0
pt_iomem_map: e_phys=3Dfbfe0000 maddr=3Dfebc0000 type=3D0 len=3D131072= index=3D2 first_map=3D0
pt_ioport_map: e_phys=3De000 pio_base=3D= e000 len=3D256 index=3D4 first_map=3D0

(but someth= ing goes wrong :))
reset requested in cpu_handle_ioreq.
Issued domain 6 reboot<= /div>

It may be problem with memory map in=C2=A0dsdt.asl but = I don't know how it may fix. :(

Thanks a lot f= or your patch.

Gennady.


On Fri, May 20, 2011 at 10:08 AM, Liwei <xieliwei@gmail.com> wrote:=
Hello Gennady!
=C2=A0 =C2=A0Wasn't planning on posting the patch until it works. Also= not sure
if it'll end up destroying stuff so, do take care! Not my fault if
unfortunate stuff happens!
=C2=A0 =C2=A0The patch was hastily created on a separate Ubuntu machine wi= th
the source partition mounted, so I couldn't do a compile test nor am I<= br> sure if all the changes I made are in the patch. Tell me if it doesn't<= br> compile after applying the patch, I probably missed a file or two.
=C2=A0 =C2=A0Patch is based on the original VGA passthrough patches posted= by
Weidong, modified to account for the ROMBIOS code being moved to its
own file. It includes the claim cycle patch for secondary graphics
card passthrough as well.
=C2=A0 =C2=A0Remember to place your graphics card's firmware into
tools/firmware/vgabios/ after each "make clean".

Regards,
Liwei


On 20 May 2011 08:11, Gennady Marchenko <gennady.marchenko@gmail.com> wrote:
> Hi=C2=A0Liwei!
> Some days ago you post a report to xen-devel about your tries to run y= our
> vga in pt mode on xen unstable.So could you share the last patched sou= rces
> are you tried to work?
> Because I can't apply several patch to current unstable could you = share it
> please?
> I'm already have done about IGD but can't PT the primary ati 5= 450 at all :(
> Best wishes,
> Gennady.

--90e6ba6e8f1c9b721c04a3cb4ef3-- --===============0633633277== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0633633277==--