Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4372337pxb; Mon, 21 Feb 2022 19:26:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFZjglo5+53IidYCvGCXsAEQ6ZoSn/MnSCgeTblnLdC1/hmCJkYv3IEirCaAudpPyZ+Ui4 X-Received: by 2002:aa7:cac3:0:b0:412:fdeb:a5fa with SMTP id l3-20020aa7cac3000000b00412fdeba5famr8414398edt.257.1645500367937; Mon, 21 Feb 2022 19:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645500367; cv=none; d=google.com; s=arc-20160816; b=Vc9Yn0lvkVqeQQZvIvbdmIALCP0l+3YqK4ZdM5bD48XEFjaswj1tEpCJQH0qaPdyrC eLLXbU9dkaftyLeNjVPxIa6IQZoqosRA/uhx49nurGqVB5kBknBsLvxI1SiWhOyhPi3h 90c84/E47zp8stSfbsCMdRmWjpCjd4v3c0CEbv3K4wZZg5p185IWEvs7UwKOUkRBUcuC 9256Mc1SyAGQ+EudyVIyR9Rsx1OtjnKZtq8Rbe2IPqkuQObBGn1psVzFr52zufhIovHt ZrnrlCdWTMj4ux17DoEcfjLbd2lBeCVxftvbmCNnC/U2d/6wPxhuVLhKIE/Y+Z+dGR1X hlQQ== 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=pBnFud9MuHt1GPBCFRgEEFbvQSdypu4/JRmXkPM5I7Y=; b=PblLgKSDwFJ6PxUIZCpwWBdMFckwJBUN6Qnt8LIVvVzM6oubwOkcTMLdBqghgpb/hk Dm1G+QlDw2JFGyqdID1lV21mRFVcB6h89J9tgFlD5eoqFDmZ41o5SIjB5EkNvEvOpdsg 5HfH9savJjdSSdnOPWqmS/dbXnYlDPeSg+qEKVcIZvVfHZ5b9ADNqbyDeyiyjGrzmOhq pTQpGnawqujlkdqxfy8NNY8OxkAI/r8xFoqE1MImZnZmcLCnjCSdScBeOuraez9QysX2 HvCY2GBnkpO53NXLtoHK6/JG0kl55lV/ExeEJZRy4kftH4ysDudUMWLo7uWsE1FULXtQ 8k+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dH22rtgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz26si8174515ejc.705.2022.02.21.19.25.45; Mon, 21 Feb 2022 19:26:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dH22rtgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1352656AbiBUKFk (ORCPT + 99 others); Mon, 21 Feb 2022 05:05:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353579AbiBUJ5e (ORCPT ); Mon, 21 Feb 2022 04:57:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CE01EAE7; Mon, 21 Feb 2022 01:27:00 -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 63ABE608C4; Mon, 21 Feb 2022 09:27:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C65AC340E9; Mon, 21 Feb 2022 09:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435619; bh=4YZLmcvTI8pYJhYRl0jjFbpiq8bJUJKypK/bysrLb/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dH22rtgPghXXSUwj9YPk34rsae4TX6zxICnzzc0dI+iRHa0BBKjzmXtwTJkOXpJ/R 46fXCpMFRRWnM0o11I3cGfZqptJPUKwyDDz9F3rkAhTVOKH1SqlppYVQgrPvpNQjNV VOhJR+K7/4g0Qilrna8WlwzCeSl5rAtrjkYFNncY= 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.16 216/227] ata: libata-core: Disable TRIM on M88V29 Date: Mon, 21 Feb 2022 09:50:35 +0100 Message-Id: <20220221084941.994915241@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 94bc5dbb31e1e..63666ee9de175 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4079,6 +4079,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