Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1669139pxb; Thu, 16 Sep 2021 12:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+wbgpoCdqmyu5G4DCxcugkwiEQtdCBv9LG0uOhiLWmaeHaRT7r9tBJXjMTaBj+6w0g8r X-Received: by 2002:a05:6402:1cb1:: with SMTP id cz17mr8425491edb.191.1631820652047; Thu, 16 Sep 2021 12:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631820652; cv=none; d=google.com; s=arc-20160816; b=gKGjQegGZ0uiscK6YIYpvJoVO8iV/tKK9QmfWh4VabMEsK5UOlyhYs/LBzQFJuSnes rCQvTnaLAn651i2ipKvA+uXcsnbLONp2QH9HuIcu+9V/p3hAo1T+mugFHumn1GRB/a1C TTqAkEYy9wxPC786zebqUfQXdt96z5FlKTcfljgh7rEZtLd6vwxHJx5VbRz71Ub991b0 e5NirWHhM4XnxV9082ZbMrf4cUOTsstDLmJWw6ARAlqE0sElWAN1L/HNphPpgiZyPh+8 CI/c6RjUY//Q9gMsc5/XemidSuEat2FNnUhAPGkGyGNKEZQ+FQiFezW5WwPtP/+Cqqxy d4Kw== 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=DjhGI634EyIexQQuWyq4zcua1wAb5fTHUZHFwNowI8k=; b=NJdGpQtODwwRpRdnRb4gUBvGBTBy4uuUv8B7HjnsKeSNG/leBvh4Wnn+x7IvIBcJXw qd1z4WfLSde3heaisyhTFUihgt75qspwin1f1m8UCqhg6VXznvXlG3I98uBMmP3aqVmW iosdSnZwJ2sH1LpgOZRmHTeKImvrXNm4nFTO3OzhMOmGR1DC5KyNeWEzXZ+DsgQgm6Ax qPNObsEgZ7GE7i4sFk9nbFpO4nqpzKgwihM8tPabXrbK4Gjd15GDjqNWxe6C+2aClw5H wpKsMcAWmnz60CJ2Vw0Y2eBNvZnJ+IxxsYWgIwlcAfTa6Iur1iTMv6m7JqF1ImShgQ2s BPrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kMjRJYoX; 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 5si4372150eji.628.2021.09.16.12.30.27; Thu, 16 Sep 2021 12:30:52 -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=kMjRJYoX; 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 S236143AbhIPQJO (ORCPT + 99 others); Thu, 16 Sep 2021 12:09:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:45880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232046AbhIPQGe (ORCPT ); Thu, 16 Sep 2021 12:06:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 96BBB6124B; Thu, 16 Sep 2021 16:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808314; bh=ag+uAeWKPVFNvafpIGu/c0r020QZZsSQcstWyrND3a0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kMjRJYoX3x1upYWDVcGgDJYkhnfscFHikN72FiM2P4gc1VADMgwTVfHoXY/heBw2R +3Sza1LS2+FrsOwPnyF4BfRJiYgGdaUpNDVSk6xmQQJ1ONBzJXQgGanjWNIIjcrjsu vUBrXLhDTW1Us4WyxGzRqGk0krkWpi7UPr3eTJwc= 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 5.10 043/306] libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs Date: Thu, 16 Sep 2021 17:56:28 +0200 Message-Id: <20210916155755.412749543@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 @@ -3950,6 +3950,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, },