linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: 2.4.0-test12 w/ PCMCIA on ThinkPad: KERNEL:  assertion(dev->ip_ptr==NULL)failed at  dev.c(2422):netdev_finish_unregister
       [not found] <393D1B6D.ECCE0721@mail.com>
@ 2000-12-21  4:12 ` Thomas Hood
  2001-01-24  3:48 ` With recent kernels, ThinkPad 600 won't resume for two minutes after suspend Thomas Hood
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Thomas Hood @ 2000-12-21  4:12 UTC (permalink / raw)
  To: linux-kernel

2.4.0-test12 compiled on an IBM ThinkPad 600 51U (Pentium II)
with PCMCIA support.  Same behavior with Linus PCMCIA and 
Hinds PCMCIA.  I have a Xircom modem/ethernet card which
works correctly using the serial_cs, xirc2ps_cs, ds, i82365 
and pcmcia_core modules; however when I try to "cardctl eject"
or "reboot" I get first,

"KERNEL: assertion(dev->ip_ptr==NULL)failed at
dev.c(2422):netdev_finish_unregister"

(not exact since I had to copy it down on paper ... doesn't
show up in the logs) then a perpetual series of:

"unregister_netdevice: waiting for eth0 to become free. Usage count =
-1"

messages every five seconds or so.  "ps -A" reveals that
modprobe is running; it can't be killed even with "kill -9".
The "ifconfig" command locks up.

Thomas Hood
Please cc: your replies to me at jdthood_AT_mail.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* With recent kernels, ThinkPad 600 won't resume for two minutes after  suspend
       [not found] <393D1B6D.ECCE0721@mail.com>
  2000-12-21  4:12 ` Bug: 2.4.0-test12 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
@ 2001-01-24  3:48 ` Thomas Hood
  2001-01-24  4:43   ` Tomasz Przygoda
  2001-01-29 19:15 ` Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Thomas Hood @ 2001-01-24  3:48 UTC (permalink / raw)
  To: linux-kernel

Hi.

With recent kernels, my ThinkPad 600 won't resume for two minutes
after it is suspended.  When the Fn key is pressed the machine
starts up, the CD-ROM scans, the screen backlight turns on,
and the APM light flashes.  But then it just stays like that
instead of restarting the CPU; it is completely hung, although
the APM light continues to flash.  If I wait more than about
two minutes with the machine suspended, however, then everything
resumes normally.

I have been running Linux for two years.  This never happened
before a couple weeks ago when I upgraded to kernels 2.2.18 and
then 2.4.0 .  I have since tested kernel 2.2.17 and see the
same problem.  Do I have a hardware problem, or might something
have changed in the kernel that could lead to this behavior?

Thomas Hood
jdthood_AT_yahoo.co.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: With recent kernels, ThinkPad 600 won't resume for two minutes after  suspend
  2001-01-24  3:48 ` With recent kernels, ThinkPad 600 won't resume for two minutes after suspend Thomas Hood
@ 2001-01-24  4:43   ` Tomasz Przygoda
  0 siblings, 0 replies; 9+ messages in thread
From: Tomasz Przygoda @ 2001-01-24  4:43 UTC (permalink / raw)
  To: Thomas Hood; +Cc: linux-kernel

I have 600X and 2.2.1[6-8] work just fine.
the only silly thing is I have to switch to text console before sspending
the laptop, otherwise after resume the X looses keyboard and you can
only login from network :(


On Tue, 23 Jan 2001, Thomas Hood wrote:

> Hi.
>
> With recent kernels, my ThinkPad 600 won't resume for two minutes
> after it is suspended.  When the Fn key is pressed the machine
> starts up, the CD-ROM scans, the screen backlight turns on,
> and the APM light flashes.  But then it just stays like that
> instead of restarting the CPU; it is completely hung, although
> the APM light continues to flash.  If I wait more than about
> two minutes with the machine suspended, however, then everything
> resumes normally.
>
> I have been running Linux for two years.  This never happened
> before a couple weeks ago when I upgraded to kernels 2.2.18 and
> then 2.4.0 .  I have since tested kernel 2.2.17 and see the
> same problem.  Do I have a hardware problem, or might something
> have changed in the kernel that could lead to this behavior?
>
> Thomas Hood
> jdthood_AT_yahoo.co.uk
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
>

-- 
Tomek,
__________________________________________________
Do You Yahoo!?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL:  assertion(dev->ip_ptr==NULL)failed at  dev.c(2422):netdev_finish_unregister
       [not found] <393D1B6D.ECCE0721@mail.com>
  2000-12-21  4:12 ` Bug: 2.4.0-test12 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
  2001-01-24  3:48 ` With recent kernels, ThinkPad 600 won't resume for two minutes after suspend Thomas Hood
@ 2001-01-29 19:15 ` Thomas Hood
  2001-02-05  0:19 ` [BUG] Shutting down PCMCIA driver in Linux 2.4.1, "Trying to free nonexistent resource <000003e0-000003e1>" Thomas Hood
  2001-02-05  9:26 ` David Woodhouse
  4 siblings, 0 replies; 9+ messages in thread
From: Thomas Hood @ 2001-01-29 19:15 UTC (permalink / raw)
  To: linux-kernel

Dear l-k.

I'm still having this problem with kernel 2.4.0:

Conditions:
Linux 2.4.0 compiled on an IBM ThinkPad 600 51U (Pentium II)
laptop with PCMCIA support.  Same behavior with integral kernel
PCMCIA, modular kernel PCMCIA and modular Hinds PCMCIA.  System
is Progeny Debian beta II.

I have a Xircom modem/ethernet card which works correctly using
the serial_cs, xirc2ps_cs, ds, i82365 and pcmcia_core modules;
however when I try to "cardctl eject" or "reboot" I get first,
   "KERNEL: assertion(dev->ip_ptr==NULL)failed at
    dev.c(2422):netdev_finish_unregister"
(not exact since I had to copy it down on paper ... doesn't
show up in the logs) then a perpetual series of:
   "unregister_netdevice: waiting for eth0 to become free.
    Usage count = -1"
messages every five seconds or so.  "ps -A" reveals that
modprobe is running; it can't be killed even with "kill -9".
The "ifconfig" command locks up.  Shutdown won't complete
so I end up having to use SysRq-S-U-B to reboot.

This problem only occurs if the Xircom card is connected to
the Ethernet (in which case it is configured using DHCP).
If the card is left unconnected to the network, the problem
does not occur---the card can be ejected.

Thomas Hood
Please cc: your replies to me at jdthood_AT_yahoo.co.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [BUG] Shutting down PCMCIA driver in Linux 2.4.1, "Trying to free  nonexistent resource <000003e0-000003e1>"
       [not found] <393D1B6D.ECCE0721@mail.com>
                   ` (2 preceding siblings ...)
  2001-01-29 19:15 ` Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
@ 2001-02-05  0:19 ` Thomas Hood
  2001-02-05  9:26 ` David Woodhouse
  4 siblings, 0 replies; 9+ messages in thread
From: Thomas Hood @ 2001-02-05  0:19 UTC (permalink / raw)
  To: linux-kernel

I get this message when shutting down Linux with 2.4.1 kernel,
kernel PCMCIA support compiled as a module.

---------------------------------------------------------------------------------

$ cat /proc/ioports
...
03e0-03e1 : i82365
...
$ sudo reboot
(reboot)
$ grep 3e0 /var/log/messages
Feb  4 18:13:44 thanatos kernel: Trying to free nonexistent resource <000003e0-000003e1>

----------------------------------------------------------------------------------

IIRC, during the shutdown sequences the "Trying ..." message appears just
after the words "Shutting down PCMCIA card services: cardmgr modules".

T. Hood
jdthood_AT_mail.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [BUG] Shutting down PCMCIA driver in Linux 2.4.1, "Trying to free nonexistent resource <000003e0-000003e1>"
       [not found] <393D1B6D.ECCE0721@mail.com>
                   ` (3 preceding siblings ...)
  2001-02-05  0:19 ` [BUG] Shutting down PCMCIA driver in Linux 2.4.1, "Trying to free nonexistent resource <000003e0-000003e1>" Thomas Hood
@ 2001-02-05  9:26 ` David Woodhouse
  4 siblings, 0 replies; 9+ messages in thread
From: David Woodhouse @ 2001-02-05  9:26 UTC (permalink / raw)
  To: Thomas Hood; +Cc: linux-kernel


jdthoodREMOVETHIS@mail.com said:
> I get this message when shutting down Linux with 2.4.1 kernel, kernel
> PCMCIA support compiled as a module.

> Trying to free nonexistent resource <000003e0-000003e1>

It's harmless. You can ignore it. It'll be cleaned up, but there are far 
more interesting bugs to squash first :)

--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL:  assertion(dev->ip_ptr==NULL)failed at  dev.c(2422):netdev_finish_unregister
@ 2001-02-09  4:30 Thomas Hood
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Hood @ 2001-02-09  4:30 UTC (permalink / raw)
  To: linux-kernel

This problem has been resolved (sort of).  See the follow up to 
"[PATCH] to deal with bad dev->refcnt in unregister_netdevice()"

Thomas Hood

> Here is a patch which may not solve the underlying
> problem but which does prevent the kernel from 
> generating an infinite number of error messages
> on "cardctl eject" and from hanging up on shutdown.
> 
> ----------------------------------------------------
> jdthood@thanatos:/usr/src/kernel-source-2.4.1-ac3/net/core# diff dev.c_ORIG dev.c
> 2558c2558
> < 	while (atomic_read(&dev->refcnt) != 1) {
> ---
> > 	while (atomic_read(&dev->refcnt) > 1) {
> -----------------------------------------------------
> 
> The underlying problem is that refcnt is zero or less
> at this point.  This is erroneous.  The error in 
> maintaining the refcnt appears to occur only when 
> I configure the eth0 interface using pump or dhclient.
> Be that as it may, because of the erroneous refcnt,
> this while loop loops forever in the original.  As
> modified it falls through; and this makes the kernel
> usable for me.
> 
> I hope the networking gurus can find the real bug.
> 
> Thomas Hood
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL:  assertion(dev->ip_ptr==NULL)failed at  dev.c(2422):netdev_finish_unregister
@ 2001-02-08  0:31 Thomas Hood
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Hood @ 2001-02-08  0:31 UTC (permalink / raw)
  To: linux-kernel

Here is a patch which may not solve the underlying
problem but which does prevent the kernel from 
generating an infinite number of error messages
on "cardctl eject" and from hanging up on shutdown.

----------------------------------------------------
jdthood@thanatos:/usr/src/kernel-source-2.4.1-ac3/net/core# diff dev.c_ORIG dev.c
2558c2558
< 	while (atomic_read(&dev->refcnt) != 1) {
---
> 	while (atomic_read(&dev->refcnt) > 1) {
-----------------------------------------------------

The underlying problem is that refcnt is zero or less
at this point.  This is erroneous.  The error in 
maintaining the refcnt appears to occur only when 
I configure the eth0 interface using pump or dhclient.
Be that as it may, because of the erroneous refcnt,
this while loop loops forever in the original.  As
modified it falls through; and this makes the kernel
usable for me.

I hope the networking gurus can find the real bug.

Thomas Hood

> I have a bit more information about this bug now.
> The message "assertion(yadda) failed ..." occurs only
> if the eth0 interface has been configured using pump
> or dhclient.  If the card isn't connected to the network
> the message never occurs.  If eth0 is merely brought up
> and down using ifconfig the message doesn't occur.  Only
> if pump or dhclient has configured eth0 does the message
> occur.  Sometimes it occurs on "ifdown eth0", sometimes
> on "cardctl eject" and sometimes during the shutdown
> sequence.
> 
> Thomas
> 
> > Dear l-k. 
> > 
> > I'm still having this problem with kernel 2.4.0: 
> > 
> > Conditions: 
> > Linux 2.4.0 compiled on an IBM ThinkPad 600 51U (Pentium II) 
> > laptop with PCMCIA support. Same behavior with integral kernel 
> > PCMCIA, modular kernel PCMCIA and modular Hinds PCMCIA. System 
> > is Progeny Debian beta II. 
> > 
> > I have a Xircom modem/ethernet card which works correctly using 
> > the serial_cs, xirc2ps_cs, ds, i82365 and pcmcia_core modules; 
> > however when I try to "cardctl eject" or "reboot" I get first, 
> >    "KERNEL: assertion(dev->ip_ptr==NULL)failed at 
> >     dev.c(2422):netdev_finish_unregister" 
> > (not exact since I had to copy it down on paper ... doesn't 
> > show up in the logs) then a perpetual series of: 
> >    "unregister_netdevice: waiting for eth0 to become free. 
> >     Usage count = -1" 
> > messages every five seconds or so. "ps -A" reveals that 
> > modprobe is running; it can't be killed even with "kill -9". 
> > The "ifconfig" command locks up. Shutdown won't complete 
> > so I end up having to use SysRq-S-U-B to reboot. 
> > 
> > This problem only occurs if the Xircom card is connected to 
> > the Ethernet (in which case it is configured using DHCP). 
> > If the card is left unconnected to the network, the problem 
> > does not occur---the card can be ejected. 
> > 
> > Thomas Hood 
> > Please cc: your replies to me at jdthood_AT_yahoo.co.uk
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL:  assertion(dev->ip_ptr==NULL)failed at  dev.c(2422):netdev_finish_unregister
@ 2001-02-07  3:54 Thomas Hood
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Hood @ 2001-02-07  3:54 UTC (permalink / raw)
  To: linux-kernel

I have a bit more information about this bug now.
The message "assertion(yadda) failed ..." occurs only
if the eth0 interface has been configured using pump
or dhclient.  If the card isn't connected to the network
the message never occurs.  If eth0 is merely brought up
and down using ifconfig the message doesn't occur.  Only
if pump or dhclient has configured eth0 does the message
occur.  Sometimes it occurs on "ifdown eth0", sometimes
on "cardctl eject" and sometimes during the shutdown
sequence.

Thomas

> Dear l-k. 
> 
> I'm still having this problem with kernel 2.4.0: 
> 
> Conditions: 
> Linux 2.4.0 compiled on an IBM ThinkPad 600 51U (Pentium II) 
> laptop with PCMCIA support. Same behavior with integral kernel 
> PCMCIA, modular kernel PCMCIA and modular Hinds PCMCIA. System 
> is Progeny Debian beta II. 
> 
> I have a Xircom modem/ethernet card which works correctly using 
> the serial_cs, xirc2ps_cs, ds, i82365 and pcmcia_core modules; 
> however when I try to "cardctl eject" or "reboot" I get first, 
>    "KERNEL: assertion(dev->ip_ptr==NULL)failed at 
>     dev.c(2422):netdev_finish_unregister" 
> (not exact since I had to copy it down on paper ... doesn't 
> show up in the logs) then a perpetual series of: 
>    "unregister_netdevice: waiting for eth0 to become free. 
>     Usage count = -1" 
> messages every five seconds or so. "ps -A" reveals that 
> modprobe is running; it can't be killed even with "kill -9". 
> The "ifconfig" command locks up. Shutdown won't complete 
> so I end up having to use SysRq-S-U-B to reboot. 
> 
> This problem only occurs if the Xircom card is connected to 
> the Ethernet (in which case it is configured using DHCP). 
> If the card is left unconnected to the network, the problem 
> does not occur---the card can be ejected. 
> 
> Thomas Hood 
> Please cc: your replies to me at jdthood_AT_yahoo.co.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-02-09  4:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <393D1B6D.ECCE0721@mail.com>
2000-12-21  4:12 ` Bug: 2.4.0-test12 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
2001-01-24  3:48 ` With recent kernels, ThinkPad 600 won't resume for two minutes after suspend Thomas Hood
2001-01-24  4:43   ` Tomasz Przygoda
2001-01-29 19:15 ` Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
2001-02-05  0:19 ` [BUG] Shutting down PCMCIA driver in Linux 2.4.1, "Trying to free nonexistent resource <000003e0-000003e1>" Thomas Hood
2001-02-05  9:26 ` David Woodhouse
2001-02-07  3:54 Bug: 2.4.0 w/ PCMCIA on ThinkPad: KERNEL: assertion(dev->ip_ptr==NULL)failed at dev.c(2422):netdev_finish_unregister Thomas Hood
2001-02-08  0:31 Thomas Hood
2001-02-09  4:30 Thomas Hood

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).