Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2241629imm; Thu, 7 Jun 2018 07:34:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJYVvRosqk1SaMWm+3u/l+H3Tye993lfENCbDfmToMXWVbs6PNDUPE5TO0ZTyYc8kYoIsYO X-Received: by 2002:aa7:8345:: with SMTP id z5-v6mr2038127pfm.251.1528382087609; Thu, 07 Jun 2018 07:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528382087; cv=none; d=google.com; s=arc-20160816; b=vizHbWqdS0VVe6ihDMMjYeYuPWfoDqSl9nMlhQ4XWNrrXiS+OOFuYj6uKXqRrzXWCa fc29C24jPVofk1JM33M09DVzEc2hd8CMJzptnBxaypG2y5DQCGBxpvln6O71vX6Yfxps 45pSarrxL+Bm+cvxU45wo9EBl2Ixzc7FHGZvuNFs/bD0xPUoHP2OZe+aBoPzne+zZlrY 9Ki2sQ9/UQ7VOKtEHNNAMGRNXIhBEliXKziXCpY5Kpyu4fM0ZlLn/sR9RkjomwaY24+x wXmNpoiS2b7Zne7xFORq2wDlbkb3HDIaMxpEfAOZUzqmkuuGLi9Dl5iY7UxD0aMntiu6 unPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=/7H1Vni4FMxKnoyHGsLe2hZ5yhyL1+v1Rbpahu3m2cM=; b=p2K+5ltw110YdvoVLM6uBj1LMYgoJwco9A2FSd+3lwTI73QKLpcay9O5vJIeQzUGhK bT8XiPf7ecuWzZohRGlsxDgZ/t4lwVjlSLhykPrt6Pvmd6HCnsGYamZqLTj2S9+1k5tO U9PA90DJOs3KPf5yguPTTlMxQ1yG4gjMJJLJ2AnCcd9fnYJonTmY3OkiQfIR56FPcViK bLQwlobDR3y0uMjkE7P+k7VQzeSynJHrvu0d2GKvvg+uW5DDXuP3GKhrXF5iFLj82Euf LEv80M/MaER0uXCjAi3A/E9KQBMVlPfi7gjjd1DfVldIE+TOzw5SGvI/qH+H7t50yQqI efKg== 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 31-v6si16746539pli.45.2018.06.07.07.34.33; Thu, 07 Jun 2018 07:34:47 -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 S933883AbeFGOdF (ORCPT + 99 others); Thu, 7 Jun 2018 10:33:05 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40293 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932911AbeFGOcw (ORCPT ); Thu, 7 Jun 2018 10:32:52 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbG-0005Zj-4T; Thu, 07 Jun 2018 15:09:14 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvbC-0003Eo-Kg; Thu, 07 Jun 2018 15:09:10 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Martin K. Petersen" , "Tejun Heo" , "Ju Hyung Park" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 350/410] libata: Enable queued TRIM for Samsung SSD 860 In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Ju Hyung Park commit ca6bfcb2f6d9deab3924bf901e73622a94900473 upstream. Samsung explicitly states that queued TRIM is supported for Linux with 860 PRO and 860 EVO. Make the previous blacklist to cover only 840 and 850 series. Signed-off-by: Park Ju Hyung Reviewed-by: Martin K. Petersen Signed-off-by: Tejun Heo [bwh: Backported to 3.16: There's no ATA_HORKAGE_ZERO_AFTER_TRIM flag] Signed-off-by: Ben Hutchings --- drivers/ata/libata-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4237,7 +4237,8 @@ static const struct ata_blacklist_entry { "Micron_M5[15]0_*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM, }, { "Crucial_CT*M550*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM, }, { "Crucial_CT*MX100*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM, }, - { "Samsung SSD 8*", NULL, ATA_HORKAGE_NO_NCQ_TRIM, }, + { "Samsung SSD 840*", NULL, ATA_HORKAGE_NO_NCQ_TRIM, }, + { "Samsung SSD 850*", NULL, ATA_HORKAGE_NO_NCQ_TRIM, }, { "FCCT*M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM, }, /* devices that don't properly handle TRIM commands */