2003-09-14 03:51:56

by Norman Diamond

[permalink] [raw]
Subject: 2.6.0-test5 vs. Ethernet cards

When trying to do a shutdown or reboot while an Ethernet card is present,
2.6.0-test5 continues to have problems which earlier 2.6.0-test versions
had, which can be solved by booting 2.4.19.

Shutdown messages appear on the text console as follows:
[...]
Shutting down PCMCIA unregister_netdevice: waiting for eth0 to become free.
Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
[...]

The only way to shut down at this point is to turn off the power.

An alternative workaround is to manually type "ifconfig eth0 down" before
trying to shut down or reboot. This takes a certain amount of activation of
human memory at the moment just before shutting down, and I have not been up
to the task. Since this step was not necessary under 2.4.19, it is easier
to boot 2.4.19 instead.

Command "/etc/rc.d/pcmcia restart" suffers the same as a shutdown or reboot.
Again similarly, in 2.4.19 it works.


2003-09-14 08:17:15

by Russell King

[permalink] [raw]
Subject: Re: 2.6.0-test5 vs. Ethernet cards

On Sun, Sep 14, 2003 at 12:51:29PM +0900, Norman Diamond wrote:
> Shutdown messages appear on the text console as follows:
> [...]
> Shutting down PCMCIA unregister_netdevice: waiting for eth0 to become free.
> Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> [...]
>
> The only way to shut down at this point is to turn off the power.

IIRC the problem is your hotplug scripts. Maybe the hotplug folk can tell
you the minimum version for 2.6.

--
Russell King ([email protected]) http://www.arm.linux.org.uk/personal/
Linux kernel maintainer of:
2.6 ARM Linux - http://www.arm.linux.org.uk/
2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core

2003-09-14 10:45:52

by Norman Diamond

[permalink] [raw]
Subject: Re: 2.6.0-test5 vs. Ethernet cards

"Russell King" <[email protected]> replied to me:

> > Shutting down PCMCIA unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > [...]
> > The only way to shut down at this point is to turn off the power.
>
> IIRC the problem is your hotplug scripts. Maybe the hotplug folk can tell
> you the minimum version for 2.6.

Then I wonder why the interface came up automatically when the card was
inserted. By the way the relevant module is pcnet_cs, which is 16-bit
PCMCIA. I didn't guess that the hotplug scripts were used for that. But
I'll try to find time to test it with new hotplug scripts some weekend.

(Can't do it now, I'm in the middle of installing SuSE 8.2 on that machine.)

2003-09-14 23:07:51

by Russell King

[permalink] [raw]
Subject: Re: 2.6.0-test5 vs. Ethernet cards

On Sun, Sep 14, 2003 at 07:45:14PM +0900, Norman Diamond wrote:
> "Russell King" <[email protected]> replied to me:
>
> > > Shutting down PCMCIA unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > [...]
> > > The only way to shut down at this point is to turn off the power.
> >
> > IIRC the problem is your hotplug scripts. Maybe the hotplug folk can tell
> > you the minimum version for 2.6.
>
> Then I wonder why the interface came up automatically when the card was
> inserted. By the way the relevant module is pcnet_cs, which is 16-bit
> PCMCIA. I didn't guess that the hotplug scripts were used for that. But
> I'll try to find time to test it with new hotplug scripts some weekend.
>
> (Can't do it now, I'm in the middle of installing SuSE 8.2 on that machine.)

I'll "remind" the linux-net mailing list about this outstanding problem.
It would be nice if some of the net people looked into this bug which,
according to my mailbox, has been hanging around since 16th June...

There comes a point when one guy has to say "I've dealt enough with this
problem" and that time is now. linux-net - please investigate this weird
usage count bug.

Thanks.

--
Russell King ([email protected]) http://www.arm.linux.org.uk/personal/
Linux kernel maintainer of:
2.6 ARM Linux - http://www.arm.linux.org.uk/
2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core

2003-09-16 16:59:42

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.0-test5 vs. Ethernet cards

On Sun, Sep 14, 2003 at 09:17:02AM +0100, Russell King wrote:
> On Sun, Sep 14, 2003 at 12:51:29PM +0900, Norman Diamond wrote:
> > Shutdown messages appear on the text console as follows:
> > [...]
> > Shutting down PCMCIA unregister_netdevice: waiting for eth0 to become free.
> > Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > [...]
> >
> > The only way to shut down at this point is to turn off the power.
>
> IIRC the problem is your hotplug scripts. Maybe the hotplug folk can tell
> you the minimum version for 2.6.

The last release version is the best for 2.6, but this doesn't look
like a hotplug script issue at all.

thanks,

greg k-h

2003-09-16 17:21:18

by Russell King

[permalink] [raw]
Subject: Re: 2.6.0-test5 vs. Ethernet cards

On Tue, Sep 16, 2003 at 09:49:41AM -0700, Greg KH wrote:
> On Sun, Sep 14, 2003 at 09:17:02AM +0100, Russell King wrote:
> > On Sun, Sep 14, 2003 at 12:51:29PM +0900, Norman Diamond wrote:
> > > Shutdown messages appear on the text console as follows:
> > > [...]
> > > Shutting down PCMCIA unregister_netdevice: waiting for eth0 to become free.
> > > Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > unregister_netdevice: waiting for eth0 to become free. Usage count = 1
> > > [...]
> > >
> > > The only way to shut down at this point is to turn off the power.
> >
> > IIRC the problem is your hotplug scripts. Maybe the hotplug folk can tell
> > you the minimum version for 2.6.
>
> The last release version is the best for 2.6, but this doesn't look
> like a hotplug script issue at all.

Hmm, ok. However, in the past when people have upgraded their hotplug
scripts, the problem goes away.

Whatever, it's certainly not a PCMCIA issue either, so I'm at a loss what
to do about these reports.

I can only think that the right answer is to bat them all at the netdev
list, since it is a network device issue.

--
Russell King ([email protected]) http://www.arm.linux.org.uk/personal/
Linux kernel maintainer of:
2.6 ARM Linux - http://www.arm.linux.org.uk/
2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core

2003-09-17 14:29:49

by Norman Diamond

[permalink] [raw]
Subject: Re: 2.6.0-test5 vs. Ethernet cards

"Russell King" wrote:
> On Tue, Sep 16, 2003 at 09:49:41AM -0700, Greg KH wrote:
> > On Sun, Sep 14, 2003 at 09:17:02AM +0100, Russell King wrote:
> > > On Sun, Sep 14, 2003 at 12:51:29PM +0900, Norman Diamond wrote:
> > > > Shutdown messages appear on the text console as follows:
> > > > [...]
> > > > Shutting down PCMCIA unregister_netdevice: waiting for eth0 to
> > > > become free. Usage count = 1
> > > > unregister_netdevice: waiting for eth0 to become free. Usage count =
> > > > 1
> > > > [...]
> > > > The only way to shut down at this point is to turn off the power.
> > >
> > > IIRC the problem is your hotplug scripts. Maybe the hotplug folk can
> > > tell you the minimum version for 2.6.
> >
> > The last release version is the best for 2.6, but this doesn't look
> > like a hotplug script issue at all.
>
> Hmm, ok. However, in the past when people have upgraded their hotplug
> scripts, the problem goes away.

It will be a while before I have time to try it, sorry. SuSE 8.2 is
partially installed on that machine now and one day next weekend will
probably finish just that.

> Whatever, it's certainly not a PCMCIA issue either, so I'm at a loss what
> to do about these reports.
> I can only think that the right answer is to bat them all at the netdev
> list, since it is a network device issue.

Stephen Hemminger sent private e-mail guessing that IPV6 bugs might be the
cause. I did select a number of IPV6 options when building
2.6.0-test[1..5]. Sorry I don't remember if my 2.4.19 included any IPV6
support, and I'm not planning to try a regression test to that one. I'll
try to find time some weekend to experiment with 2.6.0-test5 and
2.4.20-SuSE8.2 with and without IPV6.

I don't have access to IPV6 at present but figure I will someday, and if I
ever have time to experiment with it then the experimentation time will not
be wasted. Most of the world (except for North America) will not be able to
survive without IPV6.