From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A5D0C3DA7F for ; Wed, 7 Aug 2024 18:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:References:In-Reply-To: Message-Id:Cc:To:From:Date:MIME-Version:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=vHNB1OHCK5SRSZ2/uBC940ymOVynntmTZktKHcUEGhk=; b=ZhTb6aTufLaNE+Gi2d7ibTV8vH C+7ribwsXBcAgUab85T3K3f4sPMCKdm68QzxG8vKs2JVJkaufVfPKO3D9yF66EeaIlSHYIy2F1BV1 hZcPWOkoxqrC3nQLlqUtLoZc9yduCRZ4Iu1CT4FgQ86KJttkVNVYjBBEmT4wJlVfxNcnSfp1xrj32 YwYeJc4uk6HrdGHaAMX9q8ISCA66drPErMseKSxR2TmtHITkwmWtLkAH3MbofFcbSFVBxf+yRFmfg /Oe8NdKqh0gGKnVkVwiAm66RZp679Wykfq1xos0YjvifIVX0ZjxbUtbBFoWdcw1MMmnUfAFH+VLHd wHfV999A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sblnQ-000000060Ek-3qGL; Wed, 07 Aug 2024 18:54:04 +0000 Received: from flow7-smtp.messagingengine.com ([103.168.172.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sblmq-0000000603I-28GI; Wed, 07 Aug 2024 18:53:30 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailflow.nyi.internal (Postfix) with ESMTP id B9FE8200F9C; Wed, 7 Aug 2024 14:53:26 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute4.internal (MEProxy); Wed, 07 Aug 2024 14:53:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1723056806; x=1723064006; bh=dN92Yy3XFjXTxBQ/NKAZMCYVQAegkihc+8DVkcaUGXw=; b= M+AgFKcnD/Nuugw9QWMdK0TNIorx7c9kz4u4kWeEtoBkeDVxq1i8AfEINi28F8pD mqxXrgNc0hd7DLIVn8ZdgKKw1WixvvvthvoPlB32dikpdRyZeayfzxol4TWH5zV/ sctoPTqK+Gpjs6mQSC5g5LuM5+hqde8Awr3BiE9VBetstqH9G+Y73dGI251beJG0 KD/S9aRYjMWru5ducc9JFCJqHqrV4tG/Fb2biX0pP/55/wPz4yqBj2Cwo3Jic+yq Ts4ZD1s3I/J9I7pooC8Z3JaExlDJaha/uLa/IoywBt1Fj2dxnikSyGwL/537oKvz 3Ga11kSBaDC1us7TovA9WQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1723056806; x= 1723064006; bh=dN92Yy3XFjXTxBQ/NKAZMCYVQAegkihc+8DVkcaUGXw=; b=C bd0u4JXHiwM85jQmCceR5thBnLlVROGCSHq6uqUQH7EES4yd9w+rGDAsQiWGz/KE Tx9ieCb+syV32NMwTs+deNuAAbSSJe2g2WC6Q1eWWQa6JXLDL+jX7+woQX4AVmls 7LKrhVy6yJsezqFhMNl/XzM0DJIJdjB2cO6q+5fT/oDBlh0O4crlMEUa9nDaj5+w 8Li1kDK8ZNJzdI09O84Vv3hC186LsTWkCUiEZ2/yFGg3ilPlXUGqR2TZ+rh7pN7b zrQN9qvczGLLR6LFQdfP+t0gWYdb1IFiN8QXdil4RtN7+rEubC/YANNF+1Cs12kw Bcw5FrUO4Qwt7abMjpS7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrledtgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefggfevudegudevledvkefh vdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvgdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id ED628B6008D; Wed, 7 Aug 2024 14:53:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Wed, 07 Aug 2024 20:53:04 +0200 From: "Arnd Bergmann" To: "Mike Rapoport" Cc: linux-kernel@vger.kernel.org, "Alexander Gordeev" , "Andreas Larsson" , "Andrew Morton" , "Borislav Petkov" , "Catalin Marinas" , "Christophe Leroy" , "Dan Williams" , "Dave Hansen" , "David Hildenbrand" , "David S . Miller" , "Davidlohr Bueso" , "Greg Kroah-Hartman" , "Heiko Carstens" , "Huacai Chen" , "Ingo Molnar" , "Jiaxun Yang" , "John Paul Adrian Glaubitz" , "Jonathan Cameron" , "Jonathan Corbet" , "Michael Ellerman" , "Palmer Dabbelt" , "Rafael J . Wysocki" , "Rob Herring" , "Samuel Holland" , "Thomas Bogendoerfer" , "Thomas Gleixner" , "Vasily Gorbik" , "Will Deacon" , "Zi Yan" , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, Linux-Arch , linux-arm-kernel@lists.infradead.org, linux-cxl@vger.kernel.org, linux-doc@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, nvdimm@lists.linux.dev, sparclinux@vger.kernel.org, x86@kernel.org Message-Id: <19f7ccec-db2a-4176-b6d9-12abe0586d07@app.fastmail.com> In-Reply-To: References: <20240807064110.1003856-1-rppt@kernel.org> <20240807064110.1003856-25-rppt@kernel.org> <1befc540-8904-4c23-b0e6-e2c556fe22b9@app.fastmail.com> Subject: Re: [PATCH v4 24/26] arch_numa: switch over to numa_memblks X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_115328_851041_B6AB8B35 X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Aug 7, 2024, at 20:18, Mike Rapoport wrote: > On Wed, Aug 07, 2024 at 08:58:37AM +0200, Arnd Bergmann wrote: >> On Wed, Aug 7, 2024, at 08:41, Mike Rapoport wrote: >> > >> > void __init arch_numa_init(void); >> > int __init numa_add_memblk(int nodeid, u64 start, u64 end); >> > -void __init numa_set_distance(int from, int to, int distance); >> > -void __init numa_free_distance(void); >> > void __init early_map_cpu_to_node(unsigned int cpu, int nid); >> > int __init early_cpu_to_node(int cpu); >> > void numa_store_cpu_info(unsigned int cpu); >> >> but is still declared as __init in the header, so it is >> still put in that section and discarded after boot. > > I believe this should fix it Yes, sorry I should have posted the patch as well, this is what I tested with locally. Arnd _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv