Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2724737pxb; Mon, 31 Jan 2022 03:00:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwH/L+M5t2kNNItY5kuaZD+Yf13+1iXXFUyaseFqXd7L8Q+7XjzTyu/rZAJLLeTc5BX4j7c X-Received: by 2002:a17:907:160f:: with SMTP id hb15mr15786288ejc.213.1643626807435; Mon, 31 Jan 2022 03:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643626807; cv=none; d=google.com; s=arc-20160816; b=LL9pyxgVygmEG7WCL2xop2F0ysiF52LeVfjUI2TmmMcYLtfXs8TesCaHTjqrnd27Wm RJQ7ZOiyiehk9RkCtB7a2HjAsQGbVjLYSvows9X110FI7Iks3ihrfoRBaF6XMsfuKGn1 IhMX/gduclPkpZ6T39y/WV5qtFVpSAKRE+1Ok0Fm4CEBWw3Ai//z26KYGw19BBBLrcG+ D+4/Hh0oFB1tzxtjOpy5FM4NZQPbM3qD1Vi5mhembW+fmOAIR13mf6+rnjI0qbQT+HMT Syt+eFkSNGnbOptvmISpGKJldd5zYPkBKP0jZCHH854VEc51SZzynXwlxWtQXqKV9GHS 8skw== 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 :dkim-signature; bh=KxTG5IMRJoMimLDfLpIFB/N5IQskYQQurM8B7Hm/hJg=; b=XaIALAb+v56aVCL9+tas7q0E7fKXsjXehLLw9brmMJsQT08n9ffjH68CXcaOkigpUn DcqUW8oJX4hAYGtdjMFerWosgMRY1mHXC/uw+LX6vaUm+8ZoMctxIoeJUSyGr3z+Kh3G HszWLkvdbQJFyTHktvYb4r4DNFORL9pow/sKkeIFJ5/kihmZDCb9ufCG4APucq+LYcGN ORDcDpVNKdicnyA2efUEu8E+82S/faHbHBBJcV6V9mjyV+QN07sW0BkcfJholBtnOiYB ybKMK4MHJKE7d2DUEtOwaSoNTxFSM1L/QpWedFpD0akRkaN3Nn4gqAY0khELstrr9Dju JLtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="c6/xK0Lq"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qa32si7761669ejc.415.2022.01.31.02.58.59; Mon, 31 Jan 2022 03:00:07 -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=@suse.de header.s=susede2_rsa header.b="c6/xK0Lq"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348526AbiA1Mgr (ORCPT + 99 others); Fri, 28 Jan 2022 07:36:47 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:41308 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348525AbiA1Mgm (ORCPT ); Fri, 28 Jan 2022 07:36:42 -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 2CC291F3AA; Fri, 28 Jan 2022 12:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1643373399; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KxTG5IMRJoMimLDfLpIFB/N5IQskYQQurM8B7Hm/hJg=; b=c6/xK0Lq83iY2gVJm+25k1bHd9EGQhZQMLemTSOy1Zbx5aQrmVDv4js2ppYIKz1ZgutY+F nAJl9FgpwP/0MrSNiH+X0LC8YlahC2oI3c1We0giygShW57jKHK4m9hb9f/COOqgAQhy8J bsspez8WjCTEDz+iOEnlg9HHmRqg+WA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1643373399; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KxTG5IMRJoMimLDfLpIFB/N5IQskYQQurM8B7Hm/hJg=; b=ct9pX1x1w+Em4Vp8NnThnXBd7ZTibihBO6+kw0mMBmrpwCX3O9avwN3sCyxrizFNGqBaW/ E9+RkUOplmefIdBQ== 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 1D5C813A9F; Fri, 28 Jan 2022 12:36:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WpkhB1fj82FtYQAAMHmgww (envelope-from ); Fri, 28 Jan 2022 12:36:39 +0000 Date: Fri, 28 Jan 2022 13:36:38 +0100 From: Daniel Wagner To: Keith Busch Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] nvme: Do not reject dynamic controller cntlid Message-ID: <20220128123638.unxd5fzoctit6lpi@carbon.lan> References: <20220127133648.8201-1-dwagner@suse.de> <20220127171758.GB2266713@dhcp-10-100-145-180.wdc.com> <20220128103137.zugnrh2bbhkqpaoz@carbon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128103137.zugnrh2bbhkqpaoz@carbon.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 11:31:37AM +0100, Daniel Wagner wrote: > On Thu, Jan 27, 2022 at 09:17:58AM -0800, Keith Busch wrote: > > > +static inline bool nvme_ctrl_dynamic(struct nvme_ctrl *ctrl) > > > +{ > > > + return ctrl->cntlid == 0xffff; > > > +} > > > > It's probably safe to assume 0xffff is dynamic, but spec suggests we > > check ID_CTRL.FCATT bit 0. > > Okay, but this one is only defined for fabrics. I haven't found anything > so far which is equivalent to FCATT bit 0 for memory based transport. Never mind. After discussing it with Hannes it turns out there is no problem here. I didn't understand the spec correctly (it's difficult to get an exact answer) on this topic.