This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ESATA continue resetting issue

When we plug in  ESATA disk on DM816X platform, we found some error logs as below

 

[root@/]# ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen

ata1: irq_stat 0x00000040, connection status changed

ata1: SError: { CommWake DevExch }

ata1: hard resetting link

ata1: SATA link down (SStatus 0 SControl 300)

ata1: EH complete

ata1: exception Emask 0x10 SAct 0x0 SErr 0x4050002 action 0xe frozen

ata1: irq_stat 0x00000040, connection status changed

ata1: SError: { RecovComm PHYRdyChg CommWake DevExch }

ata1: hard resetting link

ata1: link is slow to respond, please be patient (ready=0)

ata1: softreset failed (device not ready)

ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)

ata1.00: qc timeout (cmd 0x27)

ata1.00: failed to read native max address (err_mask=0x4)

ata1.00: HPA support seems broken, skipping HPA handling

ata1: hard resetting link

ata1: softreset failed (device not ready)

ata1: softreset failed (device not ready)

ata1: hard resetting link

ata1: link is slow to respond, please be patient (ready=0)

ata1: softreset failed (device not ready)

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

ata1.00: ATA-8: WDC WD20EURS-73S48Y0, 51.0AB51, max UDMA/133

ata1.00: 3907029168 sectors, multi 0: LBA48

ata1.00: configured for UDMA/133

ata1: EH complete

scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EURS-73S 51.0 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)

sd 0:0:0:0: [sda] 4096-byte physical blocks

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

sd 0:0:0:0: Attached scsi generic sg0 type 0

 sda: sda1

sd 0:0:0:0: [sda] Attached SCSI disk

 

after mount  ESATA disk ,  I  used command “df”,  the serial log show as below

 

[root@/]# df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/root                65536     45028     20508  69% /

devtmpfs                116340         0    116340   0% /dev

mdev                    116340         0    116340   0% /dev

tmpfs                   116340         0    116340   0% /tmp

/dev/mtdblock4            8192       628      7564   8% /mnt/flash

tmpfs                   116340        20    116320   0% /mnt/flash/var/run

/dev/mtdblock8          111104      2728    108376   2% /mnt/work

ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x280100 action 0x6 frozen

ata1.00: irq_stat 0x08000000, interface fatal error

ata1: SError: { UnrecovData 10B8B BadCRC }

ata1.00: failed command: READ DMA

ata1.00: cmd c8/00:80:b6:7c:04/00:00:00:00:00/e0 tag 0 dma 65536 in

         res 50/00:00:b5:7c:04/00:00:00:00:00/e0 Emask 0x10 (ATA bus error)

ata1.00: status: { DRDY }

ata1: hard resetting link

ata1: softreset failed (1st FIS failed)

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

ata1.00: qc timeout (cmd 0xec)

ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)

ata1.00: revalidation failed (errno=-5)

ata1: hard resetting link

ata1: softreset failed (1st FIS failed)

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

ata1.00: qc timeout (cmd 0xec)

ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)

ata1.00: revalidation failed (errno=-5)

ata1: limiting SATA link speed to 1.5 Gbps

ata1: hard resetting link

ata1: link is slow to respond, please be patient (ready=0)

ata1: softreset failed (device not ready)

ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)

ata1.00: configured for UDMA/133

sd 0:0:0:0: [sda]  Result: hostbyte=0x00 driverbyte=0x08

sd 0:0:0:0: [sda]  Sense Key : 0xb [current] [descriptor]

Descriptor sense data with sense descriptors (in hex):

        72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00

        00 04 7c b5

sd 0:0:0:0: [sda]  ASC=0x0 ASCQ=0x0

sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 04 7c b6 00 00 80 00

end_request: I/O error, dev sda, sector 294070

ata1: EH complete

/dev/sda1            1952560496   4096528 1948463968   0% /mnt/sata

 

we using version is DVRRDK_01.09.00.16 

  • In fact ,  when we use SATA interface instead of ESTA,  we encourage the same problem.

    when the interface is SATA,  we continue to write any data without interval,  after some hours , we will see below error log

    ata2.00: failed to read SCR 1 (Emask=0x40)

    ata2.01: failed to read SCR 1 (Emask=0x40)

    ata2.02: failed to read SCR 1 (Emask=0x40)

    ata2.03: failed to read SCR 1 (Emask=0x40)

    ata2.04: failed to read SCR 1 (Emask=0x40)

    ata2.15: exception Emask 0x10 SAct 0x0 SErr 0x400101 action 0x6 frozen

    ata2.15: irq_stat 0x08000000, interface fatal error

    ata2.15: SError: { RecovData UnrecovData Handshk }

    ata2.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozen

    ata2.01: exception Emask 0x100 SAct 0x11 SErr 0x0 action 0x6 frozen

    ata2.01: failed command: WRITE FPDMA QUEUED

    ata2.01: cmd 61/00:00:7a:49:58/04:00:08:00:00/40 tag 0 ncq 524288 out

             res 40/00:00:7a:49:58/00:00:08:00:00/40 Emask 0x100 (unknown error)

    ata2.01: status: { DRDY }

    ata2.01: failed command: WRITE FPDMA QUEUED

    ata2.01: cmd 61/00:20:7a:45:58/04:00:08:00:00/40 tag 4 ncq 524288 out

             res 40/00:00:7a:49:58/00:00:08:00:00/40 Emask 0x100 (unknown error)

    ata2.01: status: { DRDY }

    ata2.02: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozen

    ata2.03: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozen

    ata2.04: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozen

    ata2.15: hard resetting link

    ata2.15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

    ata2.00: hard resetting link

    ata2.00: SATA link down (SStatus 0 SControl 320)

    ata2.01: hard resetting link

    ata2.01: SATA link up 3.0 Gbps (SStatus 123 SControl 320)

    ata2.02: hard resetting link

    ata2.02: SATA link down (SStatus 0 SControl 320)

    ata2.03: hard resetting link

    ata2.03: SATA link down (SStatus 0 SControl 320)

    ata2.04: hard resetting link

    ata2.04: SATA link down (SStatus 0 SControl 320)

    ata2.01: configured for UDMA/100

    ata2: EH complete

    My test cpu include DM8168  and DM8165 ,  My test PSP  version include 04.00.02.14 and 04.00.01.13