WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-merge

RE: [Xen-merge] AMD64 dma-mapping

To: "Muli Ben-Yehuda" <mulix@xxxxxxxxx>
Subject: RE: [Xen-merge] AMD64 dma-mapping
From: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>
Date: Tue, 24 Jan 2006 14:28:06 -0600
Cc: xen-merge@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 Jan 2006 20:36:47 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-merge-request@lists.xensource.com?subject=help>
List-id: xen-merge <xen-merge.lists.xensource.com>
List-post: <mailto:xen-merge@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-merge-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYhIfcaTqm5xI2sRZijI6vjamZI1gAAjDSA
Thread-topic: [Xen-merge] AMD64 dma-mapping
> > If I turn on CONFIG_GART_IOMMU in the Kconfig,
> > enable it in the .config file, and build the
> > kernel, I get errors because
> > include/asm-i386/mach-xen/asm/dma-mapping.h
> > is included instead of 
> > include/asm-x86_64/mach-xen/asm/dma-mapping.h
> > 
> > I can't figure out how or where the build system
> > decides which dma-mapping file to include.  Help
> > would be appreciated.
> 
> The build always uses include/asm, which should be symlink'd 
> to the right architecture's asm-$(ARCH) directory. Are you 
> sure you're building for x86-64? is gart the only thing 
> that's pulling in the wrong dma-mapping.h?

include/asm is correctly linked to include/asm-x86_64

poking around a bit, I found that asm/dma-mapping is
being included from include/linux/dma-mapping.h
If I force the include there to be asm-x86_64/dma-mapping.h,
the code compiles.  That's not an acceptable long-term
solution, obviously.

There are some files in arch/x86_64/kernel that are 
being compiled from arch/i386/kernel (such as swiotlb.c),
but the mainline tree does that too without this problem.

-Mark Langsdorf
AMD, Inc.


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

<Prev in Thread] Current Thread [Next in Thread>