public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rdma/core: Really export ib_open_qp() to user space
@ 2011-10-14  5:20 Hefty, Sean
       [not found] ` <1828884A29C6694DAF28B7E6B8A8237316E6AF56-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hefty, Sean @ 2011-10-14  5:20 UTC (permalink / raw)
  To: Roland Dreier
  Cc: Bart Van Assche, Jason Gunthorpe, Christoph Lameter,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

We need to add an entry into the uverbs and device command
tables to allow user space to actually call ib_open_qp.

Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
If possible, this should just be merged with the last patch in the XRC
series.

In my previous tests, this was not getting called.  I either did not
have enough MPI processes or the right MPI ranks running on a single
node to invoke this routine.  Once I bumped up the number of MPI
processes, I did see ib_open_qp() being called, failing, and MPI
aborting.  (The OCU mvapich2 alltoall benchmark with 4 processes all on
the same node can test this.)

I pulled the xrc patches in your for-next branch and ran some simple
tests against it.  Between the last time I tested XRC and now, I'm now
seeing mvapich2 hang during MPI finalize, which I'm debugging.  I can
use ctrl-c to abort the MPI job, and the system appears fine after.  The
librdmacm and ibverbs XRC tests are working fine.

 drivers/infiniband/core/uverbs_main.c |    3 ++-
 drivers/infiniband/hw/mlx4/main.c     |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 9c877e2..485ea6c 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -110,7 +110,8 @@ static ssize_t (*uverbs_cmd_table[])(struct ib_uverbs_file *file,
 	[IB_USER_VERBS_CMD_DESTROY_SRQ]		= ib_uverbs_destroy_srq,
 	[IB_USER_VERBS_CMD_OPEN_XRCD]		= ib_uverbs_open_xrcd,
 	[IB_USER_VERBS_CMD_CLOSE_XRCD]		= ib_uverbs_close_xrcd,
-	[IB_USER_VERBS_CMD_CREATE_XSRQ]		= ib_uverbs_create_xsrq
+	[IB_USER_VERBS_CMD_CREATE_XSRQ]		= ib_uverbs_create_xsrq,
+	[IB_USER_VERBS_CMD_OPEN_QP]		= ib_uverbs_open_qp
 };
 
 static void ib_uverbs_add_one(struct ib_device *device);
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 9cfa6f9..bc47d17 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -1098,7 +1098,8 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
 		(1ull << IB_USER_VERBS_CMD_MODIFY_SRQ)		|
 		(1ull << IB_USER_VERBS_CMD_QUERY_SRQ)		|
 		(1ull << IB_USER_VERBS_CMD_DESTROY_SRQ)		|
-		(1ull << IB_USER_VERBS_CMD_CREATE_XSRQ);	
+		(1ull << IB_USER_VERBS_CMD_CREATE_XSRQ)		|
+		(1ull << IB_USER_VERBS_CMD_OPEN_QP);
 
 	ibdev->ib_dev.query_device	= mlx4_ib_query_device;
 	ibdev->ib_dev.query_port	= mlx4_ib_query_port;


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-17 21:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14  5:20 [PATCH] rdma/core: Really export ib_open_qp() to user space Hefty, Sean
     [not found] ` <1828884A29C6694DAF28B7E6B8A8237316E6AF56-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-10-14 20:22   ` Hefty, Sean
     [not found]     ` <1828884A29C6694DAF28B7E6B8A8237316E6B1B1-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-10-16  9:41       ` Or Gerlitz
     [not found]         ` <4E9AA6B8.8090707-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-10-17 17:12           ` Hefty, Sean
     [not found]             ` <1828884A29C6694DAF28B7E6B8A8237316E6B4CF-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-10-17 21:09               ` Or Gerlitz
     [not found]             ` <CAJZOPZKKJUJ=RgPZHPEoi6Z5rntxCAg_MRqvup+68fhn5=6sVg@mail.gmail.com>
     [not found]               ` <CAJZOPZKKJUJ=RgPZHPEoi6Z5rntxCAg_MRqvup+68fhn5=6sVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-17 21:11                 ` Hefty, Sean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox