Linux-Hams archive - December 1997: Re: sccinit hangs on detection second chip with latest kernels

Re: sccinit hangs on detection second chip with latest kernels

Joerg Reuter (yypmo.bshnqye@mailit.tunk.net)
Thu, 11 Dec 1997 21:28:53 +0100


This is a multipart MIME message.

--==_Exmh_-11894312960
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

> > Subject: Re: sccinit hangs on detection second chip with latest kernels

On closer investigation it turned out that it happens in the call to
register_netdev() for scc1...

> If you want to have it i can send you a 'strace' from sccinit when it goes
> wrong?

Thank you, I've found the problem. You can cure the _symptoms_ with the
following patch for scc.c, but the real problem seems to be
register_netdev() that calls rtnl_lock() which sleeps forever, hence the
hanging sccinit. ARGH!!

(Alan, someone forgot an rtnl_unlock() somewhere!)

vy 73,

--==_Exmh_-11894312960
Content-Type: application/x-patch ; name="scc.c-register_netdev-workaround.patch"
Content-Description: scc.c-register_netdev-workaround.patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="scc.c-register_netdev-workaround.patch"

LS0tIHNjYy5jfglUaHUgRGVjIDExIDIxOjA4OjU2IDE5OTcKKysrIHNjYy5jCVRodSBEZWMg
MTEgMjE6MTU6MzMgMTk5NwpAQCAtMTU1Niw3ICsxNTU2LDcgQEAKIAlkZXYtPm5hbWUgPSBi
dWY7CiAJZGV2LT5pbml0ID0gc2NjX25ldF9pbml0OwogCi0JaWYgKHJlZ2lzdGVyX25ldGRl
dihkZXYpICE9IDApCisJaWYgKHJlZ2lzdGVyX25ldGRldmljZShkZXYpICE9IDApCiAJewog
CQlrZnJlZShkZXYpOwogCQlyZXR1cm4gLUVJTzsK

--==_Exmh_-11894312960
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Joerg Reuter ampr-net: fvkvoti.bynglh@mail.dy.fi
Internet: terhi.victor@logonet.com
www : http://www.rat.de/jr/

If God had inteded man to smoke He would have set him on fire.

--==_Exmh_-11894312960--