Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disable SATA LPM (Link Power Management)

196 views
Skip to first unread message

basti

unread,
Apr 6, 2018, 1:50:05 PM4/6/18
to
Hello,
is there a way to disable LPM for mv_sata driver by commandline?

Best Regards,
Basti

Dan Ritter

unread,
Apr 6, 2018, 2:30:05 PM4/6/18
to
On Fri, Apr 06, 2018 at 07:05:00PM +0200, basti wrote:
> Hello,
> is there a way to disable LPM for mv_sata driver by commandline?
>

per-disk, not per-driver:

echo STATE > /sys/class/scsi_host/host0/link_power_management_policy


where STATE can be:

max_performance
medium_power
med_power_with_dipm
min_power WARNING: possible data loss

med_power_with_dipm appears in kernel 4.15.

In general, none of these are good ideas. Make backups. Consider
suspend-to-ram and suspend-to-disk if you don't need the system
active.

-dsr-

basti

unread,
Apr 6, 2018, 3:10:05 PM4/6/18
to


On 06.04.2018 20:20, Dan Ritter wrote:
> On Fri, Apr 06, 2018 at 07:05:00PM +0200, basti wrote:
>> Hello,
>> is there a way to disable LPM for mv_sata driver by commandline?
>>
>
> per-disk, not per-driver:

thanks a lot, there seem to be problem with the driver mv_sata so i need
to disable than before system is detect the drives.

kernel till 3.8.12-1 work, after that there are problems like

[ 119.129462] ata2: hard resetting link
[ 119.641981] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 119.782055] ata2.00: configured for UDMA/33
[ 119.786288] ata2: EH complete
[ 119.789502] ata2.00: exception Emask 0x10 SAct 0x1 SErr 0x0 action
0x6 frozen
[ 119.796682] ata2.00: edma_err_cause=00000280 pp_flags=00000003,
parity error, EDMA self-disable
[ 119.805407] ata2.00: failed command: READ FPDMA QUEUED
[ 119.810573] ata2.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0
ncq 4096 in
[ 119.810573] res 50/00:ff:ff:ff:ff/00:ff:ff:ff:ff/ff Emask
0x10 (ATA bus error)
[ 119.825777] ata2.00: status: { DRDY }

Dan Ritter

unread,
Apr 6, 2018, 4:10:04 PM4/6/18
to
Hope this helps.

If it doesn't, I recommend replacing SATA cables.

-dsr-
0 new messages