Re: ibv_reg_mr call failed

2013-06-09 Thread Or Gerlitz
On 08/06/2013 19:42, Liu Ginhann wrote: does this works if you use get_free_pages in the kernel instead of kmem_cache? I tried get_free_pages, kmalloc, kmem_cache_alloc. None of them work, it failed with the same error - EFAULT bad pointer. After code walk through, I believe it failed in

[PATCH 1/5] RDMA/ocrdma: Use MCC_CREATE_EXT_V1 for MCC create.

2013-06-09 Thread bgottumukkala
From: Naresh Gottumukkala bgottumukk...@emulex.com Use MCC_CREATE_EXT_V1 to create MCC_queue to receive RoCE events. Signed-off-by: Naresh Gottumukkala bgottumukk...@emulex.com --- drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 39 +++

[PATCH 3/5] RDMA/ocrdma: Set bad_wr in error case.

2013-06-09 Thread bgottumukkala
From: Naresh Gottumukkala bgottumukk...@emulex.com Fixed post_send to set the bad_wr in error case. Signed-off-by: Naresh Gottumukkala bgottumukk...@emulex.com --- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 2/5] RDMA/ocrdma: replaced ocrdma_err with pr_err.

2013-06-09 Thread bgottumukkala
From: Naresh Gottumukkala bgottumukk...@emulex.com Removed using self defined macro ocrdma_err and replaced with standard pr_err. Signed-off-by: Naresh Gottumukkala bgottumukk...@emulex.com --- drivers/infiniband/hw/ocrdma/ocrdma.h | 2 - drivers/infiniband/hw/ocrdma/ocrdma_hw.c| 44

[PATCH 4/5] RDMA/ocrdma: Changed macros to inline funtions.

2013-06-09 Thread bgottumukkala
From: Naresh Gottumukkala bgottumukk...@emulex.com Changed macros to inline funtions. Signed-off-by: Naresh Gottumukkala bgottumukk...@emulex.com --- drivers/infiniband/hw/ocrdma/ocrdma.h | 43 ++--- drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 15 --