Bug 41022

Summary: Macbook 3.1 harddisk freezes after suspend/resume
Product: ACPI Reporter: Michael Strobel (strobel.m)
Component: Power-Sleep-WakeAssignee: acpi_power-sleep-wake
Status: CLOSED DOCUMENTED    
Severity: high CC: rui.zhang
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 3.0,3.02,3.1-rc2 Subsystem:
Regression: No Bisected commit-id:
Attachments: lspci
dmesg
pm-suspend.log

Description Michael Strobel 2011-08-12 11:07:34 UTC
Created attachment 68692 [details]
lspci

Hello,

i'm running an archlinux on a Macbook 3.1 and got a problem with sleep/resume. 

It runs kernel 3.0:

uname -a:

Linux archlinux 3.0-ARCH #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux



I'm using pm-tools (default configuration) and laptop-mode-tools to send my macbook to sleep and after resuming i got the following errors (shortend see attachment):


Aug 11 23:28:36 localhost kernel: [ 115.612306] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
Aug 11 23:28:36 localhost kernel: [ 115.612313] ata3.00: BMDMA stat 0x6
Aug 11 23:28:36 localhost kernel: [ 115.612318] ata3.00: failed command: READ DMA
Aug 11 23:28:36 localhost kernel: [ 115.612327] ata3.00: cmd c8/00:00:ba:9b:56/00:00:00:00:00/e9 tag 0 dma 131072 in
Aug 11 23:28:36 localhost kernel: [ 115.612329] res 51/84:01:00:00:00/84:00:00:00:00/e0 Emask 0x30 (host bus error)
Aug 11 23:28:36 localhost kernel: [ 115.612334] ata3.00: status: { DRDY ERR }
Aug 11 23:28:36 localhost kernel: [ 115.612337] ata3.00: error: { ICRC ABRT }
Aug 11 23:28:37 localhost kernel: [ 115.956326] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
Aug 11 23:28:37 localhost kernel: [ 115.956336] ata3.00: BMDMA stat 0x6
Aug 11 23:28:37 localhost kernel: [ 115.956344] ata3.00: failed command: READ DMA
Aug 11 23:28:37 localhost kernel: [ 115.956357] ata3.00: cmd c8/00:d0:da:fb:30/00:00:00:00:00/e0 tag 0 dma 106496 in
Aug 11 23:28:37 localhost kernel: [ 115.956360] res 51/84:01:00:00:00/84:00:00:00:00/e0 Emask 0x30 (host bus error)
Aug 11 23:28:37 localhost kernel: [ 115.956367] ata3.00: status: { DRDY ERR }
Aug 11 23:28:37 localhost kernel: [ 115.956372] ata3.00: error: { ICRC ABRT }

==========
Comment 1 Michael Strobel 2011-08-12 11:08:13 UTC
Created attachment 68702 [details]
dmesg
Comment 2 Michael Strobel 2011-08-12 11:18:13 UTC
Created attachment 68712 [details]
pm-suspend.log
Comment 3 Michael Strobel 2011-08-17 07:14:51 UTC
I upgraded to kernel 3.1-rc2, nothing changed.
Comment 4 Zhang Rui 2012-01-18 05:32:30 UTC
It's great that the kernel bugzilla is back.

Can you please verify if the problem still exists in the latest upstream
kernel?
Comment 5 Michael Strobel 2012-01-18 09:33:37 UTC
Hello!

I found out that the problem is related to the SATA controller, which is not in
AHCI mode. Adding setpci -d 8086:2828 90.b=40 in grub.cfg resolves the
problem.

for further information look at
https://wiki.archlinux.org/index.php/Solid_State_Drives

Booting with these parameters the suspend is working.