[openib-general] problem with memory registration-RDMA kernel utliity

keshetti mahesh k_mahesh85 at yahoo.co.in
Sun Jun 4 22:39:56 PDT 2006


i am trying to develop a kernel utility to perform RDMA read/write operations
i am facing a problem with memory regiatration in it.

my code looks like.........

u64 *addr_array;

addr_array = kmalloc(sizeof(u64),GFP_KERNEL); 
                        //i am using only one page buffer

test->mem = kmalloc(4096,GFP_KERNEL);
         // buffer on which RDMA_READ is to be performed

test->fmr = ib_alloc_fmr(test->pd,IB_ACCESS_LOCAL_WRITE |
                                        IB_ACCESS_REMOTE_READ |
                                        IB_ACCESS_REMOTE_WRITE,
                                fmr_attr); //fmr_attr is intialised properly

addr_array[0] =  virt_to_phys(test->mem) ;
ret = ib_map_phys_fmr(test->fmr,addr_array[0],1,(u64)test->mem);


All these operations are not generating any errors
But when i pass this address (addr_array[0]) as the remote address, the RDMA_READ operation on this address is generating IB_WC_REM_ACCESS_ERROR completion.

am i missing anything in the process of registering the memory?????


Thanks n regards
K.Mahesh

 Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20060605/63d2168f/attachment.html>


More information about the general mailing list