Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp619992ybh; Wed, 15 Jul 2020 10:38:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf79IkGGgSo5jmG9nrY7FAT6gDYLAhoPS6O3TRh+JPXp7XXdIQwnvCUboY6JN8sB9KFgMz X-Received: by 2002:a17:906:1402:: with SMTP id p2mr99463ejc.126.1594834728129; Wed, 15 Jul 2020 10:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594834728; cv=none; d=google.com; s=arc-20160816; b=0Bych0vCUeRoSV3cBxIWzAFZE09PZgsBUbbK97zs6b43y/rIwTEbukeZum9uRa34Vk bzGmO33yWOMHLojTZJBRSzEeDD0671/YaGub2BurV1kegItnYFgRFa+6ArbhvyZHgMcG j9umcAB/vGZiOQ30W8+vf2rOgVTyRQ7TGpiBuxW69tAA4zpPbmZBstINu1wqI5P7yIH7 ARvxXiEu6mmLk7qNahgwp/MoQUburx+2/clHurxGlpSGWQq5cQ85NebbQH7vWr7xKJ/q T0RJLZ/v0DHceuHeq2cPuBk/1MmGCoKVLrsV6YJOGLUjCkE/gJIuMbSYSAz3Io2BKOjI DWHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZhW8t1MHdrxQztXKi30mBa7dx42Iv336zQjUMRVbNW4=; b=xDo2cKgWfkNNwXyptApBmuTaPwnWDvB5r2s3yamxW/LQ3jBSC0B8jLs9vsq2dOmUeZ NdMsVykdtvCRvGhqfcP/8gYtrioy+PW/+u57+OPjFZGBDJsex1NElnE6yTxFH8lUszhM vG0Usi5RQjDHtM5Z5vYiUenroZZLqbcdXesSUAeaQ/VO7lm4FyEIkaKayvL0NSfmbEaF XSKiGfeABNX0xKQnTsAu1OS0oYNTeXJfJw3OLVCDIlXQCt3/nR2QvLwBAHWOqzirJTlr 2Izoeasy5t8JrVHadADutDZ+kLj2mBQNrP7SHbJJWf7Ah4rEbh3+rW1S1wEeH6EQdh9d PO/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UDyhtwgW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si1548364ejn.662.2020.07.15.10.38.23; Wed, 15 Jul 2020 10:38:48 -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=@gmail.com header.s=20161025 header.b=UDyhtwgW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725861AbgGORhg (ORCPT + 99 others); Wed, 15 Jul 2020 13:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgGORhf (ORCPT ); Wed, 15 Jul 2020 13:37:35 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0893C061755; Wed, 15 Jul 2020 10:37:35 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id c7so900933uap.0; Wed, 15 Jul 2020 10:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZhW8t1MHdrxQztXKi30mBa7dx42Iv336zQjUMRVbNW4=; b=UDyhtwgWCHILCK7g1nuQJQ2moHB76sniPWrU1cxiqCgaW6EG32K1mtl9yJOc0QBn3s n0CidgEWy9usOSSeX0j9U7yrL0ZEXC252AtWKwZUgJ0EAlM8G+HgVPiOr6cGPzewqKZ4 4999bHCK8PN1UQ9BvzBpEu97ZODZ4MvKnWodt+e/iRWgnSQ0VPZUcYElgj3L3ZrVMigE 5D4tDEG7idrxtSFR0rmNr+FLbbh9ZsaR73t8Po27sG1uhMVEPGBw+ESJw7zXHY+NsCcZ T8/4z7QBZrHXWMeSP5Jb0zt6dZvH4SPLNjiGWCs9+gTpB5YXeLBsVgEVzp3P3PSj24/N YUpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZhW8t1MHdrxQztXKi30mBa7dx42Iv336zQjUMRVbNW4=; b=JjtTpvFGJeelpTk67NBp+NQht0Vb3haw2DKSqmObLEv887yQ34JaoXhdoX+Yk2M8Ot Zrm4s9Yhrrvf6zz9pXi1edGLmPokAGoWku/yf3TIDWv0Rh55DKxQ47Gait37va2MRLEc 9Mme3S2XaH5USIaGR3RGLYkla3zKwi8G1nwn08HaCW7ocJX4l/kO9tCsF+w59XAsA6ri lV2iA5RqEyEVU7Xb/sl9u+ofAK4q7SjvX1LjETscM4H5gGvmStKoqJMCHbMudfKqBk+J nDqbTeDagnKGlaLI3SuNXwOLi9wPYMD4yqPVcc4P/9kn5KgUdKXmnsk3BJp4M7g35Tzx EIbA== X-Gm-Message-State: AOAM531HwXWmsXCxywGWXj/WlcgZqiJJp4B24mSsDhiwNK2RrP0GOZCn uHhgJLMBqMedQF3LWLR9xaxNLdt9CzDSJCgeJkE= X-Received: by 2002:ab0:6510:: with SMTP id w16mr431695uam.97.1594834654617; Wed, 15 Jul 2020 10:37:34 -0700 (PDT) MIME-Version: 1.0 References: <9324ef33-eedd-b965-37e8-b82e06778aab@0882a8b5-c6c3-11e9-b005-00805fc181fe> In-Reply-To: <9324ef33-eedd-b965-37e8-b82e06778aab@0882a8b5-c6c3-11e9-b005-00805fc181fe> From: Ju Hyung Park Date: Thu, 16 Jul 2020 02:37:22 +0900 Message-ID: Subject: Re: [PATCH] ata: Disable queued TRIM for Samsung 860 SSDs To: Simon Arlott , linux-ide@vger.kernel.org Cc: Jens Axboe , open list , "Martin K. Petersen" , Tejun Heo Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Simon, On Wed, Jul 15, 2020 at 8:13 PM Simon Arlott wrote: > 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. Yes, this was why I sent out the patch. With that said though, I've tested 860 EVO at that time(on i5-6200U, so it's an Intel SATA controller) for a few weeks both with asynchronous trim via f2fs and manual synchronous trim via fstrim. (Since I was also using TLP, the SATA controller and the SSD was constantly switching between LPM mode and non-LPM.) My unit did not have any problem whereas both my previous 850 PRO and 850 EVO suffered from issues. My 860 EVO was just fine with no problem for about 1.5 year until later I switched to NVMe. Given how late the bug reports were made after my patch went into mainline, I wonder if this is firmware-specific. Thanks. > > 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