Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp625400lqt; Thu, 6 Jun 2024 13:17:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgPe1gAD7hbNgZMrcpJkhjDC/xK7h0ALlcnqZuPriJyjpTCGfIAZXJ47MfYEg2OFMf6SiPlTKqD4ISQLiZfPza6N8ZnaglsU5Kw/5I8Q== X-Google-Smtp-Source: AGHT+IHOsrLrSEyhOVbrnTosAp/Kq1hA2b1tNc7tMZrHCCdybjzlt2UAxRVQ5+mCrWn36v/Z0khj X-Received: by 2002:a05:6e02:20c8:b0:374:a412:3d9d with SMTP id e9e14a558f8ab-3758032f511mr8686325ab.17.1717705079354; Thu, 06 Jun 2024 13:17:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717705079; cv=pass; d=google.com; s=arc-20160816; b=fSvQ4h47nmhryh1984GYVidRPh2ktCTyqVeTgp6ARBwSzowQ/ddaCErj02BLBh+X6y 9PJqh1vg6sEEHR857zIFGZm2SvzIM5/ZH4cVJgFPbkVXAXeJIjG2HII6xGfobkoK0GuP t2Iwm9yssVbegDW2K2WCb1b3zAhCc+IV+00/n5l6M9vqk5RXN8vmuOZKZ8zPQCHBrn6z Nmp2AfSnIDiVSFRLl7IWVkBKfFpEqzj/T457jyzh4k9B/w2XMevJ8hocqUHe1vqi+9hr rN2hkIcA2NEf0q6Pe50SwP6X+IQVm/4I9hRdaYvn9p9Sy56rhfJDFiV5ywZeRrJFY4yR 155w== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=NLn3SKG7Qv9or2Q9LQbXVEirNT7NtLFu/Ub1LTXoT/E=; fh=nBsD/J+ISh9x/6aW+yzL9Ub85u2Hy2AkEb8pddgDPZA=; b=EBJKjh8TQbCaoonktjFuT9QQ0fGnUrM8cENWZ+PbtT2byX2ez5HAbntfBLtGKPQw5r THDdgkTJCo+BAdwyawkiMTADOrgYgFyVkrQGUNaZDqCyYN/n9ACBl2QSAolghUzRzpV3 pdidXuAHXMc2SNSVeokXRbyoIAXAkfmp8rM/+wE2XZS0Mi+mpsdCSz6UQBQ5F8ebFYvn Q/Qd8DIvWxyDY9iCECtCXZr71LF/Z63+BcGqmeXdkS8Q/7BmBJsuYNW0CbAg6MbxLJGV aIgiEW5LLhfCLyHCPzO7iMMNUJYPq3dboN/wf0LuO5FUaRAGMTnv3PSusgIkbEnlUDZU QS6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D7ll0qYy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2a280ef4si1646637a12.802.2024.06.06.13.17.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 13:17:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D7ll0qYy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204975-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EB4CE28835B for ; Thu, 6 Jun 2024 20:17:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A9E873451; Thu, 6 Jun 2024 20:17:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D7ll0qYy" 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 B2DBA71748 for ; Thu, 6 Jun 2024 20:17:52 +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=1717705072; cv=none; b=hQMVYGrCcKBiRezj2vmFQ5f3GeiDkqTOXWCiAO1iMavO9ThS9Hupd68JrToegEI77ozZ5OnJ0NY8ojdlGSnQTRlH2FQiePWFIv+D/1W6p35gb371E7P0RsGRhsUDS0IkKALOq5Hqf5htFjZT9KRs7KqEHL+DwUyem7oKBbwdcFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717705072; c=relaxed/simple; bh=dx6bcYfXV1SsrXcEAk9+8Tahom5shjEJqNgJxSC5+uo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qj5oDQnV6NjHuR1/Pg2BOxtCYElm0LyYveir7XyeIAUezqz5bGz9+Xhr5g/G5YZbCGcfRKlkJKbmsC9h4KeW967alH14MNIs9mQTsuyQNIipBN3RAE8h3C4O4t8BXA+to95XPDPLbLZueF1/AJMT2q9Bts9uyRbbuSPW322ehpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D7ll0qYy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44B77C2BD10; Thu, 6 Jun 2024 20:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717705072; bh=dx6bcYfXV1SsrXcEAk9+8Tahom5shjEJqNgJxSC5+uo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=D7ll0qYy2mDFGwsDsvQitNmg+2UP9O14St6XtZh9w4br7741OM3l8DJQT8tQS4lfh XJ9adLYcZf0XKVJjXldGS8c52Ma2ppN9VivDNgbAXeq2Jz7GK8R++SxKNgjwW5yA1i Ym7E6ZspfBUGgANB3cskL8clbMs2fLnoK5+UCeeiF4Q+8APfjTSAuakKk41CNs96UT XteNmOyTHd32UpIkfoWVh5zts7OlHP0HDYQYS7RV5xyeP/bpHZvvvy/TdzP/BZeWVG wI84S6aqgY1Tch3cmF7mSrXUXGz/Mbxx+ieybuCyzR6B2QEraXuNxejPkGsdnvFuLq SC2AJHDetbQYg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id E7A41CE3F34; Thu, 6 Jun 2024 13:17:51 -0700 (PDT) Date: Thu, 6 Jun 2024 13:17:51 -0700 From: "Paul E. McKenney" To: Mike Rapoport Cc: Jan Beulich , Naresh Kamboju , open list , linux-mm , lkft-triage@lists.linaro.org, Andrew Morton , Dan Carpenter , Arnd Bergmann Subject: Re: x86: WARNING: at mm/memblock.c:1339 memblock_set_node - Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead Message-ID: <04eb89b7-9d63-4b06-b553-2cb2095539db@paulmck-laptop> Reply-To: paulmck@kernel.org References: <315d6873-d618-4126-b67a-de62502d7ee2@paulmck-laptop> <7d55b65e-331a-4ce2-8f72-d3c5c9e6eae0@suse.com> <20c484a5-d797-4782-b5b5-bea5fcae9284@paulmck-laptop> 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: On Thu, Jun 06, 2024 at 10:48:01PM +0300, Mike Rapoport wrote: > On Thu, Jun 06, 2024 at 11:04:30AM -0700, Paul E. McKenney wrote: > > On Thu, Jun 06, 2024 at 07:19:40AM -0700, Paul E. McKenney wrote: > > > On Thu, Jun 06, 2024 at 08:13:17AM +0200, Jan Beulich wrote: > > > > On 05.06.2024 22:48, Paul E. McKenney wrote: > > > > > On Wed, Jun 05, 2024 at 09:46:37PM +0200, Jan Beulich wrote: > > > > >> On 05.06.2024 21:07, Paul E. McKenney wrote: > > > > >>> On Mon, Jun 03, 2024 at 07:19:21PM +0530, Naresh Kamboju wrote: > > > > >>>> The following kernel warnings are noticed on x86 devices while booting > > > > >>>> the Linux next-20240603 tag and looks like it is expected to warn users to > > > > >>>> use NUMA_NO_NODE instead. > > > > >>>> > > > > >>>> Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead > > > > >>>> > > > > >>>> The following config is enabled > > > > >>>> CONFIG_NUMA=y > > > > >>> > > > > >>> I am seeing this as well. Is the following commit premature? > > > > >>> > > > > >>> e0eec24e2e19 ("memblock: make memblock_set_node() also warn about use of MAX_NUMNODES") > > > > >>> > > > > >>> Maybe old ACPI tables and device trees need to catch up? > > > > >>> > > > > >>> Left to myself, I would simply remove the WARN_ON_ONCE() from the above > > > > >>> commit, but I would guess that there is a better way. > > > > >> > > > > >> Well, the warning is issued precisely to make clear that call > > > > >> sites need to change. A patch to do so for the two instances > > > > >> on x86 that I'm aware of is already pending maintainer approval. > > > > > > > > > > Could you please point me at that patch so that I can stop repeatedly > > > > > reproducing those two particular issues? > > > > > > > > https://lore.kernel.org/lkml/abadb736-a239-49e4-ab42-ace7acdd4278@suse.com/ > > > > > > Thank you, Jan! > > > > > > A quick initial test shows that this clears things up. I have started > > > a longer test to check for additional issues. But in the meantime > > > for the issues I was already seeing in the initial test: > > > > > > Tested-by: Paul E. McKenney > > > > And the longer test ran without errors as well, so again, thank you! > > > > Any chance of getting this into -next sooner rather than later? > > Should be there tomorrow. Thank you very much! Thanx, Paul