i686 vs i586 glibc segfault issue on 64-bit AMD Xen paravirt guests
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Mitchell E Berger
I apologize for writing to you directly instead of through an officially supported channel.
No problem.
Quoted 7 lines
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
Errors when build 2.6.31-rc8
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
[email protected]
http://lists.xensource.com/xen-devel
Re: Errors when build 2.6.31-rc8
Where did you clone this from? Is it the vanilla Linux kernel, or xentinized kernel?
thanks,
J
Quoted 223 lines · Boris Derzhavets
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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:48: warning: its scope is only this definition or declaration, which is probably not what you wantinclude/linux/swiotlb.h:51: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/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, fromdrivers/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, fromdrivers/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 listinclude/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has incomplete typeinclude/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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/asm-generic/dma-mapping-common.h:19: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:37: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:67: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:include/asm-generic/dma-mapping-common.h:79: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:include/asm-generic/dma-mapping-common.h:91: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:92: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:104: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:117: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:132: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:137: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:150: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:155: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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, fromdrivers/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, fromdrivers/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 2Boris
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Errors when build 2.6.31-rc8
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 <[email protected]> wrote:
From: Jun Koi <[email protected]>
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Jeremy Fitzhardinge" <[email protected]>, "Xen-devel" <[email protected]>
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
Quoted 213 lines · Boris Derzhavets
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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:48: warning: its scope is only this definition or declaration, which is probably not what you wantinclude/linux/swiotlb.h:51: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/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, fromdrivers/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, fromdrivers/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 listinclude/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has incomplete typeinclude/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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/asm-generic/dma-mapping-common.h:19: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:37: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:67: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:include/asm-generic/dma-mapping-common.h:79: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:include/asm-generic/dma-mapping-common.h:91: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:92: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:104: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:117: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:132: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:137: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:150: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:155: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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, fromdrivers/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, fromdrivers/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
Quoted 10 lines
Boris
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Errors when build 2.6.31-rc8
In reply to Boris DerzhavetsQuoted 9 lines · Boris Derzhavets
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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ?enumdma_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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: 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 <[email protected]> wrote:
From: M A Young <[email protected]>
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Jeremy Fitzhardinge" <[email protected]>, "Xen-devel" <[email protected]>
Date: Saturday, September 5, 2009, 7:31 AM
Quoted 9 lines · Boris Derzhavets
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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ?enumdma_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
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: Errors when build 2.6.31-rc8
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: [email protected] [mailto:[email protected]] 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 <[email protected]> wrote:
From: M A Young <[email protected]>
Subject: Re: [Xen-devel] Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Jeremy Fitzhardinge" <[email protected]>, "Xen-devel" <[email protected]>
Date: Saturday, September 5, 2009, 7:31 AM
Quoted 1 line · Boris Derzhavets
After fresh git clone, git checkout tune "make menuconfig" the same
way as
Quoted 5 lines
for RC6
When build :-
In file included from
/usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:5,
Quoted 2 lines
from
drivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ?enumdma_data_direction?
declared inside
Quoted 1 line
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
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Errors when build 2.6.31-rc8
In reply to Boris DerzhavetsQuoted 206 lines · Boris Derzhavets
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,
fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:48: warning: its scope is only this definition or declaration, which is probably not what you wantinclude/linux/swiotlb.h:51: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/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,
fromdrivers/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 listinclude/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:37: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:67: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:include/asm-generic/dma-mapping-common.h:79: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:include/asm-generic/dma-mapping-common.h:91: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:92: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:104: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:117: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:132: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:137: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:150: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:155: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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,
fromdrivers/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,
fromdrivers/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:
Quoted 9 lines
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?
include/linux/swiotlb.h +1 -0
@@ -2,6 +2,7 @@#define __LINUX_SWIOTLB_H#include <linux/types.h> +#include <linux/dma-mapping.h> struct device ;struct dma_attrs ;
J
Re: Re: Errors when build 2.6.31-rc8
Quoted 7 lines
Does this help?
include/linux/swiotlb.h +0
-0
include/linux/swiotlb.h line 8
Quoted 7 lines
include/linux/swiotlb.h +1
-0@@ -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 <[email protected]> wrote:
From: Jeremy Fitzhardinge <[email protected]>
Subject: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Xen-devel" <[email protected]>
Date: Saturday, September 5, 2009, 11:48 AM
Quoted 206 lines · Boris Derzhavets
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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:48: warning: its scope is only this definition or declaration, which is probably not what you wantinclude/linux/swiotlb.h:51: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/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, fromdrivers/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, fromdrivers/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 listinclude/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has incomplete typeinclude/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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/asm-generic/dma-mapping-common.h:19: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:37: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:67: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:include/asm-generic/dma-mapping-common.h:79: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:include/asm-generic/dma-mapping-common.h:91: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:92: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:104: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:117: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:132: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:137: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:150: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:155: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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, fromdrivers/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, fromdrivers/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:
Quoted 9 lines
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?
include/linux/swiotlb.h +1 -0
@@ -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
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Re: Errors when build 2.6.31-rc8
In reply to Jeremy FitzhardingeAttempt 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 baduhci_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 <[email protected]> wrote:
From: Jeremy Fitzhardinge <[email protected]>
Subject: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Xen-devel" <[email protected]>
Date: Saturday, September 5, 2009, 11:48 AM
Quoted 206 lines · Boris Derzhavets
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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:48: warning: its scope is only this definition or declaration, which is probably not what you wantinclude/linux/swiotlb.h:51: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:68: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:80: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’ declared inside parameter listinclude/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, fromdrivers/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, fromdrivers/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 listinclude/asm-generic/dma-mapping-common.h:11: error: parameter 4 (‘dir’) has incomplete typeinclude/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, fromdrivers/gpu/drm/ttm/ttm_agp_backend.c:40:include/asm-generic/dma-mapping-common.h:19: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:30: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:37: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:42: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:59: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:67: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:72: error: parameter 5 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:include/asm-generic/dma-mapping-common.h:79: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:86: error: parameter 4 (‘dir’) has incomplete typeinclude/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:include/asm-generic/dma-mapping-common.h:91: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:92: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:98: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:104: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:111: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:117: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:126: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:132: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:137: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:144: error: parameter 5 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:150: error: dereferencing pointer to incomplete typeinclude/asm-generic/dma-mapping-common.h:155: error: type of formal parameter 4 is incompleteinclude/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 listinclude/asm-generic/dma-mapping-common.h:160: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/asm-generic/dma-mapping-common.h:166: error: dereferencing pointer to incomplete typeinclude/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 listinclude/asm-generic/dma-mapping-common.h:173: error: parameter 4 (‘dir’) has incomplete typeinclude/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 typeinclude/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, fromdrivers/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, fromdrivers/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:
Quoted 9 lines
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?
include/linux/swiotlb.h +1 -0
@@ -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
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
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 <[email protected]> wrote:
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
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 baduhci_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,
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
Quoted 54 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]> Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8 To: "Jeremy Fitzhardinge" <[email protected]> Cc: "Xen-devel" <[email protected]>, [email protected] 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,
Quoted 7 lines
------------------------------------------------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I thought Fedora will no longer have dom 0 kernel?
Signature · 11 lines
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: [email protected] Alma Maters: Singapore Polytechnic, National University of Singapore
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
Quoted 53 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 52 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]> Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8 To: "Jeremy Fitzhardinge" <[email protected]> Cc: "Xen-devel" <[email protected]>, [email protected] 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
Quoted 7 lines
Quoted 5 lines
Boris,
I thought Fedora will no longer have dom 0 kernel?
http://fedoraproject.org/wiki/Features/XenPvopsDom0
"Dom0 status: awaiting upstream kernel support"
-- Pasi
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
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 <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <[email protected]>
Cc: [email protected], "Xen-devel" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 2:37 PM
Quoted 53 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 52 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 12:56 PMAttempt 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_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of F12 rawhide
Quoted 7 lines
Quoted 5 lines
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
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
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 <[email protected]> wrote:
From: Boris Derzhavets <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Pasi Kärkkäinen" <[email protected]>
Cc: "Jeremy Fitzhardinge" <[email protected]>, "Xen-devel" <[email protected]>, [email protected]
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 <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <[email protected]>
Cc: [email protected], "Xen-devel"
<[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 2:37 PM
Quoted 19 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 18 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 12:56 PM
Quoted 3 lines
Quoted 3 lines
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
Quoted 17 lines
Quoted 17 lines
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 : . . . .
. . . .
Quoted 5 lines
Quoted 5 lines
RIP [<ffff...c7>]
usb_kick_khubd+ 0x10/0x25
RSP < ffff ... e0>
CR2: 00000...098---[
end trace 8219......]----
Quoted 9 lines
Quoted 9 lines
uhci_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of F12 rawhide
Quoted 7 lines
Quoted 5 lines
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
[email protected]
http://lists.xensource.com/xen-devel
-----Inline Attachment Follows-----
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
In reply to Boris DerzhavetsQuoted 6 lines · Boris Derzhavets
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
Quoted 87 lines
Boris
--- On Sun, 9/6/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <[email protected]>
Cc: [email protected], "Xen-devel" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 2:37 PMQuoted 53 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 52 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 12:56 PMAttempt 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_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of F12 rawhide
Quoted 7 lines
Quoted 5 lines
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
[email protected]
http://lists.xensource.com/xen-devel
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
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 <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Monday, September 7, 2009, 2:57 AM
Quoted 6 lines · Boris Derzhavets
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
Quoted 79 lines
Boris
--- On Sun, 9/6/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <[email protected]>
Cc: [email protected], "Xen-devel" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 2:37 PMQuoted 53 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 52 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 12:56 PMAttempt 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_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of F12 rawhide
Quoted 7 lines
Quoted 5 lines
Boris,
I thought Fedora will no longer have dom 0 kernel?
http://fedoraproject.org/wiki/Features/XenPvopsDom0
"Dom0 status: awaiting upstream kernel support"
-- Pasi
Quoted 8 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
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 <[email protected]> wrote:
From: Boris Derzhavets <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Pasi Kärkkäinen" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
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 <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Monday, September 7, 2009, 2:57 AM
Quoted 6 lines · Boris Derzhavets
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
Quoted 8 lines
Boris
--- On Sun, 9/6/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <[email protected]>
Cc: [email protected], "Xen-devel" <[email protected]>, "Jeremy Fitzhardinge"
<[email protected]>, [email protected]
Quoted 16 lines
Date: Sunday, September 6, 2009, 2:37 PM
Quoted 13 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 12 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
Quoted 25 lines
Quoted 7 lines
Quoted 6 lines
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 12:56 PMAttempt to load 2.6-31-rc8 under Xen 3.4.1 , installed via
Quoted 17 lines
Quoted 17 lines
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 :
. . . .
Quoted 32 lines
Quoted 16 lines
Quoted 16 lines
. . . .
RIP [<ffff...c7>]
usb_kick_khubd+ 0x10/0x25
RSP < ffff ... e0>
CR2: 00000...098---[ end trace 8219......]----
uhci_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of F12 rawhide
Quoted 8 lines
Quoted 6 lines
Boris,
I thought Fedora will no longer have dom 0 kernel?
http://fedoraproject.org/wiki/Features/XenPvopsDom0
"Dom0 status: awaiting upstream kernel support"
-- Pasi
Quoted 8 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
-----Inline Attachment Follows-----
--
Fedora-xen mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-xen
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: Re: Errors when build 2.6.31-rc8
Jeremy Fitzhardinge wrote
include/linux/swiotlb.h
Quoted 6 lines
Does this help?
include/linux/swiotlb.h +0
-0@@ -2,6 +2,7 @@
>#define __LINUX_SWIOTLB_H
> #include <linux/types.h>
Quoted 3 lines
include/linux/swiotlb.h +1
-0+#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.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8
In reply to Boris DerzhavetsI'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:
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
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 :
. . . .
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
. . . .
RIP [<ffff...c7>]
usb_kick_khubd+ 0x10/0x25
RSP < ffff ... e0>
CR2: 00000...098
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
---[ end trace 8219......]----
uhci_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up
Boris.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [Fedora-xen] Re: Re: Errors when build 2.6.31-rc8 / compiles and works OK
In reply to Boris DerzhavetsQuoted 8 lines · Boris Derzhavets
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
Quoted 121 lines
Boris
--- On Mon, 9/7/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Boris Derzhavets" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Monday, September 7, 2009, 2:57 AMQuoted 6 lines · Boris Derzhavets
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_opsdom0 kernel?Does that only happen with Xen 3.4.1 or what's the problem?
-- Pasi
Quoted 79 lines
Boris
--- On Sun, 9/6/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Mr. Teo En Ming (Zhang Enming)" <[email protected]>
Cc: [email protected], "Xen-devel" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 2:37 PMQuoted 53 lines · Mr. Teo En Ming (Zhang Enming)
Quoted 52 lines · Boris Derzhavets
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 /<[email protected]>/* wrote:
From: Boris Derzhavets <[email protected]>
Subject: [Fedora-xen] Re: [Xen-devel] Re: Errors when build 2.6.31-rc8
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Xen-devel" <[email protected]>, [email protected]
Date: Sunday, September 6, 2009, 12:56 PMAttempt 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_hcd0000:00:1a:0 host controller process error, something bad happened !
uhci_hcd0000:00:1a:0 host controller halted , very baduhci_hcd0000:00:1a:0 HC died, cleaning up2.6.31-rc6 loads fine in same environment under Xen 3.4.1 on top of F12 rawhide
Quoted 7 lines
Quoted 5 lines
Boris,
I thought Fedora will no longer have dom 0 kernel?
http://fedoraproject.org/wiki/Features/XenPvopsDom0
"Dom0 status: awaiting upstream kernel support"
-- Pasi
Quoted 8 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel