Suspend to ram only working once, oops on second time

Bug #81667 reported by Wilco Baan Hofman
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.20 (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: linux-source-2.6.20

Suspending works only once on this NC6400 notebook.

By default the first time doesn't work either, given that the i8042 driver must be compiled as a module, not in kernel, otherwise the keyboard won't work on resume (without echo -n reconnect > /sys/bus/serio/devices/serio0/drvctl) and psmouse must be unloaded before suspending and reloaded on resume.

But, on the second time calling suspend I get this oops message about some NULL pointer:

kernel: [ 656.861882] Disabling non-boot CPUs ...
kernel: [ 657.002090] CPU 1 is now offline
kernel: [ 657.002335] SMP alternatives: switching to UP code
kernel: [ 657.002920] Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
kernel: [ 657.003217] [__drain_pages+43/112] __drain_pages+0x2b/0x70
kernel: [ 657.012971] PGD 56798067 PUD 552a2067 PMD 0
kernel: [ 657.022582] Oops: 0000 [1] SMP
kernel: [ 657.032183] CPU 0
kernel: [ 657.041686] Modules linked in: isofs udf battery ac thermal fan button arc4 ecb blkcipher ieee80211_crypt_wep vmnet(P) vmmon(P) binfmt_misc rfcomm l2cap i915 drm ipv6 acpi_cpufreq cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_ondemand freq_table cpufreq_conservative video sbs i2c_ec i2c_core dock container asus_acpi backlight nls_utf8 ntfs fuse lp snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss ide_cd snd_seq_midi snd_rawmidi snd_seq_midi_event joydev cdrom snd_seq snd_timer af_packet tsdev snd_seq_device pcmcia ata_generic tpm_infineon tpm hci_usb snd tpm_bios ieee80211_crypt bluetooth tifm_7xx1 iTCO_wdt soundcore ata_piix yenta_socket rsrc_nonstatic pcmcia_core tifm_core iTCO_vendor_support shpchp pci_hotplug parport_pc parport serio_raw intel_agp snd_page_alloc pcspkr evdev ext3 jbd mbcache sg sd_mod piix generic ahci libata scsi_mod usbcore processor vesafb capability commoncap vga16fb cfbcopyarea vgastate cfbimgblt cfbfil
kernel: rect fbcon tileblit font bitblit softcursor
kernel: [ 657.195347] Pid: 10469, comm: sleep.sh Tainted: P 2.6.20-5-generic #2
kernel: [ 657.206642] RIP: 0010:[__drain_pages+43/112] [__drain_pages+43/112] __drain_pages+0x2b/0x70
kernel: [ 657.228165] RSP: 0018:ffff810055311dc8 EFLAGS: 00010046
kernel: [ 657.238806] RAX: ffff81000000c700 RBX: 0000000000000046 RCX: ffff81000000c400
kernel: [ 657.249747] RDX: ffff81000000c000 RSI: ffff81007f5997d0 RDI: ffff81000000c380
kernel: [ 657.260657] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000002
kernel: [ 657.271500] R10: 000000000000042d R11: 0000000000000164 R12: ffff81000000c700
kernel: [ 657.282564] R13: 0000000000000000 R14: 0000000000000001 R15: ffff8100558fb0c0
kernel: [ 657.293854] FS: 00002ae2a49c4b00(0000) GS:ffffffff80541000(0000) knlGS:0000000000000000
kernel: [ 657.316323] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
kernel: [ 657.327417] CR2: 0000000000000000 CR3: 0000000056ac8000 CR4: 00000000000006e0
kernel: [ 657.338788] Process sleep.sh (pid: 10469, threadinfo ffff810055310000, task ffff81006ccb9860)
kernel: [ 657.361187] Stack: 0000000000000001 0000000000000001 0000000000000007 ffff81005621b140
kernel: [ 657.384339] 0000000000000003 ffffffff802c1a22 ffffffff80512c10 ffffffff8026a496
kernel: [ 657.407572] 0000000000000001 0000000000000001 0000000000000000 ffffffff802a9094
kernel: [ 657.419531] Call Trace:
kernel: [ 657.441744] [page_alloc_cpu_notify+18/48] page_alloc_cpu_notify+0x12/0x30
kernel: [ 657.452640] [notifier_call_chain+38/64] notifier_call_chain+0x26/0x40
kernel: [ 657.463593] [_cpu_down+356/544] _cpu_down+0x164/0x220
kernel: [ 657.474447] [disable_nonboot_cpus+140/288] disable_nonboot_cpus+0x8c/0x120
kernel: [ 657.485156] [enter_state+133/432] enter_state+0x85/0x1b0
kernel: [ 657.495719] [state_store+123/176] state_store+0x7b/0xb0
kernel: [ 657.506304] [sysfs_write_file+218/304] sysfs_write_file+0xda/0x130
kernel: [ 657.516702] [vfs_write+222/416] vfs_write+0xde/0x1a0
kernel: [ 657.527005] [sys_write+83/144] sys_write+0x53/0x90
kernel: [ 657.537061] [system_call+126/131] system_call+0x7e/0x83
kernel: [ 657.546930]
kernel: [ 657.556496]
kernel: [ 657.556497] Code: 8b 75 00 48 8d 55 10 31 c9 4c 89 e7 e8 44 fd ff ff c7 45 00
kernel: [ 657.589559] RIP [__drain_pages+43/112] __drain_pages+0x2b/0x70
kernel: [ 657.600325] RSP <ffff810055311dc8>
kernel: [ 657.610937] CR2: 0000000000000000

I'm running Ubuntu Feisty with the following kernel (on core 2 duo T5600 laptop):
Linux synlap 2.6.20-5-generic #2 SMP Sat Jan 6 09:44:32 UTC 2007 x86_64 GNU/Linux

Revision history for this message
Wilco Baan Hofman (wilco) wrote :

Some more info about my system.
It's an NC6400 RM100ET#ABH.

Attached is dmidecode and lspci -vv and lspci -vvn output.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Pliss separated files, dificulty read. Thanks.

Tim Gardner (timg-tpi)
Changed in linux-source-2.6.20:
assignee: nobody → timg-tpi
Changed in linux-source-2.6.20:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Tim Gardner (timg-tpi) wrote :

Please read and try the suggestions contained in :

https://wiki.ubuntu.com/KernelSuspendDebugging

Revision history for this message
Ben Collins (ben-collins) wrote :

Confirmed bugs need to be assigned to ubuntu-kernel-team.

Changed in linux-source-2.6.20:
assignee: timg-tpi → ubuntu-kernel-team
Revision history for this message
Christopher Hübner (huebnerc) wrote :

On my Samsung X20 XVM 1730 suspend to ram works also only once. After the second suspend no login is possible. On the console are no commands possible, always the same error message: scsi 0:0:0:0: rejecting I/O to dead device.
Why are my partitions now called sdxy? In edgy (and before) they were called hdxy...
Might that be the error?

Revision history for this message
Christopher Hübner (huebnerc) wrote :

On my Samsung X20 XVM 1730 suspend to ram works also only once. After the second suspend no login is possible. On the console are no commands possible, always the same error message: scsi 0:0:0:0: rejecting I/O to dead device.
Why are my partitions now called sdxy? In edgy (and before) they were called hdxy...
Might that be the error?

Revision history for this message
Torsten Spindler (tspindler) wrote :

Christopher, is this the same error you reported in bug 109762?

Revision history for this message
Wilco Baan Hofman (wilco) wrote :

For me this bug no longer occurs in 2.6.22 from ubuntu gutsy. I'm now explicitly unbinding/binding the i8042 driver on suspend and using newer x.org intel video drivers.

Revision history for this message
polzin (polzin) wrote :

The correct wiki page referenced by Tim Gardner on 2007-02-26 is probably https://wiki.ubuntu.com/DebuggingKernelSuspend

I had the same problems on X20 (on ubuntu Dapper it worked). With "suspend2" it works now again. For instructions, see:
https://wiki.ubuntu.com/Suspend2ForFeisty

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

*This is an automated response*

This bug report is being closed because we received no response to the previous request for information. Please reopen this if it is still an issue in the actively developed pre-release of Jaunty Jackalope 9.04 - http://cdimage.ubuntu.com/releases/jaunty . To reopen the bug report simply change the Status of the "linux" task back to "New".

Changed in linux:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.