[openfabrics-ewg] [PATCH] ehca backport openib_dma_addr_t_ofed_1.1_to_2_6_9.patch

Michael S. Tsirkin mst at mellanox.co.il
Tue Sep 19 06:14:32 PDT 2006


Quoting r. Hoang-Nam Nguyen <HNGUYEN at de.ibm.com>:
> Subject: Re: [PATCH] ehca backport openib_dma_addr_t_ofed_1.1_to_2_6_9.patch
> 
> > > > Can we just do
> > > > #define dma_map dma64_map
> > > Sure. We can do that as newer kernels map dma_addr_t to u32 resp u64.
> > Hmm. Which kernels do that?
> Kernel 2.6.15 in include/asm-powerpc/types.h
> #ifdef __powerpc64__
> typedef u64 dma_addr_t;
> #else
> typedef u32 dma_addr_t;
> #endif
> typedef u64 dma64_addr_t;

So, your patch should be conditional on ppc64 too, right?

> > Let's see the patch with #defines then. If it's small, maybe we can apply it
> > if ehca is enabled only, so at least there will be a work-around
> > if it breaks things.
>
> This would be a good compromise, but I've wait for your answer of another
> thread if this 2.6.9 patch could be included in OFED-1.1 for ehca.
> 
> Nam Nguyen

Let's see the patches, then we can decide.

-- 
MST




More information about the ewg mailing list