From: Zoltán Böszörményi Date: Fri, 4 Feb 2022 12:57:50 +0000 (+0100) Subject: ata: libata-core: Disable TRIM on M88V29 X-Git-Tag: v5.17-rc4~26^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c8ea23d5fa59f28302d4e3370c75d9c308e64410;p=linux-block.git ata: libata-core: Disable TRIM on M88V29 This device is a CF card, or possibly an SSD in CF form factor. It supports NCQ and high speed DMA. While it also advertises TRIM support, I/O errors are reported when the discard mount option fstrim is used. TRIM also fails when disabling NCQ and not just as an NCQ command. TRIM must be disabled for this device. Signed-off-by: Zoltán Böszörményi Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index ba9273f80069..0c854aebfe0b 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4029,6 +4029,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { /* devices that don't properly handle TRIM commands */ { "SuperSSpeed S238*", NULL, ATA_HORKAGE_NOTRIM, }, + { "M88V29*", NULL, ATA_HORKAGE_NOTRIM, }, /* * As defined, the DRAT (Deterministic Read After Trim) and RZAT