Re: [PATCH 6/9] ocrdma: Driver for Emulex OneConnect RDMA adapter

2012-03-21 Thread frank zago
On 03/20/2012 05:39 PM, parav.pan...@emulex.com wrote: +struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *ibpd, int acc) +{ + struct ocrdma_mr *mr; + + mr = ocrdma_alloc_lkey(ibpd, acc, 0, OCRDMA_ADDR_CHECK_DISABLE); + if (!mr) + return ERR_PTR(-ENOMEM);

Fwd: Re: [PATCH 6/9] ocrdma: Driver for Emulex OneConnect RDMA adapter

2012-03-21 Thread frank zago
(Resent becasue the first one got lost) On 03/20/2012 05:39 PM, parav.pan...@emulex.com wrote: + +int ocrdma_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, + struct ib_send_wr **bad_wr) +{ + int status = 0; + struct ocrdma_qp *qp = get_ocrdma_qp(ibqp); +

Re: [PATCH 4/9] ocrdma: Driver for Emulex OneConnect RDMA adapter

2012-03-21 Thread frank zago
On 03/20/2012 05:39 PM, parav.pan...@emulex.com wrote: From: Parav Pandit parav.pan...@emulex.com + +int ocrdma_mbx_dealloc_lkey(struct ocrdma_dev *dev, int fr_mr, u32 lkey) +{ + int status = -ENOMEM; + struct ocrdma_dealloc_lkey *cmd; + + cmd =

Re: [PATCH 6/9] ocrdma: Driver for Emulex OneConnect RDMA adapter

2012-03-21 Thread frank zago
On 03/20/2012 05:39 PM, parav.pan...@emulex.com wrote: + +int ocrdma_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, + struct ib_send_wr **bad_wr) +{ + int status = 0; + struct ocrdma_qp *qp = get_ocrdma_qp(ibqp); + struct ocrdma_hdr_wqe *hdr; +

Re: [PATCH 05/14] SIWv3: User Interface: siw_ae.c, siw_verbs.c, siw_user.h, siw_verbs.h

2011-07-22 Thread frank zago
On 07/22/2011 01:47 PM, Bernard Metzler wrote: +int siw_post_receive(struct ib_qp *ofa_qp, struct ib_recv_wr *wr, + struct ib_recv_wr **bad_wr) +{ + struct siw_wqe *wqe = NULL; + struct siw_qp *qp = siw_qp_ofa2siw(ofa_qp); + unsigned long flags; + int

ibv_query_qp returns incorrect sq_sig_all

2011-07-20 Thread frank zago
Hi, It seems that sq_sig_all is not properly set when creating the QP or when querying it. The following programs creates a bunch of QP with sq_sig_all set to 0 and then queries them. Often sq_sig_all is returned to be 1. I tested some other returned values and they seem correct. I didn't see

Re: where is the perftest tree ?

2011-05-17 Thread frank zago
On 05/09/2011 10:09 AM, frank zago wrote: Hi, Where is the perftest tree hosted ? The only place I know of (http://git.openfabrics.org/git?p=~shamoya/perftest.git) hasn't been updated in months, and the code differs a lot from what is in OFED 1.5.3. Any idea ? No one ? The maintainer

Re: where is the perftest tree ?

2011-05-17 Thread frank zago
On 05/17/2011 12:13 PM, Hefty, Sean wrote: Where is the perftest tree hosted ? The only place I know of (http://git.openfabrics.org/git?p=~shamoya/perftest.git) hasn't been updated in months, and the code differs a lot from what is in OFED 1.5.3. Any idea ? No one ? The maintainer is MIA

Re: where is the perftest tree ?

2011-05-17 Thread frank zago
). The git tree is in - git://git.openfabrics.org/~shamoya/perftest.git Thanks Ido. I've attached a patch for the Makefile so it doesn't rebuild everything every time someone types make. Signed-off-by: Frank Zago fz...@systemfabricworks.com There's also a typo in README: conatains - contains

Re: building RDMA perftests with g++

2011-05-17 Thread frank zago
On 05/17/2011 02:55 PM, i...@celticblues.com wrote: Has this issue been confirmed or debunked? AFAIK, this style of initialization is not supported by C++. struct addrinfo hints = { .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM }; If you

Re: [RFC] RDMA CM + XRC, take two

2011-05-11 Thread frank zago
Hello Sean, On 05/10/2011 06:17 PM, Hefty, Sean wrote: This is an improved version of my previous patch to add XRC support to RDMA CM. I would still like to see support merged upstream and into mainline libibverbs before applying this to my tree. Agreed. This version now support the

Re: Converting from RC to UC

2011-03-14 Thread frank zago
On 03/13/2011 08:08 PM, Alan Cook wrote: Or Gerlitz ogerlitz@... writes: Alan, you haven't specified if you app is user space or kernel space based, I assume the former, I believe that it either just works or can be just made to work... e.g maybe a minor error on your side, or maybe

Re: IB atomic operations

2011-02-25 Thread frank zago
On 02/25/2011 01:30 AM, Bharath Ramesh wrote: Hi, I am trying to use IB atomic operations, specifically fetch and add. I tried a small example but I am unable to get it to work. The WC status is IBV_WC_REM_INV_REQ_ERR. My sample code is as follows: Did you register your memory with

Re: IB atomic operations

2011-02-25 Thread frank zago
On 02/25/2011 10:04 AM, Bharath Ramesh wrote: -Original Message- From: frank zago [mailto:fz...@systemfabricworks.com] On 02/25/2011 01:30 AM, Bharath Ramesh wrote: Hi, I am trying to use IB atomic operations, specifically fetch and add. I tried a small example but I am unable

Re: IB atomic operations

2011-02-25 Thread frank zago
Sorry, I don't see what's wrong. Frank. -- 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 http://vger.kernel.org/majordomo-info.html

[PATCH] perftest/write_bw_postlist

2011-02-03 Thread frank zago
Hello, in write_bw_postlist.c, my_dest (and possibly rem_dest) must be initialized, else the remote node may not be able to parse the connection string and the test will fail to start. The others test are doing that initialization. Signed-off-by: Frank Zago fz...@systemfabricworks.com diff

[PATCH] perftest fixes

2011-02-02 Thread frank zago
Hello, This fixes a bug in 3 tests where the result of ibv_open_device is not checked. I added a couple missing endlines too. Frank. diff --git a/COPYING b/COPYING diff --git a/Makefile b/Makefile diff --git a/README b/README diff --git a/clock_test.c b/clock_test.c diff --git a/get_clock.c

Re: [PATCH] perftest fixes

2011-02-02 Thread frank zago
On 02/02/2011 12:19 PM, frank zago wrote: Hello, This fixes a bug in 3 tests where the result of ibv_open_device is not checked. I added a couple missing endlines too. Frank. I forgot: Signed-off-by: Frank Zago fz...@systemfabricworks.com -- To unsubscribe from this list: send the line

Re: [PATCH] rdma cm + XRC

2010-08-11 Thread frank zago
On 08/11/2010 05:22 PM, Hefty, Sean wrote: - The server side of the connection also needs an SRQ. It's not obvious whether it's the application or rdma cm to create that SRQ. And that SRQ number must be given to the client side, presumably in the private data. The desired mapping of XRC to

Re: [PATCH] rdma cm + XRC

2010-08-10 Thread frank zago
Hello Sean, On 08/09/2010 03:53 PM, Hefty, Sean wrote: This allow rdma ucm to establish an XRC connection between two nodes. Most of the changes are related to modify_qp since the API is different whether the QP is on the send or receive side. To create an XRC receive QP, the cap.max_send_wr

Re: [PATCH] rdma cm + XRC

2010-08-10 Thread frank zago
On 08/10/2010 12:14 PM, Jason Gunthorpe wrote: On Tue, Aug 10, 2010 at 09:59:50AM -0700, Hefty, Sean wrote: The general parameters would be the same as for RC. Should we create a new ai_flag ? or a new port space ? There's a ai_qp_type field available. I think the RDMA TCP port space

Re: [PATCH] rdma cm + XRC

2010-08-10 Thread frank zago
On 08/10/2010 12:14 PM, Jason Gunthorpe wrote: On Tue, Aug 10, 2010 at 09:59:50AM -0700, Hefty, Sean wrote: The general parameters would be the same as for RC. Should we create a new ai_flag ? or a new port space ? There's a ai_qp_type field available. I think the RDMA TCP port space

RDMA CM and XRC

2010-07-28 Thread frank zago
Hello, For a project we consider using RDMA CM to setup XRC connections. Currently that combination is not supported. Has anyone done any work on adding XRC support to RDMA CM ? That's something we might also consider doing if not already available somewhere. Is there any pitfall to be

[Announce] rxe dev tree available (soft RDMAoE)

2009-12-16 Thread frank zago
Hello, The development tree for a soft RDMA transport over Ethernet driver (rxe) is available in the OFA git repository. This is a work in progress but has enough functionality for people interested in looking at it to be worth sharing. Going forward changes to the driver will be maintained

[patch 2/6] RDMA/ehca - ib_post_send fixes, v2

2009-12-02 Thread Frank Zago
Always set ib_post_send()'s bad_wr when an error occurred. Do not report success if an error occurred. Signed-off-by: Frank Zago fz...@systemfabricworks.com --- drivers/infiniband/hw/ehca/ehca_reqs.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) Index

[patch 0/6] post_send/recv fixes (v2)

2009-12-02 Thread Frank Zago
Hello, This series fixes a few bugs in several IB drivers regarding their ib_post_send() and ib_post_recv() implementation. Regards, Frank. -- 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

[patch 2/8] ehca - ib_post_send fixes, Updated

2009-11-25 Thread frank zago
Always set ib_post_send()'s bad_wr. Do not report success if an error occurred. Signed-off-by: Frank Zago fz...@systemfabricworks.com Index: linux-2.6.31/drivers/infiniband/hw/ehca/ehca_reqs.c === --- linux-2.6.31.orig/drivers

[patch 0/8] post_send/recv fixes

2009-11-24 Thread frank zago
Hello, This series fixes a few bugs in several IB drivers regarding their ib_post_send() and ib_post_recv() implementation. Regards, Frank. -- 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

[patch 1/8] Ammasso - ib_post_send fix

2009-11-24 Thread frank zago
Always set ib_post_send()'s bad_wr. Signed-off-by: Frank Zago fz...@systemfabricworks.com Index: linux-2.6.31/drivers/infiniband/hw/amso1100/c2_qp.c === --- linux-2.6.31.orig/drivers/infiniband/hw/amso1100/c2_qp.c 2009-11-23 20:22

[patch 5/8] ehca - ib_post_recv fixes Always set ib_post_recv()s bad_wr.

2009-11-24 Thread frank zago
Signed-off-by: Frank Zago fz...@systemfabricworks.com Index: linux-2.6.31/drivers/infiniband/hw/ehca/ehca_reqs.c === --- linux-2.6.31.orig/drivers/infiniband/hw/ehca/ehca_reqs.c 2009-11-23 21:23:08.0 -0600 +++ linux-2.6.31

[patch 6/8] ammasso - ib_post_recv fix

2009-11-24 Thread frank zago
Always set ib_post_recv()'s bad_wr. Signed-off-by: Frank Zago fz...@systemfabricworks.com Index: linux-2.6.31/drivers/infiniband/hw/amso1100/c2_qp.c === --- linux-2.6.31.orig/drivers/infiniband/hw/amso1100/c2_qp.c 2009-11-23 21:26

[patch 8/8] NES - ib_post_recv fixes

2009-11-24 Thread frank zago
Always set ib_post_recv()'s bad_wr. Signed-off-by: Frank Zago fz...@systemfabricworks.com Index: linux-2.6.31/drivers/infiniband/hw/nes/nes_verbs.c === --- linux-2.6.31.orig/drivers/infiniband/hw/nes/nes_verbs.c 2009-11-23 21:59

Re: [patch 5/8] ehca - ib_post_recv fixes Always set ib_post_recv()s bad_wr.

2009-11-24 Thread frank zago
Alexander Schmidt wrote: On Tue, 24 Nov 2009 11:36:46 -0600 frank zago fz...@systemfabricworks.com wrote: Hi Frank, Signed-off-by: Frank Zago fz...@systemfabricworks.com Index: linux-2.6.31/drivers/infiniband/hw/ehca/ehca_reqs.c

ib_post_send in drivers

2009-11-20 Thread frank zago
Hello, It seems ib_post_send() is implemented slightly differently in the various hardware drivers (as in kernel 2.6.31). Here are the differences I've noticed regarding the bad_wr parameter. amso1100/c2_qp.c : c2_post_send() * bails out and does not set bad_wr if the 1st check is bad.