linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.36] RDMA/cxgb3: Turn off rx coalescing for iwarp connections.
@ 2010-09-19  0:38 Steve Wise
       [not found] ` <20100919003821.11904.91366.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Wise @ 2010-09-19  0:38 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
  Cc: rdreier-FYB4Gu1CFyUAvxtiuMwx3w, stable-DgEjT+Ai2ygdnm+yROfE0A

The HW by default has RX coalescing on.  For iwarp connections, this was
causing a 100ms delay in connection establishement due to the ingress
MPA Start message being stalled in HW.  So explicitly turn rx coalescing
off when setting up iwarp connections.

This was causing very bad performance for NP64 gather operations using
OpenMPI due to the way it sets up connections on larger jobs.

Signed-off-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
---

 drivers/infiniband/hw/cxgb3/iwch_cm.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index d88077a..13c8887 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -463,7 +463,8 @@ static int send_connect(struct iwch_ep *ep)
 	    V_MSS_IDX(mtu_idx) |
 	    V_L2T_IDX(ep->l2t->idx) | V_TX_CHANNEL(ep->l2t->smt_idx);
 	opt0l = V_TOS((ep->tos >> 2) & M_TOS) | V_RCV_BUFSIZ(rcv_win>>10);
-	opt2 = V_FLAVORS_VALID(1) | V_CONG_CONTROL_FLAVOR(cong_flavor);
+	opt2 = F_RX_COALESCE_VALID | V_RX_COALESCE(0) | V_FLAVORS_VALID(1) |
+	       V_CONG_CONTROL_FLAVOR(cong_flavor);
 	skb->priority = CPL_PRIORITY_SETUP;
 	set_arp_failure_handler(skb, act_open_req_arp_failure);
 
@@ -1280,7 +1281,8 @@ static void accept_cr(struct iwch_ep *ep, __be32 peer_ip, struct sk_buff *skb)
 	    V_MSS_IDX(mtu_idx) |
 	    V_L2T_IDX(ep->l2t->idx) | V_TX_CHANNEL(ep->l2t->smt_idx);
 	opt0l = V_TOS((ep->tos >> 2) & M_TOS) | V_RCV_BUFSIZ(rcv_win>>10);
-	opt2 = V_FLAVORS_VALID(1) | V_CONG_CONTROL_FLAVOR(cong_flavor);
+	opt2 = F_RX_COALESCE_VALID | V_RX_COALESCE(0) | V_FLAVORS_VALID(1) |
+	       V_CONG_CONTROL_FLAVOR(cong_flavor);
 
 	rpl = cplhdr(skb);
 	rpl->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD));

--
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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [stable] [PATCH 2.6.36] RDMA/cxgb3: Turn off rx coalescing for iwarp connections.
       [not found] ` <20100919003821.11904.91366.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org>
@ 2010-09-19  3:58   ` Greg KH
       [not found]     ` <4C97D547.60008@opengridcomputing.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-09-19  3:58 UTC (permalink / raw)
  To: Steve Wise
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, rdreier-FYB4Gu1CFyUAvxtiuMwx3w,
	stable-DgEjT+Ai2ygdnm+yROfE0A

On Sat, Sep 18, 2010 at 07:38:21PM -0500, Steve Wise wrote:
> The HW by default has RX coalescing on.  For iwarp connections, this was
> causing a 100ms delay in connection establishement due to the ingress
> MPA Start message being stalled in HW.  So explicitly turn rx coalescing
> off when setting up iwarp connections.
> 
> This was causing very bad performance for NP64 gather operations using
> OpenMPI due to the way it sets up connections on larger jobs.
> 
> Signed-off-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> ---

Please read Documentation/stable_kernel_rules.txt for how to get a patch
into the stable tree.  Hint, you are close, but this isn't going to work
this way...

thanks,

greg k-h
--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [stable] [PATCH 2.6.36] RDMA/cxgb3: Turn off rx coalescing for iwarp connections.
       [not found]       ` <4C97D547.60008-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
@ 2010-09-20 21:56         ` Roland Dreier
       [not found]           ` <adawrqgdqq1.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Dreier @ 2010-09-20 21:56 UTC (permalink / raw)
  To: Steve Wise
  Cc: Greg KH, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	stable-DgEjT+Ai2ygdnm+yROfE0A

 > What am I doing wrong?  I think it meets the criteria.  And I CC'ed
 > stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org as suggested below.

I was a bit confusing in my email.  The cc goes in the commit
description rather than the mail with the patch, ie I put

RDMA/cxgb3: blah blah

Blah blah blah.

Cc: <stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Signed-off-by: Roland Dreier <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>

in the commit, and Greg gets it automatically when it hits Linus's tree.
You can put the Cc: before your s-o-b line too and I'll leave it there.

 - R.
--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [stable] [PATCH 2.6.36] RDMA/cxgb3: Turn off rx coalescing for iwarp connections.
       [not found]           ` <adawrqgdqq1.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
@ 2010-09-20 21:59             ` Steve Wise
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Wise @ 2010-09-20 21:59 UTC (permalink / raw)
  To: Roland Dreier
  Cc: Greg KH, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	stable-DgEjT+Ai2ygdnm+yROfE0A

On 09/20/2010 04:56 PM, Roland Dreier wrote:
>   >  What am I doing wrong?  I think it meets the criteria.  And I CC'ed
>   >  stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org as suggested below.
>
> I was a bit confusing in my email.  The cc goes in the commit
> description rather than the mail with the patch, ie I put
>
> RDMA/cxgb3: blah blah
>
> Blah blah blah.
>
> Cc:<stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Signed-off-by: Roland Dreier<rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
>
> in the commit, and Greg gets it automatically when it hits Linus's tree.
> You can put the Cc: before your s-o-b line too and I'll leave it there.
>
>   - R.
>    

Ah, I get it.  Thanks for the clarification!

Stevo
--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-20 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-19  0:38 [PATCH 2.6.36] RDMA/cxgb3: Turn off rx coalescing for iwarp connections Steve Wise
     [not found] ` <20100919003821.11904.91366.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org>
2010-09-19  3:58   ` [stable] " Greg KH
     [not found]     ` <4C97D547.60008@opengridcomputing.com>
     [not found]       ` <4C97D547.60008-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-09-20 21:56         ` Roland Dreier
     [not found]           ` <adawrqgdqq1.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2010-09-20 21:59             ` Steve Wise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).