Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1313712pxk; Fri, 18 Sep 2020 09:10:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfOBgfzA0AYCDd2E3zBUYIpxVgawXKEh9u2kzXavfjLc8vUBsWiiSttkDD6ynYsw61Fg/4 X-Received: by 2002:aa7:cd5a:: with SMTP id v26mr38132314edw.38.1600445431918; Fri, 18 Sep 2020 09:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600445431; cv=none; d=google.com; s=arc-20160816; b=vdsGYjdY3uGJzLnShSVnQCvetBNaQeC59+7pXkJfxZ7Dz+oBAI9XXGfmunJOLOsLx3 uVXKiMQLtqpK38Jxgq9+kQCkKMUGW74jHly+YwxtWPwMbub1CzIQw/WjItDBzAubgCOy mzWXRO0KCRn5fhGgFQ5dswVJ/bk+Rp2dsYB4myrzcEeZjT3UZ2T1aMWZRMWb9p9sHWaj bN1iYH9AB20jusmqggtiFCqFahZgtkrdwO3Hm+8Qch0ZGHxC71ZZDX14g2akFd4C6Edn QcXiq16TsrM8OO7Boyhc+pQkxzNmS8ZFVrQlIM67zxqetdKOZP6rvnDOkl5nuJAfpXTa QA6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=NG8A1IFkQ4BAj/S4tkCLRlnkYZJEFXf5RQxOHbChcKY=; b=cMmTUjRGC/HsXwwujNbT+rlnLsf7JwbViC/qynVbnKWnANlpllosi2MpFSuKUsABNI 51u3zR1XPlfAIceHWunq3wo3im0xF4OpMD8U5YYf7YH6gTrvZ2RUiTnJrlbS+ZUEgf3h zFF+v9IoyFhcxWbqDjaCd1N/v9JKCGm8pkXxo/RYk23ngEyVAs+vP934koGIyD6GUhen VXFCXvxx0jRlFquftjx3ET380YYN4Vp9NKP7btYHRkflUhPdlTvMGZivc/frb+uPC9Al 9qyl3g4MsAW50pf5LuSIKEVhN6tQsF3iJ5HyUInT7XNoVCZ0GFYt8eWcLErdgj5Woios tH1A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si2352171ejb.340.2020.09.18.09.09.42; Fri, 18 Sep 2020 09:10:31 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726273AbgIRQG4 (ORCPT + 99 others); Fri, 18 Sep 2020 12:06:56 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2895 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbgIRQGz (ORCPT ); Fri, 18 Sep 2020 12:06:55 -0400 Received: from lhreml710-chm.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id D703D9071B9F61B5AE5C; Fri, 18 Sep 2020 17:06:53 +0100 (IST) Received: from localhost (10.52.125.116) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 18 Sep 2020 17:06:52 +0100 Date: Fri, 18 Sep 2020 17:05:14 +0100 From: Jonathan Cameron To: Atish Patra CC: Atish Patra , David Hildenbrand , Catalin Marinas , Zong Li , linux-riscv , Will Deacon , , Jia He , Anup Patel , "Rafael J. Wysocki" , Steven Price , Bjorn Helgaas , Greentime Hu , Albert Ou , Arnd Bergmann , Anshuman Khandual , Paul Walmsley , "Greg Kroah-Hartman" , "linux-kernel@vger.kernel.org List" , Palmer Dabbelt , Mike Rapoport , Andrew Morton , Nicolas Saenz Julienne Subject: Re: [RFC/RFT PATCH v2 0/5] Unify NUMA implementation between ARM64 & RISC-V Message-ID: <20200918170514.00002e44@Huawei.com> In-Reply-To: References: <20200912013441.9730-1-atish.patra@wdc.com> <20200914090448.00001f7f@Huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.125.116] X-ClientProxiedBy: lhreml741-chm.china.huawei.com (10.201.108.191) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Sep 2020 12:33:59 -0700 Atish Patra wrote: > On Mon, Sep 14, 2020 at 1:07 AM Jonathan Cameron > wrote: > > > > On Fri, 11 Sep 2020 18:34:36 -0700 > > Atish Patra wrote: > > > > > > Hi Atish, > > > > I'm not seeing a change log from v1. Putting one in makes it easier > > for people who reviewed v1 to remember what to look for when looking > > at v2. > > > > My bad. I usually add a change log in the header patch but forgot this time. > I will send out a v3 soon and update those. > > Thanks for reviewing the patches. Hi Atish, I just noticed this was also not sent to which will rather cut down on the relevant audience! Add that list to the cc for v3. Thanks, Jonathan > > Either here, or individual patches after the --- is fine. > > > > Thanks, > > > > Jonathan > > > > > > > This series attempts to move the ARM64 numa implementation to common > > > code so that RISC-V can leverage that as well instead of reimplementing > > > it again. > > > > > > RISC-V specific bits are based on initial work done by Greentime Hu [1] but > > > modified to reuse the common implementation to avoid duplication. > > > > > > [1] https://lkml.org/lkml/2020/1/10/233 > > > > > > This series has been tested on qemu with numa enabled for both RISC-V & ARM64. > > > It would be great if somebody can test it on numa capable ARM64 hardware platforms. > > > This patch series doesn't modify the maintainers list for the common code (arch_numa) > > > as I am not sure if somebody from ARM64 community or Greg should take up the > > > maintainership. Ganapatrao was the original author of the arm64 version. > > > I would be happy to update that in the next revision once it is decided. > > > > > > # numactl --hardware > > > available: 2 nodes (0-1) > > > node 0 cpus: 0 1 2 3 > > > node 0 size: 486 MB > > > node 0 free: 470 MB > > > node 1 cpus: 4 5 6 7 > > > node 1 size: 424 MB > > > node 1 free: 408 MB > > > node distances: > > > node 0 1 > > > 0: 10 20 > > > 1: 20 10 > > > # numactl -show > > > policy: default > > > preferred node: current > > > physcpubind: 0 1 2 3 4 5 6 7 > > > cpubind: 0 1 > > > nodebind: 0 1 > > > membind: 0 1 > > > > > > For RISC-V, the following qemu series is a pre-requisite(already available in upstream) > > > to test the patches in Qemu and 2 socket OmniXtend FPGA. > > > > > > https://patchwork.kernel.org/project/qemu-devel/list/?series=303313 > > > > > > The patches are also available at > > > > > > https://github.com/atishp04/linux/tree/5.10_numa_unified_v2 > > > > > > There may be some minor conflicts with Mike's cleanup series [2] depending on the > > > order in which these two series are being accepted. I can rebase on top his series > > > if required. > > > > > > [2] https://lkml.org/lkml/2020/8/18/754 > > > > > > Atish Patra (4): > > > numa: Move numa implementation to common code > > > arm64, numa: Change the numa init function name to be generic > > > riscv: Separate memory init from paging init > > > riscv: Add numa support for riscv64 platform > > > > > > Greentime Hu (1): > > > riscv: Add support pte_protnone and pmd_protnone if > > > CONFIG_NUMA_BALANCING > > > > > > 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 | 29 +++++++++-- > > > include/asm-generic/numa.h | 49 +++++++++++++++++++ > > > 17 files changed, 200 insertions(+), 69 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 > > > > > > -- > > > 2.24.0 > > > > > > > > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv > > >