Received: by 10.213.65.68 with SMTP id h4csp918029imn; Tue, 27 Mar 2018 11:10:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+RMiZnMO8LW2ET/rdSftYBHRLmGPkApQ2C+lig34/b7c4XEM+Oag62yn1NkG2u/UQETobw X-Received: by 2002:a17:902:ab81:: with SMTP id f1-v6mr327807plr.5.1522174218589; Tue, 27 Mar 2018 11:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522174218; cv=none; d=google.com; s=arc-20160816; b=I0f9geVqtlCQr+jjzTuJhlsSPeFmXaZ93WsD/ZKTDDr7C9eoFluaT+Y3LDo146qHvd EVbsEKEGLmuBlnQBe27NAHZ5Q5H0tF9ByQt/mgv7OKrNgG+hYYCgTTKage9RmLl5S4kr hqxKOJaX+f05CMBE+r2S8GYQJ3ep/SNchmFV6f2fRBXqLiDEHtymnGwqyn8heDaHbMEt UXsh97up5INXDY8kA6fbxzLeMyJJyWGRg3Ujym4OptTp3iVhGNx3mWhGqYiPnAMqdu5b KUvSk/TKXA5xbw1c3VLwaqoymdI8ggK7rzTxxvfZ5GVq5bCO6Z14WSD5jNBOsQ6XQPVT YuRw== 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=7xq8yu6tS1IvEqu10eSFyMWSRRy3K7CgLbfi++azI6o=; b=KDYyGWrmPZAW2OhhAptss6qjIoTgtsGEDD083wq+fiBtwS2LECqGuXYwDsFkROjIc9 GoQ26VaEzaa0wyw42XVK84dFcZBmO6xip0h0nCpc3N0gruBF1OP4HGzoxLui5+inv0BD Zux7Ec1/SFpoe8RDoMH08IG2Z3if9GbI5+gs0kzDBSR9Qta9i2bEJiG2KzwNgU3DWMbJ 2JbjT4R+1CvUM+z36zcEW5v+a22FRugCh02LPA4N5gqLfTU7aGC5Vv6Oqtqz1daUmItJ Kyo5pED1lzpWFcp4QvUxEmjkoMFrbcUx8IGB+8Y1mWXan2iWBrpjhvm/PpO4e9r2tdJq WWtw== 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 b11-v6si1880161plk.688.2018.03.27.11.10.04; Tue, 27 Mar 2018 11:10:18 -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 S1752552AbeC0Q3K (ORCPT + 99 others); Tue, 27 Mar 2018 12:29:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41092 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511AbeC0Q3G (ORCPT ); Tue, 27 Mar 2018 12:29:06 -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 B54311094; Tue, 27 Mar 2018 16:29:05 +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 19/43] libata: Modify quirks for MX100 to limit NCQ_TRIM quirk to MU01 version Date: Tue, 27 Mar 2018 18:27:23 +0200 Message-Id: <20180327162717.525765344@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 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 @@ -4227,10 +4227,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 |