All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: i686 vs i586 glibc segfault issue on 64-bit AMD Xen paravirt guests
       [not found] <200909020810.n828AAUe002428@byte-me.mit.edu>
@ 2009-09-02 17:10 ` Jeremy Fitzhardinge
  2009-09-05 11:18   ` Errors when build 2.6.31-rc8 Boris Derzhavets
  0 siblings, 1 reply; 21+ messages in thread
From: Jeremy Fitzhardinge @ 2009-09-02 17:10 UTC (permalink / raw)
  To: Mitchell E Berger; +Cc: Christoph Egger, Xen-devel

On 09/02/09 01:10, Mitchell E Berger wrote:
> I apologize for writing to you directly instead of through an officially
> supported channel. 

No problem.

>  I've filed a bug against glibc in Redhat's Bugzilla
> for an issue that only seems to surface on 64-bit Xen paravirt guests
> on AMD hosts.  Filing this bug with the distro involved seemed to make
> sense, but thinking more about it, the bug may truly belong to Xen,
> and it seems wrong to cross-post a bug to two completely separate dev
> teams' bug trackers at the same time.
>   

I think you're running into a known bug in current mainline Linux
kernels, in which 32-bit compat syscalls are not being handled properly
on AMD systems.  The workaround is to boot with "vdso32=0" on the kernel
command line.  Unfortunately nobody has taked the time to really work
out what's going on (I don't have an AMD system on hand, which makes it
awkward).  It appears to be a problem with returning from a syscall,
rather than the syscall itself.

    J

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Errors when build 2.6.31-rc8
  2009-09-02 17:10 ` i686 vs i586 glibc segfault issue on 64-bit AMD Xen paravirt guests Jeremy Fitzhardinge
@ 2009-09-05 11:18   ` Boris Derzhavets
  2009-09-05 11:24     ` Jun Koi
                       ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-05 11:18 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 11206 bytes --]

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,
                 from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ 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: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared inside parameter list
include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’ declared inside parameter list
In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
                 from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function ‘get_dma_ops’:
/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 type
In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
                 from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
                 from drivers/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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_single_attrs’:
include/asm-generic/dma-mapping-common.h:18: error: implicit declaration of function ‘valid_dma_direction’
In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
                 from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
                 from drivers/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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_single_attrs’:
include/asm-generic/dma-mapping-common.h:36: error: dereferencing pointer to incomplete type
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_sg_attrs’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_for_cpu’:
include/asm-generic/dma-mapping-common.h:103: error: dereferencing pointer to incomplete type
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_for_device’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_range_for_cpu’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_range_for_device’:
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: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_sg_for_cpu’:
include/asm-generic/dma-mapping-common.h:165: error: dereferencing pointer to incomplete type
include/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer to incomplete type
include/asm-generic/dma-mapping-common.h: At top level:
include/asm-generic/dma-mapping-common.h:173: warning: ‘enum dma_data_direction’ declared inside parameter list
include/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has incomplete type
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_sg_for_device’:
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,
                 from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function ‘dma_mapping_error’:
/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: ‘enum dma_data_direction’ declared inside parameter list
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error: parameter 4 (‘dir’) has incomplete type
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function ‘dma_alloc_coherent_mask’:
/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: implicit declaration of function ‘DMA_BIT_MASK’
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function ‘dma_alloc_coherent’:
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error: implicit declaration of function ‘is_device_dma_capable’
/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,
                 from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function ‘dma_free_coherent’:
/usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error: 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

Boris




      

[-- Attachment #1.2: Type: text/html, Size: 12117 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Errors when build 2.6.31-rc8
  2009-09-05 11:18   ` Errors when build 2.6.31-rc8 Boris Derzhavets
@ 2009-09-05 11:24     ` Jun Koi
  2009-09-05 11:31       ` Boris Derzhavets
  2009-09-05 11:31     ` M A Young
  2009-09-05 15:48     ` Jeremy Fitzhardinge
  2 siblings, 1 reply; 21+ messages in thread
From: Jun Koi @ 2009-09-05 11:24 UTC (permalink / raw)
  To: Boris Derzhavets; +Cc: Jeremy Fitzhardinge, Xen-devel

Where did you clone this from? Is it the vanilla Linux kernel, or
xentinized kernel?

thanks,
J

On Sat, Sep 5, 2009 at 8:18 PM, Boris Derzhavets<bderzhavets@yahoo.com> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ 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: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘get_dma_ops’:
> /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 type
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_map_single_attrs’:
> include/asm-generic/dma-mapping-common.h:18: error: implicit declaration of
> function ‘valid_dma_direction’
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_single_attrs’:
> include/asm-generic/dma-mapping-common.h:36: error: dereferencing pointer to
> incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_cpu’:
> include/asm-generic/dma-mapping-common.h:103: error: dereferencing pointer
> to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_cpu’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_sg_for_cpu’:
> include/asm-generic/dma-mapping-common.h:165: error: dereferencing pointer
> to incomplete type
> include/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer
> to incomplete type
> include/asm-generic/dma-mapping-common.h: At top level:
> include/asm-generic/dma-mapping-common.h:173: warning: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_device’:
> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_mapping_error’:
> /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: ‘enum
> dma_data_direction’ declared inside parameter list
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:
> parameter 4 (‘dir’) has incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent_mask’:
> /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:
> implicit declaration of function ‘DMA_BIT_MASK’
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:
> implicit declaration of function ‘is_device_dma_capable’
> /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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_free_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error:
> 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
>
> Boris
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Errors when build 2.6.31-rc8
  2009-09-05 11:24     ` Jun Koi
@ 2009-09-05 11:31       ` Boris Derzhavets
  0 siblings, 0 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-05 11:31 UTC (permalink / raw)
  To: Jun Koi; +Cc: Jeremy Fitzhardinge, Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 12610 bytes --]

Original clone & checkout:-

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen

# cd linux-2.6-xen

# git checkout origin/rebase/master -b rebase/master

Boris

--- On Sat, 9/5/09, Jun Koi <junkoi2004@gmail.com> wrote:

From: Jun Koi <junkoi2004@gmail.com>
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "Xen-devel" <xen-devel@lists.xensource.com>
Date: Saturday, September 5, 2009, 7:24 AM

Where did you clone this from? Is it the vanilla Linux kernel, or
xentinized kernel?

thanks,
J

On Sat, Sep 5, 2009 at 8:18 PM, Boris Derzhavets<bderzhavets@yahoo.com> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ 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: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’ declared
> inside parameter list
> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘get_dma_ops’:
> /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 type
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_map_single_attrs’:
> include/asm-generic/dma-mapping-common.h:18: error: implicit declaration of
> function ‘valid_dma_direction’
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_single_attrs’:
> include/asm-generic/dma-mapping-common.h:36: error: dereferencing pointer to
> incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_cpu’:
> include/asm-generic/dma-mapping-common.h:103: error: dereferencing pointer
> to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_cpu’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_sg_for_cpu’:
> include/asm-generic/dma-mapping-common.h:165: error: dereferencing pointer
> to incomplete type
> include/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer
> to incomplete type
> include/asm-generic/dma-mapping-common.h: At top level:
> include/asm-generic/dma-mapping-common.h:173: warning: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has
> incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_device’:
> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_mapping_error’:
> /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: ‘enum
> dma_data_direction’ declared inside parameter list
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:
> parameter 4 (‘dir’) has incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent_mask’:
> /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:
> implicit declaration of function ‘DMA_BIT_MASK’
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:
> implicit declaration of function ‘is_device_dma_capable’
> /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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_free_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error:
> 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
>
> Boris
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>



      

[-- Attachment #1.2: Type: text/html, Size: 14898 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Errors when build 2.6.31-rc8
  2009-09-05 11:18   ` Errors when build 2.6.31-rc8 Boris Derzhavets
  2009-09-05 11:24     ` Jun Koi
@ 2009-09-05 11:31     ` M A Young
  2009-09-05 12:45       ` Boris Derzhavets
  2009-09-05 15:48     ` Jeremy Fitzhardinge
  2 siblings, 1 reply; 21+ messages in thread
From: M A Young @ 2009-09-05 11:31 UTC (permalink / raw)
  To: Boris Derzhavets; +Cc: Jeremy Fitzhardinge, Xen-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 799 bytes --]

On Sat, 5 Sep 2009, 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ?enum dma_data_direction? declared inside
> parameter list

I think there is a conflict between the newer drm code and swiotlb. I have 
seen this for a while on my Fedora builds as Fedora Rawhide seems to get 
the new drm code before it makes it into the official kernel. You can work 
around it by disabling a small number of drm related kernel options, 
though you probably lose some functionality by doing so.

 	Michael Young

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Errors when build 2.6.31-rc8
  2009-09-05 11:31     ` M A Young
@ 2009-09-05 12:45       ` Boris Derzhavets
  2009-09-05 13:03         ` djmagee
  0 siblings, 1 reply; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-05 12:45 UTC (permalink / raw)
  To: M A Young; +Cc: Jeremy Fitzhardinge, Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1712 bytes --]

After this change:-

   -*- /dev/agpgart (AGP Support)  --->                                                  
   < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) 

i was able to build 2.6.31-rc8 (with Xen Dom0 support).

However, attempt to load 2.6.31-rc8 either under Xen 3.5 or Xen 3.4.1 causes console to drop into stack trace and hangs.

Thank you.
Boris.

--- On Sat, 9/5/09, M A Young <m.a.young@durham.ac.uk> wrote:

From: M A Young <m.a.young@durham.ac.uk>
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "Xen-devel" <xen-devel@lists.xensource.com>
Date: Saturday, September 5, 2009, 7:31 AM

On Sat, 5 Sep 2009, 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ?enum dma_data_direction? declared inside
> parameter list

I think there is a conflict between the newer drm code and swiotlb. I have seen this for a while on my Fedora builds as Fedora Rawhide seems to get the new drm code before it makes it into the official kernel. You can work around it by disabling a small number of drm related kernel options, though you probably lose some functionality by doing so.

    Michael Young
-----Inline Attachment Follows-----

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



      

[-- Attachment #1.2: Type: text/html, Size: 2704 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* RE: Errors when build 2.6.31-rc8
  2009-09-05 12:45       ` Boris Derzhavets
@ 2009-09-05 13:03         ` djmagee
  0 siblings, 0 replies; 21+ messages in thread
From: djmagee @ 2009-09-05 13:03 UTC (permalink / raw)
  To: Boris Derzhavets, M A Young; +Cc: Jeremy Fitzhardinge, Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2114 bytes --]

I've had the same problem since his Jeremy's branch went from rc6 to rc8
this week.  I can boot the kernel on bare metal, but not under Xen as
dom0.

 

From: xen-devel-bounces@lists.xensource.com
[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Boris
Derzhavets
Sent: Saturday, September 05, 2009 8:46 AM
To: M A Young
Cc: Jeremy Fitzhardinge; Xen-devel
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8

 

After this change:-

   -*- /dev/agpgart (AGP Support)  --->

   < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) 

i was able to build 2.6.31-rc8 (with Xen Dom0 support).

However, attempt to load 2.6.31-rc8 either under Xen 3.5 or Xen 3.4.1
causes console to drop into stack trace and hangs.

Thank you.
Boris.

--- On Sat, 9/5/09, M A Young <m.a.young@durham.ac.uk> wrote:


From: M A Young <m.a.young@durham.ac.uk>
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "Xen-devel"
<xen-devel@lists.xensource.com>
Date: Saturday, September 5, 2009, 7:31 AM

On Sat, 5 Sep 2009, 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ?enum dma_data_direction?
declared inside
> parameter list

I think there is a conflict between the newer drm code and swiotlb. I
have seen this for a while on my Fedora builds as Fedora Rawhide seems
to get the new drm code before it makes it into the official kernel. You
can work around it by disabling a small number of drm related kernel
options, though you probably lose some functionality by doing so.

    Michael Young


-----Inline Attachment Follows-----

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

 


[-- Attachment #1.2: Type: text/html, Size: 8387 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Errors when build 2.6.31-rc8
  2009-09-05 11:18   ` Errors when build 2.6.31-rc8 Boris Derzhavets
  2009-09-05 11:24     ` Jun Koi
  2009-09-05 11:31     ` M A Young
@ 2009-09-05 15:48     ` Jeremy Fitzhardinge
  2009-09-05 18:20       ` Boris Derzhavets
  2009-09-06 16:56       ` Boris Derzhavets
  2 siblings, 2 replies; 21+ messages in thread
From: Jeremy Fitzhardinge @ 2009-09-05 15:48 UTC (permalink / raw)
  To: Boris Derzhavets; +Cc: Xen-devel

On 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’
> 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: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’
> declared inside parameter list
> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘get_dma_ops’:
> /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 type
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:11: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_map_single_attrs’:
> include/asm-generic/dma-mapping-common.h:18: error: implicit
> declaration of function ‘valid_dma_direction’
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:30: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_single_attrs’:
> include/asm-generic/dma-mapping-common.h:36: error: dereferencing
> pointer to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:42: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:59: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:72: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:86: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:98: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_cpu’:
> include/asm-generic/dma-mapping-common.h:103: error: dereferencing
> pointer to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:111: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:126: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_cpu’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:144: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:160: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_cpu’:
> include/asm-generic/dma-mapping-common.h:165: error: dereferencing
> pointer to incomplete type
> include/asm-generic/dma-mapping-common.h:166: error: dereferencing
> pointer to incomplete type
> include/asm-generic/dma-mapping-common.h: At top level:
> include/asm-generic/dma-mapping-common.h:173: warning: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:173: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_device’:
> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_mapping_error’:
> /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:
> ‘enum dma_data_direction’ declared inside parameter list
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:
> parameter 4 (‘dir’) has incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent_mask’:
> /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:
> implicit declaration of function ‘DMA_BIT_MASK’
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:
> implicit declaration of function ‘is_device_dma_capable’
> /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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_free_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error:
> 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
 
 #include <linux/types.h>
+#include <linux/dma-mapping.h>
 
 struct device;
 struct dma_attrs;

	J

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: Re: Errors when build 2.6.31-rc8
  2009-09-05 15:48     ` Jeremy Fitzhardinge
@ 2009-09-05 18:20       ` Boris Derzhavets
  2009-09-06 16:56       ` Boris Derzhavets
  1 sibling, 0 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-05 18:20 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 13386 bytes --]

>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
 
 >#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 3.4.1.
  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
 ? int_ret_from_sys_call 0x7/0x16
 ? retint_restore_arg + 0x5/0x6
 ? child_rip 0x0/0x20

 Two last commands are the same on the 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: Saturday, September 5, 2009, 11:48 AM

On 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’
> 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: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’
> declared inside parameter list
> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘get_dma_ops’:
> /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 type
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:11: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_map_single_attrs’:
> include/asm-generic/dma-mapping-common.h:18: error: implicit
> declaration of function ‘valid_dma_direction’
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:30: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_single_attrs’:
> include/asm-generic/dma-mapping-common.h:36: error: dereferencing
> pointer to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:42: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:59: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:72: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:86: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:98: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_cpu’:
> include/asm-generic/dma-mapping-common.h:103: error: dereferencing
> pointer to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:111: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:126: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_cpu’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:144: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:160: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_cpu’:
> include/asm-generic/dma-mapping-common.h:165: error: dereferencing
> pointer to incomplete type
> include/asm-generic/dma-mapping-common.h:166: error: dereferencing
> pointer to incomplete type
> include/asm-generic/dma-mapping-common.h: At top level:
> include/asm-generic/dma-mapping-common.h:173: warning: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:173: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_device’:
> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_mapping_error’:
> /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:
> ‘enum dma_data_direction’ declared inside parameter list
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:
> parameter 4 (‘dir’) has incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent_mask’:
> /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:
> implicit declaration of function ‘DMA_BIT_MASK’
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:
> implicit declaration of function ‘is_device_dma_capable’
> /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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_free_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error:
> 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
 
 #include <linux/types.h>
+#include <linux/dma-mapping.h>
 
 struct device;
 struct dma_attrs;

    J


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



      

[-- Attachment #1.2: Type: text/html, Size: 15512 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: Re: Errors when build 2.6.31-rc8
  2009-09-05 15:48     ` Jeremy Fitzhardinge
  2009-09-05 18:20       ` Boris Derzhavets
@ 2009-09-06 16:56       ` Boris Derzhavets
  2009-09-06 17:04         ` Re: [Xen-devel] " Boris Derzhavets
  1 sibling, 1 reply; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-06 16:56 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 13350 bytes --]

Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via xen-3.4.1-3.src.rpm along with
libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel had been run.

Call trace:

usb_hc_died + .....
usb_add_hcd +.....
usb_hcd_pci_probe + ....
do_work_for_cpu + .....
local_pci_probe + ...
do_work_for_cpu +....
kthread +.....
child_rip+....
restore_args + .....
child_rip + .....
Code : .   .   .   .  
..  .  .   .

RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
RSP < ffff ... e0>
CR2: 00000...098

---[ end trace 8219......]----

uhci_hcd 0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd 0000:00:1a:0 host controller halted , very bad
uhci_hcd 0000:00:1a:0  HC died, cleaning up

2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of  F12 rawhide

Boris,


--- 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: Saturday, September 5, 2009, 11:48 AM

On 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’
> 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: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’
> declared inside parameter list
> include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’
> declared inside parameter list
> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘get_dma_ops’:
> /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 type
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:11: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_map_single_attrs’:
> include/asm-generic/dma-mapping-common.h:18: error: implicit
> declaration of function ‘valid_dma_direction’
> In file included from
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,
>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,
>                  from drivers/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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:30: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_single_attrs’:
> include/asm-generic/dma-mapping-common.h:36: error: dereferencing
> pointer to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:42: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:59: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_unmap_sg_attrs’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:72: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:86: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:98: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_cpu’:
> include/asm-generic/dma-mapping-common.h:103: error: dereferencing
> pointer to incomplete type
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:111: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:126: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_cpu’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:144: error: parameter 5
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_single_range_for_device’:
> 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: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:160: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_cpu’:
> include/asm-generic/dma-mapping-common.h:165: error: dereferencing
> pointer to incomplete type
> include/asm-generic/dma-mapping-common.h:166: error: dereferencing
> pointer to incomplete type
> include/asm-generic/dma-mapping-common.h: At top level:
> include/asm-generic/dma-mapping-common.h:173: warning: ‘enum
> dma_data_direction’ declared inside parameter list
> include/asm-generic/dma-mapping-common.h:173: error: parameter 4
> (‘dir’) has incomplete type
> include/asm-generic/dma-mapping-common.h: In function
> ‘dma_sync_sg_for_device’:
> 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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_mapping_error’:
> /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:
> ‘enum dma_data_direction’ declared inside parameter list
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:
> parameter 4 (‘dir’) has incomplete type
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent_mask’:
> /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:
> implicit declaration of function ‘DMA_BIT_MASK’
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_alloc_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:
> implicit declaration of function ‘is_device_dma_capable’
> /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,
>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function
> ‘dma_free_coherent’:
> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error:
> 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
 
 #include <linux/types.h>
+#include <linux/dma-mapping.h>
 
 struct device;
 struct dma_attrs;

    J


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



      

[-- Attachment #1.2: Type: text/html, Size: 15432 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
  2009-09-06 16:56       ` Boris Derzhavets
@ 2009-09-06 17:04         ` Boris Derzhavets
  2009-09-06 17:10           ` [Fedora-xen] " Mr. Teo En Ming (Zhang Enming)
  0 siblings, 1 reply; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-06 17:04 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 1476 bytes --]

I believe, that some set of CSs from Xen 3.5 has to be included as patches into
xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
Otherwise  , F12 release in November won't have suitable Dom0 kernel again.
I would guess 2.6.31-rc6 at best.

Boris.

--- On Sun, 9/6/09, Boris Derzhavets <bderzhavets@yahoo.com> wrote:

From: Boris Derzhavets <bderzhavets@yahoo.com>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <jeremy@goop.org>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
Date: Sunday, September 6, 2009, 12:56 PM

Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via xen-3.4.1-3.src.rpm along with
libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel had been run.

Call trace:

usb_hc_died + .....
usb_add_hcd +.....
usb_hcd_pci_probe + ....
do_work_for_cpu + .....
local_pci_probe + ...
do_work_for_cpu +.....
kthread +.....
child_rip+....
restore_args + .....
child_rip + .....
Code : .   .   .   .  
.  .  .   .

RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
RSP < ffff ... e0>
CR2: 00000...098

---[ end trace 8219......]----

uhci_hcd 0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd 0000:00:1a:0 host controller halted , very bad
uhci_hcd 0000:00:1a:0  HC died, cleaning
 up

2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of  F12 rawhide

Boris,





      

[-- Attachment #1.2: Type: text/html, Size: 2269 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-06 17:04         ` Re: [Xen-devel] " Boris Derzhavets
@ 2009-09-06 17:10           ` Mr. Teo En Ming (Zhang Enming)
  2009-09-06 18:37             ` Pasi Kärkkäinen
  0 siblings, 1 reply; 21+ messages in thread
From: Mr. Teo En Ming (Zhang Enming) @ 2009-09-06 17:10 UTC (permalink / raw)
  To: bderzhavets; +Cc: Jeremy Fitzhardinge, Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 2403 bytes --]

On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> I believe, that some set of CSs from Xen 3.5 has to be included as 
> patches into
> xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> again.
> I would guess 2.6.31-rc6 at best.
>
> Boris.
>
> --- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
>
>
>     From: Boris Derzhavets <bderzhavets@yahoo.com>
>     Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
>     To: "Jeremy Fitzhardinge" <jeremy@goop.org>
>     Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
>     Date: Sunday, September 6, 2009, 12:56 PM
>
>     Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
>     xen-3.4.1-3.src.rpm along with
>     libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
>     had been run.
>
>     Call trace:
>
>     usb_hc_died + .....
>     usb_add_hcd +.....
>     usb_hcd_pci_probe + ....
>     do_work_for_cpu + .....
>     local_pci_probe + ...
>     do_work_for_cpu +.....
>     kthread +.....
>     child_rip+....
>     restore_args + .....
>     child_rip + .....
>     Code : .   .   .   .
>     .  .  .   .
>
>     RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
>     RSP < ffff ... e0>
>     CR2: 00000...098
>
>     ---[ end trace 8219......]----
>
>     uhci_hcd 0000:00:1a:0 host controller process error, something bad
>     happened !
>     uhci_hcd 0000:00:1a:0 host controller halted , very bad
>     uhci_hcd 0000:00:1a:0  HC died, cleaning up
>
>     2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
>     of  F12 rawhide
>
>     Boris,
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>    
I thought Fedora will no longer have dom 0 kernel?

-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Company Website: http://www.asiasoft.sg/
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of Singapore


[-- Attachment #1.2: Type: text/html, Size: 4623 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-06 17:10           ` [Fedora-xen] " Mr. Teo En Ming (Zhang Enming)
@ 2009-09-06 18:37             ` Pasi Kärkkäinen
  2009-09-07  4:49               ` Boris Derzhavets
  0 siblings, 1 reply; 21+ messages in thread
From: Pasi Kärkkäinen @ 2009-09-06 18:37 UTC (permalink / raw)
  To: Mr. Teo En Ming (Zhang Enming)
  Cc: bderzhavets, Xen-devel, Jeremy Fitzhardinge, fedora-xen

On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> >I believe, that some set of CSs from Xen 3.5 has to be included as 
> >patches into
> >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> >again.
> >I would guess 2.6.31-rc6 at best.
> >
> >Boris.
> >
> >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> >
> >
> >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> >    Date: Sunday, September 6, 2009, 12:56 PM
> >
> >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> >    xen-3.4.1-3.src.rpm along with
> >    libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
> >    had been run.
> >
> >    Call trace:
> >
> >    usb_hc_died + .....
> >    usb_add_hcd +.....
> >    usb_hcd_pci_probe + ....
> >    do_work_for_cpu + .....
> >    local_pci_probe + ...
> >    do_work_for_cpu +.....
> >    kthread +.....
> >    child_rip+....
> >    restore_args + .....
> >    child_rip + .....
> >    Code : .   .   .   .
> >    .  .  .   .
> >
> >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> >    RSP < ffff ... e0>
> >    CR2: 00000...098
> >
> >    ---[ end trace 8219......]----
> >
> >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> >    happened !
> >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> >
> >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> >    of  F12 rawhide
> >
> >    Boris,
> >
> >
> >
> >   
> I thought Fedora will no longer have dom 0 kernel?
> 

http://fedoraproject.org/wiki/Features/XenPvopsDom0

"Dom0 status: awaiting upstream kernel support"

-- Pasi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-06 18:37             ` Pasi Kärkkäinen
@ 2009-09-07  4:49               ` Boris Derzhavets
  2009-09-07  6:33                 ` Re: [Xen-devel] " Boris Derzhavets
  2009-09-07  6:57                 ` [Fedora-xen] " Pasi Kärkkäinen
  0 siblings, 2 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-07  4:49 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: Jeremy Fitzhardinge, Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 3061 bytes --]

As far as Xen 3.5 tarball will be officially released  kernel supporting Dom0 should be
JF's pvops kernel. When  xen-3.5.0-X.src.rpm and updated libvirt ( next preview)
will become available via F13 rawhide , F12 & F13 rawhide would be ready to go
in text mode as 3.5 Xen Hosts with virt-install&virt-manager available via VNC
connections.  Why wait until Upstream merge ? 

Boris

--- On Sun, 9/6/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:

From: Pasi Kärkkäinen <pasik@iki.fi>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@asiasoftsea.net>
Cc: bderzhavets@yahoo.com, "Xen-devel" <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>, fedora-xen@redhat.com
Date: Sunday, September 6, 2009, 2:37 PM

On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> >I believe, that some set of CSs from Xen 3.5 has to be included as 
> >patches into
> >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> >again.
> >I would guess 2.6.31-rc6 at best.
> >
> >Boris.
> >
> >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> >
> >
> >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> >    Date: Sunday, September 6, 2009, 12:56 PM
> >
> >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> >    xen-3.4.1-3.src.rpm along with
> >    libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
> >    had been run.
> >
> >    Call trace:
> >
> >    usb_hc_died + .....
> >    usb_add_hcd +.....
> >    usb_hcd_pci_probe + ....
> >    do_work_for_cpu + .....
> >    local_pci_probe + ...
> >    do_work_for_cpu +.....
> >    kthread +.....
> >    child_rip+....
> >    restore_args + .....
> >    child_rip + .....
> >    Code : .   .   .   .
> >    .  .  .   .
> >
> >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> >    RSP < ffff ... e0>
> >    CR2: 00000...098
> >
> >    ---[ end trace 8219......]----
> >
> >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> >    happened !
> >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> >
> >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> >    of  F12 rawhide
> >
> >    Boris,
> >
> >
> >
> >   
> I thought Fedora will no longer have dom 0 kernel?
> 

http://fedoraproject.org/wiki/Features/XenPvopsDom0

"Dom0 status: awaiting upstream kernel support"

-- Pasi


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



      

[-- Attachment #1.2: Type: text/html, Size: 5092 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
  2009-09-07  4:49               ` Boris Derzhavets
@ 2009-09-07  6:33                 ` Boris Derzhavets
  2009-09-07  6:57                 ` [Fedora-xen] " Pasi Kärkkäinen
  1 sibling, 0 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-07  6:33 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: Jeremy Fitzhardinge, Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 3809 bytes --]

In other words,  a kind of 3.5 iteration :-

http://bderzhavets.wordpress.com/2009/09/05/setup-xen-3-4-1-libvirt-on-top-f12-alpha-rawhide/

Boris.


--- On Mon, 9/7/09, Boris Derzhavets <bderzhavets@yahoo.com> wrote:

From: Boris Derzhavets <bderzhavets@yahoo.com>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
Date: Monday, September 7, 2009, 12:49 AM

As far as Xen 3.5 tarball will be officially released  kernel supporting Dom0 should be
JF's pvops kernel. When  xen-3.5.0-X.src.rpm and updated libvirt ( next preview)
will become available via F13 rawhide , F12 & F13 rawhide would be ready to go
in text mode as 3.5 Xen Hosts with virt-install&virt-manager available via VNC
connections.  Why wait until Upstream merge ? 

Boris

--- On Sun, 9/6/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:

From: Pasi Kärkkäinen <pasik@iki.fi>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@asiasoftsea.net>
Cc: bderzhavets@yahoo.com, "Xen-devel"
 <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>, fedora-xen@redhat.com
Date: Sunday, September 6, 2009, 2:37 PM

On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> >I believe, that some set of CSs from Xen 3.5 has to be included as 
> >patches into
> >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> >again.
> >I would guess 2.6.31-rc6 at best.
> >
> >Boris.
> >
> >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> >
> >
> >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> >    Date: Sunday, September 6, 2009, 12:56 PM
> >
> >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> >    xen-3.4.1-3.src.rpm along with
> >    libvirt(rawhide) , on top F12 rawhide. yum update
 gcc,glibc,kernel
> >    had been run.
> >
> >    Call trace:
> >
> >    usb_hc_died + .....
> >    usb_add_hcd +.....
> >    usb_hcd_pci_probe + ....
> >    do_work_for_cpu + .....
> >    local_pci_probe + ...
> >    do_work_for_cpu +.....
> >    kthread +.....
> >    child_rip+....
> >    restore_args + .....
> >    child_rip + .....
> >    Code : .   .   .   .
> >    .  .  .   .
> >
> >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> >    RSP < ffff ... e0>
> >    CR2: 00000...098
> >
> >    ---[
 end trace 8219......]----
> >
> >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> >    happened !
> >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> >
> >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> >    of  F12 rawhide
> >
> >    Boris,
> >
> >
> >
> >   
> I thought Fedora will no longer have dom 0 kernel?
> 

http://fedoraproject.org/wiki/Features/XenPvopsDom0

"Dom0 status: awaiting upstream kernel support"

-- Pasi


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



      
-----Inline Attachment Follows-----

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



      

[-- Attachment #1.2: Type: text/html, Size: 6195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-07  4:49               ` Boris Derzhavets
  2009-09-07  6:33                 ` Re: [Xen-devel] " Boris Derzhavets
@ 2009-09-07  6:57                 ` Pasi Kärkkäinen
  2009-09-07  7:25                   ` Boris Derzhavets
  1 sibling, 1 reply; 21+ messages in thread
From: Pasi Kärkkäinen @ 2009-09-07  6:57 UTC (permalink / raw)
  To: Boris Derzhavets; +Cc: Xen-devel, fedora-xen

On Sun, Sep 06, 2009 at 09:49:41PM -0700, Boris Derzhavets wrote:
> As far as Xen 3.5 tarball will be officially released  kernel supporting Dom0 should be
> JF's pvops kernel. When  xen-3.5.0-X.src.rpm and updated libvirt ( next preview)
> will become available via F13 rawhide , F12 & F13 rawhide would be ready to go
> in text mode as 3.5 Xen Hosts with virt-install&virt-manager available via VNC
> connections.  Why wait until Upstream merge ? 
> 

Uhm.. sorry I'm a bit confused. If I understood correctly you have a
call trace on your pv_ops dom0 kernel? 

Does that only happen with Xen 3.4.1 or what's the problem? 

-- Pasi

> Boris
> 
> --- On Sun, 9/6/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> 
> From: Pasi Kärkkäinen <pasik@iki.fi>
> Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> To: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@asiasoftsea.net>
> Cc: bderzhavets@yahoo.com, "Xen-devel" <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>, fedora-xen@redhat.com
> Date: Sunday, September 6, 2009, 2:37 PM
> 
> On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> > On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> > >I believe, that some set of CSs from Xen 3.5 has to be included as 
> > >patches into
> > >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> > >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> > >again.
> > >I would guess 2.6.31-rc6 at best.
> > >
> > >Boris.
> > >
> > >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> > >
> > >
> > >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> > >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> > >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> > >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> > >    Date: Sunday, September 6, 2009, 12:56 PM
> > >
> > >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> > >    xen-3.4.1-3.src.rpm along with
> > >    libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
> > >    had been run.
> > >
> > >    Call trace:
> > >
> > >    usb_hc_died + .....
> > >    usb_add_hcd +.....
> > >    usb_hcd_pci_probe + ....
> > >    do_work_for_cpu + .....
> > >    local_pci_probe + ...
> > >    do_work_for_cpu +.....
> > >    kthread +.....
> > >    child_rip+....
> > >    restore_args + .....
> > >    child_rip + .....
> > >    Code : .   .   .   .
> > >    .  .  .   .
> > >
> > >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> > >    RSP < ffff ... e0>
> > >    CR2: 00000...098
> > >
> > >    ---[ end trace 8219......]----
> > >
> > >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> > >    happened !
> > >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> > >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> > >
> > >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> > >    of  F12 rawhide
> > >
> > >    Boris,
> > >
> > >
> > >
> > >   
> > I thought Fedora will no longer have dom 0 kernel?
> > 
> 
> http://fedoraproject.org/wiki/Features/XenPvopsDom0
> 
> "Dom0 status: awaiting upstream kernel support"
> 
> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 
> 
>       

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-07  6:57                 ` [Fedora-xen] " Pasi Kärkkäinen
@ 2009-09-07  7:25                   ` Boris Derzhavets
  2009-09-07  7:47                     ` Boris Derzhavets
  2009-09-07 21:11                     ` [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8 / compiles and works OK Pasi Kärkkäinen
  0 siblings, 2 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-07  7:25 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 4666 bytes --]

Pasi,

I was trying to load the most recent 2.6.31-rc8 under Xen 3.4.1 ( via src.rpm) on F12
rawhide and got stack trace. Jeremy is saying that rc8 works ok under Xen Unstable.
But, Libvirt 0.7.0-6 would obviously have dependencies  on xen-3.4.1 packages.
If i will port Xen 3.5 directly to F12 (F11) it might work with rc8, however Libvirt 0.7.0-6 will be most probably lost again. Libvirt 0.7.0-6 has been built for 3.4.1 Hypervisor ( in my understanding) . That's why i wrote if Xen 3.5 can load rc8, the easiest way to fix
issue is to backport required Xen 3.5 CSs to xen-3.4.1-X(?).src.rpm  and get it resolved before F12 November's release.

Boris

--- On Mon, 9/7/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:

From: Pasi Kärkkäinen <pasik@iki.fi>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
Date: Monday, September 7, 2009, 2:57 AM

On Sun, Sep 06, 2009 at 09:49:41PM -0700, Boris Derzhavets wrote:
> As far as Xen 3.5 tarball will be officially released  kernel supporting Dom0 should be
> JF's pvops kernel. When  xen-3.5.0-X.src.rpm and updated libvirt ( next preview)
> will become available via F13 rawhide , F12 & F13 rawhide would be ready to go
> in text mode as 3.5 Xen Hosts with virt-install&virt-manager available via VNC
> connections.  Why wait until Upstream merge ? 
> 

Uhm.. sorry I'm a bit confused. If I understood correctly you have a
call trace on your pv_ops dom0 kernel? 

Does that only happen with Xen 3.4.1 or what's the problem? 

-- Pasi

> Boris
> 
> --- On Sun, 9/6/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> 
> From: Pasi Kärkkäinen <pasik@iki.fi>
> Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> To: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@asiasoftsea.net>
> Cc: bderzhavets@yahoo.com, "Xen-devel" <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>, fedora-xen@redhat.com
> Date: Sunday, September 6, 2009, 2:37 PM
> 
> On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> > On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> > >I believe, that some set of CSs from Xen 3.5 has to be included as 
> > >patches into
> > >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> > >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> > >again.
> > >I would guess 2.6.31-rc6 at best.
> > >
> > >Boris.
> > >
> > >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> > >
> > >
> > >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> > >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> > >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> > >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> > >    Date: Sunday, September 6, 2009, 12:56 PM
> > >
> > >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> > >    xen-3.4.1-3.src.rpm along with
> > >    libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
> > >    had been run.
> > >
> > >    Call trace:
> > >
> > >    usb_hc_died + .....
> > >    usb_add_hcd +.....
> > >    usb_hcd_pci_probe + ....
> > >    do_work_for_cpu + .....
> > >    local_pci_probe + ...
> > >    do_work_for_cpu +.....
> > >    kthread +.....
> > >    child_rip+....
> > >    restore_args + .....
> > >    child_rip + .....
> > >    Code : .   .   .   .
> > >    .  .  .   .
> > >
> > >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> > >    RSP < ffff ... e0>
> > >    CR2: 00000...098
> > >
> > >    ---[ end trace 8219......]----
> > >
> > >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> > >    happened !
> > >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> > >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> > >
> > >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> > >    of  F12 rawhide
> > >
> > >    Boris,
> > >
> > >
> > >
> > >   
> > I thought Fedora will no longer have dom 0 kernel?
> > 
> 
> http://fedoraproject.org/wiki/Features/XenPvopsDom0
> 
> "Dom0 status: awaiting upstream kernel support"
> 
> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 
> 
>       

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



      

[-- Attachment #1.2: Type: text/html, Size: 7899 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-07  7:25                   ` Boris Derzhavets
@ 2009-09-07  7:47                     ` Boris Derzhavets
  2009-09-07 10:36                       ` Boris Derzhavets
  2009-09-07 16:06                       ` [Fedora-xen] " Boris Derzhavets
  2009-09-07 21:11                     ` [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8 / compiles and works OK Pasi Kärkkäinen
  1 sibling, 2 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-07  7:47 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: Xen-devel, fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 5309 bytes --]

I lost one thing. After backport xen-libs-3.4.1 would be updated, hence libvirt might
require another changes as well.
B.

--- On Mon, 9/7/09, Boris Derzhavets <bderzhavets@yahoo.com> wrote:

From: Boris Derzhavets <bderzhavets@yahoo.com>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
Date: Monday, September 7, 2009, 3:25 AM

Pasi,

I was trying to load the most recent 2.6.31-rc8 under Xen 3.4.1 ( via src.rpm) on F12
rawhide and got stack trace. Jeremy is saying that rc8 works ok under Xen Unstable.
But, Libvirt 0.7.0-6 would obviously have dependencies  on xen-3.4.1 packages.
If i will port Xen 3.5 directly to F12 (F11) it might work with rc8, however Libvirt 0.7.0-6 will be most probably lost again. Libvirt 0.7.0-6 has been built for 3.4.1 Hypervisor ( in my understanding) . That's why i wrote if Xen 3.5 can load rc8, the easiest way to fix
issue is to backport required Xen 3.5 CSs to xen-3.4.1-X(?).src.rpm  and get it resolved before F12 November's release.

Boris

--- On Mon, 9/7/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:

From: Pasi Kärkkäinen <pasik@iki.fi>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
Date: Monday, September 7, 2009, 2:57 AM

On Sun, Sep 06, 2009 at 09:49:41PM -0700, Boris Derzhavets wrote:
> As far as Xen 3.5 tarball will be officially released  kernel supporting Dom0 should be
> JF's pvops kernel. When  xen-3.5.0-X.src.rpm and updated libvirt ( next preview)
> will become available via F13 rawhide , F12 & F13 rawhide would be ready to go
> in text mode as 3.5 Xen Hosts with virt-install&virt-manager available via VNC
> connections.  Why wait until Upstream merge ? 
> 

Uhm.. sorry I'm a bit confused. If I understood correctly you have a
call trace on your pv_ops dom0
 kernel? 

Does that only happen with Xen 3.4.1 or what's the problem? 

-- Pasi

> Boris
> 
> --- On Sun, 9/6/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> 
> From: Pasi Kärkkäinen <pasik@iki.fi>
> Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> To: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@asiasoftsea.net>
> Cc: bderzhavets@yahoo.com, "Xen-devel" <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge"
 <jeremy@goop.org>, fedora-xen@redhat.com
> Date: Sunday, September 6, 2009, 2:37 PM
> 
> On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> > On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> > >I believe, that some set of CSs from Xen 3.5 has to be included as 
> > >patches into
> > >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> > >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> > >again.
> > >I would guess 2.6.31-rc6 at best.
> > >
> > >Boris.
> > >
> > >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> > >
> > >
> > >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> > >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> > >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> > >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> > >    Date: Sunday, September 6, 2009, 12:56 PM
> > >
> >
 >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> > >    xen-3.4.1-3.src.rpm along with
> > >    libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
> > >    had been run.
> > >
> > >    Call trace:
> > >
> > >    usb_hc_died + .....
> > >    usb_add_hcd +.....
> > >    usb_hcd_pci_probe + ....
> > >    do_work_for_cpu + .....
> > >    local_pci_probe + ...
> > >    do_work_for_cpu +.....
> > >    kthread +.....
> > >    child_rip+....
> > >    restore_args + .....
> > >    child_rip + .....
> > >    Code :
 .   .   .   .
> > >    .  .  .   .
> > >
> > >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> > >    RSP < ffff ... e0>
> > >    CR2: 00000...098
> > >
> > >    ---[ end trace 8219......]----
> > >
> > >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> > >    happened !
> > >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> > >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> > >
> > >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> > >    of  F12 rawhide
> > >
> > >    Boris,
>
 > >
> > >
> > >
> > >   
> > I thought Fedora will no longer have dom 0 kernel?
> > 
> 
> http://fedoraproject.org/wiki/Features/XenPvopsDom0
> 
> "Dom0 status: awaiting upstream kernel support"
> 
> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 
> 
>       

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



      
-----Inline Attachment Follows-----

--
Fedora-xen mailing list
Fedora-xen@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-xen



      

[-- Attachment #1.2: Type: text/html, Size: 8345 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Re: Errors when build 2.6.31-rc8
  2009-09-07  7:47                     ` Boris Derzhavets
@ 2009-09-07 10:36                       ` Boris Derzhavets
  2009-09-07 16:06                       ` [Fedora-xen] " Boris Derzhavets
  1 sibling, 0 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-07 10:36 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 518 bytes --]

Jeremy Fitzhardinge wrote

>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
 > #include <linux/types.h>
> +#include <linux/dma-mapping.h>
> struct device;
>Does this help?

Kernel gets built, but fails to load under Xen 3.4.1 (F12 rawhide)
Does it make sense to update  include/xen/swiotlb.h in the same way ?

B.





      

[-- Attachment #1.2: Type: text/html, Size: 733 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
  2009-09-07  7:47                     ` Boris Derzhavets
  2009-09-07 10:36                       ` Boris Derzhavets
@ 2009-09-07 16:06                       ` Boris Derzhavets
  1 sibling, 0 replies; 21+ messages in thread
From: Boris Derzhavets @ 2009-09-07 16:06 UTC (permalink / raw)
  To: Xen-devel; +Cc: fedora-xen


[-- Attachment #1.1: Type: text/plain, Size: 954 bytes --]

I've got the same stack trace on F11 with the most recent "yum update" under Xen Unstable for 2.6.31-rc8 ( top commit 7c62209cde5b13b81685e79b2f9e3757e293aef1)
 
Call trace:
> > >
> > >    usb_hc_died + .....
> > >    usb_add_hcd +.....
> > >    usb_hcd_pci_probe + ....
> > >    do_work_for_cpu + .....
> > >    local_pci_probe + ...
> > >    do_work_for_cpu +.....
> > >    kthread +.....
> > >    child_rip+....
> > >    restore_args + .....
> > >    child_rip + .....
> > >    Code :
 .   .   .   .
> > >    .  .  .   .
> > >
> > >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> > >    RSP < ffff ... e0>
> > >    CR2: 00000...098
> > >
> > >    ---[ end trace 8219......]----
> > >
> > >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> > >    happened !
> > >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> > >    uhci_hcd 0000:00:1a:0  HC died, cleaning up

Boris.



      

[-- Attachment #1.2: Type: text/html, Size: 1630 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8 / compiles and works OK
  2009-09-07  7:25                   ` Boris Derzhavets
  2009-09-07  7:47                     ` Boris Derzhavets
@ 2009-09-07 21:11                     ` Pasi Kärkkäinen
  1 sibling, 0 replies; 21+ messages in thread
From: Pasi Kärkkäinen @ 2009-09-07 21:11 UTC (permalink / raw)
  To: Boris Derzhavets; +Cc: Jeremy Fitzhardinge, Xen-devel, fedora-xen

On Mon, Sep 07, 2009 at 12:25:33AM -0700, Boris Derzhavets wrote:
> Pasi,
> 
> I was trying to load the most recent 2.6.31-rc8 under Xen 3.4.1 ( via src.rpm) on F12
> rawhide and got stack trace. Jeremy is saying that rc8 works ok under Xen Unstable.
> But, Libvirt 0.7.0-6 would obviously have dependencies  on xen-3.4.1 packages.
> If i will port Xen 3.5 directly to F12 (F11) it might work with rc8, however Libvirt 0.7.0-6 will be most probably lost again. Libvirt 0.7.0-6 has been built for 3.4.1 Hypervisor ( in my understanding) . That's why i wrote if Xen 3.5 can load rc8, the easiest way to fix
> issue is to backport required Xen 3.5 CSs to xen-3.4.1-X(?).src.rpm  and get it resolved before F12 November's release.
> 

I just compiled latest 2.6.31-rc8 pv_ops dom0 kernel (commit 7c62209cde5b13b81685e79b2f9e3757e293aef1) and it works for me. 

I'm running with xen-3.4.1-3 on Fedora 11 (x86 32bit PAE). 

.config for my working kernel: 
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.31-rc8-rebaster-master-no-highpte

-- Pasi

> Boris
> 
> --- On Mon, 9/7/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> 
> From: Pasi Kärkkäinen <pasik@iki.fi>
> Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> To: "Boris Derzhavets" <bderzhavets@yahoo.com>
> Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> Date: Monday, September 7, 2009, 2:57 AM
> 
> On Sun, Sep 06, 2009 at 09:49:41PM -0700, Boris Derzhavets wrote:
> > As far as Xen 3.5 tarball will be officially released  kernel supporting Dom0 should be
> > JF's pvops kernel. When  xen-3.5.0-X.src.rpm and updated libvirt ( next preview)
> > will become available via F13 rawhide , F12 & F13 rawhide would be ready to go
> > in text mode as 3.5 Xen Hosts with virt-install&virt-manager available via VNC
> > connections.  Why wait until Upstream merge ? 
> > 
> 
> Uhm.. sorry I'm a bit confused. If I understood correctly you have a
> call trace on your pv_ops dom0 kernel? 
> 
> Does that only happen with Xen 3.4.1 or what's the problem? 
> 
> -- Pasi
> 
> > Boris
> > 
> > --- On Sun, 9/6/09, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> > 
> > From: Pasi Kärkkäinen <pasik@iki.fi>
> > Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> > To: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@asiasoftsea.net>
> > Cc: bderzhavets@yahoo.com, "Xen-devel" <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>, fedora-xen@redhat.com
> > Date: Sunday, September 6, 2009, 2:37 PM
> > 
> > On Mon, Sep 07, 2009 at 01:10:14AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> > > On 09/07/2009 01:04 AM, Boris Derzhavets wrote:
> > > >I believe, that some set of CSs from Xen 3.5 has to be included as 
> > > >patches into
> > > >xen-3.4.1-3.src.rpm, in case if it causes by 3.4.1 Hypervisor.
> > > >Otherwise  , F12 release in November won't have suitable Dom0 kernel 
> > > >again.
> > > >I would guess 2.6.31-rc6 at best.
> > > >
> > > >Boris.
> > > >
> > > >--- On *Sun, 9/6/09, Boris Derzhavets /<bderzhavets@yahoo.com>/* wrote:
> > > >
> > > >
> > > >    From: Boris Derzhavets <bderzhavets@yahoo.com>
> > > >    Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
> > > >    To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> > > >    Cc: "Xen-devel" <xen-devel@lists.xensource.com>, fedora-xen@redhat.com
> > > >    Date: Sunday, September 6, 2009, 12:56 PM
> > > >
> > > >    Attempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
> > > >    xen-3.4.1-3.src.rpm along with
> > > >    libvirt(rawhide) , on top F12 rawhide. yum update gcc,glibc,kernel
> > > >    had been run.
> > > >
> > > >    Call trace:
> > > >
> > > >    usb_hc_died + .....
> > > >    usb_add_hcd +.....
> > > >    usb_hcd_pci_probe + ....
> > > >    do_work_for_cpu + .....
> > > >    local_pci_probe + ...
> > > >    do_work_for_cpu +.....
> > > >    kthread +.....
> > > >    child_rip+....
> > > >    restore_args + .....
> > > >    child_rip + .....
> > > >    Code : .   .   .   .
> > > >    .  .  .   .
> > > >
> > > >    RIP [<ffff...c7>] usb_kick_khubd + 0x10/0x25
> > > >    RSP < ffff ... e0>
> > > >    CR2: 00000...098
> > > >
> > > >    ---[ end trace 8219......]----
> > > >
> > > >    uhci_hcd 0000:00:1a:0 host controller process error, something bad
> > > >    happened !
> > > >    uhci_hcd 0000:00:1a:0 host controller halted , very bad
> > > >    uhci_hcd 0000:00:1a:0  HC died, cleaning up
> > > >
> > > >    2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top
> > > >    of  F12 rawhide
> > > >
> > > >    Boris,
> > > >
> > > >
> > > >
> > > >   
> > > I thought Fedora will no longer have dom 0 kernel?
> > > 
> > 
> > http://fedoraproject.org/wiki/Features/XenPvopsDom0
> > 
> > "Dom0 status: awaiting upstream kernel support"
> > 
> > -- Pasi
> > 
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> > 
> > 
> > 
> >       
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 
> 
>       

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-09-07 21:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200909020810.n828AAUe002428@byte-me.mit.edu>
2009-09-02 17:10 ` i686 vs i586 glibc segfault issue on 64-bit AMD Xen paravirt guests Jeremy Fitzhardinge
2009-09-05 11:18   ` Errors when build 2.6.31-rc8 Boris Derzhavets
2009-09-05 11:24     ` Jun Koi
2009-09-05 11:31       ` Boris Derzhavets
2009-09-05 11:31     ` M A Young
2009-09-05 12:45       ` Boris Derzhavets
2009-09-05 13:03         ` djmagee
2009-09-05 15:48     ` Jeremy Fitzhardinge
2009-09-05 18:20       ` Boris Derzhavets
2009-09-06 16:56       ` Boris Derzhavets
2009-09-06 17:04         ` Re: [Xen-devel] " Boris Derzhavets
2009-09-06 17:10           ` [Fedora-xen] " Mr. Teo En Ming (Zhang Enming)
2009-09-06 18:37             ` Pasi Kärkkäinen
2009-09-07  4:49               ` Boris Derzhavets
2009-09-07  6:33                 ` Re: [Xen-devel] " Boris Derzhavets
2009-09-07  6:57                 ` [Fedora-xen] " Pasi Kärkkäinen
2009-09-07  7:25                   ` Boris Derzhavets
2009-09-07  7:47                     ` Boris Derzhavets
2009-09-07 10:36                       ` Boris Derzhavets
2009-09-07 16:06                       ` [Fedora-xen] " Boris Derzhavets
2009-09-07 21:11                     ` [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8 / compiles and works OK Pasi Kärkkäinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.