[PATCH 5/5] RDMA/ocrdma: Reorg structures to avoid padding.

2013-06-09 Thread bgottumukkala
From: Naresh Gottumukkala Reorg structures to better packing to avoid cacheline padding. Signed-off-by: Naresh Gottumukkala --- drivers/infiniband/hw/ocrdma/ocrdma.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma.h b/driv

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

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

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

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

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

2013-06-09 Thread bgottumukkala
From: Naresh Gottumukkala Use MCC_CREATE_EXT_V1 to create MCC_queue to receive RoCE events. Signed-off-by: Naresh Gottumukkala --- drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 39 +++ drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 20 ++-- 2 files changed, 1

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

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

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 ib_u