Received: by 10.213.65.68 with SMTP id h4csp919352imn; Tue, 27 Mar 2018 11:11:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+L7eGgc0KtI2czgx64zEntDUdzSHnc7WUZz3QSDLVQAE5O7rIhCdV1vBRd2GDkocnHiEFs X-Received: by 10.101.100.210 with SMTP id t18mr226933pgv.123.1522174309800; Tue, 27 Mar 2018 11:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522174309; cv=none; d=google.com; s=arc-20160816; b=zOKnwMAHBRm+eFnIvMH4kkJNbfMw56ZM83BrNCB5vsaLbbNwtX1QmlR6fImSWxrKha pmoJpp7ktYRQ7tRuPd2s+ohF0q/lPjxa1sdIAtPrKjg5VJwz04wrDrNbYD18FmvnCXb2 zegCtia7AHBEBHUUlyD7V0SHi9C6JXn301QN+tSVMeLW2cqkSXVMBe/csiujjGQvIds5 9RGRBbSm/8Y0D/7N9wSgV9S5+pt9p2eMn52gJtdG1WQjG3Yfnd8kWqMxfr78KLVX542K zPk5JOnvxhuYZ0oufbDK6zRv30mHRomE5UPph6w145lOlv/LmavvazzBRWvA8ZckA7W/ cBjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sdPMYsfh8lcxJz6QY39ywywRB59pEiksxmg5bH6Sfog=; b=PfwL4oOTKjZHxajhOYCO1qgWmFJXM/SMNZeKBmPTsFL6dP4Oor45GFtLlFLUtcr+Al /tL//GsPEvuhcJ2JqW1yO5FvonEQ+pAZdrVX+fuvngpATn1au9ocLbEF8ZjbSx+ZddBG VAIZRRM7XEJShiXZxSRtYSzC1K7OYSVbQVMBqrHh8fJeTxjZ7byjJh09jAqypjebHjkz 0ZQ+7k3nBLO37y0LHbKWyuO0aNO0j3qdX7gjZGD60AGwR1ABWzopBmcJmhTtEawOUDkJ p4iZm6MIppnHN5q6LVuNQa/fwaF6Db4O+9wt8TPho7KfAjqoqkJfuaB5fuqnOchxDK1k Jqrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si1554512pls.337.2018.03.27.11.11.35; Tue, 27 Mar 2018 11:11:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbeC0SJr (ORCPT + 99 others); Tue, 27 Mar 2018 14:09:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41066 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752449AbeC0Q3A (ORCPT ); Tue, 27 Mar 2018 12:29:00 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DE0321075; Tue, 27 Mar 2018 16:28:59 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Tejun Heo Subject: [PATCH 4.4 17/43] libata: Apply NOLPM quirk to Crucial M500 480 and 960GB SSDs Date: Tue, 27 Mar 2018 18:27:21 +0200 Message-Id: <20180327162717.418760406@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162716.407986916@linuxfoundation.org> References: <20180327162716.407986916@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit 62ac3f7305470e3f52f159de448bc1a771717e88 upstream. 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 not been tested with medium_power, but that typically has no measurable power-savings. Note the reporters Crucial_CT480M500SSD3 has a firmware version of MU03 and there is a MU05 update available, but that update does not mention any LPM fixes in its changelog, so the quirk matches all firmware versions. In my experience the LPM problems with (older) Crucial SSDs seem to be limited to higher capacity versions of the SSDs (different firmware?), so this commit adds a NOLPM quirk for the 480 and 960GB versions of the M500, to avoid LPM causing issues with these SSDs. Cc: stable@vger.kernel.org Reported-and-tested-by: Martin Steigerwald Signed-off-by: Hans de Goede Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- drivers/ata/libata-core.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4232,6 +4232,14 @@ static const struct ata_blacklist_entry ATA_HORKAGE_ZERO_AFTER_TRIM | ATA_HORKAGE_NOLPM, }, + /* 480GB+ M500 SSDs have both queued TRIM and LPM issues */ + { "Crucial_CT480M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM | + ATA_HORKAGE_NOLPM, }, + { "Crucial_CT960M500*", 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, },