Return-path: Received: from wa-out-1112.google.com ([209.85.146.182]:27084 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753260AbZCFTMD (ORCPT ); Fri, 6 Mar 2009 14:12:03 -0500 Date: Fri, 6 Mar 2009 11:11:22 -0800 From: Brandon Philips To: laurent.pinchart@skynet.be, gregkh@suse.de Cc: linux-media@vger.kernel.org, linux-usb@vger.kernel.org Subject: S4 hang with uvcvideo causing "Unlink after no-IRQ? Controller is probably using the wrong IRQ." Message-ID: <20090306191122.GA4799@jenkins.ifup.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-media-owner@vger.kernel.org List-ID: Hello- When an UVC device is open and a S4 is attempted the thaw hangs (see the stack below). I don't see what the UVC driver is doing wrong to cause this to happen though. To make it quick to reproduce you can use init=/bin/bash and a little program to open up and setup the device: http://ifup.org/~philips/467317/v4l-open-sleep.c Here is a full log with some verbose debugging on: http://ifup.org/~philips/467317/pearl.log The driver acts fine when using s2ram suspend and pm debugging levels. On my Poweredge SC440 the S4 suspend restores the device properly but on my Lenovo x200s and this Intel test box it hangs. Cheers, Brandon Linux version 2.6.29-rc7-1-default (root@pearl) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #4 SMP Fri Mar 6 01:29:35 PST 2009 SysRq : Show Blocked State task PC stack pid father bash D ffff880078524c94 0 1 0 ffff88007bb9fae8 0000000000000082 0000000000000292 ffff88003747d140 ffffffff80816f00 ffffffff80816f00 ffff88007bb9c040 ffff88007bb9c3b8 0000000000000292 ffffffff80630350 ffff88003754d000 ffff880078524c80 Call Trace: [] ? kobject_put+0x47/0x4b [] ? default_spin_lock_flags+0x17/0x1a [] usb_kill_urb+0x9d/0xbd [usbcore] [] ? autoremove_wake_function+0x0/0x38 [] usb_start_wait_urb+0xd9/0x1c2 [usbcore] [] ? usb_init_urb+0x22/0x33 [usbcore] [] usb_control_msg+0x114/0x15b [usbcore] [] uvc_set_video_ctrl+0x134/0x184 [uvcvideo] [] uvc_commit_video+0xb/0xd [uvcvideo] [] uvc_video_resume+0x1e/0x58 [uvcvideo] [] __uvc_resume+0x99/0xa1 [uvcvideo] [] uvc_resume+0xb/0xd [uvcvideo] [] usb_resume_interface+0xdf/0x165 [usbcore] [] usb_resume_both+0x102/0x128 [usbcore] [] usb_external_resume_device+0x33/0x6e [usbcore] [] usb_resume+0x1b/0x1d [usbcore] [] usb_dev_thaw+0xe/0x10 [usbcore] [] pm_op+0xa4/0xe5 [] device_resume+0x137/0x47b [] hibernation_snapshot+0x1ba/0x1fa [] hibernate+0xc3/0x1a1 [] state_store+0x59/0xd8 [] kobj_attr_store+0x17/0x19 [] sysfs_write_file+0xdf/0x114 [] vfs_write+0xae/0x157 [] sys_write+0x47/0x70 [] system_call_fastpath+0x16/0x1b