From: Jay Cliburn <jcliburn@gmail.com>
To: Sitsofe Wheeler <sitsofe@yahoo.com>
Cc: linux-kernel@vger.kernel.org, Chris Snook <csnook@redhat.com>,
jie.yang@atheros.com, atl1-devel@lists.sourceforge.net,
netdev@vger.kernel.org
Subject: Re: [atl2] warn_slowpath in dev_watchdog
Date: Sun, 18 Jan 2009 09:52:31 -0600 [thread overview]
Message-ID: <20090118095231.2c73c448@osprey.hogchain.net> (raw)
In-Reply-To: <767752.95325.qm@web110601.mail.gq1.yahoo.com>
On Sun, 18 Jan 2009 02:18:33 -0800 (PST)
Sitsofe Wheeler <sitsofe@yahoo.com> wrote:
> Hi,
>
>
> > From: Jay Cliburn <jcliburn@gmail.com>
> >
> > On Sat, 17 Jan 2009 18:49:18 +0000 (UTC)
> > Sitsofe Wheeler wrote:
> >
> > > On an ever so slightly modified 2.6.28. I think this only happens
> > > when the upstream router/switch goes out to lunch and packets are
> > > being sent. It is reproducible but only appears on a home
> > > network...
> > >
> > > [ 204.704065] ------------[ cut here ]------------
> > > [ 204.704074] WARNING: at net/sched/sch_generic.c:226
> > > dev_watchdog +0x22b/0x240()
> > > [ 204.704080] NETDEV WATCHDOG: eth0 (atl2): transmit timed out
> >
> > Please provide your complete dmesg output.
>
> Unfortunately I only saved that snippet of the log (I can provide you
> a full dmesg but it won't be from a run where this problem occured).
I'd like to see the full dmesg that includes the warning, if you can
obtain it next time it occurs. Meanwhile, please see if this patch
helps.
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
index 8571e8c..376226c 100644
--- a/drivers/net/atlx/atl2.c
+++ b/drivers/net/atlx/atl2.c
@@ -555,14 +555,18 @@ static void atl2_check_for_link(struct atl2_adapter *adapter)
atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data);
spin_unlock(&adapter->stats_lock);
- /* notify upper layer link down ASAP */
if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */
- if (netif_carrier_ok(netdev)) { /* old link state: Up */
- printk(KERN_INFO "%s: %s NIC Link is Down\n",
- atl2_driver_name, netdev->name);
- adapter->link_speed = SPEED_0;
- netif_carrier_off(netdev);
- netif_stop_queue(netdev);
+ if (netif_carrier_ok(netdev)) {
+ /*
+ * Notify the upper layer and restart the netdev
+ * watchdog timer while we try to recover the link.
+ */
+ netif_carrier_off(netdev);
+ netif_stop_queue(netdev);
+ netdev->trans_start = jiffies;
+ printk(KERN_INFO "%s: %s NIC Link is Down\n",
+ atl2_driver_name, netdev->name);
+ adapter->link_speed = SPEED_0;
}
}
schedule_work(&adapter->link_chg_task);
next prev parent reply other threads:[~2009-01-18 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-17 18:49 warn_slowpath in dev_watchdog Sitsofe Wheeler
2009-01-18 1:40 ` [atl2] " Jay Cliburn
2009-01-18 10:18 ` Sitsofe Wheeler
2009-01-18 15:52 ` Jay Cliburn [this message]
2009-01-18 17:40 ` Sitsofe Wheeler
2009-01-18 17:58 ` Jay Cliburn
2009-01-25 16:17 ` Sitsofe Wheeler
2009-01-26 3:00 ` Jay Cliburn
2009-01-27 9:30 ` Sitsofe Wheeler
2009-01-18 17:46 ` Sitsofe Wheeler
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=20090118095231.2c73c448@osprey.hogchain.net \
--to=jcliburn@gmail.com \
--cc=atl1-devel@lists.sourceforge.net \
--cc=csnook@redhat.com \
--cc=jie.yang@atheros.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sitsofe@yahoo.com \
/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.