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 F2990C3DA4A for ; Thu, 22 Aug 2024 09:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MFXQ0mHBjebe7TNEQwe1c2PvVM4VRFVYQGPZVJN+jLc=; b=u7QNWEivrCT+W+knFaUyRDY7b7 JcsBruhLf2DoEDz/P0EX3Y742RRi9FRYYqkK/sS8zRPgsJxJBzr/nBKXKZu3FzDN7kbyut3QPzWVn neGCtsOGfAa1eBAmw5mxU4865sDAf6wSETrhAelPXj3Vki4c2YpJK0tD1Ln7KX/zUptSmXTHyG1EH b8jVHJpK3S8+cJ92In2kB5jV3eQNHpQPGc2LVzy60lrGY1G8uomqgj3gmdAaPPY0EJ0wKEPZn/dBt it9VBlnLlKFSSFnPu93LBgfQst4k292/UeTYJfBQdavNddXtfL8zXr8+CJ3ObDSYLwXlz8PDgwfNP m0ZNpSlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh4Ae-0000000CFXc-22Yr; Thu, 22 Aug 2024 09:31:56 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh484-0000000CEfv-3ePt for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 09:29:18 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id D5926CE0E8C; Thu, 22 Aug 2024 09:29:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE593C32782; Thu, 22 Aug 2024 09:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724318954; bh=vtJuoUWmrsdNKkbGI+rezLvYxha6TAvMZGOFWrjivYc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ur5p5OC9XTtEnxrPOD6bK+pZ4iaZS2GD2Adkkc40MWWpa6QW6Py9WVgwpNY3EFRmk +BIy73o/h87sQboLKXJiaMvrPR3R3/UP6pRSn6qLXzmCn9bd5xS92ej1/JJCiRd/3Y 1e+TXP8Mc94UW+0vNk00CyMmGKONRCseAzjlDSdETjFsuVCllJRgHNMcHVTvyBVPro 6uNTeP8mHqjI3f1I8/r3p7r4oHZ9Y4i5/26hfV1d/cYBeqHJbwT3dsjE386MQlpqPI vQGoVZq3gY3Z4kriaurvwofF+aJeWbobFN6nmV+aKKahP4xgP0LrWrCSVBLKDCzFdc sYvyYI6v/LXHQ== Date: Thu, 22 Aug 2024 12:28:59 +0300 From: Mike Rapoport To: Tvrtko Ursulin Cc: Jonathan Cameron , Greg Kroah-Hartman , Tvrtko Ursulin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-dev@igalia.com, =?iso-8859-1?Q?Ma=EDra?= Canal , Catalin Marinas , Will Deacon Subject: Re: [PATCH 1/2] numa: Add simple generic NUMA emulation Message-ID: References: <20240625125803.38038-1-tursulin@igalia.com> <20240625125803.38038-2-tursulin@igalia.com> <2024062627-curler-unlucky-51e0@gregkh> <679a9dda-8e8a-4428-8d57-30b0c60f28ce@igalia.com> <54b357b2-2132-4fd6-89db-7a60617dc859@igalia.com> <20240808172726.0000154a@Huawei.com> <7673fb84-5fe8-4d80-865d-95df3f519528@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7673fb84-5fe8-4d80-865d-95df3f519528@igalia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_022917_301633_98D37DFF X-CRM114-Status: GOOD ( 28.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Tvrtko, On Mon, Aug 12, 2024 at 05:35:31PM +0100, Tvrtko Ursulin wrote: > > Hi Jonathan, > > On 08/08/2024 17:27, Jonathan Cameron wrote: > > On Thu, 8 Aug 2024 12:56:44 +0100 > > Tvrtko Ursulin wrote: > > > > > > c) > > > Strong nack for either a) or b) - so "do it in the firmware" comment. > > > > > > Trying to understand your position so we can progress this. > > > > See: > > https://lore.kernel.org/all/20240807064110.1003856-20-rppt@kernel.org/ > > and rest of thread > > https://lore.kernel.org/all/20240807064110.1003856-1-rppt@kernel.org/ > > [PATCH v4 00/26] mm: introduce numa_memblks > > > > Much larger rework and unification set from Mike Rapoport > > that happens to end up adding numa emulation as part of making > > the x86 numa_memblk work for arm64 etc. > > > > It's in mm-unstable now so getting some test coverage etc. > > > > Sorry, I'd kind of assumed this also went to linux-mm so > > the connection would have been made. > > This is great - I did not see it since I don't read linux-mm regularly! > > I gave Mike's implementation a spin on top of RPi 6.11 kernel and it mostly > works fine. > > Is the decision that this is going in pretty much set, that is, high level > acks are there? It's in mm-unstable now https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/log/?h=mm-unstable and I hope will go to Linus next merge window. > One area to potentially improve is working around CMA areas when they are > put by the firmware at a range which straddles two nodes. In my series, > albeit not the one I yet posted, I have some code to fudge that so that CMA > ends up wholly in one node and so CMA initialisation can succeed. > > I can try and adapt that patch to this series and post as a RFC. > > Then there are some odd things about NUMA, memory pressure and swap > behaviour, but that is not specific to this series and not something I got > to the bottom off just yet. Could be specific to my board and IO for > instance. > > Regards, > > Tvrtko -- Sincerely yours, Mike.