Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3607333ybt; Tue, 30 Jun 2020 07:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPFLstftSeCsxhc8F+zFu908mBmMDeuUMtHDdtfSQDg7RP7gI3v5LODH8nDGB5p4PpBb6R X-Received: by 2002:a17:906:87c8:: with SMTP id zb8mr18110830ejb.35.1593526197359; Tue, 30 Jun 2020 07:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593526197; cv=none; d=google.com; s=arc-20160816; b=nq5SGt4e5pi0KL7QBaBt2gLBB9F/i1MBm96/iMMyIi/05sH7ZwvRf5PPnCi+R8hxD2 BPbwDrOBa1N1n3r51puYl9W53xI/kbO2Xq/Iq41+l/BpnrUxZTv+TKoJZqrM1sEy+AKJ CgUxKyhiMx2PpMPxdOh9ZnDBjZnbquPXDOLWEaXayfQAZxMgxJzif0a5TKWeCWD0RLNJ txjFh3POJ51RrLuJPPNAzOQa62lgvZEMENQTDuMQViu4SeXR6V0E4E5qm6Dwvjzm5ys2 zNLzq/eH4rZSt+KxrlNx06E2jBYYQTRzeNyylXd7uQydC/+PQlwEL86+gT9pgPoN7LiT fiFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3HfSFqsRX25uYrjQzQu6huNDcn60ay2Ypl537tWMQvU=; b=ztUcz4XRFX9uqAsjPoZOuzdflJCt0PU4e+iP9K+xKjMkqQLwRLHVHQV5cDeFt/OzKh BpwF9kIrDeY8dbYesySKY6BW27lCnjbO7QWlyL7FonVvy1eBOmjEOUjKx5B5PT07ei8u Qh3n4Cj3c4MhbXumNjTIBwGJBI0JXUNJ4Tuskwc+wmay64neZJOcyFZcehId/FqgSfVM qBGc3xt8wYnPAF2+S6aPNj9AZDOxII4vzYnOrAKXnNDXcaMvBp180y3ZnJ3wx9pDcIzs MK0GltGqTiRKqhDKOdxgrPfbyrgIUvVgvTpdtDlTmslxsFpeKF0nYQ6O1Z3L11YbMQ6E Y3bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xPEECGY0; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q22si1790309ejx.87.2020.06.30.07.09.33; Tue, 30 Jun 2020 07:09:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=xPEECGY0; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388248AbgF3OIs (ORCPT + 99 others); Tue, 30 Jun 2020 10:08:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:50798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731084AbgF3OIs (ORCPT ); Tue, 30 Jun 2020 10:08:48 -0400 Received: from dhcp-10-100-145-180.wdl.wdc.com (unknown [199.255.45.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 564562072D; Tue, 30 Jun 2020 14:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593526127; bh=Bir2/g52+uKiDFsLqGocRSdaGam+HlMfWXbv0m+pQTQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xPEECGY0ZlkfbVu8+/j9jkZcaX0C2kOSAHGXacxSdFt9J8gIYxRvW7wHdzyn/pE1X zVD5xi+yzQAdu6qncSpabQ6z+OnBQy1TYoy4WYvEula16bQGttes3jHQo1Mca0Ra2v VOO7tM+zk8gtePRfyFMNIQRgZN5HG+Mcr18CIYKk= Date: Tue, 30 Jun 2020 07:08:45 -0700 From: Keith Busch To: Maximilian Heyne Cc: Christoph Hellwig , Amit Shah , stable@vger.kernel.org, Jens Axboe , 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: <20200630140845.GA1987534@dhcp-10-100-145-180.wdl.wdc.com> References: <20200630122923.70282-1-mheyne@amazon.de> <20200630133358.GA20602@lst.de> <20200630133609.GA20809@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 04:01:45PM +0200, Maximilian Heyne wrote: > On 6/30/20 3:36 PM, Christoph Hellwig wrote: > > And actually - 1.0 did not have the concept of a subsystem. So having > > a duplicate serial number for a 1.0 controller actually is a pretty > > nasty bug. Can you point me to this broken controller? Do you think > > the OEM could fix it up to report a proper version number and controller > > ID? > > > > I meant that the VF NVMe controllers will all land in the same subsystem from > the kernel's point of view, because, as you said, there was no idea of different > subsystems in the 1.0 spec. Each controller should have landed in its own subsystem in this case rather than the same subsystem. > It's an older in-house controller. Seems to set the same serial number for all > VF's. Should the firmware set unique serials for the VF's instead? Yes, the driver shouldn't be finding duplicate serial numbers.