Received: by 10.213.65.68 with SMTP id h4csp902203imn; Tue, 27 Mar 2018 10:52:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+VezNhWRo9H0spK7L4kTjucCOWe+wNq0Y+EtfKjO3lHy2ybuE6oPceafWn1fCUM1xeHJjI X-Received: by 2002:a17:902:2cc1:: with SMTP id n59-v6mr300111plb.198.1522173165343; Tue, 27 Mar 2018 10:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522173165; cv=none; d=google.com; s=arc-20160816; b=eFGFLFerkHLftTwCtv6fe5Hi+J3P3w21g3YN1TYjUazPiSVgaBBs2rsaaB5kfM0lcW TyXu4DAsAp8o1CkrbFLHwCxpNwmjAHgLEjGHJWWwV6lYMWPLuT3UP/IkNV3oNqXbzVyF QNKhZilWGhKDSP7Q/KhDWMII+vT4BYeZ402fwAp480TlqKv3TGbtpQzPUjf7P7qNFGY/ y7cuDCfsIikdXgZK+Th6rxLH/yRe5poQEJPmDT9TyF8Wbz4Rhth3GWYmTDz4/uD/XpoO F1JWeqjSX+teX1HzxGyCsYjd/0MIZRlcYVReuOr168keZkpKLwiJAJ749Y+er2m2aOEL 7KhA== 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=2LB1FvTCvZ5HaqzWrOZ1FjZUqRUnGraEa130GDqm60c=; b=yMk1YU6KSqWLZLUkI5xpztUFuE1vlbBWMI4YRjy8/yVjQe2MROa7NT8CkXidBs6DFR EVkJBmdBZAErbA+BNpajM2/h69wbEE205TdS0Ct9W8a8OpJyEQ4I5i4czrX+t97Metqs 8pZLc4VLICgXafRUlUPeoKYyXsklq41tBuOT9YP3SeAOwzcIJmSYRbrxBSPg1H5JUYhy bQUYytTs8XITKib7enLjTWeOnZsoaxvr1pwyXmv0QBVw/KphiWiNRQBqTyljDcLh/LNU lydnLR2QacObquUPs/6sNz9RClACq3RMvJ2Ss5aMqMfT8ELChHYZK72fn4gpEPJgCQyM W7yw== 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 x9-v6si1711050plo.41.2018.03.27.10.52.30; Tue, 27 Mar 2018 10:52:45 -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 S1753619AbeC0QcU (ORCPT + 99 others); Tue, 27 Mar 2018 12:32:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43282 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753602AbeC0QcS (ORCPT ); Tue, 27 Mar 2018 12:32:18 -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 A6EAEF51; Tue, 27 Mar 2018 16:32:17 +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.9 19/67] libata: Enable queued TRIM for Samsung SSD 860 Date: Tue, 27 Mar 2018 18:27:11 +0200 Message-Id: <20180327162727.817056943@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: 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 @@ -4422,7 +4422,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, },