I've recently staretd seeing the following errors, with the sata attached on our LS1043A custom board.
There has been no problem with ourhardware when running LSDK 18.04 (Ununtu 18.04 /w linux 4.6.79).
But, LS1043A board failed to initialize SATA SSD when running LSDK 21.08 (Ununtu 20.04 /w linux 5.10.35).
<< Kernle log >>
root@localhost:/home/wbpa/workspace/sh# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.35-dirty (edchoi@crztech-HP-ProDesk-400-G7-Microtower-PC) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1 SMP PREEMPT Thu Nov 2 16:22:21 KST 2023
[ 0.000000] Machine model: LS1043A RDB Board
.................................
[ 8.926884] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 8.933464] ata1.00: configured for UDMA/133
[ 8.937851] sd 0:0:0:0: [sda] tag#11 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=0s
[ 8.947103] sd 0:0:0:0: [sda] tag#11 Sense Key : 0x5 [current]
[ 8.953031] sd 0:0:0:0: [sda] tag#11 ASC=0x21 ASCQ=0x4
[ 8.958270] sd 0:0:0:0: [sda] tag#11 CDB: opcode=0x28 28 00 00 00 08 80 00 00 08 00
[ 8.965948] blk_update_request: I/O error, dev sda, sector 2176 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 8.976421] ata1: EH complete
[ 9.026846] ata1.00: exception Emask 0x12 SAct 0x4 SErr 0x380500 action 0x6 frozen
[ 9.034484] ata1.00: irq_stat 0x08000000, interface fatal error
[ 9.040421] ata1: SError: { UnrecovData Proto 10B8B Dispar BadCRC }
[ 9.046694] ata1.00: failed command: READ FPDMA QUEUED
[ 9.051849] ata1.00: cmd 60/f8:10:08:09:00/00:00:00:00:00/40 tag 2 ncq dma 126976 in
res 40/00:14:08:09:00/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 9.067597] ata1.00: status: { DRDY }
[ 9.071267] ata1: hard resetting link
[ 9.550844] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 9.557388] ata1.00: configured for UDMA/133
[ 9.561772] sd 0:0:0:0: [sda] tag#2 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=0s
[ 9.570929] sd 0:0:0:0: [sda] tag#2 Sense Key : 0x5 [current]
[ 9.576768] sd 0:0:0:0: [sda] tag#2 ASC=0x21 ASCQ=0x4
[ 9.581927] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x28 28 00 00 00 09 08 00 00 f8 00
[ 9.589511] blk_update_request: I/O error, dev sda, sector 2312 op 0x0:(READ) flags 0x80700 phys_seg 31 prio class 0
[ 9.600072] ata1: EH complete
[ 11.886854] ata1: limiting SATA link speed to 3.0 Gbps
[ 11.886868] ata1.00: exception Emask 0x12 SAct 0x35840c SErr 0x380500 action 0x6 frozen
[ 11.895397] ata1.00: irq_stat 0x08000000, interface fatal error
[ 11.902496] ata1: SError: { UnrecovData Proto 10B8B Dispar BadCRC }
[ 11.909386] ata1.00: failed command: READ FPDMA QUEUED
[ 11.915620] ata1.00: cmd 60/08:10:70:0f:00/00:00:00:00:00/40 tag 2 ncq dma 4096 in
res 40/00:1c:78:0f:00/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 11.931992] ata1.00: status: { DRDY }
.............................
[ 12.146959] ata1: hard resetting link
[ 12.282635] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 12.622853] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 12.623104] ata1.00: configured for UDMA/133
[ 12.623221] sd 0:0:0:0: [sda] tag#2 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=0s
[ 12.623229] sd 0:0:0:0: [sda] tag#2 Sense Key : 0x5 [current]
[ 12.623234] sd 0:0:0:0: [sda] tag#2 ASC=0x21 ASCQ=0x4
[ 12.623241] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x28 28 00 00 00 0f 70 00 00 08 00
[ 12.623247] blk_update_request: I/O error, dev sda, sector 3952 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 12.633830] sd 0:0:0:0: [sda] tag#3 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=0s
[ 12.633838] sd 0:0:0:0: [sda] tag#3 Sense Key : 0x5 [current]
[ 12.633843] sd 0:0:0:0: [sda] tag#3 ASC=0x21 ASCQ=0x4
[ 12.633850] sd 0:0:0:0: [sda] tag#3 CDB: opcode=0x28 28 00 00 00 0f 78 00 00 08 00
[ 12.633856] blk_update_request: I/O error, dev sda, sector 3960 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
...................
< smartctl result >
