libata: whitelist all SAMSUNG MZ7KM* solid-state disks
authorJuha-Matti Tilli <juha-matti.tilli@iki.fi>
Sun, 2 Dec 2018 10:47:08 +0000 (12:47 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Dec 2018 19:54:39 +0000 (12:54 -0700)
These devices support read zero after trim (RZAT), as they advertise to
the OS. However, the OS doesn't believe the SSDs unless they are
explicitly whitelisted.

Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Juha-Matti Tilli <juha-matti.tilli@iki.fi>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libata-core.c

index a7f5202a48152a42e6b2b7ab5835289d8cb6fcca..b8c3f9e6af8994820c30b40889154f87511014e0 100644 (file)
@@ -4602,6 +4602,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
        { "SSD*INTEL*",                 NULL,   ATA_HORKAGE_ZERO_AFTER_TRIM, },
        { "Samsung*SSD*",               NULL,   ATA_HORKAGE_ZERO_AFTER_TRIM, },
        { "SAMSUNG*SSD*",               NULL,   ATA_HORKAGE_ZERO_AFTER_TRIM, },
+       { "SAMSUNG*MZ7KM*",             NULL,   ATA_HORKAGE_ZERO_AFTER_TRIM, },
        { "ST[1248][0248]0[FH]*",       NULL,   ATA_HORKAGE_ZERO_AFTER_TRIM, },
 
        /*