Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1758072pxb; Wed, 2 Feb 2022 11:50:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyV2SV1YP6CK8l5RCjyhtSKyV9WLUHSHf21IphyyRFg+vwOIeyhnKmxwP7QZ6jVCNxw260E X-Received: by 2002:a63:e94e:: with SMTP id q14mr25551795pgj.376.1643831406366; Wed, 02 Feb 2022 11:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643831406; cv=none; d=google.com; s=arc-20160816; b=Su4MYBORUxExEZfEnMRvqHGC9EDoZ8xfuQ8E/GSgqPz5ESrHsUaNTCOLEVgs/wmTL6 yz2Njl42PYEtmCvXVRBosSC41GH6dbNk9tA+ORxhP8detvRpunqflRodEAh6nULNM746 aYCe2TDShMh0qmxjso/q960k8ZEj4Yx71N4AwFVcm4grbfd5vRYrC3H+aoY/ziXZ951e wgxWN4451Vsjceo6yMVo+gdWu9WVuyW7hlSjbEdkYVT/i+gMsnKzznhMn/sjKg5Ax2Q1 eDNJ0Uv8lZ8jEmU+WY6QxZBg/czo/FM67mccuxLsCGAYU+9e/P4sAjv8c3R2fDukMxY3 oaQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=F1UflJiT/C+aLCGaPFrCtnXw6syIU85V9VqllgoyNsQ=; b=miLMuxi3d79tdwe//iv/6zuQ067I71uPMvOodV1OVXTMbsHMrs17vO3B9VNEL+64ji i/FnXQgua3ROV+7KYuN9EitalDKCzQkm7lH/V/8JdMXSMyVPLYsMzvBNO6FDTgl892qR CtcBatP++DFV9iIApFZ8Foy1WLERiDiz5sJ95ZW5hwJibHyEgOqDlPKSULP7l2Nayc/w J0jnbdCBhSPjVyyAyUjtf8du1Vc7FW9l8zQ7bXIpc1SF2nEISrX6S4FCI2rm7vL4CrkF LAqhSuYXcEznN8+VMVUAkNzCTjWH2saRJDc/lx6kj9l0fMVmJED2R8YILYEEkVN4g1/M GddQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="puI/AdpQ"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7si5929229pjd.32.2022.02.02.11.49.54; Wed, 02 Feb 2022 11:50:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="puI/AdpQ"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345953AbiBBQia (ORCPT + 99 others); Wed, 2 Feb 2022 11:38:30 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:53302 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231801AbiBBQi3 (ORCPT ); Wed, 2 Feb 2022 11:38:29 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5BD071F387; Wed, 2 Feb 2022 16:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1643819908; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1UflJiT/C+aLCGaPFrCtnXw6syIU85V9VqllgoyNsQ=; b=puI/AdpQ/jspQcK3mXAqRUwhDRtHt1MSPBzzy8N1Mifk+8scPd3zOn7xXDLF0P4jalWpeb 3zwY+UlTQjuUbb+X5lykpgnY7ikIqin5+iKBeSeAhsHoiLtY6dwohtEa+d1kt2pdGnoc9k d+VpKvXPETRjviF2CwXpqYJ7fdzdStE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1643819908; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1UflJiT/C+aLCGaPFrCtnXw6syIU85V9VqllgoyNsQ=; b=4grxMtf5PsW9idScRI3PE3js7l6vQVXkZjy99aCei5I5HHh9Wy0iCDyXXx0hHR6VbI79sQ fHfUdD3zucB26NAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F2A4913E99; Wed, 2 Feb 2022 16:38:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +AUgL4Oz+mHsNwAAMHmgww (envelope-from ); Wed, 02 Feb 2022 16:38:27 +0000 Message-ID: Date: Wed, 2 Feb 2022 17:38:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCHv2 7/7] nvme: add support for enhanced metadata Content-Language: en-US To: Keith Busch Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, axboe@kernel.dk, hch@lst.de, martin.petersen@oracle.com, colyli@suse.de References: <20220201190128.3075065-1-kbusch@kernel.org> <20220201190128.3075065-8-kbusch@kernel.org> <20220202154131.GA3077632@dhcp-10-100-145-180.wdc.com> From: Hannes Reinecke In-Reply-To: <20220202154131.GA3077632@dhcp-10-100-145-180.wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/2/22 16:41, Keith Busch wrote: > On Wed, Feb 02, 2022 at 02:28:53PM +0100, Hannes Reinecke wrote: >> On 2/1/22 20:01, Keith Busch wrote: [ .. ] >>> @@ -3104,7 +3218,7 @@ int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl) >>> if (ret < 0) >>> return ret; >>> - ret = nvme_configure_acre(ctrl); >>> + ret = nvme_configure_host_options(ctrl); >>> if (ret < 0) >>> return ret; >> >> This could be made into a separate patch, is it's not directly related to PI >> support. > > Well, the driver can't read the new PI formats without enabling host > supported features for it. Enabling the feature tells the controller > we're going to check for it, so I don't think we could reasonably split > this part into a prep patch from the part that sets up the PI formats. Actually I was thinking about a patch renaming 'nvme_configure_acre' into 'nvme_configure_host_options', as _this_ really is independent. When mixed together with the PI stuff it's hard to track down from the commit message when it got changed. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer