Received: by 10.213.65.68 with SMTP id h4csp919784imn; Tue, 27 Mar 2018 11:12:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ceEEkjzejfSJA49VUYnhEELJs9cz8VdKeOKPmL7pTahnhkWz5goaRSAjiAVZDhBpANq42 X-Received: by 10.98.86.15 with SMTP id k15mr263790pfb.187.1522174337370; Tue, 27 Mar 2018 11:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522174337; cv=none; d=google.com; s=arc-20160816; b=qLSXcJLrGFxE4vvqKTwBitqskQSo1c4XlWv4aoHeUsQLtwcU5Vna2oRs8d5F0H8SBD l/BhlYq2kO//BGReyKRzK+wcVTyoEA5woLsdjdrPAGCE7VAf6/FqzFf7OB+5oyQ9LaB7 UezwRiwvtRjzNbXhW33r0p7sPAq/LvUVl+uAK6TKauXxFBIG0zC4KTaFkF8QShyRaFQq FKafyEhqUtDPMo5Qzd7IRkPCcMxZiaYRKBCAcdK+8n+z7whf7DIe/7e7GkhtUgZC2/as XdpqIi5+IQxHagJJA2QBJsSWbiYaTZsll1iU8dO78A4oA0czrON7xRtXAXrA+lff14Fn i1Ww== 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=gytI/izoxunuov4iO8fN4Ee1cA37b7NvZyiMwvDZ4iQ=; b=wJhx/WLg4GNIEe7lHQYvuTxpbS8P0kGO38iECkhnmpeeDt82dJImhD48Q8FOMTnhsY EmdekTDa3r89NrRiQ/rKXXIuS+lfHdg0xNXwTqaHhyd7CRyaIeGeHTybXuUpcjwWWcYt 09x5Vhq9inCVAKAoQyy24LztZM3AW+3hlW03OO6otnziXPx9yBPP53WvHtfx9vv99KX8 MLZSCRCa87m062I/67Lo6zA4FLaiYLzq/aTGv7FRcljgpD1uEXJYDxVgFIN0+Y82BZ+4 Rw0rlZH6imDxAzQzWbYYgDQ2PBiBTNOWvZGWiPzwUxD9pQUyCswteM+fL2mponiBVyVo 0TAQ== 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 85si1099232pfo.234.2018.03.27.11.12.02; Tue, 27 Mar 2018 11:12:17 -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 S1752484AbeC0Q3C (ORCPT + 99 others); Tue, 27 Mar 2018 12:29:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41056 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbeC0Q25 (ORCPT ); Tue, 27 Mar 2018 12:28:57 -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 313461061; Tue, 27 Mar 2018 16:28:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Park Ju Hyung , "Martin K. Petersen" , Tejun Heo Subject: [PATCH 4.4 16/43] libata: Enable queued TRIM for Samsung SSD 860 Date: Tue, 27 Mar 2018 18:27:20 +0200 Message-Id: <20180327162717.366620634@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162716.407986916@linuxfoundation.org> References: <20180327162716.407986916@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.4-stable 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 Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- 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 @@ -4243,7 +4243,9 @@ static const struct ata_blacklist_entry ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "Crucial_CT*MX100*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, - { "Samsung SSD 8*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + { "Samsung SSD 840*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM, }, + { "Samsung SSD 850*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "FCCT*M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, },