public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Dotan Barak <dotanba-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: lihaidong <lihaidong-6gUaA8visnnQT0dZR+AlfA@public.gmane.org>
Cc: linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>,
	Tziporet Koren <tziporet-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>,
	shipr <shipr-6gUaA8visnnQT0dZR+AlfA@public.gmane.org>
Subject: Re: Mellanox implementation for atomic operations
Date: Tue, 15 Jun 2010 22:50:24 +0200	[thread overview]
Message-ID: <4C17E790.2020900@gmail.com> (raw)
In-Reply-To: <201005101442273436938-6gUaA8visnnQT0dZR+AlfA@public.gmane.org>

Hi.

On 10/05/2010 08:42, lihaidong wrote:
> Hi,
>    I have a question about atomic operations.
>    According to IB specification o10-48, all atomic operation request made to the same HCA, referencing the same physical memory are serialized with respect to each other.  I know this should be complied with if HCA supports atomic operations, right?
>   
Right.
>    According to  IB specification o10-49, all atomic operations requests that referencing the same physical memory are serialized with respect to each other. This means that atomic operations performed by processors should serialized with atomic operations performed by HCAs, too, if they were referencing the same physical memory.
>   
So far so good.
>   I want to know whether Mellanox implementation for atomic operations comply with o10-49 or not.
>   if not ,to what extent it comply with the rule? 
>   I also was intrested in how this rule is complied with by others vendors?
>
>   
Let give you a general answer:
The struct ibv_device_attr contains the atomic_cap attribute, this
attribute defines the atomicity
level that the HCA support (None, only within the HCA, between all HCAs
(global)).

I think that your code should check this attribute
(This way your code will support all vendors HCAs).

As much as i know, atomic operations are only supported within one HCA.

I hope that this answer helped you ..
Dotan

--
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:[~2010-06-15 20:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201005101435267348378@inspur.com>
2010-05-10  6:42 ` Mellanox implementation for atomic operations lihaidong
     [not found]   ` <201005101442273436938-6gUaA8visnnQT0dZR+AlfA@public.gmane.org>
2010-06-15 20:50     ` Dotan Barak [this message]
     [not found]       ` <4C17E790.2020900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-06-16 16:41         ` Ralph Campbell

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=4C17E790.2020900@gmail.com \
    --to=dotanba-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=lihaidong-6gUaA8visnnQT0dZR+AlfA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=shipr-6gUaA8visnnQT0dZR+AlfA@public.gmane.org \
    --cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
    --cc=tziporet-VPRAkNaXOzVS1MOuV/RT9w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox