Received: by 10.213.65.68 with SMTP id h4csp851567imn; Tue, 27 Mar 2018 09:57:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx49kBCd4kvacfAL3Emo/msDZkIKaWW5F1OHLCEoF+1RTmCSFs9MBR3sXeOmw+eAD7yzpYVVQ X-Received: by 10.98.139.143 with SMTP id e15mr104166pfl.134.1522169870495; Tue, 27 Mar 2018 09:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522169870; cv=none; d=google.com; s=arc-20160816; b=OaumEnH1xsuiomcbgQZkgWbXt9aHYTVQlVwgb92KRDCYAznvGK39FF13adxw0Qkp6B BPWG1qvQLciEjXLhWAZicBR0OW3yteS8YD4wrqtXPt2olt3Zd/4waML+su9OL3rXrzLu 1zPQ4HitIqabVQSwaVyX7EIQuKcdLx1Cz7P+dt1Eochm4nqkzRWNEL2EiikCno6KMBjW Ez4yJkGRMZ0+b4sJc6rLMlsWxh2KkO6iodlEtYliL+0gcFhpkPvpAzRnDikdoBUViXPv M73TX6W/gFgPlfKaqqblQ3+aJsQ0cFA03BtSmU2CSeLFBHUtL+toEaO4Wx7D/DXh2OIq sR5A== 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=Ih0Zk1O6vwYTcm7AUhdhdwZOyBlBiPLWGEY0YukqtDs=; b=AW0PSDpGfcjz3GeZ5CzSRt+LaPbBx6vqVQqyf9Cr4SesqwHv/Ux5OXKR4EvB/LgstB Ki8Kuhi+ZR6rytkwfOIgK1DiizDXdRHMyqCHm/ujCEHkrqKAHf4pmQZO/XxODfiRtjyN Li9YpBhjyjlp5PzhridB1pPXGH8ABCPD8Db8y393PMcgClGQhGvTq7hP/s5VFhjgAmtl N2C5P6hLKx1JlbLTSWCCFnOjYTPjNtVw6nKqT/PkG5+0wCpNm6yr/dzEcWDgr2tsowXz NyHzO2NfEcJpHWGU7f5E6oyZlSK8TmpNHqAQy1sCYKi283NP5k7mfWbzZ6n3oGf3NGNF 3AKg== 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 e6si1094882pgt.198.2018.03.27.09.57.36; Tue, 27 Mar 2018 09:57:50 -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 S1754333AbeC0Q4H (ORCPT + 99 others); Tue, 27 Mar 2018 12:56:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48822 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755553AbeC0Qlp (ORCPT ); Tue, 27 Mar 2018 12:41:45 -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 9CD72F51; Tue, 27 Mar 2018 16:41:44 +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.15 039/105] libata: Enable queued TRIM for Samsung SSD 860 Date: Tue, 27 Mar 2018 18:27:19 +0200 Message-Id: <20180327162759.687986732@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@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.15-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 @@ -4549,7 +4549,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, },