>From 551654d311d91c3cecde233eda86686f5d786fc2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 11 Mar 2018 15:32:00 +0100 Subject: [PATCH] libata: Apply NOLPM quirk to Crucial M500 480GB SSDs There have been reports of the Crucial M500 480GB model not working with LPM set to min_power / med_power_with_dipm level. It has no been tested with medium_power, but that typically has no measurable power-savings. This commit adds a NOLPM quirk to avoid LPM causing issues with these SSDs. Cc: stable@vger.kernel.org Reported-by: Martin Steigerwald Signed-off-by: Hans de Goede --- drivers/ata/libata-core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index d8be0fe548f7..197e2c7f560e 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4535,6 +4535,11 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { ATA_HORKAGE_ZERO_AFTER_TRIM | ATA_HORKAGE_NOLPM, }, + /* The 480GB version of the M500 has both queued TRIM and LPM issues */ + { "Crucial_CT480M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM | + ATA_HORKAGE_NOLPM, }, + /* devices that don't properly handle queued TRIM commands */ { "Micron_M500_*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, -- 2.14.3