[BUG] apm-suspend in 2.5.47 kills USB mouse

Andrew McGregor (andrew@indranet.co.nz)
Tue, 12 Nov 2002 12:42:47 +1300


When I suspend my laptop, the USB mouse is dead on resume.

Hardware:
Dell Inspiron 8000 w/ integrated ps/2 trackpad and trackpoint
Logitech iFeel USB mouse
NVidia GeForce2go

Software:
RedHat 8.0
linux 2.5.47
NVidia driver build 3123 with patch from http://www.minion.de/nvidia/ plus
its suspend veto disabled.
APM (this system's BIOS seems to implement APM in terms of ACPI, which
explains why on the right combination of 2.4 and video drivers it can
suspend the GeForce2go at all)

I know about the driver for the graphics card being an issue, but the bug
is reproducable without X or with vesa drivers.

If anyone cares to look at the NVidia driver trace below, that's
interesting to me too.

The "end_request: I/O error, dev hdb, sector 0" and so forth are gnome
polling the CD drives for media. This is an irritation I'd like to know
how to fix also.

Below is the log of what happens when I suspend (with NVidia's driver
loaded).

TIA,

Andrew

Nov 12 12:26:27 localhost apmd[688]: User Suspend
Nov 12 12:26:50 localhost kernel: drivers/usb/core/hcd-pci.c: suspend
00:1f.2 to state 3
Nov 12 12:26:50 localhost kernel: drivers/usb/core/hcd-pci.c: resume 00:1f.2
Nov 12 12:26:50 localhost kernel: drivers/usb/core/usb.c: USB disconnect on
device 2
Nov 12 12:26:50 localhost kernel: end_request: I/O error, dev hdb, sector 0
Nov 12 12:26:50 localhost last message repeated 2 times
Nov 12 12:26:50 localhost kernel: end_request: I/O error, dev hdc, sector 0
Nov 12 12:26:50 localhost last message repeated 2 times
Nov 12 12:26:50 localhost /sbin/hotplug: no runnable
/etc/hotplug/input.agent is installed
Nov 12 12:26:51 localhost kernel: floppy0: unexpected interrupt
Nov 12 12:26:51 localhost kernel: floppy0: sensei repl[0]=c0 repl[1]=0
Nov 12 12:26:51 localhost kernel: floppy0: sensei repl[0]=c1 repl[1]=0
Nov 12 12:26:51 localhost kernel: floppy0: sensei repl[0]=c2 repl[1]=0
Nov 12 12:26:51 localhost kernel: floppy0: sensei repl[0]=c3 repl[1]=0
Nov 12 12:26:52 localhost kernel: drivers/usb/core/hub.c: new USB device
00:1f.2-2, assigned address 3
Nov 12 12:26:52 localhost /etc/hotplug/usb.agent: Bad USB agent invocation
Nov 12 12:26:53 localhost kernel: end_request: I/O error, dev hdb, sector 0
Nov 12 12:26:53 localhost last message repeated 3 times
Nov 12 12:26:53 localhost kernel: end_request: I/O error, dev hdc, sector 0
Nov 12 12:26:53 localhost kernel: end_request: I/O error, dev hdc, sector 0
Nov 12 12:26:53 localhost kernel: bad: scheduling while atomic!
Nov 12 12:26:53 localhost kernel: Call Trace:
Nov 12 12:26:53 localhost kernel: [<c0118dfb>] schedule+0x30b/0x310
Nov 12 12:26:53 localhost kernel: [<c012c505>] flush_workqueue+0xd5/0xf0
Nov 12 12:26:53 localhost kernel: [<c0118e50>]
default_wake_function+0x0/0x40
Nov 12 12:26:53 localhost kernel: [<e09afd13>] __nvsym00583+0x1c3/0x1cc
[NVdriver]
Nov 12 12:26:53 localhost kernel: [<c0118e50>]
default_wake_function+0x0/0x40
Nov 12 12:26:53 localhost kernel: [<e08f9e28>] __nvsym00588+0x10/0x28
[NVdriver]
Nov 12 12:26:53 localhost kernel: [<e09d6e80>] nv_linux_devices+0x0/0xc40
[NVdriver]
Nov 12 12:26:53 localhost kernel: [<e09d6e80>] nv_linux_devices+0x0/0xc40
[NVdriver]
Nov 12 12:26:53 localhost kernel: [<e08e8edb>] nv_kern_close+0x6d/0x17a
[NVdriver]
Nov 12 12:26:53 localhost kernel: [<e09d6e80>] nv_linux_devices+0x0/0xc40
[NVdriver]
Nov 12 12:26:53 localhost kernel: [<c01624c0>] dput+0x30/0x130
Nov 12 12:26:53 localhost kernel: [<c014dc30>] __fput+0xf0/0x100
Nov 12 12:26:53 localhost kernel: [<c014b914>] filp_close+0x74/0xa0
Nov 12 12:26:53 localhost gdm(pam_unix)[939]: session closed for user
andrewm
Nov 12 12:26:53 localhost kernel: [<c011fd9c>] put_files_struct+0x6c/0xe0
Nov 12 12:26:53 localhost kernel: [<c01204ba>] do_exit+0x14a/0x320
Nov 12 12:26:53 localhost kernel: [<c0126ad2>] sig_exit+0x52/0x60
Nov 12 12:26:53 localhost kernel: [<c0127e8a>]
get_signal_to_deliver+0x1ba/0x240
Nov 12 12:26:53 localhost kernel: [<c010afcb>] do_signal+0xcb/0x100
Nov 12 12:26:54 localhost kernel: [<c014dbff>] __fput+0xbf/0x100
Nov 12 12:26:54 localhost kernel: [<c0135445>] unmap_vma+0x75/0x80
Nov 12 12:26:54 localhost kernel: [<c013546f>] unmap_vma_list+0x1f/0x30
Nov 12 12:26:54 localhost kernel: [<c013587d>] do_munmap+0x14d/0x190
Nov 12 12:26:54 localhost kernel: [<c0116540>] do_page_fault+0x0/0x49e
Nov 12 12:26:54 localhost kernel: [<c010b1ce>] work_notifysig+0x13/0x15
Nov 12 12:26:54 localhost kernel:
Nov 12 12:26:54 localhost kernel: end_request: I/O error, dev hdc, sector 0
Nov 12 12:26:54 localhost kernel: end_request: I/O error, dev hdc, sector 0
Nov 12 12:26:54 localhost gdm[939]: gdm_slave_xioerror_handler: Fatal X
error - Restarting :0
Nov 12 12:26:54 localhost kernel: e100: eth0 NIC Link is Up 100 Mbps Full
duplex
Nov 12 12:26:54 localhost kernel: Debug: sleeping function called from
illegal context at mm/page_alloc.c:417
Nov 12 12:26:54 localhost kernel: Call Trace:
Nov 12 12:26:54 localhost kernel: [<c013f71a>] __alloc_pages+0x2ba/0x2c0
Nov 12 12:26:54 localhost kernel: [<c013a9d5>] get_vm_area+0x25/0x110
Nov 12 12:26:54 localhost kernel: [<c013adc7>] __vmalloc+0xc7/0x130
Nov 12 12:26:54 localhost kernel: [<c013ae50>] vmalloc+0x20/0x30
Nov 12 12:26:54 localhost kernel: [<e08ea915>] os_alloc_mem+0x55/0x70
[NVdriver]
Nov 12 12:26:54 localhost kernel: [<e08eb21d>]
os_map_kernel_space+0x59/0x90 [NVdriver]
Nov 12 12:26:54 localhost kernel: [<e08f8838>] __nvsym00052+0x10/0x24
[NVdriver]
Nov 12 12:26:54 localhost kernel: [<e097ccbe>] __nvsym02481+0x72/0x14c
[NVdriver]
Nov 12 12:26:54 localhost kernel: [<e097b9ee>] __nvsym00586+0x8e/0x160
[NVdriver]
Nov 12 12:26:54 localhost kernel: [<e09d6e80>] nv_linux_devices+0x0/0xc40
[NVdriver]
Nov 12 12:26:55 localhost kernel: [<e09d6e80>] nv_linux_devices+0x0/0xc40
[NVdriver]
Nov 12 12:26:55 localhost kernel: [<e09f1220>] __nvsym00194+0x0/0x160
[NVdriver]
Nov 12 12:26:55 localhost kernel: [<e08f9cb8>] __nvsym00584+0x5c/0xe0
[NVdriver]
Nov 12 12:26:55 localhost kernel: [<e08fa934>] rm_init_adapter+0xc/0x10
[NVdriver]
Nov 12 12:26:55 localhost kernel: [<e09d6e80>] nv_linux_devices+0x0/0xc40
[NVdriver]
Nov 12 12:26:55 localhost kernel: [<e08e8d46>] nv_kern_open+0x106/0x22e
[NVdriver]
Nov 12 12: