Hi,
i am still having problems after a couple of suspend/resume cycles
(swsusp) to unload the usbcore module. 

I am stopping the whole usb subsystem (/etc/init.d/hotplug stop) before
suspend and restart it afterwards. After a random amount of
suspend/resume cycles the stop hangs on unloading the usbcore module.

SW: Kernel 2.4.21 + swsusp 1.0.3 + acpi backport, Debian/Sarge
HW: Sony Vaio PCG-C1MHP, OHCI Acer Labs

Here are the last lines of the "strace -o file -f /etc/init.d/hotplug stop"

[...]
1215  query_module("ieee1394", QM_INFO, {address=0xd0053000, size=37280, 
flags=MOD_RUNNING|MOD_USED_ONCE, usecount=0}, 16) = 0
1215  query_module("ieee1394", QM_SYMBOLS, 0x80624f0, 1024, 2791) = -1 ENOSPC (No 
space left on device)
1215  query_module("ieee1394", QM_SYMBOLS, { /* 96 entries */ }, 96) = 0
1215  brk(0)                            = 0x8063000
1215  brk(0x8067000)                    = 0x8067000
1215  query_module(NULL, QM_SYMBOLS, 0x8062fe0, 16384, 33959) = -1 ENOSPC (No space 
left on device)
1215  brk(0)                            = 0x8067000
1215  brk(0x8070000)                    = 0x8070000
1215  query_module(NULL, QM_SYMBOLS, { /* 1397 entries */ }, 1397) = 0
1215  delete_module("usbcore"

Here is the ps -ale output:

  F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
100 S     0     1     0  0  68   0 -   304 select ?        00:00:04 init
040 S     0     2     1  0  69   0 -     0 contex ?        00:00:00 keventd
040 S     0     3     1  0  79  19 -     0 ksofti ?        00:00:00 ksoftirqd_CPU0
040 S     0     4     1  0  69   0 -     0 kswapd ?        00:00:00 kswapd
040 S     0     5     1  0  69   0 -     0 bdflus ?        00:00:00 bdflush
040 S     0     6     1  0  69   0 -     0 kupdat ?        00:00:00 kupdated
040 S     0     9     1  4  69   0 -     0 swsusp ?        00:00:23 kswsuspd
040 S     0    10     1  0  69   0 -     0 kjourn ?        00:00:00 kjournald
040 S     0    46     1  0  69   0 -     0 down_i ?        00:00:00 knodemgrd_0
140 S     0   290     1  0  69   0 -   322 select ?        00:00:00 syslogd
140 S     0   384     1  0  69   0 -   510 syslog ?        00:00:00 klogd
040 S     0   388     1  0  69   0 -   308 poll   ?        00:00:00 acpid
140 S     0   460     1  0  69   0 -   337 select ?        00:00:00 cardmgr
100 S     0   546     1  0  69   0 -   589 select ?        00:00:00 master
100 S   101   552   546  0  69   0 -   920 select ?        00:00:00 qmgr
040 S     1   558     1  0  69   0 -   329 nanosl ?        00:00:00 atd
040 S     0   561     1  0  69   0 -   394 nanosl ?        00:00:00 cron
100 S     0   564     1  0  69   0 -  1045 wait4  tty1     00:00:00 bash
100 S  1000   565     1  0  71   0 -  1047 wait4  tty2     00:00:00 bash
000 S     0   566     1  0  69   0 -   301 read_c tty3     00:00:00 getty
000 S     0   567     1  0  69   0 -   301 read_c tty4     00:00:00 getty
000 S     0   568     1  0  69   0 -   301 read_c tty5     00:00:00 getty
000 S     0   569     1  0  69   0 -   301 read_c tty6     00:00:00 getty
100 S   101   836   546  0  69   0 -   587 select ?        00:00:00 pickup
000 S     0  1107   564  0  69   0 -  1002 wait4  tty1     00:00:00 lidbtn.sh
100 S     0  1131  1107  0  69   0 -   353 wait4  tty1     00:00:01 strace
000 T     0  1132  1131  0  69   0 -  1000 syscal tty1     00:00:00 hotplug
000 T     0  1133  1132  0  69   0 -  1014 syscal tty1     00:00:00 usb.rc
100 D     0  1215  1133  0  69   0 -   333 ?      tty1     00:00:00 rmmod.modutils
000 R  1000  1248   565  0  76   0 -   864 -      tty2     00:00:00 ps


lsmod

Module                  Size  Used by    Tainted: G S
usbcore                    0   0  (deleted)
snd-ali5451            10752   0 
snd-pcm                43424   0  [snd-ali5451]
snd-timer               8736   0  [snd-pcm]
snd-ac97-codec         21888   0  [snd-ali5451]
snd                    22152   0  [snd-ali5451 snd-pcm snd-timer snd-ac97-codec]
soundcore               3108   0  [snd]
scsi_mod               81192   0 
ohci1394               21760   0  (unused)
ieee1394               37280   0  [ohci1394]

pstree

init(1)-+-acpid(388)
        |-atd(558)
        
|-bash(564)---lidbtn.sh(1107)---strace(1131)---hotplug(1132)---usb.rc(1133)---rmmod.modutils(1215)
        |-bash(565)---pstree(1250)
        |-bdflush(5)
        |-cardmgr(460)
        |-cron(561)
        |-getty(566)
        |-getty(567)
        |-getty(568)
        |-getty(569)
        |-keventd(2)
        |-kjournald(10)
        |-klogd(384)
        |-knodemgrd_0(46)
        |-ksoftirqd_CPU0(3)
        |-kswapd(4)
        |-kswsuspd(9)
        |-kupdated(6)
        |-master(546)-+-pickup(836)
        |             `-qmgr(552)
        `-syslogd(290)


[ ... dmesg after the first resume ... ]

Please include the following information in any bug report:
- SWSUSP Version : 1.0.3
- Kernel Version : 2.4.21-vaio3
- Compiler vers. : 2.95
- Modules loaded : snd-ali5451 snd-pcm snd-timer snd-ac97-codec snd soundcore scsi_mod 
ohci1394 ieee1394  
- Attempt number : 2
- Swap available : 124493 (amount unused when preparing image).
- Pageset sizes  : 3579 and 9272 (9272 low). (Pagedir sizes: 29 and 74)
- Expected sizes : 3579 and 9272.
- Parameters     : 0 0 0 100
- Calculations   : Image size: 12881. Ram to suspend: 1228. To resume: 9988.
- Limits         : 61440 pages RAM. Initial boot: 59800. Current boot: 0.
- Max ranges used: 2384
sonypi: unknown event port1=0xff,port2=0xff
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: deregistering driver hub
hub.c: failed to start usb_hub_thread
PCI: Enabling device 00:0f.0 (0010 -> 0012)
usb-ohci.c: USB OHCI at membase 0xd007b000, IRQ 9
usb-ohci.c: usb-00:0f.0, ALi Corporation. [ALi] USB 1.1 Controller
usb.c: new USB bus registered, assigned bus number 1
usb.c: USB device 1 (vend/prod 0x0/0x0) is not claimed by any active driver.
usb-ohci.c: USB OHCI at membase 0xc00e0000, IRQ 9
usb-ohci.c: usb-00:14.0, ALi Corporation. [ALi] USB 1.1 Controller (#2)
usb.c: new USB bus registered, assigned bus number 2
usb.c: USB device 1 (vend/prod 0x0/0x0) is not claimed by any active driver.
BlueZ Core ver 2.3 Copyright (C) 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <[EMAIL PROTECTED]>
BlueZ HCI USB driver ver 2.4 Copyright (C) 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <[EMAIL PROTECTED]>
usb.c: registered new driver hci_usb
BlueZ RFCOMM ver 1.0
Copyright (C) 2002 Maxim Krasnyansky <[EMAIL PROTECTED]>
Copyright (C) 2002 Marcel Holtmann <[EMAIL PROTECTED]>
BlueZ L2CAP ver 2.3 Copyright (C) 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <[EMAIL PROTECTED]>
usb.c: deregistering driver hci_usb
usb.c: USB disconnect on device 00:0f.0-0 address 1
usb.c: USB bus 1 deregistered
usb.c: USB disconnect on device 00:14.0-0 address 1
usb.c: USB bus 2 deregistered
usb.c: deregistering driver usbdevfs

lspci 

00:00.0 Host bridge: Transmeta Corporation LongRun Northbridge (rev 02)
00:00.1 RAM memory: Transmeta Corporation SDRAM controller
00:00.2 RAM memory: Transmeta Corporation BIOS scratchpad
00:06.0 Multimedia audio controller: Acer Laboratories Inc. [ALi] M5451 PCI South 
Bridge Audio (rev 02)
00:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV]
00:08.0 Modem: Acer Laboratories Inc. [ALi]: Unknown device 5457
00:09.0 FireWire (IEEE 1394): Texas Instruments: Unknown device 8023
00:0a.0 Multimedia controller: Citicorp TTI: Unknown device 2011
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
00:0c.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
00:0f.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03)
00:10.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev c4)
00:11.0 Non-VGA unclassified device: Acer Laboratories Inc. [ALi] M7101 PMU
00:12.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
00:14.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03)

Flo
-- 
Florian Lohoff                  [EMAIL PROTECTED]             +49-171-2280134
                        Heisenberg may have been here.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to