Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1428531pxb; Fri, 6 Nov 2020 09:21:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyImWMRX8ZIR01Xsn4X/D4IMhOBQUWNs957oqrxMmdxBMFOwNWXd+xLe4Ynv5xUA3tG1jaT X-Received: by 2002:a17:906:f207:: with SMTP id gt7mr3105107ejb.293.1604683295241; Fri, 06 Nov 2020 09:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604683295; cv=none; d=google.com; s=arc-20160816; b=BM6mSmp6Yy1u6qTEbrQzIwID0Jd8rI7ewdLYGyspvbQLQ8O9TUeQnG8oJ4ztZmKwhC zJkHgBp6ZVtYaCuTQ8Q7xB4UiSgdI6VLGitNDa6SwRVqrw+NnV0i9LXy99jXlvV9C3Mi CIniBKOqQrr4/+SuKte32YhfiGO6APCnfzPyZf+SfLCs/1ZX0TQarbjlB/TCh4lRpWsl rf/6UQwvDf3njnGLYIPvQtuRFXz9/efPZWap2ay71VDZzdKX72lu08gmF0DtsqGGGn41 hVPfldu8uuy4PYO50E2Cq/adDc4jI9WXUcRJlS1Zdi7qkDOPEL6n9iVgA5AsaWmSG1MU 0iEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=AdgyqCAekNxg9dL37FOr2o16I1kPNmS+rh7ojU77LDk=; b=X9KVsaOCpP4zGYpIFsx0PyjHtEgK7ErJaJXgEeemktTQ25xbeGK+hHbGd2MH8brEdA 3M1Hqx26XDrgYSQZ5vTiZLAKi5MEu34OTWolMu0E2cwkQiPuM5SK2rpsBEsxL20Wpd3f NOFnXIdQflEb4APRfouSE2ROAgaDW/CnBoQuYsv1AT1BIMtAkLQmFdTMwqKsANVjz8qk 7SFlOHzRDD7zRYuvgiSG6DFOhR+5BpDabnroQ7uTes1M2+JSXJZSXVNP4e/bMFlJIchY fxd+f63Fg3wzZ0Fc6Bhy/jtb6m2T3hDG424q6kEdshtoa+mV6oGaBZ0pBmcNQXNMc6Mt cDzg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si1329998eju.307.2020.11.06.09.21.11; Fri, 06 Nov 2020 09:21:35 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727661AbgKFRS1 (ORCPT + 99 others); Fri, 6 Nov 2020 12:18:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:38322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727608AbgKFRS0 (ORCPT ); Fri, 6 Nov 2020 12:18:26 -0500 Received: from gaia (unknown [2.26.170.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90B4E22227; Fri, 6 Nov 2020 17:18:21 +0000 (UTC) Date: Fri, 6 Nov 2020 17:18:19 +0000 From: Catalin Marinas To: Palmer Dabbelt Cc: Atish Patra , Will Deacon , maz@kernel.org, linux-kernel@vger.kernel.org, Jonathan.Cameron@huawei.com, aou@eecs.berkeley.edu, akpm@linux-foundation.org, anshuman.khandual@arm.com, anup@brainfault.org, Arnd Bergmann , david@redhat.com, greentime.hu@sifive.com, Greg KH , justin.he@arm.com, wangkefeng.wang@huawei.com, linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, rppt@kernel.org, nsaenzjulienne@suse.de, Paul Walmsley , rafael@kernel.org, steven.price@arm.com, will@kernel.org, zong.li@sifive.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 0/5] Unify NUMA implementation between ARM64 & RISC-V Message-ID: <20201106171818.GL29329@gaia> References: <20201006001752.248564-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 05, 2020 at 10:07:00AM -0800, Palmer Dabbelt wrote: > On Mon, 05 Oct 2020 17:17:47 PDT (-0700), Atish Patra wrote: > > arch/arm64/Kconfig | 1 + > > arch/arm64/include/asm/numa.h | 45 +---------------- > > arch/arm64/kernel/acpi_numa.c | 13 ----- > > arch/arm64/mm/Makefile | 1 - > > arch/arm64/mm/init.c | 4 +- > > arch/riscv/Kconfig | 31 +++++++++++- > > arch/riscv/include/asm/mmzone.h | 13 +++++ > > arch/riscv/include/asm/numa.h | 8 +++ > > arch/riscv/include/asm/pci.h | 14 ++++++ > > arch/riscv/include/asm/pgtable.h | 21 ++++++++ > > arch/riscv/kernel/setup.c | 11 ++++- > > arch/riscv/kernel/smpboot.c | 12 ++++- > > arch/riscv/mm/init.c | 10 +++- > > drivers/base/Kconfig | 6 +++ > > drivers/base/Makefile | 1 + > > .../mm/numa.c => drivers/base/arch_numa.c | 30 ++++++++++-- > > include/asm-generic/numa.h | 49 +++++++++++++++++++ > > 17 files changed, 199 insertions(+), 71 deletions(-) > > create mode 100644 arch/riscv/include/asm/mmzone.h > > create mode 100644 arch/riscv/include/asm/numa.h > > rename arch/arm64/mm/numa.c => drivers/base/arch_numa.c (95%) > > create mode 100644 include/asm-generic/numa.h [...] > arm64 guys: do you want to try and do some sort of shared base tag sort of > thing for these, or do you want me to refactor this such that it adds the > generic stuff before removing the arm64 stuff so we can decouble that way? I had a comment on the second patch (probably impacting the first) but otherwise they look fine. I'm happy for this series to go in via the riscv tree but, if we run into conflicts, please provide a stable branch somewhere containing the arm64 changes (first two patches). -- Catalin