Received: by 10.213.65.68 with SMTP id h4csp859339imn; Tue, 27 Mar 2018 10:04:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/QwW1e8gHyqAZHlZ5P3xxemLBR3HYT+nydvcW1wmW768ibkt6mpLuPuNClkDNKgkB9ZRWD X-Received: by 2002:a17:902:9045:: with SMTP id w5-v6mr111481plz.287.1522170299472; Tue, 27 Mar 2018 10:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522170299; cv=none; d=google.com; s=arc-20160816; b=EaC3D6TsN5c7JQYDDN30/2iWqyHLnNCSMYR4nK+dILs8+bfOpf8cWSXXg7L6JMiMFD Rfcs3OU0+REfCUc/twZZxl+J/X0JjD/6VlsKjVTlVWfO+SuZfeOR/OXnnkys+Ndj18l0 dUHyNSK9KCNj6o1A8e1G4lcaSswMLpU1IjI3SSkfxG4kaWAu1vqKe83+/4UBhQGO3x41 ph1ckXX6ZPpDcNiCNLlfk7liT42GjrS6M1zx5SF6XiXAqXyZyncoWIB2gJr8bzOY8vgL MkocgM+ypNnEFCoXMLBPaYt0aQSWpHBBnlz4E33V7IWXIK5OlAwYHDbyP6z1ncd4XbDH nCqQ== 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=KXtbgBoSQgogbGvDncABzTiRq9kD1LGMdKQmrTvKvSs=; b=Zj37LtWfBXNaPpC+V+32na6e47Qa8hOG7Ae4QpmytzoxBtG3WiDZoP0mKHsI521Yv1 a1MbjP79zWqOdWrChDemdPJE/fqgIYxsKcgc+sonxK9U0fAFRAxYiF4wKo3MrmfOw+Pf W2qCy36c459G0LttehEWvRohVqKIsmtVg399Dy5LeJVnqTZuDEz7ngdSWFQdLRrqGCdQ dqZGF8djsbeboCWCvI7bWK+FD6JXhserDFmF1vPQI8J6XWxTkLfHPHrL+ZxMDlVcHGHf rnc11R07+28Fxr2G/Y4OrbTy2zo+hsSyr0vxgV7i6dU7GN9QkGC+i1fkCYfF/apJ+Y5K SG0A== 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 f22si1118181pga.497.2018.03.27.10.04.38; Tue, 27 Mar 2018 10:04:59 -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 S932521AbeC0QlU (ORCPT + 99 others); Tue, 27 Mar 2018 12:41:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48670 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755029AbeC0QlR (ORCPT ); Tue, 27 Mar 2018 12:41:17 -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 09AA87A8; Tue, 27 Mar 2018 16:41:16 +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.15 037/105] libata: Apply NOLPM quirk to Crucial MX100 512GB SSDs Date: Tue, 27 Mar 2018 18:27:17 +0200 Message-Id: <20180327162759.595067510@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit 9c7be59fc519af9081c46c48f06f2b8fadf55ad8 upstream. Various people have reported the Crucial MX100 512GB model not working with LPM set to min_power. I've now received a report that it also does not work with the new med_power_with_dipm level. It does work with medium_power, but that has no measurable power-savings and given the amount of people being bitten by the other levels not working, this commit just disables LPM altogether. Note all reporters of this have either the 512GB model (max capacity), or are not specifying their SSD's size. So for now this quirk assumes this is a problem with the 512GB model only. Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=89261 Buglink: https://github.com/linrunner/TLP/issues/84 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 | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4530,6 +4530,11 @@ static const struct ata_blacklist_entry { "PIONEER DVD-RW DVR-212D", NULL, ATA_HORKAGE_NOSETXFER }, { "PIONEER DVD-RW DVR-216D", NULL, ATA_HORKAGE_NOSETXFER }, + /* The 512GB version of the MX100 has both queued TRIM and LPM issues */ + { "Crucial_CT512MX100*", 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, },