SATA LPM issue - ATA error in logs 'frozen'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

After upgrading kernel from 4.15.9-1 to 4.16.3-1 (Arch Linux) my
router started responding very slowly.  These message were repeatedly
showing up in the logs:

  Apr 23 10:21:43 link kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x50000 action 0x6 frozen
  Apr 23 10:21:43 link kernel: ata1: SError: { PHYRdyChg CommWake }
  Apr 23 10:21:43 link kernel: ata1.00: failed command: WRITE DMA
  Apr 23 10:21:43 link kernel: ata1.00: cmd ca/00:08:60:5d:cd/00:00:00:00:00/e1 tag 9 dma 4096 out
                                        res 50/01:01:01:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  Apr 23 10:21:43 link kernel: ata1.00: status: { DRDY }
  Apr 23 10:21:43 link kernel: ata1.00: error: { AMNF }
  Apr 23 10:21:43 link kernel: ata1: hard resetting link
  Apr 23 10:21:43 link kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
  Apr 23 10:21:43 link kernel: ata1.00: configured for UDMA/133
  Apr 23 10:21:43 link kernel: ata1: EH complete

I noticed that the SATA LPM states had now been enabled, so tried
changing from 'med_power_with_dipm' to 'medium_power' and the problem
went away:

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

Perhaps there is something about my combination of controller/drive that is not compatible?

# hdparm -i /dev/sda

/dev/sda:

 Model=SAMSUNG MZMPC128HBFU-000MV, FwRev=CXM14M1Q, SerialNo=S19FNYAD394414
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=250069680
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-2,3,4,5,6,7

# cat /proc/cpuinfo | grep "model name"
model name	    : Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
model name	    : Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
model name	    : Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
model name	    : Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz

# cat /sys/class/scsi_device/0\:0\:0\:0/device/model
SAMSUNG MZMPC128

Regards,
Kevin Shanahan.
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux