All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: Hal Rosenstock
	<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>,
	"linux-rdma
	(linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org"
	<ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org>
Subject: Re: ib-diags: compatability issue with ibstat
Date: Fri, 23 Sep 2011 11:55:42 -0600	[thread overview]
Message-ID: <20110923175542.GN28454@obsidianresearch.com> (raw)
In-Reply-To: <4E7CC268.4000909-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 1072 bytes --]

On Fri, Sep 23, 2011 at 01:31:20PM -0400, Hal Rosenstock wrote:

> > The only wonky bit
> > was that verbs was needed for subnet timeout because it isn't in
> > sysfs. Everything else went according to the spec.
> 
> I don't see how your algorithm can be compliant with just subnet timeout.

Really?

13.4.6.3  specifies the formula

                 CommTimeValueOut    CommTimeValueIn    RespTimeValue
4.096 µsec x ( 2                  +2                 +2               )

Which boils down to 

4.096 µsec x (2 x 2**(Subnet_Timeout) + 2**(RespTimeValue))

For the on subnet case.

RespTimeValue comes from the class port info of the target manager,
and C13-13.1.1 gives guidance what value to use for the initial class
port info query to get the value.

Which is exactly what I implemented.

It isn't hard.

Jason
--
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:[~2011-09-23 17:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 19:06 ib-diags: compatability issue with ibstat Hefty, Sean
     [not found] ` <1828884A29C6694DAF28B7E6B8A8237316E66F5B-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-09-21 22:13   ` Ira Weiny
     [not found]     ` <20110921151349.140d95f6.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-09-21 22:23       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A8237316E6723E-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-09-21 22:32           ` Ira Weiny
     [not found]             ` <20110921153254.06c77ebc.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-09-21 22:35               ` Jason Gunthorpe
     [not found]                 ` <20110921223546.GI28454-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-09-23 12:57                   ` Hal Rosenstock
     [not found]                     ` <CAKzyTsw8TKFNPS8QFgjag7XZ77cu=OzofAuAKTr_DQmkPTsogw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23 16:57                       ` Jason Gunthorpe
     [not found]                         ` <20110923165758.GM28454-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-09-23 17:31                           ` Hal Rosenstock
     [not found]                             ` <4E7CC268.4000909-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-09-23 17:55                               ` Jason Gunthorpe [this message]
     [not found]                                 ` <20110923175542.GN28454-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-09-23 18:01                                   ` Hal Rosenstock
     [not found]                                     ` <4E7CC98E.5050408-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-09-23 18:22                                       ` Jason Gunthorpe
2011-09-22  0:14               ` Ira Weiny
     [not found]                 ` <20110921171408.4e4087c8.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-09-23 13:13                   ` [ofw] " Hal Rosenstock
2011-09-23 16:15                     ` Hefty, Sean
2011-09-23 13:28   ` [ofw] " Hal Rosenstock
     [not found]     ` <CAKzyTsyH0rop69rTGUW_+kgfohyN-XiCLV4JsO9NLzyH9KpQAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23 13:45       ` Hal Rosenstock
     [not found]         ` <CAKzyTszJ8qbPMYgMFhAzkJVnGmgetggSU7BYN+1RxrVB3tBYqA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23 16:21           ` Hefty, Sean
2011-09-23 16:33             ` Hal Rosenstock
2011-09-23 16:38               ` Hal Rosenstock
2011-09-23 16:40         ` [ofw] " Hefty, Sean
2011-09-23 16:44           ` Hal Rosenstock
     [not found]             ` <CAKzyTswr6EMFPn1fBNujP1Lgb8b6MEcJ1uPbVqEt_nE1Er7dPw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23 17:15               ` [ofw] " Hefty, Sean
     [not found]                 ` <1828884A29C6694DAF28B7E6B8A8237316E677A9-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-09-26  6:19                   ` Ira Weiny

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=20110923175542.GN28454@obsidianresearch.com \
    --to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org \
    --cc=weiny2-i2BcT+NCU+M@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.