Received: by 10.213.65.68 with SMTP id h4csp834113imn; Tue, 27 Mar 2018 09:37:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48OtFdcjD/O0XOw6HWnz8QOYu8Lb7VN1U4v1lXcsP6I0N3tBJCgwauSBZfEh9dPGz0rSjtm X-Received: by 10.98.147.135 with SMTP id r7mr40936pfk.31.1522168661188; Tue, 27 Mar 2018 09:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522168661; cv=none; d=google.com; s=arc-20160816; b=L+3mBrd1JqZ12GbRHINUPPpp5JHvNu12ysuJ9ahYTEap8rdlepOFzen2OS1p+MbMe5 zMxq9PzJig/k6gJo1KVx5dRPpOT52gc3uXK5HmaAHen/yfmYv6bAeGhKJEu45eBXDEqO +SiAef371dIkbHOzMADrnnc5rHRGLwMXEe3cjEuyS0T0rqc4WQ7HaezynNTvARFpoQmx HjpFD7Oifq7WoJun6z3B9LwBLLSjbiynHlUIuj7rAIm+A3uCv6xuSfT0EvIlYxpuNEOI PDchGO/CHIn5IlPvHu+Zff3QVYqB215yhnIAWweL78XIl6rXw5xWUG2hWjEaeKvo8KpX p8TA== 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=uwW66zh9wIGcJfi7FswM1+A5418716rsdSA8ZqOEP54=; b=akz3BVKnGBaFgFR6aPmOKwd1wMfdWE2WEs/IdJSKsTSKHSPFsJOIO+uklmUMekJgpn XhUunOxdQ7T1auAwzFSgGSwTIy1SRjaoQWePUuE67fwHzAH0h5nP+ne8nMrp5CFrLr4n f22AcU9MY2HMjpjpvVHVB5Zl7t/mu4buWKbUNNIroUWXkoyOBAC5ADqfxXer9q5P2Jke ECkCY28oShyQjMge6ZMwHg1OPbA119is3kFcrZnidBidEHGA7jIe+IOYk6V8r54JONdt Si7R9DEK/TelHdr2KhKzNoFcqcyWnS8TqQB1TpPFbtc4vejaetRRTfu+dUjQ43eCD7R2 sBDw== 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 j62si1111876pgc.583.2018.03.27.09.37.26; Tue, 27 Mar 2018 09:37:41 -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 S1754508AbeC0Qfa (ORCPT + 99 others); Tue, 27 Mar 2018 12:35:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44840 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754426AbeC0Qf2 (ORCPT ); Tue, 27 Mar 2018 12:35:28 -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 1B0C1125E; Tue, 27 Mar 2018 16:35:27 +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.14 042/101] libata: Modify quirks for MX100 to limit NCQ_TRIM quirk to MU01 version Date: Tue, 27 Mar 2018 18:27:14 +0200 Message-Id: <20180327162752.605858831@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit d418ff56b8f2d2b296daafa8da151fe27689b757 upstream. When commit 9c7be59fc519af ("libata: Apply NOLPM quirk to Crucial MX100 512GB SSDs") was added it inherited the ATA_HORKAGE_NO_NCQ_TRIM quirk from the existing "Crucial_CT*MX100*" entry, but that entry sets model_rev to "MU01", where as the entry adding the NOLPM quirk sets it to NULL. This means that after this commit we no apply the NO_NCQ_TRIM quirk to all "Crucial_CT512MX100*" SSDs even if they have the fixed "MU02" firmware. This commit splits the "Crucial_CT512MX100*" quirk into 2 quirks, one for the "MU01" firmware and one for all other firmware versions, so that we once again only apply the NO_NCQ_TRIM quirk to the "MU01" firmware version. Fixes: 9c7be59fc519af ("libata: Apply NOLPM quirk to ... MX100 512GB SSDs") Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- drivers/ata/libata-core.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4523,10 +4523,13 @@ static const struct ata_blacklist_entry /* Crucial BX100 SSD 500GB has broken LPM support */ { "CT500BX100SSD1", NULL, ATA_HORKAGE_NOLPM }, - /* The 512GB version of the MX100 has both queued TRIM and LPM issues */ - { "Crucial_CT512MX100*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + /* 512GB MX100 with MU01 firmware has both queued TRIM and LPM issues */ + { "Crucial_CT512MX100*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM | ATA_HORKAGE_NOLPM, }, + /* 512GB MX100 with newer firmware has only LPM issues */ + { "Crucial_CT512MX100*", NULL, 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 |