2009-01-11 17:41:45

by Lukas Hejtmanek

[permalink] [raw]
Subject: Another libata error related to OCZ SSD

Hello,

I encountered another problem with the OCZ SSD disk. If I suspend to ram while
running from batteries, my disk disappears. I had no problem with suspends on
AC power.

I created a screenshot of dmesg mesages:
http://www.fi.muni.cz/~xhejtman/IMG_3221.JPG

--
Luk?? Hejtm?nek


2009-01-19 21:39:58

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: Another libata error related to OCZ SSD

(CCing ACPI and IDE).

On Sunday 11 January 2009, Lukas Hejtmanek wrote:
> Hello,
>
> I encountered another problem with the OCZ SSD disk. If I suspend to ram while
> running from batteries, my disk disappears. I had no problem with suspends on
> AC power.
>
> I created a screenshot of dmesg mesages:
> http://www.fi.muni.cz/~xhejtman/IMG_3221.JPG

2009-01-25 01:01:35

by Tejun Heo

[permalink] [raw]
Subject: Re: Another libata error related to OCZ SSD

Rafael J. Wysocki wrote:
> (CCing ACPI and IDE).
>
> On Sunday 11 January 2009, Lukas Hejtmanek wrote:
>> Hello,
>>
>> I encountered another problem with the OCZ SSD disk. If I suspend to ram while
>> running from batteries, my disk disappears. I had no problem with suspends on
>> AC power.
>>
>> I created a screenshot of dmesg mesages:
>> http://www.fi.muni.cz/~xhejtman/IMG_3221.JPG

Does the following command make any difference?

echo 0 > /sys/class/scsi_disk/h:c:i:l/manage_start_stop

The h:c:i:l part needs to be adjusted to point to the OCZ disk. lscsi
will show which value to use.

Thanks.

--
tejun

2009-01-25 10:59:18

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: Another libata error related to OCZ SSD

On Sun, Jan 25, 2009 at 10:00:43AM +0900, Tejun Heo wrote:
> Does the following command make any difference?
>
> echo 0 > /sys/class/scsi_disk/h:c:i:l/manage_start_stop
>
> The h:c:i:l part needs to be adjusted to point to the OCZ disk. lscsi
> will show which value to use.

No. I attached the complete dmesg.

Another observation, it does not happen if I change AHCI to compatibility mode
which results in using ata_piix instead of ahci driver.

So the problems appears to be with ahci driver, the ata_piix works fine.

--
Luk?? Hejtm?nek


Attachments:
(No filename) (546.00 B)
dmesg (88.20 kB)
Download all attachments

2009-01-25 11:09:07

by Lukas Hejtmanek

[permalink] [raw]
Subject: Re: Another libata error related to OCZ SSD

On Sun, Jan 25, 2009 at 10:00:43AM +0900, Tejun Heo wrote:
>
> Does the following command make any difference?
>
> echo 0 > /sys/class/scsi_disk/h:c:i:l/manage_start_stop
>
> The h:c:i:l part needs to be adjusted to point to the OCZ disk. lscsi
> will show which value to use.

Well, the real problem seems to be in touching link power management policy
(it did not happen with ata_piix driver thus the driver seemed to be ok)

If I touch power management with theses commands:
echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
echo medium_power > /sys/class/scsi_host/host0/link_power_management_policy

the suspend fails.

I always restore max_performance policy before the suspend.

--
Luk?? Hejtm?nek