Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1406483pxj; Fri, 21 May 2021 13:29:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAaYMEHE2jtz2oID+5pRbdwBm/0auTK/yU5xZiN1sAX0/VIDdaDag6D8OdA8WugbuK7m/D X-Received: by 2002:a05:6e02:1a49:: with SMTP id u9mr711389ilv.306.1621628995926; Fri, 21 May 2021 13:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628995; cv=none; d=google.com; s=arc-20160816; b=Sm0HVNkal21opM8gV9636S3jaxL+RWWCtUt6+ZXzvS0PodQCu3xlf+W1yMy2eTf63w 3C5W4MfPOClrJCm38uxYQVE66xioPYfQr6RbOrf+zI8iAb0zh+9HZ/044/243noK6geL cYmTpmd6o84FblZEL/py90CSJ/gAH3RfKQhSzSzPfT4zC54IyDe9TClhgp9NpAm74pIo ZSTd3QnCwF4B8WAZ+oR09gC0/mvCMcBOlPwJJKP58/BdqeHsn6LfEh/cPFhidzyITkIi AzbGHvxiCaE/gi6z2A28WZrK1XJYpA14c+yTu6JRgJthiHn6VKgscaIU/FYH5DDgdGS9 fuzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=MOQFZcI+55Epu5CwRZbaQFCfIMzQkAmI2YuOFxHRHWY=; b=OF2KOda/mSwQiS+JafgB/DJJTPTX1NwSag5crjGLvTDD0ZTGOJ2biAOwNfHGiimfD0 xJK39nlpAyUTVWx25Aob7jwyg6z63c/wA0+8xhN0A1PpzEaJm6CLkvuk0VLJbMhODCMx 6zX8F9HbIsq4Jxszzx1C9JlO895NEyKM8UfBwMnOyT+6hpzIT+Gkgntp7xsyRAoOMmB8 ZlGROl+OHV/n2t8aVXzBtolPYn/a6TD+8jdBdpz6p2vz/WiDRp44lULXpNOnBpKJctfQ lPzVkPZZ2gJ7KH5jeQopc6XyobP87IfYlWOHyIVG8omHCIK5PXz6zp60WAhe2QISz04J 0JPw== 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 z14si6369497ioq.100.2021.05.21.13.29.43; Fri, 21 May 2021 13:29:55 -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 S230428AbhEUUVI (ORCPT + 99 others); Fri, 21 May 2021 16:21:08 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:41595 "EHLO mail-wr1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbhEUUUy (ORCPT ); Fri, 21 May 2021 16:20:54 -0400 Received: by mail-wr1-f48.google.com with SMTP id d11so22166174wrw.8 for ; Fri, 21 May 2021 13:19:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MOQFZcI+55Epu5CwRZbaQFCfIMzQkAmI2YuOFxHRHWY=; b=sgorPtSkvrsAydZE2cZhaafGuJ5f8lKVZ8Eu25VL2bGUseeE5jpgyXZYhth8Ed/HJh xgREQaFf0O0szUBA+W/gOL2p2yUTC3rWM1WS1LVAJdh+cltrzNCP0gQQ54hjFNaxI5xf An6bc7+torHQywBFsiuYBrZGrSNG1ffi5MHAfY1BMjLw6rg5+TqgqXIyGPxMHC9PcGBy ZnTBPCiw71bDG6p4Y+YZTempG4rypQOlIqsbTfSL8poNmk+PAXoEjp/orW7JH+ZQVq/d j++tYMhJ6XNnBIy49SYvlphEHOuH3zSAW8D2Qu/XfjvKJhhJTtydtWPN46VO3rV/Ksos xUxw== X-Gm-Message-State: AOAM530gccZO/N9FMd0CEre7oY0jgLwJ7D1n0/77UWg5GtRZM1vwQHHe 8g97j2c77fo6kE9RzJnlWsQ= X-Received: by 2002:a5d:6445:: with SMTP id d5mr11548210wrw.235.1621628369631; Fri, 21 May 2021 13:19:29 -0700 (PDT) Received: from ?IPv6:2601:647:4802:9070:66b2:1988:438b:4253? ([2601:647:4802:9070:66b2:1988:438b:4253]) by smtp.gmail.com with ESMTPSA id i11sm3221728wrq.26.2021.05.21.13.19.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 May 2021 13:19:29 -0700 (PDT) Subject: Re: [PATCH] nvme: Use NN for max_namespaces if MNAN is zero To: Keith Busch , Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Christoph Hellwig References: <20210521144734.90044-1-dwagner@suse.de> <20210521145306.ld7jc6alchimyzny@beryllium.lan> <20210521152702.GB29013@redsun51.ssa.fujisawa.hgst.com> From: Sagi Grimberg Message-ID: Date: Fri, 21 May 2021 13:19:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210521152702.GB29013@redsun51.ssa.fujisawa.hgst.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Forgot to mention: During testing dynamically adding namespaces it was >> possible to trigger the WARNINGs in the nvme_parse_ana_log(). Initially >> the subsystem started with 8 namespaces and during runtime another 8 >> namespaces was added. > > The controller is required to have a non-zero MNAN value if it supports > ANA: > > If the controller supports Asymmetric Namespace Access Reporting, then > this field shall be set to a non-zero value that is less than or equal > to the NN value. That was my thought exactly