Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp831144pxv; Thu, 24 Jun 2021 22:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0vQntQizzHmCnRmg7Ic/yqAR5G/OprpmiTGPyb4w+LFuVP9odnYuoONHgWjqPV4BNnj4l X-Received: by 2002:a92:ad02:: with SMTP id w2mr6309031ilh.8.1624599043689; Thu, 24 Jun 2021 22:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624599043; cv=none; d=google.com; s=arc-20160816; b=HhtxnFq8t55ppoa4uM9G+SUg7GsjYxwPLR650VaOpa45uT5O57HV/49lBP3Vv3Yvft rv/FIouCYmonskJCFWTWmKQorn+l+i54YKFpewl39MnzuQMTjgiSlbG8pBesLMn8YzOQ tAFaxqYJf9QfN9OwJECnv9DOOsFuJK+iqzAwEa6gbXaGRvViw/XUp+CD52PfJhS/ExZD CBZnGYDF0Xg6HEufzz8FOCl80nLCIc62dQQ4fakwpCp3sbhyIW3M3JY3tuXqdyKSRFOe yJXXY5DH/TpOszI1IzOhMH6xPm7YrQAyARmC9latddTdwBMVbk4cogbGwVf2ioqBwvto LdrA== 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:dkim-signature; bh=cLC98jiTPo1gha2IvZDXk9+JdpFRGnaI/CVGtq7Uo10=; b=B7JXNcQTyOnD/FvaCsyH8kCSNxnv6loIOgPZb9OJEHnWo6qsWa8uz+HZ3THfYBUGPR GHzZZiDDPwAd+tflEQJiDeHCWzhVBanxgHT8g7LK8+NMsp2n2gA8uw8N37UbTCIAJ7DC G5azGUdRn7nY5Q+UdCRHjF/2j8h62tYDYTNevyRaav90nLvo5icDIa++GHseSoHwO0lY kMW1nkdVupVouRVOMFXABIA4z8KMkFcGHJZQm7wRCqu8tafC0Ldpu7sUXSXKzQDXnpcg Tdsq82555mXve9aLpRN6jyBUMNu4kwq/GbVvUKbWZSH/XuKuXSrlXV2SZEjHZzo3Y6lT rMsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VIfRY38T; 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 u4si5997120jak.4.2021.06.24.22.30.31; Thu, 24 Jun 2021 22:30:43 -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=@infradead.org header.s=bombadil.20210309 header.b=VIfRY38T; 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 S233086AbhFYFbr (ORCPT + 99 others); Fri, 25 Jun 2021 01:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbhFYFbq (ORCPT ); Fri, 25 Jun 2021 01:31:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7248BC061574; Thu, 24 Jun 2021 22:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=cLC98jiTPo1gha2IvZDXk9+JdpFRGnaI/CVGtq7Uo10=; b=VIfRY38T8ObhjQYAl4bld7vSFW WiE8Bveu99uFFz5keRNKhvsD1IZ/0YAledCW4anb30got1YzBhmtrN8SXCp+f8rqgz+gDTePEBaX1 UQPy06n9v9shcCAEGQFTn/w24gNMd/n5vATugZEbKsgcUlA6bE+FGhFRpRGPktQOPx5bxA2Ew7B80 2DJVEeDqHwnMRR68ZoT59LxqgudH5SyUzCJRuncwidyiwQIbG2gFGvUIGlqjdMeUDg3UGkHXO6bVl sYlljlvb5GOWDJZWVbbYHSogdVFbLXdL4DQdOEk0tZbfobdZ6L5/ygTcVR8raivaF2EAWrOOtMm1T eopo0KRA==; Received: from [2601:1c0:6280:3f0::aefb] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lweP5-00HJQu-AJ; Fri, 25 Jun 2021 05:29:23 +0000 Subject: Re: [PATCH v4] Documentation, dt, numa: Add note to empty NUMA node To: Gavin Shan , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, robh+dt@kernel.org, drjones@redhat.com, shan.gavin@gmail.com References: <20210625052338.4875-1-gshan@redhat.com> From: Randy Dunlap Message-ID: <7cdbafb8-4c38-1aac-5362-25e27e1d13e4@infradead.org> Date: Thu, 24 Jun 2021 22:29:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625052338.4875-1-gshan@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/24/21 10:23 PM, Gavin Shan wrote: > The empty memory nodes, where no memory resides in, are allowed. > For these empty memory nodes, the 'len' of 'reg' property is zero. > The NUMA node IDs are still valid and parsed, but memory can be > added to them through hotplug afterwards. I finds difficulty to > get where it's properly documented. > > So lets add note to empty memory nodes in the NUMA binding doc. > > Signed-off-by: Gavin Shan Acked-by: Randy Dunlap Thanks. > --- > Documentation/devicetree/bindings/numa.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/numa.txt b/Documentation/devicetree/bindings/numa.txt > index 21b35053ca5a..0fc882e44270 100644 > --- a/Documentation/devicetree/bindings/numa.txt > +++ b/Documentation/devicetree/bindings/numa.txt > @@ -109,6 +109,10 @@ Example: > Dual socket system consists of 2 boards connected through ccn bus and > each board having one socket/soc of 8 cpus, memory and pci bus. > > +Note that empty memory nodes, which no memory resides in, are allowed. > +The NUMA node IDs in these empty memory nodes are still valid, but > +memory can be added into them through hotplug afterwards. > + > memory@c00000 { > device_type = "memory"; > reg = <0x0 0xc00000 0x0 0x80000000>; >