mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Mattia Dongili <malattia@linux.it>,
	Alan Stern <stern@rowland.harvard.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@suse.de>,
	linux-usb-devel@lists.sourceforge.net
Subject: Re: can't suspend on vaio sz (rc4 and rc5 are ok) [was Re: 2.6.22-rc4-mm2]
Date: Thu, 21 Jun 2007 00:03:29 +0200	[thread overview]
Message-ID: <200706210003.30536.rjw@sisk.pl> (raw)
In-Reply-To: <200706202250.04414.rjw@sisk.pl>

On Wednesday, 20 June 2007 22:50, Rafael J. Wysocki wrote:
> On Wednesday, 20 June 2007 17:38, Mattia Dongili wrote:
> > On Wed, Jun 20, 2007 at 01:40:18PM +0200, Rafael J. Wysocki wrote:
> > > On Wednesday, 20 June 2007 07:22, Mattia Dongili wrote:
> > > > On Wed, Jun 06, 2007 at 10:03:13PM -0700, Andrew Morton wrote:
> > > > > 
> > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc4/2.6.22-rc4-mm2/
> > > > 
> > > > Hello,
> > > > on this vaio sz72b I can't suspend if usb-storage is loaded. Bisecting
> > > > is becoming troublesome as different sets have slightly different
> > > > problems.
> > > > At one point (with the GREGKH usb stuff built) I had the kernel
> > > > reporting it cannot stop the usb-storage thread so I guess that
> > > > something later in the series made things worse (freezable workqueues?).
> > > > 
> > > > Clues?
> > > 
> > > Can you please try 2.6.22-rc5 with the patches from
> > > 
> > > http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc5/patches/
> > > 
> > > applied.  That should allow us to eliminate some suspects. ;-)
> > 
> > you're safe then! .22-rc5 + your suspend patch-set can suspend and
> > resume happily.
> 
> OK, thanks.  OTOH, that would have been less patches to check ... ;-)
> 
> I'll see if I can reproduce your problem here.

Yes, I can.  It's only necessary to load usb-storage (without any devices
actually using it) and it fails device_suspend() immediately (I don't think
it's freezer-related).

I've got the following trace from it:

usb_endpoint usbdev3.2_ep81: PM: suspend 0->1, parent 3-1:1.0 already 2
Suspending device 3-1:1.0
Suspending device usbdev3.2_ep00
Suspending device 3-1
Suspending device eth1
Suspending device eth0
Suspending device usbdev3.1
Suspending device usbdev3.1_ep81
Suspending device 3-0:1.0
Suspending device usbdev3.1_ep00
Suspending device usb3
hub 3-0:1.0: hub_suspend
ohci_hcd 0000:00:02.1: needs reinit!
usb usb3: suspend fail, err -16
usb usb3: 'global' suspend -16
hub 3-0:1.0: hub_resume
hub 3-0:1.0: activate --> -108
suspend_device(): usb_suspend+0x0/0x30() returns -16
Could not suspend device usb3: error -16
WARNING: at /home/rafael/src/mm/linux-2.6.22-rc4-mm2/drivers/usb/core/urb.c:293 usb_submit_urb()

Call Trace:
 [<ffffffff80409dd3>] usb_submit_urb+0x363/0x3b0
 [<ffffffff881e21cf>] :usbhid:hid_start_in+0x8f/0xb0
 [<ffffffff881e221a>] :usbhid:hid_resume+0x2a/0x30
 [<ffffffff8040c832>] usb_resume_interface+0x92/0x100
 [<ffffffff8040c93e>] usb_external_resume_device+0x9e/0x170
 [<ffffffff8040ca3b>] usb_resume+0x2b/0x40
 [<ffffffff803ed097>] resume_device+0x87/0x190
 [<ffffffff803ed239>] dpm_resume+0x99/0xc0
 [<ffffffff803ecef7>] device_suspend+0x147/0x190
 [<ffffffff803c1891>] tty_ldisc_deref+0x61/0x80
 [<ffffffff80268e1e>] hibernation_snapshot+0x3e/0xe0
 [<ffffffff802e7fce>] dnotify_parent+0x3e/0x90
 [<ffffffff8026c059>] snapshot_ioctl+0x379/0x540
 [<ffffffff8026bce0>] snapshot_ioctl+0x0/0x540
 [<ffffffff802b2b72>] do_ioctl+0x92/0xe0
 [<ffffffff802b2c33>] vfs_ioctl+0x73/0x2d0
 [<ffffffff804b2c7a>] trace_hardirqs_on_thunk+0x35/0x37
 [<ffffffff802b2f21>] sys_ioctl+0x91/0xb0
 [<ffffffff8020bc6e>] system_call+0x7e/0x83

usbhid 3-1:1.0: resume error -16
usb_endpoint usbdev3.2_ep81: PM: resume from 0, parent 3-1:1.0 still 2
input input4: PM: resume from 0, parent 3-1:1.0 still 2
Restarting tasks ... <7>hub 3-0:1.0: state 7 ports 3 chg 0000 evt 0000
hub 3-0:1.0: hub_port_status failed (err = -108)
hub 3-0:1.0: hub_port_status failed (err = -108)
hub 3-0:1.0: hub_port_status failed (err = -108)
done.
swsusp: Basic memory bitmaps freed

Greetings,
Rafael


-- 
"Premature optimization is the root of all evil." - Donald Knuth

  reply	other threads:[~2007-06-20 21:56 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-07  5:03 2.6.22-rc4-mm2 Andrew Morton
2007-06-07  6:42 ` 2.6.22-rc4-mm2 William Lee Irwin III
2007-06-07  6:51   ` 2.6.22-rc4-mm2 Andrew Morton
2007-06-07  6:55     ` 2.6.22-rc4-mm2 William Lee Irwin III
2007-06-07  7:01       ` 2.6.22-rc4-mm2 Andrew Morton
2007-06-07  7:04         ` 2.6.22-rc4-mm2 William Lee Irwin III
2007-06-07  7:05           ` 2.6.22-rc4-mm2 William Lee Irwin III
2007-06-07  7:19             ` 2.6.22-rc4-mm2 Andrew Morton
2007-06-07  7:34               ` 2.6.22-rc4-mm2 William Lee Irwin III
2007-06-07  7:11   ` 2.6.22-rc4-mm2 Paul Mundt
2007-06-07  9:19     ` 2.6.22-rc4-mm2 Manuel Lauss
2007-06-07  9:37       ` 2.6.22-rc4-mm2 Paul Mundt
2007-06-07  9:46         ` 2.6.22-rc4-mm2 Manuel Lauss
2007-06-07 20:01           ` 2.6.22-rc4-mm2 Adrian Bunk
2007-06-07 20:14             ` 2.6.22-rc4-mm2 Sam Ravnborg
2007-06-07 11:07 ` 2.6.22-rc4-mm2 Michal Piotrowski
2007-06-07 15:26   ` 2.6.22-rc4-mm2 Andrew Morton
2007-06-07 14:29 ` 2.6.22-rc4-mm2 Valdis.Kletnieks
2007-06-07 15:37 ` 2.6.22-rc4-mm2 - usb-storage Peter Zijlstra
2007-06-07 22:20   ` [usb-storage] " Alan Stern
2007-06-08  8:55     ` Peter Zijlstra
2007-06-08 14:16       ` Alan Stern
2007-06-08 16:30         ` Peter Zijlstra
2007-06-08 16:54           ` Alan Stern
2007-06-08 16:55             ` Peter Zijlstra
2007-06-14 22:47   ` Jeremy Fitzhardinge
2007-06-14 22:58     ` Peter Zijlstra
2007-06-14 23:20       ` Jeremy Fitzhardinge
2007-06-07 19:37 ` 2.6.22-rc4-mm2 Joseph Fannin
2007-06-07 20:31   ` 2.6.22-rc4-mm2 Andrew Morton
2007-06-07 21:46 ` 2.6.22-rc4-mm2: Assigning IP address fails Joseph Fannin
2007-06-07 22:06   ` Andrew Morton
2007-06-07 22:54     ` Herbert Xu
2007-06-08  1:35       ` David Miller
2007-06-12  0:07 ` 2.6.22-rc4-mm2: kvm compile breakage with X86_CMPXCHG64=n Adrian Bunk
2007-06-12  3:22   ` Dave Jones
2007-06-12 22:03     ` Andrew Morton
2007-06-12 22:16       ` Dave Jones
2007-06-12 22:43         ` Andrew Morton
2007-06-12 22:48           ` Dave Jones
2007-06-12 22:37       ` Adrian Bunk
2007-06-12  6:00   ` Avi Kivity
2007-06-12 11:07 ` [-mm patch] make cmdline_parse_kernelcore() static Adrian Bunk
2007-06-12 12:52   ` Mel Gorman
2007-06-12 11:07 ` [-mm patch] make mm/swap_prefetch.c:remove_from_swapped_list() static Adrian Bunk
2007-06-12 11:16   ` Con Kolivas
2007-06-12 23:03 ` [-mm patch] make drivers/acpi/osl.c:osi_linux static Adrian Bunk
2007-06-12 23:03 ` [-mm patch] drivers/acpi/processor_throttling.c: make 2 functions static Adrian Bunk
2007-06-12 23:03 ` [-mm patch] drivers/ata/sata_nv.c: make 3 " Adrian Bunk
2007-06-12 23:03 ` [-mm patch] make drivers/char/selection.c:store_utf8() static Adrian Bunk
2007-06-12 23:03 ` [-mm patch] drivers/cpuidle/governors/menu.c: make a struct static Adrian Bunk
2007-06-13  8:33 ` WARNING: at drivers/usb/core/urb.c:293 usb_submit_urb() [Was: 2.6.22-rc4-mm2] Jiri Slaby
2007-06-13  8:46   ` Jiri Slaby
2007-06-13  9:35 ` [Serial port bug?] was Re: 2.6.22-rc4-mm2 Reuben Farrelly
2007-06-14 22:15 ` [-mm patch] make fs/buffer.c:cont_expand_zero() static Adrian Bunk
2007-06-15  1:36   ` Nick Piggin
2007-06-14 22:15 ` [-mm patch] remove nobh_{prepare,commit}_write() Adrian Bunk
2007-06-26 20:32   ` Andrew Morton
2007-06-26 20:48     ` Dave Kleikamp
2007-06-26 21:23       ` Andrew Morton
2007-06-26 21:33         ` Randy Dunlap
2007-06-27  1:39           ` Nick Piggin
2007-06-14 22:15 ` [-mm patch] make fs/inode.c:wake_up_inode() static Adrian Bunk
2007-06-14 22:16 ` [-mm patch] make fs/libfs.c:simple_commit_write() static Adrian Bunk
2007-06-14 22:16 ` [-mm patch] fs/reiserfs/: cleanups Adrian Bunk
2007-06-15  1:37   ` Nick Piggin
2007-06-14 22:16 ` [-mm patch] make init/do_mounts.c:root_wait static Adrian Bunk
2007-06-14 22:16 ` [-mm patch] drivers/ide/ide-dma.c: unexport ide_set_dma Adrian Bunk
2007-06-16  0:18   ` Bartlomiej Zolnierkiewicz
2007-06-17 23:42 ` [-mm patch] arch/i386/video/fbdev.c should #include <asm/fb.h> Adrian Bunk
2007-06-18  4:52   ` Sam Ravnborg
2007-06-19 13:53 ` 2.6.22-rc4-mm2 J.A. Magallón
2007-06-19 14:34   ` 2.6.22-rc4-mm2 J.A. Magallón
2007-06-20  7:23     ` 2.6.22-rc4-mm2 Jiri Slaby
2007-06-20 21:54       ` 2.6.22-rc4-mm2 J.A. Magallón
2007-06-20  5:22 ` can't suspend on vaio sz (rc4 and rc5 are ok) [was Re: 2.6.22-rc4-mm2] Mattia Dongili
2007-06-20 11:40   ` Rafael J. Wysocki
2007-06-20 15:38     ` Mattia Dongili
2007-06-20 20:50       ` Rafael J. Wysocki
2007-06-20 22:03         ` Rafael J. Wysocki [this message]
2007-06-20 22:22           ` Rafael J. Wysocki
2007-06-21 15:28           ` Alan Stern
2007-06-21 19:39           ` Alan Stern
2007-06-21 21:49             ` Rafael J. Wysocki
2007-06-22  9:25               ` Mattia Dongili
2007-06-22 13:59                 ` Alan Stern
2007-06-24  5:27                   ` Mattia Dongili
2007-06-24  8:33                   ` it's iwl3945 [Re: " Mattia Dongili
2007-06-20 14:01   ` [linux-usb-devel] " Alan Stern
2007-06-20 14:12     ` Rafael J. Wysocki
2007-06-21 23:52 ` [-mm patch] mark calibrate_xor_blocks() __init Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706210003.30536.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=malattia@linux.it \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®