Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3594304ybt; Tue, 30 Jun 2020 06:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJympsbnWySXMit2c3lRBnY3Sbsmxwv89kb6oaH0P2ApKvHg4f/5ctI4wXdij9krLI7i0bsD X-Received: by 2002:a50:a661:: with SMTP id d88mr23355849edc.34.1593525182977; Tue, 30 Jun 2020 06:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593525182; cv=none; d=google.com; s=arc-20160816; b=Do/lqoTcnbIVZljVne+KGY12tmM3EkiOgKkMUOujwSRR8SjzV7I67TY6h+ISpf8zdq Ycyt04ZDBYVtHdco5AtBYkt8FEik6GD49YtL4YVhCy3gl0YosdSlv54V8HBtbisTW4eJ mybe+/0L/j98WfZaOhPxXeYMPX/VvFgBhRXUJqvJajAAQR/jAMK8Hxn49FrrZ/WQDRcS Onu7zynsvMkDi2HLPfqo4u2FQ84VPujIxweKr2aAwT+iGxb3gKpuirR8WQCMYb1f3oKN l258GNT/hle24MfaEA5bP9CK8uSIaCHyWzQvEEOh3ypzrXByHP8Q7CcaEQpNP3hUHuuA 3WmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dy1boaAE4vBcpQWsjpzX+nZfT9phM6LCfD+P/w2qvuQ=; b=XhqEyZsGb6JQEtrjLAHC35rLW22+EcVExfPIHFV7+275TlHDcxarFFxGEjb15DQIn2 GrU9VMmqq6E3rzJ2nYW/ZIfrN/SCdv7+aVa8ftHFWaXnzcn/CmHJy5s6K3xehoedpCRI o6evc/7LJmuN7/oylk3utcdnfiubO9WdrlUCK+86/CxJNixJ8AoEzPHBCY/C+d1TUaoS 0log+6fezcArWpw/GF3S7rK83rq9H3LMkX/+UMEuF7jb3ZLbv22gJvWaNlGIP1Rw5KP3 LFinee/yarFFO1rLLra89SxkdVM93jf8+fJc2lV/94Ha9+oYGvIrg8z6H4eXzWEOvdw1 +0Nw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si1742627edm.387.2020.06.30.06.52.40; Tue, 30 Jun 2020 06:53:02 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388234AbgF3NeT (ORCPT + 99 others); Tue, 30 Jun 2020 09:34:19 -0400 Received: from verein.lst.de ([213.95.11.211]:35994 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388190AbgF3NeC (ORCPT ); Tue, 30 Jun 2020 09:34:02 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 21A1A68B05; Tue, 30 Jun 2020 15:33:59 +0200 (CEST) Date: Tue, 30 Jun 2020 15:33:58 +0200 From: Christoph Hellwig To: Maximilian Heyne Cc: Amit Shah , stable@vger.kernel.org, Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme: validate cntlid's only for nvme >= 1.1.0 Message-ID: <20200630133358.GA20602@lst.de> References: <20200630122923.70282-1-mheyne@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200630122923.70282-1-mheyne@amazon.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 12:29:23PM +0000, Maximilian Heyne wrote: > Controller ID's (cntlid) for NVMe devices were introduced in version > 1.1.0 of the specification. Controllers that follow the older 1.0.0 spec > don't set this field so it doesn't make sense to validate it. On the > contrary, when using SR-IOV this check breaks VFs as they are all part > of the same NVMe subsystem. > > Signed-off-by: Maximilian Heyne > Cc: # 5.4+ The first hunk looks ok, the second doesn't make sense as fabrics was only added with NVMe 1.2.2. I can fix it up when applying if you are ok with that. But you guys really shouldn't be doing SR-IOV with 1.0 controllers independent of this..