Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2411641pxk; Mon, 14 Sep 2020 12:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx63Kuaz5icbOOzENkzs6qOjVQld74vydLM9evzW7xv9fPXSKzNr3V+AzVlWiMV+6oVidb0 X-Received: by 2002:a17:906:3955:: with SMTP id g21mr16525117eje.69.1600112164043; Mon, 14 Sep 2020 12:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600112164; cv=none; d=google.com; s=arc-20160816; b=smSaqEj/yNDkWZYtgKteZZyUUmP/EkK5hk3tx951S9ZEOpeCgaYU50aMqGd5DbU88s TF1NuH5mzjZOQ47viHu78qxef60j3QQtSwhO/Hpv5WwJw2gT8nel5PeylAX4he3BZxv9 ypIO3+UyyjIBhoSCIvPf1upI2i3juXg7Xgjqfbdfp8JXKE9Tx+XUdqn3D3Wb9Tg8LSP/ pVMD6pV68HWtTehsNAxlz+3njh9EtvXiuQwCuN18udMbrUlseO25RlKYifvv4p0IGaKF 2C/swR/T71/JytkKPQtwKbvC0Z63d9bgbRvGk+ISgi94+qadgz2gHru2AxDUeaYDCQ6R zLIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6ZfPOOIwny+SOWWvDFrp9jH/Hf5AY76Y31ECLzz/08s=; b=VPYgykSu5l2cs0TOta2peueCzlf9mJmETzufDnG+wVj1Zo1lT/F4sibIujSypo8oNQ e5j6j51jXd8DF4xAV0pdhzQ80R0e55/RRbI95Q0dj9YCpmywN1CIKakaLDObVBCbSygy AbgK0I1pnoa3Z2EHRYPXaXA9a/D7yKemVtNPbFsjmnig+WYnJtaKpvwRwPHsmO08f5UT znLa7SggXcvxIZS7jVZLdTCbNbaH7XYA+ByHFl29o4+IMYbFQBJRdh7AWMX+8Qg/oTvb 83001KIr4jor2fqtSFGaKKMxwsQM1+YX6iV7dQjGk9971lGNmQL7P55J/kwjl5H5jHwf XVqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=gsdcsC0G; 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 d21si8576442edn.173.2020.09.14.12.35.40; Mon, 14 Sep 2020 12:36:04 -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; dkim=pass header.i=@atishpatra.org header.s=google header.b=gsdcsC0G; 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 S1726025AbgINTeP (ORCPT + 99 others); Mon, 14 Sep 2020 15:34:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbgINTeM (ORCPT ); Mon, 14 Sep 2020 15:34:12 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4785CC06174A for ; Mon, 14 Sep 2020 12:34:12 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id c18so826802wrm.9 for ; Mon, 14 Sep 2020 12:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6ZfPOOIwny+SOWWvDFrp9jH/Hf5AY76Y31ECLzz/08s=; b=gsdcsC0Gc5RLhkew2L2+Fxf3KeQILEy4nktJHEr+6Hi/lqt644KELt8WBFyJk81t3b zZBUM5i0EiZDNNjPJgitM6iBqDe4SL765QTJ61syEWXwDDSOBjCoQB3iRbUlVuZuZeQj u6jwnVwV7aQ3mVQ00vDiqCnitWIVibSy9sQ74= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6ZfPOOIwny+SOWWvDFrp9jH/Hf5AY76Y31ECLzz/08s=; b=Q2Z65QH09a+80VTWBybDU+DiOEW5gYu73EA9wT48qZT7tpZEgbmp3LYgKB/LsX64UR ZzLq7jkCeY6VC7gTz/1nWYxbgfBwqyqXY+rTB7rm9zIUBqCYOKrfOZFowYgbj6HrfMhH llpJuWr4M7PPWMJWOy8t2AdLgEGJ0iqPncHIH2O2FCJZGKBxnFarx3ARCaLVvd/rSOjQ RPYyJjiodf389dgeP8mzO17mlixH5HOd7bQ84RxxOC/hhM17aOvNmoAv6jjYwyT3d3Eg 2OJgzqA9ItuYNGXXx1DD4yV5N2KtTIEZgAUGo2oBbAH4jP/mIkybS/QnOFn9EDoUuMOM FHvQ== X-Gm-Message-State: AOAM533PB78kktB0PaGbyryXX9ad+QBr74ZI2v+gDwusO8tKsrMHlKh0 gDypLz3bozEO4vUvD+u49GweYEQkCw/sFMsi038f X-Received: by 2002:a5d:4bcf:: with SMTP id l15mr17385037wrt.384.1600112050950; Mon, 14 Sep 2020 12:34:10 -0700 (PDT) MIME-Version: 1.0 References: <20200912013441.9730-1-atish.patra@wdc.com> <20200914090448.00001f7f@Huawei.com> In-Reply-To: <20200914090448.00001f7f@Huawei.com> From: Atish Patra Date: Mon, 14 Sep 2020 12:33:59 -0700 Message-ID: Subject: Re: [RFC/RFT PATCH v2 0/5] Unify NUMA implementation between ARM64 & RISC-V To: Jonathan Cameron Cc: Atish Patra , David Hildenbrand , Catalin Marinas , Zong Li , linux-riscv , Will Deacon , linux-arch@vger.kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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 -- Regards, Atish