Received: by 10.213.65.68 with SMTP id h4csp902427imn; Tue, 27 Mar 2018 10:52:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49+XetOaeJ7w4C/X2gAWcfI3gPDjEROK+l70Rxs8H53OUOj7GHQy9L/4xCHMKWfLKFp2xiL X-Received: by 10.99.181.13 with SMTP id y13mr173903pge.279.1522173179091; Tue, 27 Mar 2018 10:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522173179; cv=none; d=google.com; s=arc-20160816; b=cZpw8lcoKPb7vPtaTXZkU4VFtvsQaArTjmSOU1z7s2j+JqqsdjHACSX5o1UcASYnmH OS84Rl+cvwirt2GH8PUvi1SpBNVlDXv6c5GLrzQNoSaLJIeFL1dR0OXN5J4yIjChi6A/ 5M8LJapwJj74vQSSefNgrR3ijvKypC44IbPDNKJysbohq4+al4CpnHJdn+RqGguh37EX zFw37vuF42GgKEqqCXS79chilViUc7/LsvYeCQD3TWRsjDuJHfU81uLQ/Ib+vcJ1mEq2 BjM5TFmevYjSZ67E/rvokPa5EOXGKolRhOqWLFgT82W4sLzIm28H5d86JIvCvnHLJ+on Rynw== 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=pQuHdcWEABA1SJ0QvvAgXU687ZgGF28n5dRz7kd+Vxk=; b=oAyQIndakaDP51iUrdEhD36QimVKzWBkQzH4uCTkdw+iO+zQJIA+kdKb7K8W3WNxoQ GpH1YyvgHiR6Qz1iDDVJQyCJuy+51H/8e4IMZw2CB76gBsC2n8TI3CIyMSNZvLyDY9nc PjwEL6zsIvY1X70eBIwre4bZcsd2WjklTTkpOXaTr4yTrY/ulNvGe+Mz7mhksrEm7as0 nA/8K/GHgRdLzkmihxgppRrxRDKSn02EOLs1fxUObByP5GBtFcrlHgAhxPG4BQ/cjnwS q3TygwzKMj5QAZIxiNjUNCmKiSUBoQsHIToXms6yC7Vw4H3IEp2sru/wYhHgoiM3I3kp modg== 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 u74si1143838pgc.264.2018.03.27.10.52.44; Tue, 27 Mar 2018 10:52: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 S1753638AbeC0Qc0 (ORCPT + 99 others); Tue, 27 Mar 2018 12:32:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43294 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753618AbeC0QcV (ORCPT ); Tue, 27 Mar 2018 12:32:21 -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 5A6CAF0A; Tue, 27 Mar 2018 16:32:20 +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 20/67] libata: Apply NOLPM quirk to Crucial M500 480 and 960GB SSDs Date: Tue, 27 Mar 2018 18:27:12 +0200 Message-Id: <20180327162727.966382921@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 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 @@ -4411,6 +4411,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, },