Hi
After firmware update of my Samsung SSD 840 EVO to DB6Q, the discard mount option of ext4 produced ata errors with ubuntu 15.04:
Apr 26 15:11:41 i7 kernel: [ 82.647100] ata1.00: exception Emask 0x0 SAct 0x1600000 SErr 0x0 action 0x6 frozen Apr 26 15:11:41 i7 kernel: [ 82.647103] ata1.00: failed command: WRITE FPDMA QUEUED Apr 26 15:11:41 i7 kernel: [ 82.647105] ata1.00: cmd 61/d0:a8:40:61:a7/00:00:12:00:00/40 tag 21 ncq 106496 out Apr 26 15:11:41 i7 kernel: [ 82.647105] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) Apr 26 15:11:41 i7 kernel: [ 82.647107] ata1.00: status: { DRDY } Apr 26 15:11:41 i7 kernel: [ 82.647108] ata1.00: failed command: WRITE FPDMA QUEUED Apr 26 15:11:41 i7 kernel: [ 82.647110] ata1.00: cmd 61/a8:b0:d8:7b:44/00:00:10:00:00/40 tag 22 ncq 86016 out Apr 26 15:11:41 i7 kernel: [ 82.647110] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) Apr 26 15:11:41 i7 kernel: [ 82.647111] ata1.00: status: { DRDY } Apr 26 15:11:41 i7 kernel: [ 82.647112] ata1.00: failed command: READ FPDMA QUEUED Apr 26 15:11:41 i7 kernel: [ 82.647114] ata1.00: cmd 60/08:c0:88:95:33/00:00:12:00:00/40 tag 24 ncq 4096 in Apr 26 15:11:41 i7 kernel: [ 82.647114] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) Apr 26 15:11:41 i7 kernel: [ 82.647115] ata1.00: status: { DRDY } Apr 26 15:11:41 i7 kernel: [ 82.647117] ata1: hard resetting link Apr 26 15:11:42 i7 kernel: [ 82.967184] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) Apr 26 15:11:42 i7 kernel: [ 82.967424] ata1.00: supports DRM functions and may not be fully accessible Apr 26 15:11:42 i7 kernel: [ 82.967687] ata1.00: supports DRM functions and may not be fully accessible Apr 26 15:11:42 i7 kernel: [ 82.967722] ata1.00: configured for UDMA/133 Apr 26 15:11:42 i7 kernel: [ 82.967724] ata1.00: device reported invalid CHS sector 0 Apr 26 15:11:42 i7 kernel: [ 82.967725] ata1.00: device reported invalid CHS sector 0 Apr 26 15:11:42 i7 kernel: [ 82.967726] ata1.00: device reported invalid CHS sector 0 Apr 26 15:11:42 i7 kernel: [ 82.967730] ata1: EH complete
I’ve simply removed the option discard from /etc/fstab. Now system is boots up well.
Have fun!
Update:
There are several reports that other users are affected too. Seems to be NCQ related, but only NCQ trim commands.
https://bugs.launchpad.net/ubuntu/+source/fstrim/+bug/1449005
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.0.y&id=6fc4d97a4987c5d247655a157a9377996626221a