From: Alexey Dobriyan <adobriyan@gmail.com>
To: shemminger@linux-foundation.org, jgarzik@pobox.com
Cc: netdev@vger.kernel.org
Subject: [PATCH] sky2: fix hard hang with netconsoling and iface going up
Date: Tue, 27 Jan 2009 16:27:18 +0300 [thread overview]
Message-ID: <20090127132718.GA10001@x200.localdomain> (raw)
In-Reply-To: <20090127120129.GA9696@x200.localdomain>
On Tue, Jan 27, 2009 at 03:01:29PM +0300, Alexey Dobriyan wrote:
> If sky2 interface is netconsoling, then
>
> ifconfig down; ifconfig up
>
> leads to hard hang after printing
>
> sky2 eth0: enabling interface
>
> SysRq+b reboots the box, nothing else works (or prints something).
>
> This is with 2.6.28.2 and 2.6.29-rc2-5ee810072175042775e39bdd3eaaa68884c27805.
> Most certainly was there since day one.
>
> Haven't investigated further.
Well, duh...
[PATCH] sky2: fix hard hang with netconsoling and iface going up
Printing anything over netconsole before hw is up and running is,
of course, not going to work.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/net/sky2.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -1403,9 +1403,6 @@ static int sky2_up(struct net_device *dev)
}
- if (netif_msg_ifup(sky2))
- printk(KERN_INFO PFX "%s: enabling interface\n", dev->name);
-
netif_carrier_off(dev);
/* must be power of 2 */
@@ -1484,6 +1481,9 @@ static int sky2_up(struct net_device *dev)
sky2_write32(hw, B0_IMSK, imask);
sky2_set_multicast(dev);
+
+ if (netif_msg_ifup(sky2))
+ printk(KERN_INFO PFX "%s: enabling interface\n", dev->name);
return 0;
err_out:
next prev parent reply other threads:[~2009-01-27 13:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 12:01 sky2 vs netconsole hard hang Alexey Dobriyan
2009-01-27 13:27 ` Alexey Dobriyan [this message]
2009-01-27 13:35 ` [PATCH] sky2: fix hard hang with netconsoling and iface going up Alexey Dobriyan
2009-01-27 17:49 ` Stephen Hemminger
2009-01-27 18:19 ` David Miller
2009-01-30 1:00 ` David Miller
2009-01-30 1:09 ` David Miller
2009-01-30 11:59 ` Alexey Dobriyan
2009-01-30 21:45 ` David Miller
2009-01-30 22:01 ` Stephen Hemminger
2009-02-01 22:38 ` Alexey Dobriyan
2009-02-02 18:01 ` Stephen Hemminger
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=20090127132718.GA10001@x200.localdomain \
--to=adobriyan@gmail.com \
--cc=jgarzik@pobox.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).