Distribution: debian sid Hardware Environment: laptop acer aspire 1301 Software Environment: Problem Description: s3 restore ok except hdd : dma timeout expiry (code 0x21) Steps to reproduce: I use klaptopdaemon, click on "suspend" it goes to S3. It goes to sleep mode normally and really fast (1 or 2 seconds), the power LED blinks. If I press the power button, it restores graphics, keyboard and mouse are working but can't execute any command because the hdd is not accessible (the HDD LED is always on and never blinks as it should). Kernel outputs DMA timeouts for the hdd... Cheers, Mik 00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 80) 00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] 00:0a.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller 00:11.0 ISA bridge: VIA Technologies, Inc. VT8231 [PCI-to-ISA Bridge] (rev 10) 00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06) 00:11.2 USB Controller: VIA Technologies, Inc. USB (rev 1e) 00:11.4 Bridge: VIA Technologies, Inc. VT8235 ACPI (rev 10) 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 40) 00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev 20) 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 51) 01:00.0 VGA compatible controller: S3 Inc. VT8636A [ProSavage KN133] AGP4X VGA Controller (TwisterK) (rev 01) dmesg regarding IDE : ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller at PCI slot 0000:00:11.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: VIA vt8231 (rev 10) IDE UDMA100 controller on pci0000:00:11.1 ide0: BM-DMA at 0x1100-0x1107, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0x1108-0x110f, BIOS settings: hdc:DMA, hdd:pio hda: IC25N020ATCS04-0, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hdc: MATSHITADVD-ROM SR-8177, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 128KiB hda: 39070080 sectors (20003 MB) w/1768KiB Cache, CHS=38760/16/63, UDMA(100) /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 hdc: ATAPI 24X DVD-ROM drive, 256kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20
The same happens to me with an Acer Aspire 1310: HDD problem when reviving from sleep-to-ram.
Still happens with stock FC3 kernel: 2.6.9-1.667
Still an issue in 2.6.13?
Apparently, Linux currently has no real support for setting up IDE interfaces on resume. Some machines are kind enough to set the IDE interface up themselves, but on others the HD won't recover. So I suppose this bug should be assigned to IDE people... See: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155102 https://bugzilla.ubuntu.com/show_bug.cgi?id=8159
Created attachment 6499 [details] patch to invoke ACPI methods for IDE suspend/resume Could you please try the attached patch and report it back? Let's see if the bug is caused by lack of invoking ACPI metthods.
My laptop HP nx6130 also has the problem on S3 resume. The kernel used is 2.6.14. I tried the patch on my platform and it solves the problem. Now S3 works.
*** Bug 2969 has been marked as a duplicate of this bug. ***
*** Bug 3662 has been marked as a duplicate of this bug. ***
*** Bug 4122 has been marked as a duplicate of this bug. ***
Short question: Has this patch already landed in the kernel? is it in 2.6.15?
VIA IDE driver had bug in tuning code which prevented resume from working, it was fixed ages ago (but original bugreport was 2.6.2-rc3-mm1). Please report whether vanilla 2.6.16-rc2 works for you.
Hi, I can confirm it works fine on my Aspire 1301 using ubuntu's 2.6.15 kernel. thanks ! Cheers, Mik
hmm just noticed this little error showing up in dmesg after restore : [4295054.759000] Thawing cpus ... [4295055.265000] ACPI-0307: *** Error: No installed handler for fixed event [00000002] but it does not seem to break anything. Mik
this patch doesn't fix the problem on my Sony Vaio notebook with i855 chipset. After S3 resume drive fails to spin up and there are messages about lost ide, dma expiry, etc. and finally in about 2 minutes ide reset starts the drive again. Drive itself is ok and resumes well under Windows XP. I can see this behaviour on kernels up to 2.6.15. There are other people complaining on the same issue on forums.
Created attachment 7626 [details] This is what dmesg says after resume
This bug affects also HP nx8220, and the attached patch fixes the problem! When will the patch go to the mainline kernel trunk?? (I have tested all kernels from 2.6.15.1-2.6.16)
Created attachment 7635 [details] the version of the patch, which works in 2.6.15-2.6.16 This is copied from: http://hehe.pl/drg/trash/nx8220-s3/
but it doesn't work on my sony vaio vgn-a190 notebook :( I have exactly the same dmesg after applying this patch as attached in #15
I confirm that the problem is still here after aplying the patch on my vaio vgn-t140p. What goes on is a little different in my case : - with only the patch applied, the hard drive won't spin up on resume and the laptop freeze after resume, when something try to access the hd (but until that time, everything is normal, display, running programs...). - with the patch applied and while forcing a drive reset on resume (with either hdparm -w, or a little C program which call HDIO_DRIVE_RESET ioctl (i also tried sending some commands with HDIO_DRIVE_CMD), I see the behaviour discribed in the dmesg attachment. The drive finaly resets after 2 minutes or so, and seems to work fine afterwards. However this is not the case 100% of the time. A complete freeze on resume still happens from time to time. This seems to be an issue with various models of vaio laptops. I add the output of lspci -vv and hdparm -I /dev/hda. I can add further informations, just ask.
Created attachment 7693 [details] lspci -vv on vaio vgn t 140 p
Created attachment 7694 [details] hdparm -I /dev/hda on vaio vgn t 140 p
If this problem is not present in recent kernels (2.6.18 or above), please close this entry.
it is still there on acer aspire 13xx laptops
Can you please try to suspend to disk?
Created attachment 9138 [details] snapshot of the hangup when trying to hibernate snapshot of the hangup when trying to hibernate similar error message appears when trying to wake up from sleep.
Thanks. This looks like an ACPI-related issue to me. Apparently, something in irqrouter_resume() goes awry.
Can I provide any extra information to help here? Can I try any kernel option to solve this? On 10/1/06, bugme-daemon@bugzilla.kernel.org <bugme-daemon@bugzilla.kernel.org> wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=2039 > > > > > > ------- Additional Comments From rjwysocki@sisk.pl 2006-10-01 05:00 ------- > Thanks. This looks like an ACPI-related issue to me. > > Apparently, something in irqrouter_resume() goes awry. > > > ------- You are receiving this mail because: ------- > You are on the CC list for the bug, or are watching someone who is. >
Well, this is a low-level stuff. I'm afraid the only method of debugging is hacking the code.
Created attachment 9458 [details] Fix S3 resume for 2.6.18 - 2.6.18.2 kernels I still have this problem (HP nx8220, Kubuntu 6.10, vanilla kernel 2.6.18.2), and the earlier version of the patch does not compile, so I fixed the patch. It is included in the submission.
Created attachment 9459 [details] the version of the patch, which works in 2.6.15-2.6.16 (with correct line numbers in the patch) with correct line numbers in the patch.
Is the patch from Comment #30 needed to fix this issue? If so, could you please post it to linux-kernel@vger.kernel.org for review?
I think I'm having the same problem here on a sony vaio vgn-fs415m with 2.6.18.6 under Ubuntu Edgy. When resuming, graphic does not comes up, hdd led stays on and the fan starts as if the cpu was in an infinite loop burning cycles. I tried booting with no modules loaded and just ide + ext3 compiled in, but the same thing happens. I attach lspci nad hdparm -I to this bug.
Created attachment 10458 [details] lspci -vv for sony vaio vgn fs415m
Created attachment 10459 [details] hdparm -I for sony vaio vgn fs415m
What is the current status of this bug?
Various bits of ACPI support are in kernel, so should be closable fairly soon for all cases
*** Bug 5604 has been marked as a duplicate of this bug. ***
Everyone having these problems, please test the latest -rc kernel (2.6.23-rc7 as of today) with the "old" IDE drivers and BLK_DEV_IDEACPI set in .config and report back.
Everyone having these problems, please test 2.6.23 and report back. [I'm going to stop tracking this bug in 2 weeks if there's no response till then.]
I still cannot suspend with with 2.6.23. /var/log/dmesg attached
Created attachment 13216 [details] /var/log/dmesg after the hard reboot from a failed suspend
Any updates on the status of this bug?