From: Just Floaterions <floaterions-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Sagi Grimberg
<sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Subject: Re: RDMA atomic operations fail
Date: Sun, 28 Dec 2014 20:26:48 -0500 [thread overview]
Message-ID: <CAJRcJr0DCsyNYVUAieUbkfSE6od22wL=XAn4MNXTyDt5ZVnxrA@mail.gmail.com> (raw)
In-Reply-To: <20141228101335.GC1806@mtldesk30>
Thank you both for your replies. I have a few follow-up questions:
1- How do I know which driver library I'm using (libmlx4, libmlx5,
..)? Also, how can I find out what version of libmlx5 is installed on
my machine?
2- Assuming that I'm using mlx5, how can I install those patches you
mentioned? As far as I know, all libraries on the cluster which I'm
working on are always kept up-to-date.
3- The atomic tests in Perftest benchmarking tool run successfully.
Does this mean the problem is not with the installed libraries? If so,
then what do you think might be the reasons that my code doesn't get
through?
Thank you
On Sun, Dec 28, 2014 at 5:13 AM, Eli Cohen <eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> On Wed, Dec 24, 2014 at 03:08:45AM +0000, floaterions wrote:
>> When I try to submit an RDMA FETCH_AND_ADD or CMP_AND_SWAP ,
>> the ibv_post_send() function fails, with Errno set to "Invalid argument".
>> I have no such problems with RDMA READ/WRITE.
>>
>> I developed my entire code using RDMA CM (so no manual QP transitioning).
>> The queue pair is RC, and Atomic is enabled at the responder queue pair,
>> and the memory regions are registered with atomic access.
>>
>> I suspected that there might be the source of this problem,
>> so I wrote a small program using libibcm where I transition the QPs manually
>> and set the flags fro atomic operations:
>> qp_attr->qp_access_flags = IBV_ACCESS_REMOTE_ATOMIC;
>> qp_attr->max_rd_atomic = <something greater than zero>;
>> qp_attr->max_dest_rd_atomic = <something greater than zero>;
>>
>> But still, the same error (invalid argument).
>>
>
> Hi,
> the current code in upstream does not support atomic operations.
> Patches were sent already that will allow to use atomic operations
> over mlx5 supported devices.
>
> For now, if you query the HCA capabilites you should get ATOMIC_NONE
> at the atomic_cap field when you query the device capabilites.
--
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
prev parent reply other threads:[~2014-12-29 1:26 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
2014-12-28 10:13 ` Eli Cohen
2014-12-29 1:26 ` Just Floaterions [this message]
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='CAJRcJr0DCsyNYVUAieUbkfSE6od22wL=XAn4MNXTyDt5ZVnxrA@mail.gmail.com' \
--to=floaterions-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=eli-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@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.