Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3206046rdh; Mon, 27 Nov 2023 08:34:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIcxMiLbU9te1+S1Vdy0EZrGy908nULQE35ZIdfzG5T8bBWFofomEe9tUYR5LgOPeioFvt X-Received: by 2002:a17:903:1107:b0:1cc:5a74:b1df with SMTP id n7-20020a170903110700b001cc5a74b1dfmr16715620plh.2.1701102844636; Mon, 27 Nov 2023 08:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701102844; cv=none; d=google.com; s=arc-20160816; b=ZZd3YNTdgszrMPjafAX6sjV2DtW0MJStwh6hWeLamAB6vu8AxqOUktV+ao2oGiGtRq B+P6WyVhD5SFpqRewBKQSWx1pKWSq7Ee6dAsoCqPR4n+6nQ/q7Rfh5R/BY1kngSct1/Z OzpdQooDdcGhwrVkopWBhIhc9CQz7FKqOElOYQK9yMp9nlzarUQZWKbS+mzvRKIFyS34 skTd1KdjqDyws0Sfe15164BTY3WTJJqx7EklazI9YPVJWBFrRNDHjKmSLFBeQLjxjD7E WN7o1cMbV0v696+ws13w3BYNQ3Abrmw74Vryf0Z1G1t2cL4teleBg7TF1DpKak8QLGbS A6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FYybJ3/eV+hh/TvadtemFGwdudaTBIH0r1daSQ1Uaxw=; fh=Rs7LA2DzDy0nYW9l/f8PlLUcqFd727e+KVytYlvjosk=; b=OiyH55bK+0EAFdZrqCQTwSJ2cIrc9dR67jCIXaUOP5QHxauNhINLCs0ce9a60TGEQl /OTR3mI7AqEEbJ+BnqHfpdHJ0z2PXkKclbHhx+plzEnuJUrZ3qHXDAAj6D2WttgoBV+f genR4ItMUJm1hQcc+U07b3pxhdzXWzWh7c5UGI0Av8xSKH1ZLc3V0unBZH7F7l1rBy6+ j/bSiSmlfc+Z/PqCWeS/YOURGottQ+pE4I657VQNGWHdJbw6ID7xGbi8zyLzp0i29puu 9a9d/bVZ+Yq0YCKK+SWNuQOmLMFdS2kPfhElxzkW2Re1yxi/O/zYlVJRx2gJqMVki1Hh MLBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q22-20020a170902bd9600b001cc38a6cb77si9654128pls.204.2023.11.27.08.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:34:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AF9C8805C720; Mon, 27 Nov 2023 08:33:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234136AbjK0Qdo (ORCPT + 99 others); Mon, 27 Nov 2023 11:33:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233809AbjK0Qdi (ORCPT ); Mon, 27 Nov 2023 11:33:38 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03149D63 for ; Mon, 27 Nov 2023 08:33:37 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 89A7C67373; Mon, 27 Nov 2023 17:33:33 +0100 (CET) Date: Mon, 27 Nov 2023 17:33:33 +0100 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , Daniel Wagner , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Sagi Grimberg , Hannes Reinecke Subject: Re: [RFC v1] nvme: add cse, ds, ms, nsze and nuse to sysfs Message-ID: <20231127163333.GA2273@lst.de> References: <20231127103208.25748-1-dwagner@suse.de> <20231127141857.GA25833@lst.de> <20231127155649.GA1403@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:33:58 -0800 (PST) On Mon, Nov 27, 2023 at 09:30:14AM -0700, Keith Busch wrote: > > > Should this even be an nvme specific attribute? I thought we should have > > > blk-integrity.c report its 'tuple_size' attribute instead. That should > > > work as long as we're not dealing with extended metadata at least, but > > > that's kind of a special format that doesn't have block layer support. > > > > Reporting the tuple size is a good idea. But is that enough for > > the existing nvme-cli use case? > > nvme-cli currently queries with admin passthrough identify command, so > adding a new attribute won't break that. I assume Daniel would have it > fallback to that same command for backward compatibilty if a desired > sysfs attribute doesn't exist. Yes. But does it care about the tuple size, or the actual size of the metadata field even if is bigger than the PI tuple?