Bug 2039 - S3 resume - IDE fails - acer aspire 1301 laptop
S3 resume - IDE fails - acer aspire 1301 laptop
Status: REJECTED INSUFFICIENT_DATA
Product: IO/Storage
Classification: Unclassified
Component: IDE
i386 Linux
: P2 normal
Assigned To: Rafael J. Wysocki
:
: 2969 3662 4122 5604 (view as bug list)
Depends on:
Blocks: 7216
  Show dependency treegraph
 
Reported: 2004-02-06 15:46 UTC by Mickael Marchand
Modified: 2008-10-09 09:30 UTC (History)
7 users (show)

See Also:
Kernel Version: 2.6.23
Tree: Mainline
Regression: ---


Attachments
patch to invoke ACPI methods for IDE suspend/resume (8.56 KB, patch)
2005-11-08 19:50 UTC, Shaohua
Details | Diff
This is what dmesg says after resume (1.77 KB, text/plain)
2006-03-21 02:48 UTC, Meinhardt
Details
the version of the patch, which works in 2.6.15-2.6.16 (7.16 KB, patch)
2006-03-22 02:52 UTC, honkkis
Details | Diff
lspci -vv on vaio vgn t 140 p (10.35 KB, text/plain)
2006-03-28 12:06 UTC, Kim Nguyen
Details
hdparm -I /dev/hda on vaio vgn t 140 p (1.87 KB, text/plain)
2006-03-28 12:07 UTC, Kim Nguyen
Details
snapshot of the hangup when trying to hibernate (264.65 KB, image/jpeg)
2006-10-01 01:25 UTC, Albert Vilella
Details
Fix S3 resume for 2.6.18 - 2.6.18.2 kernels (7.13 KB, patch)
2006-11-11 03:38 UTC, honkkis
Details | Diff
the version of the patch, which works in 2.6.15-2.6.16 (with correct line numbers in the patch) (7.11 KB, patch)
2006-11-11 03:48 UTC, honkkis
Details | Diff
lspci -vv for sony vaio vgn fs415m (9.46 KB, text/plain)
2007-02-19 05:37 UTC, Damien Merenne
Details
hdparm -I for sony vaio vgn fs415m (2.17 KB, text/plain)
2007-02-19 05:39 UTC, Damien Merenne
Details
/var/log/dmesg after the hard reboot from a failed suspend (18.82 KB, text/x-log)
2007-10-20 09:07 UTC, Albert Vilella
Details

Description Mickael Marchand 2004-02-06 15:46:22 UTC
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
Comment 1 Albert Vilella 2004-10-29 10:20:08 UTC
The same happens to me with an Acer Aspire 1310: HDD problem when reviving from
sleep-to-ram.
Comment 2 Albert Vilella 2004-11-16 08:17:32 UTC
Still happens with stock FC3 kernel: 2.6.9-1.667
Comment 3 Shaohua 2005-08-17 23:22:31 UTC
Still an issue in 2.6.13?
Comment 4 Albert Vilella 2005-08-18 02:43:31 UTC
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
Comment 5 Shaohua 2005-11-08 19:50:07 UTC
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.
Comment 6 Yuan Hang 2005-11-29 02:48:25 UTC
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.
Comment 7 Shaohua 2005-12-22 20:46:59 UTC
*** Bug 2969 has been marked as a duplicate of this bug. ***
Comment 8 Shaohua 2005-12-22 20:47:13 UTC
*** Bug 3662 has been marked as a duplicate of this bug. ***
Comment 9 Shaohua 2005-12-22 20:50:20 UTC
*** Bug 4122 has been marked as a duplicate of this bug. ***
Comment 10 Albert Vilella 2005-12-23 02:18:10 UTC
Short question:

Has this patch already landed in the kernel? is it in 2.6.15?
Comment 11 Bartlomiej Zolnierkiewicz 2006-02-03 05:01:22 UTC
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.
Comment 12 Mickael Marchand 2006-02-21 14:31:11 UTC
Hi,

I can confirm it works fine on my Aspire 1301 using ubuntu's 2.6.15 kernel.

thanks !

Cheers,
Mik
Comment 13 Mickael Marchand 2006-02-21 14:33:32 UTC
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
Comment 14 Andriy Ivasenko 2006-03-10 13:15:37 UTC
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. 
Comment 15 Meinhardt 2006-03-21 02:48:19 UTC
Created attachment 7626 [details]
This is what dmesg says after resume
Comment 16 honkkis 2006-03-22 02:47:40 UTC
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)
Comment 17 honkkis 2006-03-22 02:52:19 UTC
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/
Comment 18 Andriy Ivasenko 2006-03-23 11:23:45 UTC
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
Comment 19 Kim Nguyen 2006-03-28 12:03:58 UTC
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.
Comment 20 Kim Nguyen 2006-03-28 12:06:35 UTC
Created attachment 7693 [details]
lspci -vv on vaio vgn t 140 p
Comment 21 Kim Nguyen 2006-03-28 12:07:39 UTC
Created attachment 7694 [details]
hdparm -I /dev/hda on vaio vgn t 140 p
Comment 22 Rafael J. Wysocki 2006-09-28 09:35:52 UTC
If this problem is not present in recent kernels (2.6.18 or above), please close
this entry.
Comment 23 Albert Vilella 2006-09-30 03:31:23 UTC
it is still there on acer aspire 13xx laptops
Comment 24 Rafael J. Wysocki 2006-09-30 12:58:10 UTC
Can you please try to suspend to disk?
Comment 25 Albert Vilella 2006-10-01 01:25:51 UTC
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.
Comment 26 Rafael J. Wysocki 2006-10-01 05:00:12 UTC
Thanks.  This looks like an ACPI-related issue to me.

Apparently, something in irqrouter_resume() goes awry.
Comment 27 Albert Vilella 2006-10-05 01:06:05 UTC
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.
>

Comment 28 Rafael J. Wysocki 2006-10-06 08:07:12 UTC
Well, this is a low-level stuff.  I'm afraid the only method of debugging is 
hacking the code.
Comment 29 honkkis 2006-11-11 03:38:38 UTC
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.
Comment 30 honkkis 2006-11-11 03:48:23 UTC
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.
Comment 31 Rafael J. Wysocki 2006-11-13 10:48:08 UTC
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?
Comment 32 Damien Merenne 2007-02-19 05:34:55 UTC
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.
Comment 33 Damien Merenne 2007-02-19 05:37:40 UTC
Created attachment 10458 [details]
lspci -vv for sony vaio vgn fs415m
Comment 34 Damien Merenne 2007-02-19 05:39:06 UTC
Created attachment 10459 [details]
hdparm -I for sony vaio vgn fs415m
Comment 35 Rafael J. Wysocki 2007-05-30 11:33:46 UTC
What is the current status of this bug?
Comment 36 Alan 2007-06-05 09:47:29 UTC
Various bits of ACPI support are in kernel, so should be closable fairly soon
for all cases
Comment 37 Len Brown 2007-08-18 23:45:23 UTC
*** Bug 5604 has been marked as a duplicate of this bug. ***
Comment 38 Rafael J. Wysocki 2007-09-23 05:04:33 UTC
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.
Comment 39 Rafael J. Wysocki 2007-10-12 13:15:21 UTC
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.]
Comment 40 Albert Vilella 2007-10-20 09:06:41 UTC
I still cannot suspend with with 2.6.23. /var/log/dmesg attached
Comment 41 Albert Vilella 2007-10-20 09:07:23 UTC
Created attachment 13216 [details]
/var/log/dmesg after the hard reboot from a failed suspend
Comment 42 Bartlomiej Zolnierkiewicz 2008-02-16 11:23:21 UTC
Any updates on the status of this bug?

Note You need to log in before you can comment on or make changes to this bug.