Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp55572imu; Thu, 8 Nov 2018 14:42:03 -0800 (PST) X-Google-Smtp-Source: AJdET5dOSC8UvaXgTjR/bgByKk5//Posf/+TJRuNgd80KUL1I4MtUVVsfGmoNJCOQztIzbQqYscA X-Received: by 2002:a63:36c4:: with SMTP id d187mr5254426pga.404.1541716923156; Thu, 08 Nov 2018 14:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716923; cv=none; d=google.com; s=arc-20160816; b=yWJpjur7nLDEAxRB6lrtlyc3C4LcNEAhkyDQqYmPxAanXWEJP99Br0WLpduLjPtLQL iQsRj5JLMRsDDz0ExhCf3EujGIH4xMOWvPrTNRlynTPNEJ4neyRBVAsaqxdskFC3BDYy JASLvczYl5q02PniIciw+gvLRVec9+z5Q4ZpHYZeHGnghkynTtp+Ws14e065VizAD9+G v2tfoXvXzh+3nrKVjBlTj39+upyuI7Ee0w23J31yAUr75ipiUZ/4fXyhxwrQqh8YbEhi pwk1e2MidwqLX94GZWa+XerzLrGvgKW0oUBVAgTK/8c2AlgqurATFIbxRQdFqZ4Jr2Qo 7pDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LC/EMtbENitQib+IG4bMGFfH5cElfxoU/hAB+R7rk14=; b=dV7Pag4vXWgHl1PoYi8BrxfMQRLSmy9t+GAX6DteRy6L/6COucfSuTmw32TP25qV9F McC76AYe88crXn4Qf7V0FbvA7QpjbTD6wkSCzvpENHIwG33OEQLfrHdY5faAEW8fZkzd Oa07EIQEdytFtAD6M8owzBq0uhdJl5HOZnwrC0o2kSv8CbelDIlZAJz+KdAJWYxsm13p eCTBxaOCKerUXiNfgMkRw6SB+NeA6Ep2on9OkylWfQn81e5b4nqDnotJLGZ4SSmu3a5A XH7fw6+BVkCHkUWenaG5wWmnkHIgcMY+GLiLA0YWa4fStgCiVbcNMCtziA9FlnJ0Bjb6 GksA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xY54e+dR; 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 76-v6si6549374pfa.194.2018.11.08.14.41.47; Thu, 08 Nov 2018 14:42:03 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=xY54e+dR; 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 S1729189AbeKIIRr (ORCPT + 99 others); Fri, 9 Nov 2018 03:17:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:50174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbeKIHdy (ORCPT ); Fri, 9 Nov 2018 02:33:54 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A078021104; Thu, 8 Nov 2018 21:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714186; bh=uI47qzz8nfT+pObBbIgGkLME6cxdqzwg9re/ceNXYEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xY54e+dR0DmyXwJ1akHl9uKIWuGpHdqVPqAukobJn99aH/LnI6Q1AITYn0rDZVDUr aF+MLmgvtx6qq1Ip+xVdkzrBTulpcf5UR2ZtsX0YPezX7nY9HtEiu+LqAOnIHGMeGP 6DOOz7EQ4+Wj+BEr+veYBuflajAb8QA/n/bR9Bbs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Martin K. Petersen" , Sudip Mukherjee , Tejun Heo , Sasha Levin Subject: [PATCH 3.18 111/144] libata: blacklist Micron 500IT SSD with MU01 firmware Date: Thu, 8 Nov 2018 13:51:22 -0800 Message-Id: <20181108215105.905321571@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 136d769e0b3475d71350aa3648a116a6ee7a8f6c ] While whitelisting Micron M500DC drives, the tweaked blacklist entry enabled queued TRIM from M500IT variants also. But these do not support queued TRIM. And while using those SSDs with the latest kernel we have seen errors and even the partition table getting corrupted. Some part from the dmesg: [ 6.727384] ata1.00: ATA-9: Micron_M500IT_MTFDDAK060MBD, MU01, max UDMA/133 [ 6.727390] ata1.00: 117231408 sectors, multi 16: LBA48 NCQ (depth 31/32), AA [ 6.741026] ata1.00: supports DRM functions and may not be fully accessible [ 6.759887] ata1.00: configured for UDMA/133 [ 6.762256] scsi 0:0:0:0: Direct-Access ATA Micron_M500IT_MT MU01 PQ: 0 ANSI: 5 and then for the error: [ 120.860334] ata1.00: exception Emask 0x1 SAct 0x7ffc0007 SErr 0x0 action 0x6 frozen [ 120.860338] ata1.00: irq_stat 0x40000008 [ 120.860342] ata1.00: failed command: SEND FPDMA QUEUED [ 120.860351] ata1.00: cmd 64/01:00:00:00:00/00:00:00:00:00/a0 tag 0 ncq dma 512 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x5 (timeout) [ 120.860353] ata1.00: status: { DRDY } [ 120.860543] ata1: hard resetting link [ 121.166128] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 121.166376] ata1.00: supports DRM functions and may not be fully accessible [ 121.186238] ata1.00: supports DRM functions and may not be fully accessible [ 121.204445] ata1.00: configured for UDMA/133 [ 121.204454] ata1.00: device reported invalid CHS sector 0 [ 121.204541] sd 0:0:0:0: [sda] tag#18 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 [ 121.204546] sd 0:0:0:0: [sda] tag#18 Sense Key : 0x5 [current] [ 121.204550] sd 0:0:0:0: [sda] tag#18 ASC=0x21 ASCQ=0x4 [ 121.204555] sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x93 93 08 00 00 00 00 00 04 28 80 00 00 00 30 00 00 [ 121.204559] print_req_error: I/O error, dev sda, sector 272512 After few reboots with these errors, and the SSD is corrupted. After blacklisting it, the errors are not seen and the SSD does not get corrupted any more. Fixes: 243918be6393 ("libata: Do not blacklist Micron M500DC") Cc: Martin K. Petersen Cc: stable@vger.kernel.org Signed-off-by: Sudip Mukherjee Signed-off-by: Tejun Heo Signed-off-by: Sasha Levin --- drivers/ata/libata-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index cd589d012ef1..6629a5deccbd 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4249,6 +4249,8 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { ATA_HORKAGE_NOLPM, }, /* devices that don't properly handle queued TRIM commands */ + { "Micron_M500IT_*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "Micron_M500_*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "Crucial_CT*M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | -- 2.17.1