lkml.org 
[lkml]   [2006]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [openib-general] [PATCH 08/22] Generic ehca headers
On Fri, Feb 17, 2006 at 04:57:23PM -0800, Roland Dreier wrote:
> From: Roland Dreier <rolandd@cisco.com>
>
> The defines of TRUE and FALSE look rather useless. Why are they needed?
>
> What is struct ehca_cache for? It doesn't seem to be used anywhere.
>
> ehca_kv_to_g() looks completely horrible. The whole idea of using
> vmalloc()ed kernel memory to do DMA seems unacceptable to me.

When you want to do scatter-gather dma on kernel-virtual contingous
areas allocate the pages individually and map them into kva using
vmap(). Then dma can be performed using dma_map_page, or in case
you have lots of pages dma_map_sg after creating an S/G list.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-18 16:12    [from the cache]
©2003-2011 Jasper Spaans