Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3203148rdh; Mon, 27 Nov 2023 08:30:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFN05oFazhbm3IYdPJo3XNW5RQoW5hkhNCwiFmd+TQ2AToJJ/KllFUsLDy+/fk5sMAQc9nc X-Received: by 2002:a17:902:6b09:b0:1cc:2456:c17a with SMTP id o9-20020a1709026b0900b001cc2456c17amr10106468plk.33.1701102631516; Mon, 27 Nov 2023 08:30:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701102631; cv=none; d=google.com; s=arc-20160816; b=h3V/ZnYBw1cnO/SYhiVcKzEr/rNRawlH3VEiZWOt46smx3SLN8c7iN4DwRjIaCnLhr Wyb3h6zvFdpxFSQLoLuHZLe9NGsoca0TrxQEO4a4+QuDGgor609qeJF1IzkHco/F1l5I vcrK+aATJqepX6ns7dlTVpyFA9o/X+N5QDYnwy+U+gw0XOHujNaoEDUhFaOOXuWKg2Or d6hWsXW0XWaWFbAFzrYxRrYmWhEx30cVbo6gIA3XJjuPzlaKFrbPzrzBSr0fRoja3Oq8 1I5LRrYboBxw0Gu4jPQp0ZE7upLVXHJs61L/l8u4k+mHuyODEKJMgf4jO1my3hDMtiYh ulfA== 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=4zZVFPu6senN+BF3Gp/7203o4m+A35efjfx8SF363+M=; fh=/sp31uu1n69Z5QlBuvkBZ3rCmtoiVU9EN82E449uxmw=; b=Ry/130dk9hmNq07DOPZSS4W8bfIX4aVRKnGM95hM+je90slkQMjZQzd+e4g8JvpZTk /7spEhxeu2zUmZQAj6B0MMkhcNuHBlZz7Y+XKGbIRSKZPIYv0M9YkE8wSJp4lN/x9DTM JV8SsKBV2l1taOHOwjHFHI9Vajk2lOhE7TYRBi7ZH9kpSnk/8/o4MawDOLoHFfzyRaY2 mRTlOM6qTpoF+SnDxAaUPfvdoOMT1OSNO+e/s0XMN1FjvsRdeq7uu5uLBrgmdCD1X4gw 9EI7+uuE932+cf/Vk3OyUkl7Pl2yI8Smr2B4abK9qyB4ZGb26OVvLJWvuJN64ibWIHy7 Mizw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=imJ1oOKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j17-20020a170902da9100b001cf652d73fdsi2921720plx.284.2023.11.27.08.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:30:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=imJ1oOKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CAE1180E6089; Mon, 27 Nov 2023 08:30:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjK0QaN (ORCPT + 99 others); Mon, 27 Nov 2023 11:30:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231655AbjK0QaL (ORCPT ); Mon, 27 Nov 2023 11:30:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F60DE for ; Mon, 27 Nov 2023 08:30:17 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 119C3C433C7; Mon, 27 Nov 2023 16:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701102617; bh=VQ294nCR6/7aI+HtxIgb1t+5lA/sOhUAPy8Ess4W+k4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=imJ1oOKsMju4Hk+0o8KUdr6MiKFYjYQ4Mw76S/B9/pFFsd1OQmZeRWVSVBohJzYIg gll0ZzGFwcyMcl+p0we/8HJsswfUiFrPn4iOfbhaaejykFiHVm+Ps7FXzUCsVqRrSn FJqtRUMUI5zRAa2JZF3nIs8EsWUOaHX8jMYBPHed2Dxohigz8kxdszEgegi0cjpL32 bNKiTLP4LoR/3zvX/o1JlWNGFoBfRoqMm/fMVm0B9R7k/TxZslYE/HgjGDJex1RwYo vpDPs9LAT//tOCM+822v9cAHs7G2PNnbYOjTnkXYpcIaLhpcU0TIqLptk7wNZjz6v3 j6GJ8fzXmq8Lw== Date: Mon, 27 Nov 2023 09:30:14 -0700 From: Keith Busch To: Christoph Hellwig Cc: 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: 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: <20231127155649.GA1403@lst.de> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:30:28 -0800 (PST) On Mon, Nov 27, 2023 at 04:56:49PM +0100, Christoph Hellwig wrote: > On Mon, Nov 27, 2023 at 08:44:52AM -0700, Keith Busch wrote: > > > I'd probably spell out metadata_size, or probably even better > > > metadata_bytes to match the unit postfixes elsewhere in the block code. > > > > 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.