|| On Mon, 27 Sep 2004 19:50:50 +0200 || Oliver Neukum <[EMAIL PROTECTED]> wrote:
on> Which modules had you loaded before the rmmod? Well, here is the output of lsmod before the card is inserted:
Module Size Used by ipw2100 89924 0 firmware_class 7680 1 ipw2100 ieee80211 15364 1 ipw2100 ehci_hcd 27140 0 uhci_hcd 28560 0 yenta_socket 18688 0 ds 14212 4 pcmcia_core 59204 2 yenta_socket,ds psmouse 18184 0 sd_mod 12688 2 parport_pc 22976 1 lp 9800 0 parport 34760 2 parport_pc,lp 8250 19008 0 serial_core 19840 1 8250 arc4 1792 1 ieee80211_crypt_wep 3968 0 ieee80211_crypt 4228 2 ieee80211,ieee80211_crypt_wep eth1394 18312 0 ohci1394 30852 0 ieee1394 94648 2 eth1394,ohci1394 joydev 8128 0
while the card is inserted:
Module Size Used by usbserial 25576 0 ohci_hcd 18948 0 ipw2100 89924 0 firmware_class 7680 1 ipw2100 ieee80211 15364 1 ipw2100 ehci_hcd 27140 0 uhci_hcd 28560 0 yenta_socket 18688 1 ds 14212 4 pcmcia_core 59204 2 yenta_socket,ds psmouse 18184 0 sd_mod 12688 2 parport_pc 22976 1 lp 9800 0 parport 34760 2 parport_pc,lp 8250 19008 0 serial_core 19840 1 8250 arc4 1792 1 ieee80211_crypt_wep 3968 0 ieee80211_crypt 4228 2 ieee80211,ieee80211_crypt_wep eth1394 18312 0 ohci1394 30852 0 ieee1394 94648 2 eth1394,ohci1394 joydev 8128 0
and after the card is removed:
Module Size Used by usbserial 25576 0 ohci_hcd 18948 0 ipw2100 89924 0 firmware_class 7680 1 ipw2100 ieee80211 15364 1 ipw2100 ehci_hcd 27140 0 uhci_hcd 28560 0 yenta_socket 18688 0 ds 14212 4 pcmcia_core 59204 2 yenta_socket,ds psmouse 18184 0 sd_mod 12688 2 parport_pc 22976 1 lp 9800 0 parport 34760 2 parport_pc,lp 8250 19008 0 serial_core 19840 1 8250 arc4 1792 1 ieee80211_crypt_wep 3968 0 ieee80211_crypt 4228 2 ieee80211,ieee80211_crypt_wep eth1394 18312 0 ohci1394 30852 0 ieee1394 94648 2 eth1394,ohci1394 joydev 8128 0
So the only modules that get loaded are ohci_hcd and usbserial, of course the PCMCIA modules are also involved. I can do "rmmod ohci_hcd" without problems. I can also do /etc/init.d/pcmcia stop without problems and it removes the yenta_socket and ds modules properly. At this stage, lsmod looks like:
Module Size Used by usbserial 25576 0 ipw2100 89924 0 firmware_class 7680 1 ipw2100 ieee80211 15364 1 ipw2100 ehci_hcd 27140 0 uhci_hcd 28560 0 psmouse 18184 0 sd_mod 12688 2 parport_pc 22976 1 lp 9800 0 parport 34760 2 parport_pc,lp 8250 19008 0 serial_core 19840 1 8250 arc4 1792 1 ieee80211_crypt_wep 3968 0 ieee80211_crypt 4228 2 ieee80211,ieee80211_crypt_wep eth1394 18312 0 ohci1394 30852 0 ieee1394 94648 2 eth1394,ohci1394 joydev 8128 0
Now doing /etc/init.d/hotplug stop hangs while stopping USB:
Stopping hotplug subsystem: input input [success] isapnp isapnp [success] net net [success] pci pci [success] usb
but I was under the assumption that is probably caused by the usbserial module. The process list shows indeed rmmod usbserial. But to make sure, here is the sysrq-t output:
Sep 28 09:16:09 brain kernel: hotplug S C060FFE0 6116 3284 2906 3298
(NOTLB)
Sep 28 09:16:09 brain kernel: d430bf04 00000086 d4228a40 c060ffe0 d3c3a3c0 db04c080
13c66065 d430a000
Sep 28 09:16:09 brain kernel: 00000246 dbcf1d50 dd5c1370 00000000 b05c8cc0
000f421d d4228a40 d4228bd4
Sep 28 09:16:09 brain kernel: fffffe00 d430a000 d430a000 d430bf88 c012d145
ffffffff 00000004 dc311a40
Sep 28 09:16:09 brain kernel: Call Trace:
Sep 28 09:16:09 brain kernel: [<c012d145>] do_wait+0x388/0x727
Sep 28 09:16:09 brain kernel: [<c012d5a9>] sys_wait4+0x3e/0x40
Sep 28 09:16:09 brain kernel: [<c012d5d2>] sys_waitpid+0x27/0x29
Sep 28 09:16:09 brain kernel: [<c01059cf>] syscall_call+0x7/0xb
Sep 28 09:16:09 brain kernel: usb.rc S C060FFE0 6352 3298 3284 3451
(NOTLB)
Sep 28 09:16:09 brain kernel: d4303f04 00000086 dc311a40 c060ffe0 dc931ff8 d3e03bfc
144e8065 d4302000
Sep 28 09:16:09 brain kernel: 00000246 dc312d50 dd0f4250 00000000 ca4a1f80
000f421d dc311a40 dc311bd4
Sep 28 09:16:09 brain kernel: fffffe00 d4302000 d4302000 d4303f88 c012d145
ffffffff 00000004 d42c8a40
Sep 28 09:16:09 brain kernel: Call Trace:
Sep 28 09:16:09 brain kernel: [<c012d145>] do_wait+0x388/0x727
Sep 28 09:16:09 brain kernel: [<c012d5a9>] sys_wait4+0x3e/0x40
Sep 28 09:16:09 brain kernel: [<c012d5d2>] sys_waitpid+0x27/0x29
Sep 28 09:16:09 brain kernel: [<c01059cf>] syscall_call+0x7/0xb
Sep 28 09:16:09 brain kernel: rmmod D C060FFE0 6552 3451 3298
(NOTLB)
Sep 28 09:16:09 brain kernel: d435be9c 00000086 d42c8a40 c060ffe0 c01af8e6 d44d8f54
d44d8f54 d435be98
Sep 28 09:16:09 brain kernel: c01afa3b d44d8f54 c04f03c0 00000000 ca4a1f80
000f421d d42c8a40 d42c8bd4
Sep 28 09:16:09 brain kernel: e052dd64 00000246 d435a000 d435bef4 c0471636
e052df24 d435beb8 c024e359
Sep 28 09:16:09 brain kernel: Call Trace:
Sep 28 09:16:09 brain kernel: [<c0471636>] __down+0xda/0x350
Sep 28 09:16:09 brain kernel: [<c0471c3f>] __down_failed+0xb/0x14
Sep 28 09:16:09 brain kernel: [<c02e15b0>] .text.lock.driver+0x5/0x11
Sep 28 09:16:09 brain kernel: [<e052b14c>] usb_serial_bus_deregister+0x14/0x18
[usbserial]
Sep 28 09:16:09 brain kernel: [<e052a39c>] usb_serial_deregister+0x49/0x51 [usbserial]
Sep 28 09:16:09 brain kernel: [<e052a470>] usb_serial_generic_deregister+0x1e/0x20
[usbserial]
Sep 28 09:16:09 brain kernel: [<e052b326>] usb_serial_exit+0xb/0x3f [usbserial]
Sep 28 09:16:09 brain kernel: [<c0148d8b>] sys_delete_module+0x16d/0x17d
Sep 28 09:16:09 brain kernel: [<c01059cf>] syscall_call+0x7/0xb
and the lsmod at the time:
Module Size Used by usbserial 26344 0 parport_pc 24768 1 lp 10248 0 parport 42056 2 parport_pc,lp serial_core 26880 0 arc4 1920 1 ieee80211_crypt_wep 4096 0 ipw2100 94660 0 firmware_class 7936 1 ipw2100 ieee80211 16900 1 ipw2100 ieee80211_crypt 6404 2 ieee80211_crypt_wep,ieee80211 eth1394 22024 0 ohci1394 37380 0 ieee1394 101112 2 eth1394,ohci1394 joydev 8384 0 psmouse 18184 0
Hope this helps, Regards, Georg -- Georg C. F. Greve <[EMAIL PROTECTED]> Free Software Foundation Europe (http://fsfeurope.org) GNU Business Network (http://mailman.gnubiz.org) Brave GNU World (http://brave-gnu-world.org)
pgpI4gaaV4HRV.pgp
Description: PGP signature
