Received: by 10.213.65.68 with SMTP id h4csp906297imn; Tue, 27 Mar 2018 10:57:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+sHzGcmgh02Vn11zNeF52h/inhwTP7KnaAN54lSelUFdV9eEa8SKH3o2fi8zPf6al0pq/3 X-Received: by 2002:a17:902:8b82:: with SMTP id ay2-v6mr315277plb.12.1522173454790; Tue, 27 Mar 2018 10:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522173454; cv=none; d=google.com; s=arc-20160816; b=JBHC+X3OuIKAf+LPXf6Gg4E9gF7L616mpltJRExPQ26tcVU2sfdby1oU9SaP1S4VmT kDSe61S96EbbeseT/i0n3Ep2jGQ1A6LcOAN3J+tHOk5rPoRfWcFZsb6QnozJi7BKcQ/u V1HbYBtasf9NeXI1hRY2q3xuiEF/qC3Bxi/CHuRYGbEoZckqODCtMdz8OWaxTCuYspbw py5viGANTuqAY5bT9uAiFzEb4Q7Sg5YN9pCGW/YHCRAFb6JK4t4g/enlp0u1YZ2Dfn53 Lng/9K0b2NA0N5lcCatsEfT0bo76xRe+5bCfsErxATloFigX3rObrH5Gkl1lsGsBEmux rtJQ== 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=gw8DymwRcI1UmapoRUXaMZ7LL/thYSrrbanhhgQaxw0=; b=N15RyHU6wtDJmzG8PuV4lxQnUIjXFBFB8tq9FU8y94v4LmQDGvHPa/VvDrboQWskz/ 0Hzzaqv+Wx+Mm+/Dj34gVh+voQI+iWo/H1UjC93lGcLJsVZbrCbhGurbR0G3REJgGEpl eC2aLHiwOT/ODrtcn706GaIQNYwcoYqcgS5ckRwsMXksmGT2CuayOFZteoB1RwyDkjA6 Ahr57v8/Q0iZxrQpmylnCA1RW/HyzeOEU9LSN017sZSi3Dgl6UP1NRzImWjkpdmEP01V rdDeap6TClL10Anvvo1RSCskZnD7aWJOtDXMzep7VL61qMUeRS1imF32o/115Sn8se2z gLrQ== 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 s78si1215025pfj.259.2018.03.27.10.57.20; Tue, 27 Mar 2018 10:57:34 -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 S1753328AbeC0QbV (ORCPT + 99 others); Tue, 27 Mar 2018 12:31:21 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42856 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752027AbeC0QbQ (ORCPT ); Tue, 27 Mar 2018 12:31:16 -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 C894FDB5; Tue, 27 Mar 2018 16:31:15 +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.9 22/67] libata: Modify quirks for MX100 to limit NCQ_TRIM quirk to MU01 version Date: Tue, 27 Mar 2018 18:27:14 +0200 Message-Id: <20180327162728.110013990@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162726.702411083@linuxfoundation.org> References: <20180327162726.702411083@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.9-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 @@ -4406,10 +4406,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 |