Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319100pxb; Mon, 20 Sep 2021 18:41:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdHmjcdE7C5iaB6SNYa4a33udvV8K60yRTei6+u1MLRPzQzqi1Z35W0awMEX+rEx5ay5sA X-Received: by 2002:a92:300c:: with SMTP id x12mr18941549ile.230.1632188516346; Mon, 20 Sep 2021 18:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188516; cv=none; d=google.com; s=arc-20160816; b=dT+0mvkwV1PA6T6msctKblpvL/4C/g+tkxn5HAJEEaUzvnbhpqnl0RDREjAkYFeVZ5 CeumODnOEwgoc+tSduQ8hUqKvDsbVJE8fldKhotncKcoMNeWZ2Eip9CJNn9mUZQP4wET F/Q3c3KQJ/noFq0UHjNEMqrkmSWVUlToKTb1aqmVdSD89/ZRwaAnjBEtcTG5PP6K11W7 MBkIAThJmMV82KKFVKvgTEjLcjpDGmPYPnRyaa83zfpmA2+toQ5EbCt58m+gIfcNukLn CpL/D0AIoxedEjA+bKlMJ+mwITCYPrDiquzs/nvxYjNzW1iPBhpkbE4KLYfKzRsgKWgy //qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=geMfNShxSMg5/3Dx18Vd3ou3T1PH47SPGtMmzaUFB0A=; b=OjviB6axl54wG2jCTkpWVq9VdNsJ91AmW99gg0D0CuPJl1DKZ8IdWkxGoHObLfD5v/ Ekbca8yb3l8psWLApiFXA/wQET/OXKqkuruRLDr6WgKG+FN6V3+QWRE1eF6sMsxHPf4s mIvtritSlCZRuOCGFvbu9QTK7K5PUIq5TF/BUz/X9higRocUdI+VboVPe+uAFGvOEHaO CF5GdYzjhgulU3ssC4eH+552OeyBjAOaVsSU+AZvS4CBZvwRBN6MsIPPMw32DMZQ8w60 7XU4noEmcpn5nXh+0sDctkTsy9tghZhrnXO9ppe8cIa5RbWRM4THkCS0eNieEq8oKVzO hxQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xD3wR3MZ; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si11330700ioy.30.2021.09.20.18.41.45; Mon, 20 Sep 2021 18:41:56 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=xD3wR3MZ; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244743AbhITQvO (ORCPT + 99 others); Mon, 20 Sep 2021 12:51:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:36554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244233AbhITQt3 (ORCPT ); Mon, 20 Sep 2021 12:49:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 331BE61211; Mon, 20 Sep 2021 16:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156482; bh=JkaER5FJjz+Dl0w0GNt3SgezWLKc4MmQDvlEhsU17i0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xD3wR3MZbPXYAlLuTUBthd1tmJMYbVOzaExBAEY1QEZXkwQHH8zlzewMIrW3Nk6oZ AGGZk1RLW1NT9QC9kC562sOcbb5fdihii3J0cdhEW14c1OPYA8+yeYz+UV45OXMO9M EHtxnrqtgv8lJOKfRQauf97I5LUduoSYjpdrPez8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kate Hsuan , Hans de Goede , Damien Le Moal , "Martin K. Petersen" , Jens Axboe Subject: [PATCH 4.4 079/133] libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs Date: Mon, 20 Sep 2021 18:42:37 +0200 Message-Id: <20210920163915.230020798@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede commit 8a6430ab9c9c87cb64c512e505e8690bbaee190b upstream. Commit ca6bfcb2f6d9 ("libata: Enable queued TRIM for Samsung SSD 860") limited the existing ATA_HORKAGE_NO_NCQ_TRIM quirk from "Samsung SSD 8*", covering all Samsung 800 series SSDs, to only apply to "Samsung SSD 840*" and "Samsung SSD 850*" series based on information from Samsung. But there is a large number of users which is still reporting issues with the Samsung 860 and 870 SSDs combined with Intel, ASmedia or Marvell SATA controllers and all reporters also report these problems going away when disabling queued trims. Note that with AMD SATA controllers users are reporting even worse issues and only completely disabling NCQ helps there, this will be addressed in a separate patch. Fixes: ca6bfcb2f6d9 ("libata: Enable queued TRIM for Samsung SSD 860") BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=203475 Cc: stable@vger.kernel.org Cc: Kate Hsuan Signed-off-by: Hans de Goede Reviewed-by: Damien Le Moal Reviewed-by: Martin K. Petersen Link: https://lore.kernel.org/r/20210823095220.30157-1-hdegoede@redhat.com Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/ata/libata-core.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4269,6 +4269,10 @@ static const struct ata_blacklist_entry 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, }, + { "Samsung SSD 870*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "FCCT*M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, },