Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3824917rdh; Tue, 28 Nov 2023 05:05:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8DMZUEjaP2PwxNkX/rz9eOHEMeIQ3VEOf0Ft2Em/27Sj6Rw+Ms7Yqnzh924PmzN6V5LoF X-Received: by 2002:a17:902:6bc5:b0:1cf:7d38:b6a6 with SMTP id m5-20020a1709026bc500b001cf7d38b6a6mr15737216plt.57.1701176735607; Tue, 28 Nov 2023 05:05:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701176735; cv=none; d=google.com; s=arc-20160816; b=VTnl/767COawuMt6MkQ4Hv/xFSNEjGmLJMcV2DUwoWZEgo8irw37fQVSly/qXDZuyS GGHJqOS2PSUp9Maoo24t8aGCTAb6RnSBxnw1z+SzHyAsbSwoVqKXaQ4qgMaA5OyyDgIq 8wpQ3b7xdCCNWiAnl6t6lw5LoyXAaIXaqct882iGgs4CAIMFU0WvXxem0dV22x/S/IO2 Rh5TvQabNomLsve+ISIBx2yyW70jO8ljG25qtVK3ezAWiJ74z+jGHgNlwh1JY5BWxPuU fUWRyOA44QrFxfNWU8ZzjQtIBH8qEZrR/QHjwm5p3vt2dauGp47uWrAL6dScStWuSBc/ HmjA== 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=xlszBjOY4v9e30H6w+I08NlAofN0K1JQn1ljbWROkGg=; fh=Rs7LA2DzDy0nYW9l/f8PlLUcqFd727e+KVytYlvjosk=; b=x9odNga/Ht91IcnXh+D9WK3XMBNOfTocw83Icw249ZI9ZPZlNltHkYS02k1iNefQ25 QCAuJqcR+t7BUWwzGFTvTqynz+q01tjb/CpxJj6HolWZOWl5szM2xbVTnPRrHoBkAWeS o+n8KNtCTQOCpi4UgzaOpwKOCnZdiidgXAkeZmS5Wbe2stetgqlP6UYX6DBwBKx4R+GR UHsnaGP38WfBRvsHh4QYDcr4I4RZG+EVTD+PnB0nuPhUjFWTZP+HebL+jFdkYK1CbJFz C1loS4Pt8hpP2pfnK8XEd08wGZOPeQ0G2jTl5S4cWUlg4ekNQez7xdn6k4s8tI/xLrh3 W1lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i6-20020a17090332c600b001cffe392e7dsi1032965plr.329.2023.11.28.05.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 05:05:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D5A298077FA0; Tue, 28 Nov 2023 05:05:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344846AbjK1NFI (ORCPT + 99 others); Tue, 28 Nov 2023 08:05:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344694AbjK1NFG (ORCPT ); Tue, 28 Nov 2023 08:05:06 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26DCB18E for ; Tue, 28 Nov 2023 05:05:13 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id C62A9227A87; Tue, 28 Nov 2023 14:05:08 +0100 (CET) Date: Tue, 28 Nov 2023 14:05:08 +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: <20231128130508.GA8221@lst.de> References: <20231127103208.25748-1-dwagner@suse.de> <20231127141857.GA25833@lst.de> <20231127155649.GA1403@lst.de> <20231127163333.GA2273@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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 05:05:24 -0800 (PST) On Mon, Nov 27, 2023 at 09:46:43AM -0700, Keith Busch wrote: > > > > 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? > > tuple_size is the same value as metadata size regardless of PI usage. > See nvme_init_integrity() for how this driver sets it: > > integrity.tuple_size = ns->ms; Yes, for the case where we actually support integrity in the kernel for a given device. But if the device has a metadata size larger than the PI size we still support it, and just let the device strip/insert the PI. And if nvme-cli wants to report detailed information about the namespace it probably needs to report the actual metadata size as the tuple size won't be reported given that we're never initializing the kernel PI support.