From: Boris Derzhavets Subject: Re: Re: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 unstable Date: Sun, 6 Sep 2009 08:49:51 -0700 (PDT) Message-ID: <324257.12640.qm@web56105.mail.re3.yahoo.com> References: <4AA3D0AE.2080009@rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0540905698==" Return-path: In-Reply-To: <4AA3D0AE.2080009@rwth-aachen.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mark Schloesser Cc: xen-devel@lists.xensource.com, fedora-xen@redhat.com List-Id: xen-devel@lists.xenproject.org --===============0540905698== Content-Type: multipart/alternative; boundary="0-1774294253-1252252191=:12640" --0-1774294253-1252252191=:12640 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =C2=A0 I tried to build and load on F12 rawhide with the most recent=0Agcc,= glibc and kernel (fedoras). So, xen was installed via=0Axen-3.4.1-3.src.rpm= along with libvirt ( via rawhide again). Please,=0Alet me know your enviro= nment for successful build and load rc8 under=C2=A0=0AXen 3.5. Boris. BTW=20 Please,be advised :- ********** Quote:- ********** >Does this help? >diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h >index cb1a663..f4ebffb 100644 >--- a/include/linux/swiotlb.h >+++ b/include/linux/swiotlb.h >@@ -2,6 +2,7 @@ >#define __LINUX_SWIOTLB_H =20 >#include >+#include =20 >struct device; >struct dma_attrs; =C2=A0 Now kernel gets built, but still fails to load under either Xen 3.5 = or Xen=0A 3.4.1. =C2=A0 Stack traces differ on C2D E8400 (Xen 3.4.1)=C2=A0 and Q9550 (Xen 3.= 5 unstable )boxes.=20 =C2=A0 On the last box :- =C2=A0do_one_initcall + 0x37/0x1a0 =C2=A0kernel_init + 0x164/0x1ba =C2=A0child_rip + 0xa/0x20 =C2=A0? int_ret_from_sys_call 0x7/0x16 =C2=A0? retint_restore_arg + 0x5/0x6 =C2=A0? child_rip 0x0/0x20 =C2=A0Two last=0A commands are the same on the first box. Previous differ. Boris. P.S. I cannot buy or order 20 m of NUL modem cable. =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Just 2.5 m . That's all --- On Sat, 9/5/09, Jeremy Fitzhardinge wrote: From: Jeremy Fitzhardinge Subject: [Xen-devel] Re: Errors when build 2.6.31-rc8 To: "Boris Derzhavets" Cc: "Xen-devel" Date: Saturday, September 5, 2009, 11:48 AM On=0A 09/05/09 04:18, Boris Derzhavets wrote: > After fresh git clone, git checkout tune "make menuconfig" the same > way as for RC6 > > When build :- > > In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:5= , >=C2=A0 =C2=A0=0A =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from dri= vers/gpu/drm/ttm/ttm_agp_backend.c:40: > include/linux/swiotlb.h:48: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:48: warning: its scope is only this definition > or declaration, which is probably not what you want > include/linux/swiotlb.h:51: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:63: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:68: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:72: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:76: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:80: warning:=0A =E2=80=98enum dma_data_direction= =E2=80=99 > declared inside parameter list > include/linux/swiotlb.h:84: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:89: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > include/linux/swiotlb.h:94: warning: =E2=80=98enum dma_data_direction=E2= =80=99 > declared inside parameter list > In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9= , >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from driver= s/gpu/drm/ttm/ttm_agp_backend.c:40: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function > =E2=80=98get_dma_ops=E2=80=99: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:29: error: > dereferencing pointer to incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:32: error: > dereferencing pointer to incomplete=0A type > In file included from > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37, >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /usr/s= rc/linux-2.6-xen/arch/x86/include/asm/agp.h:9, >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from driver= s/gpu/drm/ttm/ttm_agp_backend.c:40: > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:12: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:11: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_map_single_attrs=E2=80=99: > include/asm-generic/dma-mapping-common.h:18: error: implicit > declaration of function =E2=80=98valid_dma_direction=E2=80=99 > In file included from >=0A /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37, >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /usr/s= rc/linux-2.6-xen/arch/x86/include/asm/agp.h:9, >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from driver= s/gpu/drm/ttm/ttm_agp_backend.c:40: > include/asm-generic/dma-mapping-common.h:19: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:31: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:30: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_unmap_single_attrs=E2=80=99: > include/asm-generic/dma-mapping-common.h:36: error: dereferencing > pointer to incomplete type >=0A include/asm-generic/dma-mapping-common.h:37: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:43: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:42: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function =E2=80=98dma_map_sg= _attrs=E2=80=99: > include/asm-generic/dma-mapping-common.h:52: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:60: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:59: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In=0A function > =E2=80=98dma_unmap_sg_attrs=E2=80=99: > include/asm-generic/dma-mapping-common.h:66: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:67: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:72: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:72: error: parameter 5 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function =E2=80=98dma_map_pa= ge=E2=80=99: > include/asm-generic/dma-mapping-common.h:79: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:86: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list >=0A include/asm-generic/dma-mapping-common.h:86: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function =E2=80=98dma_unmap_= page=E2=80=99: > include/asm-generic/dma-mapping-common.h:91: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:92: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:98: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:98: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_sync_single_for_cpu=E2=80=99: > include/asm-generic/dma-mapping-common.h:103: error: dereferencing > pointer to incomplete type >=0A include/asm-generic/dma-mapping-common.h:104: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:111: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:111: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_sync_single_for_device=E2=80=99: > include/asm-generic/dma-mapping-common.h:116: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:117: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:126: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list >=0A include/asm-generic/dma-mapping-common.h:126: error: parameter 5 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_sync_single_range_for_cpu=E2=80=99: > include/asm-generic/dma-mapping-common.h:131: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:132: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:137: error: type of formal > parameter 4 is incomplete > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:144: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:144: error: parameter 5 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function >=0A =E2=80=98dma_sync_single_range_for_device=E2=80=99: > include/asm-generic/dma-mapping-common.h:149: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:150: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:155: error: type of formal > parameter 4 is incomplete > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:160: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:160: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_sync_sg_for_cpu=E2=80=99: > include/asm-generic/dma-mapping-common.h:165: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:166: error:=0A dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h: At top level: > include/asm-generic/dma-mapping-common.h:173: warning: =E2=80=98enum > dma_data_direction=E2=80=99 declared inside parameter list > include/asm-generic/dma-mapping-common.h:173: error: parameter 4 > (=E2=80=98dir=E2=80=99) has incomplete type > include/asm-generic/dma-mapping-common.h: In function > =E2=80=98dma_sync_sg_for_device=E2=80=99: > include/asm-generic/dma-mapping-common.h:178: error: dereferencing > pointer to incomplete type > include/asm-generic/dma-mapping-common.h:179: error: dereferencing > pointer to incomplete type > In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9= , >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from driver= s/gpu/drm/ttm/ttm_agp_backend.c:40: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function >=0A =E2=80=98dma_mapping_error=E2=80=99: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:42: error: > dereferencing pointer to incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:43: error: > dereferencing pointer to incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: At top level: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: warning: > =E2=80=98enum dma_data_direction=E2=80=99 declared inside parameter list > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error: > parameter 4 (=E2=80=98dir=E2=80=99) has incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function > =E2=80=98dma_alloc_coherent_mask=E2=80=99: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:77: error: > dereferencing pointer to incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:79: error: >=0A implicit declaration of function =E2=80=98DMA_BIT_MASK=E2=80=99 > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function > =E2=80=98dma_alloc_coherent=E2=80=99: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error: > implicit declaration of function =E2=80=98is_device_dma_capable=E2=80=99 > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:117: error: > dereferencing pointer to incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:120: error: > dereferencing pointer to incomplete type > In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9= , >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from driver= s/gpu/drm/ttm/ttm_agp_backend.c:40: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function > =E2=80=98dma_free_coherent=E2=80=99: > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error: >=0A dereferencing pointer to incomplete type > /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:139: error: > dereferencing pointer to incomplete type > make[4]: *** [drivers/gpu/drm/ttm/ttm_agp_backend.o] Error 1 > make[3]: *** [drivers/gpu/drm/ttm] Error 2 > make[2]: *** [drivers/gpu/drm] Error 2 > make[1]: *** [drivers/gpu] Error 2 > make: *** [drivers] Error 2 > Does this help? diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index cb1a663..f4ebffb 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -2,6 +2,7 @@ #define __LINUX_SWIOTLB_H =20 #include +#include =20 struct device; struct dma_attrs; =C2=A0=C2=A0=C2=A0 J --- On Sun, 9/6/09, Mark Schloesser wrote: From: Mark Schloesser Subject: Re: [Xen-devel] Re: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.= 5 unstable To: "Boris Derzhavets" Cc: fedora-xen@redhat.com, xen-devel@lists.xensource.com Date: Sunday, September 6, 2009, 11:09 AM Boris, actually I used your config. The same config as I used for -rc6 build. Works just fine for me - but I did not try booting with 3.4.1, only with xen-unstable. Mark Boris Derzhavets wrote: > Mark, > Could you share your .config for JF's 2.6.31-rc8 which loads under Xen Un= stable. > Looks like i miss some point tuning kernel. >=20 > Thanks. > Boris. >=20 > --- On Fri, 9/4/09, Boris Derzhavets wrote: >=20 > From: Boris Derzhavets > Subject: [Xen-devel] Re: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 = unstable > To: fedora-xen@redhat.com, "Mark Schloesser" > Cc: xen-devel@lists.xensource.com > Date: Friday, September 4, 2009, 2:02 PM >=20 > I did "git pull" , built 2.6.31-c8 kernel with Xen Dom0 support. > However, attempt to load kernel under Xen 3.4.1 drops > into stack trace and hangs on both F11 and Ubuntu 9.10.=20 > Old 2.6.31-rc6's .config file has been used without any changes. > I can't set up serial console in meantime. >=20 > Boris >=20 > --- On Fri, 9/4/09, Mark Schloesser wrot= e: >=20 > From: Mark Schloesser > Subject: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 unstable > To: fedora-xen@redhat.com > Date: Friday, September 4, 2009, 10:26 AM >=20 > Hey guys, >=20 > I sadly had no luck fixing my X problem. The system seems to run fine > and as the subject says I moved >=C2=A0 from 3.4.1-3 to xen-unstable. As I am > already doing fairly bleeding-edge stuff here I thought this would > probably make most sense. >=20 > As I only have an nvs290 gfx card available right now I can't check if > this is the problem. But I'll try to get my hands on some other cards > for next week. >=20 > Today I read through a lot of mailing list archives and PDFs trying to > dig deeper into the IOMMU/PCI passthrough stuff and I want to give the > graphics passthrough situation a shot myself. Sadly it is very confusing > to read about the different setups and hardware environments with both > positive and negative results. Also the patchsets and versions everybody > is talking about do not make it any easier :) >=20 > My current questions would be: > - is the combination of JF git kernel with xen-unstable the right way to > go for this setup? Or should I perhaps use older xen version and apply > some patchset? I think some of those >=C2=A0 patches were applied in > xen-unstable already but I am not quite sure... >=20 > - does anyone have hints or clarification regarding the Xorg problem on > dom0? As I said there are no eye-catching log entries or errors except > the Xorg backtrace at the end of the log file (posted to list before). > This happens regardless of which driver I enable (vesa/nv/nouveau). The > nvidia binary driver compiles without problems and seems to come up but > only gives me a black screen and also locks the vtys. >=20 >=20 > Thanks to the great help, reports and instructions Boris and others! >=20 > Mark >=20 >=20 > -----Inline Attachment Follows----- >=20 > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen >=20 >=20 >=20 >=20 >=20 >=C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 > -----Inline Attachment Follows----- >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------------------------ >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel =0A=0A=0A --0-1774294253-1252252191=:12640 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
  I tried to build and load on F12 rawhi= de with the most recent=0Agcc,glibc and kernel (fedoras). So, xen was insta= lled via=0Axen-3.4.1-3.src.rpm along with libvirt ( via rawhide again). Ple= ase,=0Alet me know your environment for successful build and load rc8 under=  =0AXen 3.5.

Boris.
BTW
Please,be advised :-

****= ******
Quote:-
**********

>Does this help?

>diff = --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
>index cb1a= 663..f4ebffb 100644
>--- a/include/linux/swiotlb.h
>+++ b/inclu= de/linux/swiotlb.h
>@@ -2,6 +2,7 @@
>#define __LINUX_SWIOTLB_H=

>#include <linux/types.h>
>+#include <linux/dma= -mapping.h>

>struct device;
>struct dma_attrs;
  Now kernel gets built, but still fails to load under either Xen 3.5= or Xen=0A 3.4.1.
  <= span class=3D"yshortcuts" id=3D"lw_1252252118_0">Stack traces= differ on C2D E8400 (Xen 3.4.1)  and Q9550 (Xen 3.5 unstable )boxes. =
  On the last box :-

 do_one_initcall + 0x37/0x1a0
=  kernel_init + 0x164/0x1ba
 child_rip + 0xa/0x20
 ? in= t_ret_from_sys_call 0x7/0x16
 ? retint_restore_arg + 0x5/0x6
&nb= sp;? child_rip 0x0/0x20

 Two last=0A commands are the same on t= he first box. Previous differ.

Boris.
P.S. I cannot buy or order = 20 m of NUL modem cable.
       Just 2.5 m= . That's all

--- On Sat, 9/5/09, Jeremy Fitzhardinge <jeremy@goop.org> wrote:
From: Jeremy Fitzhardinge <jeremy@goop.org>
Subject: [Xen-devel]= Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <bderzhavets= @yahoo.com>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>
Date: Sa= turday, September 5, 2009, 11:48 AM

On=0A 09/05/09 04:18, Boris Derz= havets wrote:
> After fresh git clone, git checkout tune "make menuco= nfig" the same
> way as for RC6
>
> When build :-
>=
> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/= agp.h:5,
>   =0A             =   from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux= /swiotlb.h:48: warning: =E2=80=98enum dma_data_direction=E2=80=99
> d= eclared inside parameter list
> include/linux/swiotlb.h:48: warning: = its scope is only this definition
> or declaration, which is probably= not what you want
> include/linux/swiotlb.h:51: warning: =E2=80=98en= um dma_data_direction=E2=80=99
> declared inside parameter list
&g= t; include/linux/swiotlb.h:63: warning: =E2=80=98enum dma_data_direction=E2= =80=99
> declared inside parameter list
> include/linux/swiotlb= ..h:68: warning: =E2=80=98enum dma_data_direction=E2=80=99
> declared = inside parameter list
> include/linux/swiotlb.h:72: warning: =E2=80= =98enum dma_data_direction=E2=80=99
> declared inside parameter list<= br>> include/linux/swiotlb.h:76: warning: =E2=80=98enum dma_data_directi= on=E2=80=99
> declared inside parameter list
> include/linux/sw= iotlb.h:80: warning:=0A =E2=80=98enum dma_data_direction=E2=80=99
> d= eclared inside parameter list
> include/linux/swiotlb.h:84: warning: = =E2=80=98enum dma_data_direction=E2=80=99
> declared inside parameter= list
> include/linux/swiotlb.h:89: warning: =E2=80=98enum dma_data_d= irection=E2=80=99
> declared inside parameter list
> include/li= nux/swiotlb.h:94: warning: =E2=80=98enum dma_data_direction=E2=80=99
>= ; declared inside parameter list
> In file included from /usr/src/lin= ux-2.6-xen/arch/x86/include/asm/agp.h:9,
>       =           from drivers/gpu/drm/ttm/ttm_agp_backen= d.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: = In function
> =E2=80=98get_dma_ops=E2=80=99:
> /usr/src/linux-2= ..6-xen/arch/x86/include/asm/dma-mapping.h:29: error:
> dereferencing = pointer to incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/= asm/dma-mapping.h:32: error:
> dereferencing pointer to incomplete=0A= type
> In file included from
> /usr/src/linux-2.6-xen/arch/x86= /include/asm/dma-mapping.h:37,
>          &n= bsp;       from /usr/src/linux-2.6-xen/arch/x86/include/asm/= agp.h:9,
>                &nb= sp; from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/asm-gene= ric/dma-mapping-common.h: At top level:
> include/asm-generic/dma-map= ping-common.h:12: warning: =E2=80=98enum
> dma_data_direction=E2=80= =99 declared inside parameter list
> include/asm-generic/dma-mapping-= common.h:11: error: parameter 4
> (=E2=80=98dir=E2=80=99) has incompl= ete type
> include/asm-generic/dma-mapping-common.h: In function
&= gt; =E2=80=98dma_map_single_attrs=E2=80=99:
> include/asm-generic/dma= -mapping-common.h:18: error: implicit
> declaration of function =E2= =80=98valid_dma_direction=E2=80=99
> In file included from
>=0A= /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
> = ;                 from /usr/src/lin= ux-2.6-xen/arch/x86/include/asm/agp.h:9,
>       =           from drivers/gpu/drm/ttm/ttm_agp_backen= d.c:40:
> include/asm-generic/dma-mapping-common.h:19: error: derefer= encing
> pointer to incomplete type
> include/asm-generic/dma-m= apping-common.h: At top level:
> include/asm-generic/dma-mapping-comm= on.h:31: warning: =E2=80=98enum
> dma_data_direction=E2=80=99 declare= d inside parameter list
> include/asm-generic/dma-mapping-common.h:30= : error: parameter 4
> (=E2=80=98dir=E2=80=99) has incomplete type> include/asm-generic/dma-mapping-common.h: In function
> =E2=80= =98dma_unmap_single_attrs=E2=80=99:
> include/asm-generic/dma-mapping= -common.h:36: error: dereferencing
> pointer to incomplete type
&g= t;=0A include/asm-generic/dma-mapping-common.h:37: error: dereferencing
= > pointer to incomplete type
> include/asm-generic/dma-mapping-com= mon.h: At top level:
> include/asm-generic/dma-mapping-common.h:43: w= arning: =E2=80=98enum
> dma_data_direction=E2=80=99 declared inside p= arameter list
> include/asm-generic/dma-mapping-common.h:42: error: p= arameter 4
> (=E2=80=98dir=E2=80=99) has incomplete type
> incl= ude/asm-generic/dma-mapping-common.h: In function =E2=80=98dma_map_sg_attrs= =E2=80=99:
> include/asm-generic/dma-mapping-common.h:52: error: dere= ferencing
> pointer to incomplete type
> include/asm-generic/dm= a-mapping-common.h: At top level:
> include/asm-generic/dma-mapping-c= ommon.h:60: warning: =E2=80=98enum
> dma_data_direction=E2=80=99 decl= ared inside parameter list
> include/asm-generic/dma-mapping-common.h= :59: error: parameter 4
> (=E2=80=98dir=E2=80=99) has incomplete type=
> include/asm-generic/dma-mapping-common.h: In=0A function
> = =E2=80=98dma_unmap_sg_attrs=E2=80=99:
> include/asm-generic/dma-mappi= ng-common.h:66: error: dereferencing
> pointer to incomplete type
= > include/asm-generic/dma-mapping-common.h:67: error: dereferencing
&= gt; pointer to incomplete type
> include/asm-generic/dma-mapping-comm= on.h: At top level:
> include/asm-generic/dma-mapping-common.h:72: wa= rning: =E2=80=98enum
> dma_data_direction=E2=80=99 declared inside pa= rameter list
> include/asm-generic/dma-mapping-common.h:72: error: pa= rameter 5
> (=E2=80=98dir=E2=80=99) has incomplete type
> inclu= de/asm-generic/dma-mapping-common.h: In function =E2=80=98dma_map_page=E2= =80=99:
> include/asm-generic/dma-mapping-common.h:79: error: derefer= encing
> pointer to incomplete type
> include/asm-generic/dma-m= apping-common.h: At top level:
> include/asm-generic/dma-mapping-comm= on.h:86: warning: =E2=80=98enum
> dma_data_direction=E2=80=99 declare= d inside parameter list
>=0A include/asm-generic/dma-mapping-common.h= :86: error: parameter 4
> (=E2=80=98dir=E2=80=99) has incomplete type=
> include/asm-generic/dma-mapping-common.h: In function =E2=80=98dma= _unmap_page=E2=80=99:
> include/asm-generic/dma-mapping-common.h:91: = error: dereferencing
> pointer to incomplete type
> include/asm= -generic/dma-mapping-common.h:92: error: dereferencing
> pointer to i= ncomplete type
> include/asm-generic/dma-mapping-common.h: At top lev= el:
> include/asm-generic/dma-mapping-common.h:98: warning: =E2=80=98= enum
> dma_data_direction=E2=80=99 declared inside parameter list
= > include/asm-generic/dma-mapping-common.h:98: error: parameter 4
>= ; (=E2=80=98dir=E2=80=99) has incomplete type
> include/asm-generic/d= ma-mapping-common.h: In function
> =E2=80=98dma_sync_single_for_cpu= =E2=80=99:
> include/asm-generic/dma-mapping-common.h:103: error: der= eferencing
> pointer to incomplete type
>=0A include/asm-generi= c/dma-mapping-common.h:104: error: dereferencing
> pointer to incompl= ete type
> include/asm-generic/dma-mapping-common.h: At top level:> include/asm-generic/dma-mapping-common.h:111: warning: =E2=80=98enum<= br>> dma_data_direction=E2=80=99 declared inside parameter list
> = include/asm-generic/dma-mapping-common.h:111: error: parameter 4
> (= =E2=80=98dir=E2=80=99) has incomplete type
> include/asm-generic/dma-= mapping-common.h: In function
> =E2=80=98dma_sync_single_for_device= =E2=80=99:
> include/asm-generic/dma-mapping-common.h:116: error: der= eferencing
> pointer to incomplete type
> include/asm-generic/d= ma-mapping-common.h:117: error: dereferencing
> pointer to incomplete= type
> include/asm-generic/dma-mapping-common.h: At top level:
&g= t; include/asm-generic/dma-mapping-common.h:126: warning: =E2=80=98enum
= > dma_data_direction=E2=80=99 declared inside parameter list
>=0A = include/asm-generic/dma-mapping-common.h:126: error: parameter 5
> (= =E2=80=98dir=E2=80=99) has incomplete type
> include/asm-generic/dma-= mapping-common.h: In function
> =E2=80=98dma_sync_single_range_for_cp= u=E2=80=99:
> include/asm-generic/dma-mapping-common.h:131: error: de= referencing
> pointer to incomplete type
> include/asm-generic/= dma-mapping-common.h:132: error: dereferencing
> pointer to incomplet= e type
> include/asm-generic/dma-mapping-common.h:137: error: type of= formal
> parameter 4 is incomplete
> include/asm-generic/dma-m= apping-common.h: At top level:
> include/asm-generic/dma-mapping-comm= on.h:144: warning: =E2=80=98enum
> dma_data_direction=E2=80=99 declar= ed inside parameter list
> include/asm-generic/dma-mapping-common.h:1= 44: error: parameter 5
> (=E2=80=98dir=E2=80=99) has incomplete type<= br>> include/asm-generic/dma-mapping-common.h: In function
>=0A = =E2=80=98dma_sync_single_range_for_device=E2=80=99:
> include/asm-gen= eric/dma-mapping-common.h:149: error: dereferencing
> pointer to inco= mplete type
> include/asm-generic/dma-mapping-common.h:150: error: de= referencing
> pointer to incomplete type
> include/asm-generic/= dma-mapping-common.h:155: error: type of formal
> parameter 4 is inco= mplete
> include/asm-generic/dma-mapping-common.h: At top level:
&= gt; include/asm-generic/dma-mapping-common.h:160: warning: =E2=80=98enum> dma_data_direction=E2=80=99 declared inside parameter list
> in= clude/asm-generic/dma-mapping-common.h:160: error: parameter 4
> (=E2= =80=98dir=E2=80=99) has incomplete type
> include/asm-generic/dma-map= ping-common.h: In function
> =E2=80=98dma_sync_sg_for_cpu=E2=80=99:> include/asm-generic/dma-mapping-common.h:165: error: dereferencing> pointer to incomplete type
> include/asm-generic/dma-mapping-c= ommon.h:166: error:=0A dereferencing
> pointer to incomplete type
= > include/asm-generic/dma-mapping-common.h: At top level:
> includ= e/asm-generic/dma-mapping-common.h:173: warning: =E2=80=98enum
> dma_= data_direction=E2=80=99 declared inside parameter list
> include/asm-= generic/dma-mapping-common.h:173: error: parameter 4
> (=E2=80=98dir= =E2=80=99) has incomplete type
> include/asm-generic/dma-mapping-comm= on.h: In function
> =E2=80=98dma_sync_sg_for_device=E2=80=99:
>= include/asm-generic/dma-mapping-common.h:178: error: dereferencing
>= pointer to incomplete type
> include/asm-generic/dma-mapping-common.= h:179: error: dereferencing
> pointer to incomplete type
> In f= ile included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
&= gt;                  from driv= ers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x= 86/include/asm/dma-mapping.h: In function
>=0A =E2=80=98dma_mapping_e= rror=E2=80=99:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapp= ing.h:42: error:
> dereferencing pointer to incomplete type
> /= usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:43: error:
>= dereferencing pointer to incomplete type
> /usr/src/linux-2.6-xen/ar= ch/x86/include/asm/dma-mapping.h: At top level:
> /usr/src/linux-2.6-= xen/arch/x86/include/asm/dma-mapping.h:60: warning:
> =E2=80=98enum d= ma_data_direction=E2=80=99 declared inside parameter list
> /usr/src/= linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:
> paramet= er 4 (=E2=80=98dir=E2=80=99) has incomplete type
> /usr/src/linux-2.6= -xen/arch/x86/include/asm/dma-mapping.h: In function
> =E2=80=98dma_a= lloc_coherent_mask=E2=80=99:
> /usr/src/linux-2.6-xen/arch/x86/includ= e/asm/dma-mapping.h:77: error:
> dereferencing pointer to incomplete = type
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:79: = error:
>=0A implicit declaration of function =E2=80=98DMA_BIT_MASK=E2= =80=99
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: I= n function
> =E2=80=98dma_alloc_coherent=E2=80=99:
> /usr/src/l= inux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:
> implici= t declaration of function =E2=80=98is_device_dma_capable=E2=80=99
> /= usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:117: error:
>= ; dereferencing pointer to incomplete type
> /usr/src/linux-2.6-xen/a= rch/x86/include/asm/dma-mapping.h:120: error:
> dereferencing pointer= to incomplete type
> In file included from /usr/src/linux-2.6-xen/ar= ch/x86/include/asm/agp.h:9,
>           = ;       from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
&g= t; /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function> =E2=80=98dma_free_coherent=E2=80=99:
> /usr/src/linux-2.6-xen/= arch/x86/include/asm/dma-mapping.h:138: error:
>=0A dereferencing poi= nter to incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/asm= /dma-mapping.h:139: error:
> dereferencing pointer to incomplete type=
> make[4]: *** [drivers/gpu/drm/ttm/ttm_agp_backend.o] Error 1
&g= t; make[3]: *** [drivers/gpu/drm/ttm] Error 2
> make[2]: *** [drivers= /gpu/drm] Error 2
> make[1]: *** [drivers/gpu] Error 2
> make: = *** [drivers] Error 2
>

Does this help?

diff --git a/in= clude/linux/swiotlb.h b/include/linux/swiotlb.h
index cb1a663..f4ebffb 1= 00644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
= @@ -2,6 +2,7 @@
#define __LINUX_SWIOTLB_H

#include <linux/t= ypes.h>
+#include <linux/dma-mapping.h>

struct device;=
struct dma_attrs;

    J


--- On Sun= , 9/6/09, Mark Schloesser <mark.schloesser@rwth-aachen.de>= wrote:

From: Ma= rk Schloesser <mark.schloesser@rwth-aachen.de>
Subject: Re: [Xen-d= evel] Re: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 unstable
To: "= Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: fedora-xen@redhat.co= m, xen-devel@lists.xensource.com
Date: Sunday, September 6, 2009, 11:09 = AM

Boris,

actually I used your confi= g. The same config as I used for -rc6 build.
Works just fine for me - bu= t I did not try booting with 3.4.1, only with
xen-unstable.

Mark<= br>

Boris Derzhavets wrote:
> Mark,
> Could you share yo= ur .config for JF's 2.6.31-rc8 which loads under Xen Unstable.
> Look= s like i miss some point tuning kernel.
>
> Thanks.
> Bo= ris.
>
> --- On Fri, 9/4/09, Boris Derzhavets <bderzhavets@yahoo.com&= gt; wrote:
>
> From: Boris Derzhavets <bde= rzhavets@yahoo.com>
> Subject: [Xen-devel] Re: [Fedora-xen] Xo= rg on JF 2.6.31-rc8 with xen 3.5 unstable
> To: fedo= ra-xen@redhat.com, "Mark Schloesser" <mark.schloesser@rwth-aachen.de>
> Cc: xen-devel@lists.xensource.com
> Date: Friday, Septe= mber 4, 2009, 2:02 PM
>
> I did "git pull" , built 2.6.31-c8 k= ernel with Xen Dom0 support.
> However, attempt to load kernel under = Xen 3.4.1 drops
> into stack trace and hangs on both F11 and Ubuntu 9.10.
= > Old 2.6.31-rc6's .config file has been used without any changes.
&g= t; I can't set up serial console in meantime.
>
> Boris
>= ;
> --- On Fri, 9/4/09, Mark Schloesser <mark.schloesser@rwth-aachen.de> wrote:
>
> F= rom: Mark Schloesser <mark.schloesser= @rwth-aachen.de>
> Subject: [Fedora-xen] Xorg on JF 2.6.31-rc8= with xen 3.5 unstable
> To: fedora-xen@redhat.com
> Date: Friday, September 4, 2009, 10:26 AM
>
> Hey g= uys,
>
> I sadly had no luck fixing my X problem. The system s= eems to run fine
> and as the subject says I moved
>  from 3.4.1-3 to= xen-unstable. As I am
> already doing fairly bleeding-edge stuff her= e I thought this would
> probably make most sense.
>
> A= s I only have an nvs290 gfx card available right now I can't check if
&g= t; this is the problem. But I'll try to get my hands on some other cards> for next week.
>
> Today I read through a lot of mailing= list archives and PDFs trying to
> dig deeper into the IOMMU/PCI pas= sthrough stuff and I want to give the
> graphics passthrough situatio= n a shot myself. Sadly it is very confusing
> to read about the diffe= rent setups and hardware environments with both
> positive and negati= ve results. Also the patchsets and versions everybody
> is talking ab= out do not make it any easier :)
>
> My current questions woul= d be:
> - is the combination of JF git kernel with xen-unstable the right way to
> go for this setup? Or should I perha= ps use older xen version and apply
> some patchset? I think some of t= hose
>  patches were applied in
> xen-unstable already but= I am not quite sure...
>
> - does anyone have hints or clarif= ication regarding the Xorg problem on
> dom0? As I said there are no = eye-catching log entries or errors except
> the Xorg backtrace at the= end of the log file (posted to list before).
> This happens regardle= ss of which driver I enable (vesa/nv/nouveau). The
> nvidia binary dr= iver compiles without problems and seems to come up but
> only gives = me a black screen and also locks the vtys.
>
>
> Thanks= to the great help, reports and instructions Boris and others!
>
= > Mark
>
>
> -----Inline Attachment Follows-----
= >
> --
> Fedora-xen mailing list
>
Fedora-xen@redhat.com
> https://www.redhat.c= om/mailman/listinfo/fedora-xen
>
>
>
>
&= gt;
>       
> -----Inline Attachment= Follows-----
>
> ____________________________________________= ___
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel=
>
>
>
>
>
>
> ------------= ------------------------------------------------------------
>
&g= t; _______________________________________________
> Xen-devel mailin= g list
> Xen-devel@lists.xensource.co= m
> http://lists.xensource.com/xen-devel


=0A=0A=0A=0A --0-1774294253-1252252191=:12640-- --===============0540905698== 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 --===============0540905698==--