public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Andre Detsch <adetsch@br•ibm.com>
To: netdev@vger•kernel.org, divy@chelsio•com
Subject: [PATCH] cxgb3: Wait longer for control packets on initialization
Date: Mon, 26 Apr 2010 12:38:27 -0300	[thread overview]
Message-ID: <201004261238.27919.adetsch@br.ibm.com> (raw)


In some Power7 platforms, when using VIOS (Virtual I/O Server), we
need to wait longer for control packets to finish transfer during
initialization.
Without this change, initialization may fail prematurely.

Signed-off-by: Wen Xiong <wenxiong@us•ibm.com>
Signed-off-by: Andre Detsch <adetsch@br•ibm.com>

Index: linux-2.6.34-rc5/drivers/net/cxgb3/cxgb3_main.c
===================================================================
--- linux-2.6.34-rc5.orig/drivers/net/cxgb3/cxgb3_main.c	2010-04-23 18:59:43.000000000 -0300
+++ linux-2.6.34-rc5/drivers/net/cxgb3/cxgb3_main.c	2010-04-23 18:59:55.000000000 -0300
@@ -439,7 +439,7 @@ static void free_irq_resources(struct ad
 static int await_mgmt_replies(struct adapter *adap, unsigned long init_cnt,
 			      unsigned long n)
 {
-	int attempts = 5;
+	int attempts = 10;

 	while (adap->sge.qs[0].rspq.offload_pkts < init_cnt + n) {
 		if (!--attempts)

             reply	other threads:[~2010-04-26 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 15:38 Andre Detsch [this message]
2010-04-27  2:16 ` [PATCH] cxgb3: Wait longer for control packets on initialization Divy Le Ray
2010-04-27 17:18   ` David Miller

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=201004261238.27919.adetsch@br.ibm.com \
    --to=adetsch@br$(echo .)ibm.com \
    --cc=divy@chelsio$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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