0

I am currently running a fresh installation of Ubuntu 18.04 and trying to get things working. Because the computer is often running for long time, I tried to optimize power usage by using powertop. Unfortunately, this results in errors.

At first, setting the power management for the USB mouse to auto by echo 'auto' > '/sys/bus/usb/devices/2-1.2/power/control'; returns in a freeze of the mouse. Running echo 'on' > '/sys/bus/usb/devices/2-1.2/power/control'; makes the mouse usable again, however, this should not happen.

Furthermore, Enable SATA link power management for host1, so echo 'min_power' > '/sys/class/scsi_host/host1/link_power_management_policy'; results in a freeze of the whole system and the following output in syslog:

May  4 13:58:19 reichelt-desktop kernel: [  339.804513] ata2.01: qc timeout (cmd 0xef)
May  4 13:58:19 reichelt-desktop kernel: [  339.804517] ata2.01: failed to enable DIPM, Emask 0x4
May  4 13:58:19 reichelt-desktop kernel: [  339.804526] ata2.00: hard resetting link
May  4 13:58:19 reichelt-desktop kernel: [  340.121479] ata2.01: hard resetting link
May  4 13:58:19 reichelt-desktop kernel: [  340.592517] ata2.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May  4 13:58:19 reichelt-desktop kernel: [  340.592533] ata2.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May  4 13:58:19 reichelt-desktop kernel: [  340.595171] ata2.01: supports DRM functions and may not be fully accessible
May  4 13:58:19 reichelt-desktop kernel: [  340.605113] ata2.00: configured for UDMA/133
May  4 13:58:19 reichelt-desktop kernel: [  340.607727] ata2.01: supports DRM functions and may not be fully accessible
May  4 13:58:19 reichelt-desktop kernel: [  340.609677] ata2.01: configured for UDMA/133
May  4 13:58:30 reichelt-desktop kernel: [  350.812778] ata2.01: qc timeout (cmd 0xef)
May  4 13:58:30 reichelt-desktop kernel: [  350.812782] ata2.01: failed to enable DIPM, Emask 0x4
May  4 13:58:30 reichelt-desktop kernel: [  350.812784] ata2.00: disabling LPM on the link
May  4 13:58:30 reichelt-desktop kernel: [  350.812789] ata2.01: limiting SATA link speed to 1.5 Gbps
May  4 13:58:30 reichelt-desktop kernel: [  350.812792] ata2.01: limiting speed to UDMA/133:PIO3
May  4 13:58:30 reichelt-desktop kernel: [  350.812800] ata2.00: hard resetting link
May  4 13:58:30 reichelt-desktop kernel: [  351.124713] ata2.01: hard resetting link
May  4 13:58:30 reichelt-desktop kernel: [  351.600891] ata2.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May  4 13:58:30 reichelt-desktop kernel: [  351.600906] ata2.01: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
May  4 13:58:30 reichelt-desktop kernel: [  351.603628] ata2.01: supports DRM functions and may not be fully accessible
May  4 13:58:30 reichelt-desktop kernel: [  351.611374] ata2.00: configured for UDMA/133
May  4 13:58:30 reichelt-desktop kernel: [  351.614176] ata2.01: supports DRM functions and may not be fully accessible
May  4 13:58:30 reichelt-desktop kernel: [  351.616214] ata2.01: configured for UDMA/133
May  4 13:58:30 reichelt-desktop kernel: [  351.616228] ata2: EH complete
May  4 13:59:01 reichelt-desktop kernel: [  382.077251] ata2: lost interrupt (Status 0x0)
May  4 13:59:01 reichelt-desktop kernel: [  382.077275] ata2.01: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 frozen
May  4 13:59:01 reichelt-desktop kernel: [  382.077283] ata2.01: failed command: READ DMA EXT
May  4 13:59:01 reichelt-desktop kernel: [  382.077295] ata2.01: cmd 25/00:08:70:af:c7/00:00:1c:00:00/f0 tag 0 dma 4096 in
May  4 13:59:01 reichelt-desktop kernel: [  382.077295]          res 40/00:00:00:4f:c2/00:00:00:00:00/10 Emask 0x4 (timeout)
May  4 13:59:01 reichelt-desktop kernel: [  382.077300] ata2.01: status: { DRDY }
May  4 13:59:01 reichelt-desktop kernel: [  382.077310] ata2.00: hard resetting link
May  4 13:59:01 reichelt-desktop kernel: [  382.393993] ata2.01: hard resetting link
May  4 13:59:02 reichelt-desktop kernel: [  382.869335] ata2.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May  4 13:59:02 reichelt-desktop kernel: [  382.869347] ata2.01: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
May  4 13:59:02 reichelt-desktop kernel: [  382.889622] ata2.01: supports DRM functions and may not be fully accessible
May  4 13:59:02 reichelt-desktop kernel: [  382.899642] ata2.00: configured for UDMA/133
May  4 13:59:02 reichelt-desktop kernel: [  382.902282] ata2.01: supports DRM functions and may not be fully accessible
May  4 13:59:02 reichelt-desktop kernel: [  382.904257] ata2.01: configured for UDMA/133
May  4 13:59:02 reichelt-desktop kernel: [  382.904274] ata2: EH complete

Host 1 seems to handle 2 disks:

lsscsi --verbose
[1:0:0:0]    disk    ATA      TOSHIBA DT01ACA1 A750  /dev/sda 
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0]
[1:0:1:0]    disk    ATA      Samsung SSD 850  3B6Q  /dev/sdb 
  dir: /sys/bus/scsi/devices/1:0:1:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:1/1:0:1:0]
[3:0:0:0]    disk    ATA      ST6000AS0002-1N9 AR17  /dev/sdc 
  dir: /sys/bus/scsi/devices/3:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.5/ata4/host3/target3:0:0/3:0:0:0]

I tried to build autoconf from https://github.com/fenrus75/powertop, but unfortunately, autoconf && ./configure && ./make results in

./configure: line 2378: syntax error near unexpected token `newline'
./configure: line 2378: `AM_INIT_AUTOMAKE('

I tried both with Ubuntu 17.10 and 4.16 mainline kernel and the problems did not appear. The SATA-configuration also caused output of the following lines in syslog:

May  4 14:20:47 reichelt-desktop kernel: [  271.451712] ata2.01: qc timeout (cmd 0xef)
May  4 14:20:47 reichelt-desktop kernel: [  271.451717] ata2.01: failed to enable DIPM, Emask 0x4
May  4 14:20:47 reichelt-desktop kernel: [  271.451726] ata2.00: hard resetting link
May  4 14:20:48 reichelt-desktop kernel: [  271.771758] ata2.01: hard resetting link
May  4 14:20:48 reichelt-desktop kernel: [  272.247795] ata2.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May  4 14:20:48 reichelt-desktop kernel: [  272.247807] ata2.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May  4 14:20:48 reichelt-desktop kernel: [  272.250471] ata2.01: supports DRM functions and may not be fully accessible
May  4 14:20:48 reichelt-desktop kernel: [  272.260746] ata2.00: configured for UDMA/133
May  4 14:20:48 reichelt-desktop kernel: [  272.263444] ata2.01: supports DRM functions and may not be fully accessible
May  4 14:20:48 reichelt-desktop kernel: [  272.265901] ata2.01: configured for UDMA/133

but the system kept fully running. Both errors persist if I run Ubuntu 18.04 with mainline kernel 4.16.3, so I assume that this is an Ubuntu issue. Are this known issues? How to handle this problems?

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.