Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp568644pxf; Wed, 10 Mar 2021 12:02:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvmfEccVJzkqt6a5pxts277yAW6ixQVh4NBP2QN1yKm6chcLr2wNKwrCQKkuOyDuGrnpmL X-Received: by 2002:aa7:c916:: with SMTP id b22mr5245255edt.299.1615406528999; Wed, 10 Mar 2021 12:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615406528; cv=none; d=google.com; s=arc-20160816; b=Ty6Pth0ImRoYMrUFNPWATdRRZvVhyfT7rxH0C/txy+ClJNpnejblVanMCYVwk8I96f fP0KRxQAdFyA/qj0qZBP/HJHvZB/odTmP8EUDTnX6+DJcFKzFgAjdF8j+QYCZrKRSu2x eMeg5hRv0S9dsXRP7tuJKijFk+6dhFd2k/CZJZxad4XYfJLsdBnyL5hCUqUFKeY28JY4 z3tlx/cI61nhTfAysrCzdIYYGHaOJ5M+llQP6q+LM+VOy6bsBcolYh61cgcEVoj6oi38 wY39mNDL/b2zxA4KQsGsIV12s3uLS6Yr1QWhvhZwGVL+erv+kDWwJl/w9ZBXyYvOdis0 HjvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WAYPjz8jyFu6BwzszeQdnii0fo/IbcjqZTsYngCfJo8=; b=tckGEAoZXBsoGWacgW1Xx8JKcGpzvmJGA/wdZmotAf7+hjHwLOWkIIXekZqergcqtK g6ePAixWm63Tx/uslTrR2VM+aIzgAQjTwFSsMpFQlxoUIENcYvI/82xQjspbjQho5T/s n8wYrcTh/kSnbQVzFHnwBwhdiyxrzthr/V8Yp53sRMQFvqGkcbLCmgij0wR66xEhsqy7 HQHbG0BaR/7OGxt0+B1T7RBXdd3Rdzx2XmzD1p2XFKAEwWwwbwGmU2HH1mUBQ9WCEuic MAMZBc4Wqfwm+W4you4KBOfQvJE7lyEm0ruwbaDC7g/JgDGGhMlIzo6UFH96gOPRfHgK WXvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c/5yve2v"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si255115ejg.131.2021.03.10.12.01.45; Wed, 10 Mar 2021 12:02:08 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="c/5yve2v"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbhCJUAr (ORCPT + 99 others); Wed, 10 Mar 2021 15:00:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:52778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbhCJUAd (ORCPT ); Wed, 10 Mar 2021 15:00:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D34964FB3; Wed, 10 Mar 2021 20:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615406432; bh=pVgQV4hgVAutwj1GryhZ9nxWErZLYiahMjlWWHBGa4c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c/5yve2vuxSJ9sf+pnPtdB8dNt8V91hiJIZOyG8lICUzUa8ivNp0nsSPZPx7Swimq 9nTVe34G11TZluYs8zWG2jK51uwTkjWT1lS3A7fPjOy6F01X2hxQngSFXe6na83eMh l9ax8htkr+0viTrdSkd2RTZeZr/w24U9ygHa8ubpKLJoEbtxMvgsUaW0bJV7pYyW6r nPz02aNgmdK3GYFfrFhA+5O6wvgnukYOr570eB1FvCArw2aFkIMQ/0IqSZ52zK50xY prW3NBiRWFRaVXhiO0lMI3yhC0hBqrlbhG61uzGh6SIV1+LNeRBE9B978+zrkcnDmu ARTRFU683c6Lw== Date: Wed, 10 Mar 2021 12:00:30 -0800 From: Keith Busch To: Christoph Hellwig Cc: Dmitry Monakhov , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Chaitanya.Kulkarni@wdc.com Subject: Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a Message-ID: <20210310200030.GA3377333@dhcp-10-100-145-180.wdc.com> References: <1615377076-3251-1-git-send-email-dmtrmonakhov@yandex-team.ru> <20210310132156.GA12145@lst.de> <20210310134110.GA13063@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210310134110.GA13063@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 02:41:10PM +0100, Christoph Hellwig wrote: > On Wed, Mar 10, 2021 at 02:21:56PM +0100, Christoph Hellwig wrote: > > Can you try this patch instead? > > > > http://lists.infradead.org/pipermail/linux-nvme/2021-February/023183.html > > Actually, please try the patch below instead, it looks like our existing > logic messes up the units: This seems like a good opportunity to incorporate TP4040 for non-MDTS command limits. I sent a proposal here http://lists.infradead.org/pipermail/linux-nvme/2021-March/023522.html And it defaults to your suggestion if the controller doesn't implement the capability.