Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1001169lqj; Mon, 3 Jun 2024 07:28:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcWSr3S/Xo5ROvGwE51XmoC9yl2w+epQUTeRChHCvKlcPFT+TCDtb6mAtFa7ivJErmY6L2BTZXDAyEYHSfdamhvCnkfy+lBN3eJWivdg== X-Google-Smtp-Source: AGHT+IFZnukD0iU/eLNHRP8W6ZI46mAgo8DRxNV2ieZSu+wgLUYSLeLTzZzIX9TGPJQNNlV6c076 X-Received: by 2002:ac8:59c8:0:b0:43d:9d93:f600 with SMTP id d75a77b69052e-43ff523241dmr110183331cf.5.1717424887858; Mon, 03 Jun 2024 07:28:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717424887; cv=pass; d=google.com; s=arc-20160816; b=w6Jk7Pu0VxLYrYEG7X/YrLA15xDgVlmmqs+wrfokNSqUw9soiw19RdVLm9aKYKaZg9 fwmYhpTmUSzos5OCYTzb3g7lC9cWzHNTLtFUijp0R0HkuxLMHXPkObzDVXnGp7ELcSS/ o1xTjpg//t7yHCYgTaopkmN9rRMFOoGfCf4ZyycOrobNf6c1//pTeSTCmfcgClDXBi9i PHqK8Xcf/vUzzeZR2udU8qyFP3lCM+qAyBhV/jQdMwqF6ZeBvBzTGNO0G2jKP1QRB7CR pnCmdsaq7tJhaNI09SlL15ZREC7in2Nxd8UGqgSN0u/H5OSuVEU3ndbzzGOK4svh5b5n HjHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h80keThBPT1YkMIlsQx0dUnlGbO05OPRxPD7jjrrzcA=; fh=ge33/IcVvxvvhVmtJqWS6tk7b3J3Bl0kojJUUnEpwMY=; b=wv5GJMgxFCHCiNcGQSNU9ZPQzvcaNbNz9sltrGqv+gamwI5/MYpeE9DKmeJ++nvep1 wvmKr3Sr5/R1rKB1x2J0nGN/u175G86thjTXNdSf3wvlto4pGa9/eZMX4Pgo/B8ecl1/ z1LbLQBNDq58YtTpocj+nSvIPxs4ZCOFLgS7ykCPsI7v1NHhpNf/C3fSRnBqjUM4GNPL FrsTuKRKavobkKbxq3ILWLn0PNli3tUWs/pKS91qNYy8L4K3Kjo3d1LTIwlsWuI6uQjt q43zTgjWuH32Qr5FwsmDpQf3UwU2lEAv7Gep7aL4nxkSwsEhP5WZK2XAJcLAz27jrw/B eJqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SRHEBQYl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199289-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff25822f3si87067551cf.490.2024.06.03.07.28.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SRHEBQYl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199289-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 74E0A1C218B4 for ; Mon, 3 Jun 2024 14:27:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97B7E12EBE6; Mon, 3 Jun 2024 14:27:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SRHEBQYl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C25B312EBE9 for ; Mon, 3 Jun 2024 14:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717424819; cv=none; b=FQ/qdyuzgxNAWYdG+igbCEdtxHKm+P/mXBuIs6LTUSK+aQA6GVbPvdpmPn41MQR4BlPS9JcKJHiOho9a76ZuLs/FoM1VRmMPOyqXH2CGX9b3xdHPh2YwrVtcq7rz6JouVNTJZmR/scD0xggsZN32iDt++GV6zaj15DsYhdRFiOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717424819; c=relaxed/simple; bh=VtIjSjKPYRKLwZt7ntdBOuy3fX4+L/KfyjORLwZjLEc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d5ddl7CBytk4fGqlsB9r8ktAhA76+Bfxboi6HrM4At///1YoQQbGXVbyjg8lnI5t7T29A92ibyQz/skkH4zKpN4YBLFfmhXCwx33kEoVZfG5/as+he93XdvnyeBXlMN4EiCnEu6JWn6uJQWrv/NNwwLzBPIcZyAqdD9w0qoPKgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SRHEBQYl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17C22C32781; Mon, 3 Jun 2024 14:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717424819; bh=VtIjSjKPYRKLwZt7ntdBOuy3fX4+L/KfyjORLwZjLEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SRHEBQYluUxY5pPVoXE6L+WlAM6fKnPVSihl9tpA1tHeEpsHL0hjJ7SJpe3MabhzK MUBvzjvgE1h1ZZoUCfGbunoyRwiVlwQ7viVkK/s4r63FO0voH3NoZs5uMYMARS/A1E Za4rDrF9IbOSKeWd9U8Kb1X9mh6G6gVvWnqICsLAViJDSbzE59ukEL1yyjwwS7AzXT tMutLqotTraDuRgdjdiBUzizUszmaOBr0zk05Ser1/w5OGEVpj82VD4d3Kffdxkfn3 EJJdwgPGt13PVix/4DBrFIa9Xg6dJO3s/m5mm9Fc2D/VYQyCqV9Dk5eGRRyGcNI4Fq Kwhks1I+cLOAg== Date: Mon, 3 Jun 2024 17:25:06 +0300 From: Mike Rapoport To: Borislav Petkov Cc: LKML , "Borislav Petkov (AMD)" , Narasimhan V Subject: Re: [PATCH] x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node() Message-ID: References: <20240603141005.23261-1-bp@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240603141005.23261-1-bp@kernel.org> On Mon, Jun 03, 2024 at 04:10:05PM +0200, Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > > memblock_set_node() warns about using MAX_NUMNODES, see > > e0eec24e2e19 ("memblock: make memblock_set_node() also warn about use of MAX_NUMNODES") > > for details. > > Reported-by: Narasimhan V > Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Mike Rapoport (IBM) > --- > arch/x86/mm/numa.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c > index ce84ba86e69e..b44a3ae51e9a 100644 > --- a/arch/x86/mm/numa.c > +++ b/arch/x86/mm/numa.c > @@ -614,9 +614,9 @@ static int __init numa_init(int (*init_func)(void)) > nodes_clear(node_online_map); > memset(&numa_meminfo, 0, sizeof(numa_meminfo)); > WARN_ON(memblock_set_node(0, ULLONG_MAX, &memblock.memory, > - MAX_NUMNODES)); > + NUMA_NO_NODE)); > WARN_ON(memblock_set_node(0, ULLONG_MAX, &memblock.reserved, > - MAX_NUMNODES)); > + NUMA_NO_NODE)); > /* In case that parsing SRAT failed. */ > WARN_ON(memblock_clear_hotplug(0, ULLONG_MAX)); > numa_reset_distance(); > -- > 2.43.0 > -- Sincerely yours, Mike.