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

Re: ibv_reg_mr call failed

2013-05-31 Thread Or Gerlitz
Hank -Original Message- From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- ow...@vger.kernel.org] On Behalf Of Or Gerlitz Sent: Monday, May 27, 2013 12:53 AM To: Liu Ginhann Cc: Or Gerlitz; linux-rdma@vger.kernel.org Subject: Re: ibv_reg_mr call failed On Sun, May 26, 2013

Re: ibv_reg_mr call failed

2013-05-27 Thread Or Gerlitz
On Sun, May 26, 2013 at 4:52 PM, Liu Ginhann ginhann@grassvalley.com wrote: Will dig into it.Thanks. does this works if you use get_free_pages in the kernel instead of kmem_cache? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to

Re: ibv_reg_mr call failed

2013-05-26 Thread Or Gerlitz
On 24/05/2013 20:43, Liu Ginhann wrote: Here is version information of our test chassis, what driver / card are you using? -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: ibv_reg_mr call failed

2013-05-26 Thread Liu Ginhann
Mellanox connectx-3 mlx4. On May 25, 2013, at 11:59 PM, Or Gerlitz ogerl...@mellanox.com wrote: On 24/05/2013 20:43, Liu Ginhann wrote: Here is version information of our test chassis, what driver / card are you using? -- To unsubscribe from this list: send the line unsubscribe

Re: ibv_reg_mr call failed

2013-05-26 Thread Or Gerlitz
On 24/05/2013 20:43, Liu Ginhann wrote: Ibv_reg_mr() call return EFAULT - bad address Basically, AFAIK, the IB stack should support what you are trying to do, If you tell from which code e.g in libibverbs/libmlx4 or the kernel this value is returned, it might be helpful for further assisting

Re: ibv_reg_mr call failed

2013-05-26 Thread Liu Ginhann
Will dig into it.Thanks. On May 26, 2013, at 6:36 AM, Or Gerlitz ogerl...@mellanox.com wrote: On 24/05/2013 20:43, Liu Ginhann wrote: Ibv_reg_mr() call return EFAULT - bad address Basically, AFAIK, the IB stack should support what you are trying to do, If you tell from which code e.g in

ibv_reg_mr call failed

2013-05-24 Thread Liu Ginhann
We are running into an unexpected problem while registering memory for IB operation. Ibv_reg_mr() call return EFAULT - bad address. The pointer passed into ibv_reg_mr call is mmap back from memory allocated in our kernel driver. Our test code is able to use this mapped back virtual address to