* BUG at drivers/net/dl2k.c
@ 2006-02-09 20:01 Vincent ETIENNE
2006-02-11 19:57 ` Francois Romieu
0 siblings, 1 reply; 3+ messages in thread
From: Vincent ETIENNE @ 2006-02-09 20:01 UTC (permalink / raw)
To: linux-kernel
I'm using 2.6.14-mm2 kernel (x86_64) on a Bi-Opteron 246 board with a PCI-64
card ( DLINK 550 GT ) plug on PCI-X interface. This card use the DL2000
driver which seems to cause this problem logged during boot time :
BUG: warning at drivers/net/dl2k.c:1481/mii_wait_link()
Call Trace: <IRQ> <ffffffff802a9c0a>{rio_interrupt+1709}
<ffffffff8013f3ef>{hrtimer_run_queues+197}
<ffffffff801465ac>{handle_IRQ_event+41}
<ffffffff80146678>{__do_IRQ+155} <ffffffff8010d69e>{do_IRQ+57}
<ffffffff80108ce5>{default_idle+0} <ffffffff8010afa8>{ret_from_intr+0}
<EOI>
<ffffffff803a6d03>{thread_return+87}
<ffffffff80108d10>{default_idle+43}
<ffffffff80108f47>{cpu_idle+98}
<ffffffff8052d114>{start_secondary+1271}
eth0: Link up
Auto 1000 Mbps, Full duplex
Enable Tx Flow Control
Enable Rx Flow Control
This is a new ethernet card so i don't have old bootlog to see if it happens
before. I just test it with 2.6.15-mm4 where i don't see this problem and
2.6.16.rc1-mm4 ( where i see it)
Except this message everything is running fine (even the ethernet card) so
it's probably not so important. But in case it could be useful....
If you would like more information or would like me to test something don't
hesitate.
Sorry for poor english, it's not my mother tongue language
Vincent ETIENNE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BUG at drivers/net/dl2k.c
2006-02-09 20:01 BUG at drivers/net/dl2k.c Vincent ETIENNE
@ 2006-02-11 19:57 ` Francois Romieu
2006-02-12 10:52 ` Vincent ETIENNE
0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2006-02-11 19:57 UTC (permalink / raw)
To: Vincent ETIENNE; +Cc: linux-kernel, akpm
Vincent ETIENNE <ve@vetienne.net> :
>
> I'm using 2.6.14-mm2 kernel (x86_64) on a Bi-Opteron 246 board with a PCI-64
> card ( DLINK 550 GT ) plug on PCI-X interface. This card use the DL2000
> driver which seems to cause this problem logged during boot time :
>
> BUG: warning at drivers/net/dl2k.c:1481/mii_wait_link()
[...]
Try the bandaid below. If it is not enough, please open a PR at
http://bugzilla.kernel.org and add me to the Cc: list.
1ms delay in irq context always hurt. This stuff should be done in
an user-context.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c
index 430c628..2d47804 100644
--- a/drivers/net/dl2k.c
+++ b/drivers/net/dl2k.c
@@ -972,7 +972,7 @@ rio_error (struct net_device *dev, int i
/* Link change event */
if (int_status & LinkEvent) {
- if (mii_wait_link (dev, 10) == 0) {
+ if (mii_wait_link (dev, 1000) == 0) {
printk (KERN_INFO "%s: Link up\n", dev->name);
if (np->phy_media)
mii_get_media_pcs (dev);
@@ -1478,7 +1478,7 @@ mii_wait_link (struct net_device *dev, i
bmsr.image = mii_read (dev, phy_addr, MII_BMSR);
if (bmsr.bits.link_status)
return 0;
- mdelay (1);
+ udelay(10);
} while (--wait > 0);
return -1;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BUG at drivers/net/dl2k.c
2006-02-11 19:57 ` Francois Romieu
@ 2006-02-12 10:52 ` Vincent ETIENNE
0 siblings, 0 replies; 3+ messages in thread
From: Vincent ETIENNE @ 2006-02-12 10:52 UTC (permalink / raw)
To: Francois Romieu; +Cc: linux-kernel, akpm
Le Samedi 11 Février 2006 20:57, Francois Romieu a écrit :
> Vincent ETIENNE <ve@vetienne.net> :
> > I'm using 2.6.14-mm2 kernel (x86_64) on a Bi-Opteron 246 board with a
> > PCI-64 card ( DLINK 550 GT ) plug on PCI-X interface. This card use the
> > DL2000 driver which seems to cause this problem logged during boot time
> > :
> >
> > BUG: warning at drivers/net/dl2k.c:1481/mii_wait_link()
>
> [...]
>
> Try the bandaid below. If it is not enough, please open a PR at
> http://bugzilla.kernel.org and add me to the Cc: list.
>
> 1ms delay in irq context always hurt. This stuff should be done in
> an user-context.
>
>
With your change, everything is ok now. No more BUG in dmesg :).
Many thanks for your help.
Vincent
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-12 10:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 20:01 BUG at drivers/net/dl2k.c Vincent ETIENNE
2006-02-11 19:57 ` Francois Romieu
2006-02-12 10:52 ` Vincent ETIENNE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®