Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4427276pxb; Mon, 21 Feb 2022 21:16:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9ReW+JaerOj7/U7xR26FZJ6Ejf7ovYhxjN6sZI3oXlvoqoXnHObokJyOuax9Lp/A86A01 X-Received: by 2002:a63:b553:0:b0:374:87b5:fe64 with SMTP id u19-20020a63b553000000b0037487b5fe64mr302127pgo.591.1645507006786; Mon, 21 Feb 2022 21:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507006; cv=none; d=google.com; s=arc-20160816; b=GR3nBvsNDFu02TjNp/rACP/JXVcYCQ95uKCoWNHuzzXa+qi7sjlFOgaOhGtaLXgP+z qgPkaDOeMMRBiwHt+ppVKNJ6kC8u8/AISUTqZD75m7E84XY1DCNeTGxlEfM5NJA/fQC5 VWmtA4Nie/Oot6/hjORkUCk71D4CQxHpSWloLMSiIrR3KMVXL9g1a3+HzJ1duOyvj5Nm uq4dIAvcFL4jJsIEewnVNDOVkGAb/KhWVloXWsnENqe10MOGTvywQqCe1UERJamzIA+r bLv0fHYpkzBmLwA4t2CaKCQMdgdEfJI1VUuCVga5Kr/BGPrcMRXSCciaeZeXsKdoScf4 5wzA== 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=2egmXeLNyySosNgVLJbYAAhzPKfGlos1kOiHL1E6nrw=; b=Ein1DTi9pjrvcTEG/cL7F5NWmzmICIbDRtYBYuH+Z+licFHdC00akmmuOgmPi+0lXL L0c/6UZ4BwpCOnUXYA3TISBgdN6Tqlf6Y82YqkspFIhuIMBfHdkZShGlQQtSYf6ShMKK a7fQ65NA1tmQS6h1rxeNreOIS0qtAB3CfLNmyTsA+qfa/LKH0QXKv2tNCEdJxtiy0UzJ rE80PUFNOdti9geQd1EyIeUYIOkd4y2qTyuN4/iMhHkqqd0OvzWbRjpXCUvOT85oZKiI xsLZd1hg0wzHHMnHqyTUf6yYGxU0C/BxdK6Y8OfbyYMxtb2AwhOOHvfpduCkrN1seRte RH8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TfWNe71r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n10si1057920pjt.168.2022.02.21.21.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TfWNe71r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5E2D04B409; Mon, 21 Feb 2022 20:48:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349640AbiBUJMl (ORCPT + 99 others); Mon, 21 Feb 2022 04:12:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347820AbiBUJI4 (ORCPT ); Mon, 21 Feb 2022 04:08:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A676A27140; Mon, 21 Feb 2022 01:00:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 424BD6112C; Mon, 21 Feb 2022 09:00:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F6D2C340EB; Mon, 21 Feb 2022 09:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645434049; bh=jl6J5B/Ooq64gp8K9/J7JdHTpm2F2YSPuQwYltenSYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TfWNe71rRhcaHYCOlzKdHB4G5aYXNIOEX/IhnLbMgEuJPbDZlMdMzCx5o6aBWz5W/ H0cUOt2XSMDqWUttkl6Gz3MrH1xD09EcQAQlHN4kDyRzAH6J1C/lyRmF4l2CGoHERw Xa6uQlCnepYJk1F+dq82d2J+D4XoFvACq+7brNaI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= , Damien Le Moal , Sasha Levin Subject: [PATCH 5.4 75/80] ata: libata-core: Disable TRIM on M88V29 Date: Mon, 21 Feb 2022 09:49:55 +0100 Message-Id: <20220221084918.039587269@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084915.554151737@linuxfoundation.org> References: <20220221084915.554151737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zoltán Böszörményi [ Upstream commit c8ea23d5fa59f28302d4e3370c75d9c308e64410 ] This device is a CF card, or possibly an SSD in CF form factor. It supports NCQ and high speed DMA. While it also advertises TRIM support, I/O errors are reported when the discard mount option fstrim is used. TRIM also fails when disabling NCQ and not just as an NCQ command. TRIM must be disabled for this device. Signed-off-by: Zoltán Böszörményi Signed-off-by: Damien Le Moal Signed-off-by: Sasha Levin --- drivers/ata/libata-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 92fb1f5b240e8..dca1590f295d0 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4595,6 +4595,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { /* devices that don't properly handle TRIM commands */ { "SuperSSpeed S238*", NULL, ATA_HORKAGE_NOTRIM, }, + { "M88V29*", NULL, ATA_HORKAGE_NOTRIM, }, /* * As defined, the DRAT (Deterministic Read After Trim) and RZAT -- 2.34.1