Bug 5805

Summary: sleeping function called from invalid context at include/asm/semaphore.h:99
Product: ACPI Reporter: Jochen Hein (jochen)
Component: Power-Sleep-WakeAssignee: acpi_power-sleep-wake
Status: REJECTED DUPLICATE    
Severity: normal    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.15-rc7 Subsystem:
Regression: --- Bisected commit-id:

Description Jochen Hein 2006-01-01 01:09:57 UTC
Distribution: Debian/sarge
Hardware Environment: IBM Thinkpad R40

Problem Description:
When going to sleep (suspend to disk) I get the following syslog after resume:
Debug: sleeping function called from invalid context at
include/asm/semaphore.h:99
in_atomic():0, irqs_disabled():1
 [<c010387f>] dump_stack+0x16/0x18
 [<c011a75f>] __might_sleep+0x90/0x98
 [<c01ece31>] acpi_os_wait_semaphore+0xf5/0x1c7
 [<c0214af4>] acpi_ut_acquire_mutex+0x62/0xe9
 [<c021064a>] acpi_ut_track_allocation+0x3c/0x125
 [<c02104bb>] acpi_ut_callocate_and_track+0x4f/0x7e
 [<c02101f6>] acpi_ut_initialize_buffer+0x4a/0x96
 [<c020b242>] acpi_rs_create_byte_stream+0xb4/0x15a
 [<c020d1e3>] acpi_rs_set_srs_method_data+0x37/0x124
 [<c020c207>] acpi_set_current_resources+0x68/0x8e
 [<c022050a>] acpi_pci_link_set+0x178/0x293
 [<c0220e22>] acpi_pci_link_resume+0x46/0x97
 [<c0220eb8>] irqrouter_resume+0x45/0x85
 [<c026fa37>] __sysdev_resume+0x16/0x71
 [<c026fd07>] sysdev_resume+0x37/0x6e
 [<c0273d73>] device_power_up+0x8/0xf
 [<c013321b>] swsusp_suspend+0x7e/0x86
 [<c0133ad5>] pm_suspend_disk+0x46/0xa6
 [<c01321a2>] enter_state+0x4b/0xb2
 [<c013231f>] state_store+0x81/0x9a
 [<c017e48f>] subsys_attr_store+0x21/0x2a
 [<c017e692>] flush_write_buffer+0x25/0x2a
 [<c017e6dc>] sysfs_write_file+0x45/0x67
 [<c0151c97>] vfs_write+0xa2/0x142
 [<c0151dd2>] sys_write+0x3a/0x61
 [<c0102abd>] syscall_call+0x7/0xb
PM: Image restored successfully.
Comment 1 Shaohua 2006-01-11 18:55:15 UTC

*** This bug has been marked as a duplicate of 3469 ***