Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2370920imm; Mon, 28 May 2018 06:55:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqKhchWdc0J0jwzYHOe0fQ7oS9o33ox8i0s2+nYsz0gswecJq4V8axtoMlvhKGPX45UNDk0 X-Received: by 2002:a17:902:7283:: with SMTP id d3-v6mr13980613pll.192.1527515729580; Mon, 28 May 2018 06:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527515729; cv=none; d=google.com; s=arc-20160816; b=hs2mcf4JS6FmNAxvxn+MZPPHoxAffZwfkxgU5zamX3gVhpGRLoBc7v8eXKmJ59I/xK 6QbK/yp5W7igCqgx4afkah4mgMfkE+YRYOYTeVSDrlQSnMWOe/d++KDSld5MrzMNs8A+ d3xtjzZ1SgHCQ7RWMbSL8UvvR4i9hlY76yr0q8AhLVElElwaa36mKTmBqPXymn2wRTW9 oZTDm6nJ7qzZYmJqIH8as4eOtWYDqXF1uHx+Q8toEhjzonY3vcdtLX7C878ofLUNQpPc r+5yask6M/55SIrkHtjdBnPao0YIPt5yoyOzC2PiHKGn3NO0I8f8Ty+W05NhCJ423FoD TiMw== 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:dkim-signature :arc-authentication-results; bh=XrHdqNkljDzYBUJqOIzhyGM/idVjRJGK/+AkX4HxV5Q=; b=0uHxloAftcM2ilPg1B+KvK8aTFHewvc3fEizQyevqnfJnSl5FhM+ZUXF/Gv6ToOnH4 yH5WRV/gLuQ02mshb+lQe5ewokXxTxeWLeM0CkPpbvFJKPg5tsw1Xdkn9oy4S3SfD+9A FuFojUbI8FSlPhKc2+fO3g52us9A8axvuMIzxq6AuOzqxiAJq1G6OMChQ9leMHogzmQN 3HmEHh8HgvveQ9NIT5QWJKImo5yNhr5GCUszABieAVROOZESLxDTC4NvBRHfWapaDJAi IvUvwOZeC8so6e0zsOLclfZNFdZylPHzSQ5obLRXyxwWbvsvnzrDpGzYhaMLAzbQ94cz BNjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Au7qylqq; 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 h68-v6si8396663pgc.429.2018.05.28.06.55.14; Mon, 28 May 2018 06:55:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Au7qylqq; 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 S939148AbeE1Nx3 (ORCPT + 99 others); Mon, 28 May 2018 09:53:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:33178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162999AbeE1Klk (ORCPT ); Mon, 28 May 2018 06:41:40 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 D8B1D2086D; Mon, 28 May 2018 10:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504100; bh=UP1kmFYw49kZS0dxfPvIFx7gCCu1JQUT04Z/M1KfZ6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Au7qylqqhBmaCKtuy7/HnQRKPFEuJ6De0Vb5j4QbtiYTYtiT8jdPGXrWI1zcoPxMk wzlfYGfLw9bmbWbK3sqZYeYi3FBz7c45aZ69RtsDIjvnWx1dK0YCGl6UZ8AtLhsUAA Ms8Lbuggxbq1QlbSrnfyo9mF+nJPVjPQHjVQpdVk= 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 Subject: [PATCH 4.14 014/496] libata: blacklist Micron 500IT SSD with MU01 firmware Date: Mon, 28 May 2018 11:56:39 +0200 Message-Id: <20180528100320.164042378@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sudip Mukherjee commit 136d769e0b3475d71350aa3648a116a6ee7a8f6c upstream. 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: Greg Kroah-Hartman --- drivers/ata/libata-core.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4547,6 +4547,8 @@ static const struct ata_blacklist_entry { "SanDisk SD7UB3Q*G1001", NULL, 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 |