diff mbox series

libata: whitelist all SAMSUNG MZ7KM* solid-state disks

Message ID 20181202104708.19957-1-juha-matti.tilli@iki.fi
State Not Applicable
Delegated to: David Miller
Headers show
Series libata: whitelist all SAMSUNG MZ7KM* solid-state disks | expand

Commit Message

Juha-Matti Tilli Dec. 2, 2018, 10:47 a.m. UTC
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.

Signed-off-by: Juha-Matti Tilli <juha-matti.tilli@iki.fi>
---
 drivers/ata/libata-core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin K. Petersen Dec. 3, 2018, 7:51 p.m. UTC | #1
Juha-Matti,

> 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.

We've actually tested this drive and it appears to be OK.

Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Jens Axboe Dec. 3, 2018, 7:54 p.m. UTC | #2
On 12/2/18 3:47 AM, Juha-Matti Tilli wrote:
> 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.

Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index a7f5202a4815..b8c3f9e6af89 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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, },
 
 	/*