Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp391036ybh; Wed, 15 Jul 2020 04:55:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqvc0FL/ys9uax81I6Km+VfIjTbhfSr7GUJgqMVvXYjuFe+ZMkbErTxeTgd85rS0Ak+k5O X-Received: by 2002:a17:907:100a:: with SMTP id ox10mr8559036ejb.351.1594814128269; Wed, 15 Jul 2020 04:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594814128; cv=none; d=google.com; s=arc-20160816; b=EbJbPy4wAN2KU3sOm9S0x4bJvEVGMBJ1w1dYI1aUnqHtn6QAFFXNNC2xeeSZdN+cId WRnvApSbSEz46qzQ066mAI75yMaw5UAlEkTG9N1Pt2WMz4YsaqRn7HRy99BblLa7czMM c5XHMUMfgldhEk55Uln0tObgkfmXy/geGqJ3/TwdA5dEKn1FMkV3VUA6Q+78GxTbp5ij /E0KXi6AnDUErDfuPuOt4x2KCg0ocAUSzWcz28fVq7DQJAgz0jNuPMJqidGwVZhuObom UYJiqNZydhO/RNu0ZPgxLjJfD5azQHQjUbm6xo+FfteJzbkjmVj4LHnztBP2ly7cAsGj 1hzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature:dkim-signature; bh=BNbPwFNjGOZuIyTmfC1KF3tsumtB45tKs1PO9XQlp80=; b=NusZ7kloUaFbUdyTf8VV0sR2/BQ6E1v2OaPt0gftOjEkTrv7E7vz/Sv9Vv54CTyIVG BcVxflLuSp4ITodiEvWtwoPKi4KKYGZwzFtQKOFqhjHMgiDbPlQhImfhFesIYQ6mCms2 dylOuETJR3Gr7tcvhJTooFBZWjXfPUyd13E89W2M9MsgGasMfaOKNASYD856rqc7j7+p YHZzHvaCWNCV57hAH3x32dB+IrTJHN/8alVceuFzLRYoDIAmvCGpnumefmhPwYA8/ZZN YUidDY4e8kYHdRvZqJzvTGx/rHKnw9U8Rr3EQ/xrnWeMfjqm2ws2KRI6GB1CqDlQe7uI t9jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@octiron.net header.s=20180214 header.b=ClPUNCrp; dkim=pass header.i=@octiron.net header.s=20180214 header.b=ZZCOflpN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=octiron.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si1068267eds.524.2020.07.15.04.55.05; Wed, 15 Jul 2020 04:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@octiron.net header.s=20180214 header.b=ClPUNCrp; dkim=pass header.i=@octiron.net header.s=20180214 header.b=ZZCOflpN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=octiron.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725832AbgGOLNk (ORCPT + 99 others); Wed, 15 Jul 2020 07:13:40 -0400 Received: from chalk.uuid.uk ([51.68.227.198]:52568 "EHLO chalk.uuid.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgGOLNj (ORCPT ); Wed, 15 Jul 2020 07:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=octiron.net ; s=20180214; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BNbPwFNjGOZuIyTmfC1KF3tsumtB45tKs1PO9XQlp80=; b=ClPUNCrpsVyHg5X8jnMvD9oZKH FhrWrjk+VLs06Grjai4jAkyxcq/If8dMqmfJRN7ks8gx5zlkY2ItfJrAjvEv/y7dBeBC8rty2LXwa R3xlla8YBYjLvcsgJ+8aMZgZ/sAlvYnCaOvAS3Zmns/mcYpNX+rOzgXVbV0wH5B7uCPpQAGgLGT/H +fGog4RZuW5TSV+CsqnYwonNGr3pW75peYxPAFkMEsAU6XyY4d9pWnI/6SaksOUlvrFUa++MlZHDG xkEujtSfgerxVbi9n0iGZZvgNGc6+jmZ50/Tj7CYVERPCo9HEdTIghvczN99pbsMo/SVfffHAndKM KzIQFNjw==; Received: by chalk.uuid.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvfLr-0001yH-N0; Wed, 15 Jul 2020 12:13:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=octiron.net ; s=20180214; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:Cc:To; bh=BNbPwFNjGOZuIyTmfC1KF3tsumtB45tKs1PO9XQlp80=; b=ZZCOflpNYv1VZQPRBAzdREp386 1JrKmZnbPQB4nFbETmFCFcurWi0O+qkMWhH//GXeb4DD0OpTHtN713EIVh/dOuF2YXOHhsj0DH0Ah hlu1MulypgZe22eO3n+Fm2hRuJaWxmnD6ohsehVRi0uVUAibV4/mA3nZ6lP/rj2vxDAoVIcKvHm/x YrRmzS3SGuFGWjx6FZUtF9kkftTgn24IRrCRt3OKo93sBA4mA0gUbWLP0v3UFm2gDwOXlnLc+gMn6 8odnar77qLhC8/Mzfui8PrfR0RMuC/Ov2jP01gNhUnL6Yb2d2S5tluEqS0peC963JzATEKV0BGzwv eS8+lx5w==; Received: by tsort.uuid.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jvfLp-0006wK-Cc; Wed, 15 Jul 2020 12:13:25 +0100 To: Jens Axboe , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Martin K. Petersen" , Park Ju Hyung , Tejun Heo From: Simon Arlott Subject: [PATCH] ata: Disable queued TRIM for Samsung 860 SSDs Message-ID: <9324ef33-eedd-b965-37e8-b82e06778aab@0882a8b5-c6c3-11e9-b005-00805fc181fe> Date: Wed, 15 Jul 2020 12:13:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Despite the unsubstantiated claim from Samsung that "the improved queued trim enhances Linux compatibility" this does not appear to be true, even on Intel SATA controllers: Bug 203475 - Samsung 860 EVO queued TRIM issues https://bugzilla.kernel.org/show_bug.cgi?id=203475 Disable queued TRIM for all Samsung 860 SSDs. Only the EVO has been reported as having this problem, but the original justification for enabling appears to be based on marketing material with no explanation of what has been changed to make the 860 work properly when the earlier 840 and 850 both have the same issue. Signed-off-by: Simon Arlott Cc: Park Ju Hyung Cc: stable@vger.kernel.org Fixes: ca6bfcb2f6d9 ("libata: Enable queued TRIM for Samsung SSD 860") --- drivers/ata/libata-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index b1cd4d97bc2a..02e861aac5ec 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3951,6 +3951,8 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "Samsung SSD 850*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, + { "Samsung SSD 860*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "FCCT*M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, -- 2.17.1 -- Simon Arlott