SSD throws error "WRITE FPDMA QUEUED" during boot

I’ve got an SSD and I have a new PC. I installed openSUSE 13.2 freshly onto the SSD with a /boot and / partition on there only. /home and /tmp are on physcially separate disks.

To optimize my SSD for performance and reduce wear I followed the following sites:
https://en.opensuse.org/SDB:SSD_performance
https://sites.google.com/site/easylinuxtipsproject/ssd-in-opensuse
https://lizards.opensuse.org/2015/02/06/ssd-configuration-for-opensuse/

My Fstab is having the correct added options, Grub is updated as mentioned on sites above and rc.d/boot.local is matching the guides.

During boot however some kernel message is thrown about an error on my ata1 device.

dmesg output (not all pasted):

    4.428866] ata1.00: status: { DRDY }
    4.433374] ata1.00: failed command: WRITE FPDMA QUEUED
    4.437904] ata1.00: cmd 61/08:d0:a0:41:21/00:00:02:00:00/40 tag 26 ncq 4096 out
         res 40/00:b8:20:28:60/00:00:02:00:00/40 Emask 0x10 (ATA bus error)
    4.446982] ata1.00: status: { DRDY }
    4.451493] ata1.00: failed command: WRITE FPDMA QUEUED
    4.455894] ata1.00: cmd 61/08:d8:50:2a:21/00:00:02:00:00/40 tag 27 ncq 4096 out
         res 40/00:b8:20:28:60/00:00:02:00:00/40 Emask 0x10 (ATA bus error)
    4.465020] ata1.00: status: { DRDY }
    4.469541] ata1.00: failed command: WRITE FPDMA QUEUED
    4.474084] ata1.00: cmd 61/08:e0:28:51:20/00:00:02:00:00/40 tag 28 ncq 4096 out
         res 40/00:b8:20:28:60/00:00:02:00:00/40 Emask 0x10 (ATA bus error)
    4.483262] ata1.00: status: { DRDY }
    4.487791] ata1: hard resetting link
    4.947114] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
    4.968793] ata1.00: configured for UDMA/133
    4.968826] ata1: EH complete

lspci -kk output:

00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
        Subsystem: ASUSTeK Computer Inc. Device 85ca
        Kernel driver in use: ahci

cat /sys/block/sda/queue/scheduler output:

noop [deadline] cfq 


Does anybody have an idea as to what I may need to check and verify?

Hi
So the filesystem is ext4? I see the device is up at 3Gbps, is the device (ssd) capable of 6Gbps? If not can you switch between 3 and 6Gbps in your BIOS?

Filesystem is indeed Ext4, the SSD is a Kingston SSDnow 300, capable of 6GB/s and that is the setting in the BIOS as well.

Hi
OK, so I’m assuming ata1 is the SSD, what do you see from;


smartctl -a /dev/sda |grep SATA

Is this a desktop, or laptop? If a desktop is the cable new and rated at 6Gbps? If a laptop is the drive seated ok in it’s socket?

AFAIK, it should come up at 6Gbps if the drive is rated at 6Gbps and BIOS set, if not it maybe hardware related…

Thanks for your help so far. It is a desktop PC, with motherboard ASUS A88X-PLUS

Output for smartctl -a /dev/sda | grep SATA:

SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)

Output for: dmesg | grep -i sata | grep ‘link up’

    1.720414] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    1.720441] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    1.720513] ata8: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    1.720537] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    3.861656] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    4.745048] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    5.328781] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    6.000469] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)

Output for: smartctl -a /dev/sda

=== START OF INFORMATION SECTION ===
Model Family:     SandForce Driven SSDs
Device Model:     KINGSTON SV300S37A60G
Serial Number:    50026B774C0110CD
LU WWN Device Id: 5 0026b7 74c0110cd
Firmware Version: 580ABBF0                                                                            
User Capacity:    60,022,480,896 bytes [60.0 GB]                                                      
Sector Size:      512 bytes logical/physical                                                          
Rotation Rate:    Solid State Device                                                                  
Device is:        In smartctl database [for details use: -P show]                                     
ATA Version is:   ATA8-ACS, ACS-2 T13/2015-D revision 3                                               
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)                                              
Local Time is:    Fri Aug  7 21:55:16 2015 CEST                                                       
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


=== START OF READ SMART DATA SECTION ===

Hi
So I would look at the SATA cable from motherboard to SSD, do you have a spare or swap with a SATA II (3Gbps) drive. Is the cable rated at 6Gbps?

Hi
You could also try disabling NCQ in the BIOS to see if it changes.

I have to verify the cable ratings for the used cable. I switched the speed to 3Gbps in the BIOS and now I don’t get the error messages.

Thank you for the cable suggestion. I swapped the cable with another one and I now don’t get kernel messages during boot, and it is smartctl is reporting to use 6Gbps.