Toshiba NB505: Failure to resume from hibernate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Seth Forshee | ||
Oneiric |
Fix Released
|
Medium
|
Seth Forshee |
Bug Description
After hibernation, rather than restoring to the state of the machine when it was hibernated the machine hangs for a while and then proceeds as if freshly booted. According to dmesg the hibernation image is found, but freezing tasks times out.
[ 2.595282] PM: Looking for hibernation image.
[ 2.793668] PM: Image signature found, resuming
[ 2.795148] PM: Marking nosave pages: 000000000009d000 - 0000000000100000
[ 2.795162] PM: Basic memory bitmaps created
[ 2.795168] PM: Preparing processes for restore.
[ 2.795173] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 2.810121] Freezing remaining freezable tasks ...
[ 2.936956] usb 1-4: USB disconnect, device number 2
[ 22.830106]
[ 22.830123] Freezing of tasks failed after 20.01 seconds (1 tasks refusing to freeze, wq_busy=0):
[ 22.830157] khubd D 0000000000000001 0 20 2 0x00800000
[ 22.830173] ffff88003c259a20 0000000000000046 ffffffff8183f119 ffff88003c2599e6
[ 22.830185] ffff88003c259fd8 ffff88003c259fd8 ffff88003c259fd8 0000000000012a40
[ 22.830198] ffff88003c378000 ffff88003cacc4d0 00000000000003f4 7fffffffffffffff
[ 22.830211] Call Trace:
[ 22.830231] [<ffffffff815ed
[ 22.830244] [<ffffffff815ef
[ 22.830254] [<ffffffff8114f
[ 22.830262] [<ffffffff815ef
[ 22.830270] [<ffffffff815ed
[ 22.830279] [<ffffffff81056
[ 22.830287] [<ffffffff815ed
[ 22.830301] [<ffffffffa0031
[ 22.830312] [<ffffffffa0031
[ 22.830322] [<ffffffff8144a
[ 22.830331] [<ffffffff813c4
[ 22.830339] [<ffffffff813c4
[ 22.830346] [<ffffffff813c3
[ 22.830355] [<ffffffff813c1
[ 22.830363] [<ffffffff81448
[ 22.830371] [<ffffffff81441
[ 22.830379] [<ffffffff81442
[ 22.830387] [<ffffffff81447
[ 22.830395] [<ffffffff81442
[ 22.830403] [<ffffffff81442
[ 22.830412] [<ffffffff81081
[ 22.830419] [<ffffffff81442
[ 22.830427] [<ffffffff81080
[ 22.830435] [<ffffffff815f8
[ 22.830444] [<ffffffff81080
[ 22.830451] [<ffffffff815f8
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-
ProcVersionSign
Uname: Linux 3.0.0-5-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC259 Analog [ALC259 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC259 Analog [ALC259 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xf0300000 irq 46'
Mixer name : 'Realtek ALC259'
Components : 'HDA:10ec0269,
Controls : 12
Simple ctrls : 8
Date: Wed Jul 13 12:16:54 2011
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110705.1)
MachineType: TOSHIBA TOSHIBA NB505
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.56
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/02/2011
dmi.bios.vendor: TOSHIBA
dmi.bios.version: V1.90
dmi.board.name: PBU00
dmi.board.vendor: TOSHIBA
dmi.board.version: 1.00
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.
dmi.modalias: dmi:bvnTOSHIBA:
dmi.product.name: TOSHIBA NB505
dmi.product.
dmi.sys.vendor: TOSHIBA
Changed in linux (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Oneiric): | |
status: | In Progress → Fix Committed |
The problem is that usb_storage is still scanning on the built-in SD card slot when tasks are frozen prior to restoring the hibernation image. The task that's doing the scanning is frozen, but khubd is processing a disconnect for the card reader that causes it to try and wait on the frozen task. Thus waiting for khubd to freeze times out, and as a result restoration of the hibernation image is aborted.
The attached patch makes the scanning task non-freezable. This has fixed the issue in light testing. I'm going to put it through a couple hundred S4 iterations now to further verify the fix.