From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932190Ab0EBUO6 (ORCPT ); Sun, 2 May 2010 16:14:58 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:36148 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753974Ab0EBUO4 convert rfc822-to-8bit (ORCPT ); Sun, 2 May 2010 16:14:56 -0400 From: "Rafael J. Wysocki" To: Bruno =?utf-8?q?Pr=C3=A9mont?= Subject: Re: s2ram slow (radeon) / failing (usb) Date: Sun, 2 May 2010 22:16:05 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.34-rc6-rjw; KDE/4.3.5; x86_64; ; ) Cc: Alan Stern , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, pm list References: <20100502155653.68fc3643@neptune.home> <20100502220628.0728d8d4@neptune.home> In-Reply-To: <20100502220628.0728d8d4@neptune.home> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Message-Id: <201005022216.05641.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 02 May 2010, Bruno Prémont wrote: > On Sun, 02 May 2010 Alan Stern wrote: > > On Sun, 2 May 2010, Bruno [UTF-8] Prémont wrote: > > > On a IEI Kino 690S1 I'm having a hard time to get s2ram running. > > > It freezes during device suspend (unless I rmmod everything USB > > > related) - usb fails even in pm_test case 'devices'. > > > > > > When the system is able to suspend it takes an eternity (more than 3 > > > minutes to wake-up, the radeon apparently being responsible for quite > > > a big share of that slowness. > > > > > > > > > During resume early it looks like every PCI access needs about a second, > > > and there are a few cases where during lots of seconds nothing seems to > > > happen and the first event following is related to radeon. > > > > > > The kernel used is todays Linus's tree at commit be1066bbcd443a65df312fdecea7e4959adedb45 > > > with Dave's drm-linus and drm-radeon-testing applied on top. > > > > > > Note, I've not been able to suspend to RAM properly recently (last one > > > that worked correctly but resumed without graphics was some-when during > > > 2.6.2x, before KMS) > > > Since then the system would either fail suspend or resume. > > > > > > Manual changes I applied in order to find out some context information: > > > - add a few debugging printk's to ata/ahci as that was the last entry > > > on serial console for freezing suspends (that one succeeded but > > > following step never completed, from suspend_prepare that would have > > > been USB => unload usb before suspend) > > > - strip "if EMBEDED" from CONFIG_SERIAL_8250_PNP and disabled it so serial > > > console would continue working as long as possible and output suspend > > > progress (resume output happens only very late) > > > > > > Is there some additional information I could gather in order do help > > > improving s2ram on this system? > > > - get it to suspend with usb loaded (ohci + ehci) > > > - get it to resume a reasonable speed > > > > There's no way to fix the USB problem without knowing what goes wrong. > > Let's see how far you get before the system freezes on a kernel with > > CONFIG_USB_DEBUG enabled. > > Am I missing something? > > I've enabled CONFIG_USB_DEBUG but don't see any additional module parameter > nor anything extra to toggle and I don't get more output than without it. > > Device suspend (pm_test = device) works well when there is no USB device > connected, but with USB keyboard I get the freeze (though the keyboard > is still usable, e.g. CAPS key works and I can issue SYSRQ commands). > > When I issue sysreq-t, I find the following suspicious entry: > [ 669.112505] usbhid_resume D ffff88007a085fd8 0 1145 2 0x00000000 > [ 669.112505] ffff88007a085e20 0000000000000046 ffff88007a085fd8 ffff88007c536820 > [ 669.112505] ffff88007a085fd8 ffff88007a085fd8 00000000000129c0 00000000000129c0 > [ 669.112505] ffff88007c536820 ffff88007cf3f040 ffff88007a085fd8 ffff88007a085fd8 > [ 669.112505] Call Trace: > [ 669.112505] [] refrigerator+0x95/0xf0 > [ 669.112505] [] worker_thread+0xc6/0x1e0 > [ 669.112505] [] ? autoremove_wake_function+0x0/0x40 > [ 669.112505] [] ? worker_thread+0x0/0x1e0 > [ 669.112505] [] kthread+0x8e/0xa0 > [ 669.112505] [] kernel_thread_helper+0x4/0x10 > [ 669.112505] [] ? kthread+0x0/0xa0 > [ 669.112505] [] ? kernel_thread_helper+0x0/0x10 > > Except for that one there are a few async/* tasks waiting. It looks like the freezer fails on your system. How much time did you wait for the failig "pm_test = device" to recover? Rafael