android_kernel_motorola_sm6225/include/rdma
Sean Hefty 34816ad98e [IB] Fix MAD layer DMA mappings to avoid touching data buffer once mapped
The MAD layer was violating the DMA API by touching data buffers used
for sends after the DMA mapping was done.  This causes problems on
non-cache-coherent architectures, because the device doing DMA won't
see updates to the payload buffers that exist only in the CPU cache.

Fix this by having all MAD consumers use ib_create_send_mad() to
allocate their send buffers, and moving the DMA mapping into the MAD
layer so it can be done just before calling send (and after any
modifications of the send buffer by the MAD layer).

Tested on a non-cache-coherent PowerPC 440SPe system.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2005-10-25 10:51:39 -07:00
..
ib_cache.h [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
ib_cm.h [IB] CM: bind IDs to a specific device 2005-10-17 15:37:43 -07:00
ib_fmr_pool.h [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
ib_mad.h [IB] Fix MAD layer DMA mappings to avoid touching data buffer once mapped 2005-10-25 10:51:39 -07:00
ib_pack.h [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
ib_sa.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ib_smi.h [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
ib_user_cm.h [IB] CM: bind IDs to a specific device 2005-10-17 15:37:43 -07:00
ib_user_mad.h [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
ib_user_verbs.h [IB] uverbs: Add ABI structures for more commands 2005-10-17 15:20:30 -07:00
ib_verbs.h [IB] Fix MAD layer DMA mappings to avoid touching data buffer once mapped 2005-10-25 10:51:39 -07:00