All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Just Floaterions <floaterions-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: RDMA atomic operations fail
Date: Sun, 28 Dec 2014 11:59:32 +0200	[thread overview]
Message-ID: <549FD484.1040606@dev.mellanox.co.il> (raw)
In-Reply-To: <CAJRcJr1QKB-7=xx6fD80RjfikR5ZJU+_6WTidXwCB-CocsPqzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 12/26/2014 4:29 AM, Just Floaterions wrote:
> I'm using ConnectIB.
>
> This is my send_wr code:
>
> struct ibv_send_wr wr, *bad_wr = NULL;
> struct ibv_sge sge;
> memset(&sge, 0, sizeof(sge));
> sge.addr = (uintptr_t)conn->local_buffer;
> sge.length = 8;
> sge.lkey = conn->local_mr->lkey;
> memset(&wr, 0, sizeof(wr));
> wr.wr_id= 0;
> wr.opcode = IBV_WR_ATOMIC_FETCH_AND_ADD;
> wr.sg_list = &sge;
> wr.num_sge = 1;
> wr.send_flags = IBV_SEND_SIGNALED;
> wr.wr.atomic.remote_addr= (uintptr_t)conn->peer_mr.addr;
> wr.wr.atomic.rkey = conn->peer_mr.rkey;
> wr.wr.atomic.compare_add= 1ULL;
>
> if (ibv_post_send(conn->qp, &wr, &bad_wr)) {
> fprintf(stderr, "Error, ibv_post_send() failed\n");
> die("");
> }

What libmlx5 are you using? Are you using MLNX_OFED?

I see that libmlx5 from openfabrics don't have support for
atomic operations yet (MLNX_OFED libmlx5 does have atomic support).

CC'ing Eli, the mlx5 maintainer.

Cheers,
Sagi.
--
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

  parent reply	other threads:[~2014-12-28  9:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-24  3:08 RDMA atomic operations fail floaterions
     [not found] ` <loom.20141224T040342-951-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2014-12-25  8:42   ` Sagi Grimberg
     [not found]     ` <CAJRcJr1QKB-7=xx6fD80RjfikR5ZJU+_6WTidXwCB-CocsPqzA@mail.gmail.com>
     [not found]       ` <CAJRcJr1QKB-7=xx6fD80RjfikR5ZJU+_6WTidXwCB-CocsPqzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-12-28  9:59         ` Sagi Grimberg [this message]
2014-12-28 10:13   ` Eli Cohen
2014-12-29  1:26     ` Just Floaterions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=549FD484.1040606@dev.mellanox.co.il \
    --to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=floaterions-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.