Return-path: Received: from rv-out-0506.google.com ([209.85.198.235]:13366 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751362AbZCGImr (ORCPT ); Sat, 7 Mar 2009 03:42:47 -0500 Date: Sat, 7 Mar 2009 00:42:25 -0800 From: Brandon Philips To: Greg KH Cc: Alan Stern , laurent.pinchart@skynet.be, linux-media@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: S4 hang with uvcvideo causing "Unlink after no-IRQ? Controller is probably using the wrong IRQ." Message-ID: <20090307084225.GF6869@jenkins.ifup.org> References: <20090306191122.GA4799@jenkins.ifup.org> <20090307052611.GA15139@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090307052611.GA15139@suse.de> Sender: linux-media-owner@vger.kernel.org List-ID: On 21:26 Fri 06 Mar 2009, Greg KH wrote: > On Fri, Mar 06, 2009 at 11:11:22AM -0800, Brandon Philips wrote: > > 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. > > I don't think this is a uvc driver issue, it looks like all you are > trying to do is a usb control message when things hang. Indeed. When I was poking at this I tried to supress the control message coming out of the uvcvideo driver after the suspend was issued to see what would happen and the control messages after the resume locked up instead. Eh. > > 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 > > That's the control message timing out and trying to reap the urb. Yes. And like I said above it seems that after the suspend any usb_control_msg coming from the driver hangs no matter if it is during the suspend, thaw or resume. > But the problem is the khubd is asleep, from your log file: > > khubd D 0000000000000000 0 255 2 > ffff880037509d80 0000000000000046 ffff88007864ba80 ffffffff8088fcf8 > ffffffff80816f00 ffffffff80816f00 ffff8800375b0380 ffff8800375b06f8 > 0000000080816f00 ffff88007bb9c040 ffff8800375b0380 ffff8800375b06f8 > Call Trace: > [] ? default_spin_lock_flags+0x17/0x1a > [] refrigerator+0x170/0x1cf > [] hub_thread+0x1370/0x13bd [usbcore] > [] ? __switch_to+0xd4/0x4b3 > [] ? autoremove_wake_function+0x0/0x38 > [] ? hub_thread+0x0/0x13bd [usbcore] > [] kthread+0x49/0x76 > [] child_rip+0xa/0x20 > [] ? kthread+0x0/0x76 > [] ? child_rip+0x0/0x20 > > udevd is also stuck in the refrigerator, which seems wierd as well. > a.out is also stuck, is that your test program? Yes, a.out is the test program. 8-) > It looks like things die right after this message: > ehci_hcd 0000:00:1d.7: Unlink after no-IRQ? Controller is probably using the wrong IRQ. Cheers, Brandon