[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 02/17] xen/arm: implement helpers to get and update NUMA status


  • To: Henry Wang <Henry.Wang@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 20 Apr 2023 14:41:22 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Oa7hjJ+1iyAibRi5KjUaA36TQGdTBA5D+gtL6is65VE=; b=GzktQZvLiOX9Uv08DOZmA0r+aBBYzv1IP2F8q4cSRbwDyiNSaj829Vnc6WutMKLjL7m2C7uVcJSFuEQE/MZ2GD+UOjVBZIofRwotGz4pZRhwOOYJpo5hJt+RLO8HHjzyBoiWFP7LEn2c5TnvyNOfSeW1BlRDcTQp5CVZtuvudXGy7E3acIKDZ1QWxCtViTF4rspPyQiucQOkN8wt9QhsDDcd0cGA3G/m9MyYV4GyVrl2Xe3KZb1m9lI+SsOQ1eUkz17o3/FLVLTl2YXwul1334yAL0VzgBVmk8xdnZ1I8u+xqMvZ+kXD4D36t0HmvrKYj31LKJlWxKzFMY4sTpSObA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VYzuSukPP4wtDlovFc4yWowamFVYpgonPomntO9A4N15vUuKtvTI395qeRVZ5HOY4MIiTeDdr/XOiE2bOpbFpyo4Op73dRt13yrud1QQQGwW145xioKmoyNujfNeLRCmSYJA0H8qh714P68TAHjwDAa8+ECL9MLfhM48xDVVm7q8JvI4EmJKa6nWMayEMgmg8tnsKvKtkterDiPT99l7Ybc6NENMbwj5TCNOSVMOd2UicT1luytS784eQnstfGL4nbb49xO1avLVS7+sZrFPPe6u/bye4ZSwL+7LNdsn3UvsPxB9lIm0ywJS05i03LDgDmyHeQEgSyB78FyWS+N4YQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Chen <wei.chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 20 Apr 2023 12:41:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.04.2023 13:25, Henry Wang wrote:
> From: Wei Chen <wei.chen@xxxxxxx>
> 
> NUMA has one global and one implementation specific switches. For
> ACPI NUMA implementation, Xen has acpi_numa, so we introduce
> device_tree_numa for device tree NUMA implementation. And use
> enumerations to indicate init, off and on status.
> 
> arch_numa_disabled will get device_tree_numa status, but for
> arch_numa_setup we have not provided boot arguments to setup
> device_tree_numa. So we just return -EINVAL in this patch.
> 
> Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> Signed-off-by: Henry Wang <Henry.Wang@xxxxxxx>
> ---
> v2 -> v3:
> 1. Rename the first entry of enum dt_numa_status as DT_NUMA_DEFAULT.
> 2. Make enum dt_numa_status device_tree_numa as __ro_after_init and
>    assign it explicitly to DT_NUMA_DEFAULT.
> 3. Update the year in copyright to 2023.
> 4. Don't move the x86 numa_disabled() and make Arm's numa_disabled()
>    a static inline function for !CONFIG_NUMA.
> v1 -> v2:
> 1. Use arch_numa_disabled to replace numa_enable_with_firmware.
> 2. Introduce enumerations for device tree numa status.
> 3. Use common numa_disabled, drop Arm version numa_disabled.
> 4. Introduce arch_numa_setup for Arm.
> 5. Rename bad_srat to numa_bad.
> 6. Add numa_enable_with_firmware helper.
> 7. Add numa_disabled helper.
> 8. Refine commit message.
> ---
>  xen/arch/arm/include/asm/numa.h | 17 +++++++++++
>  xen/arch/arm/numa.c             | 50 +++++++++++++++++++++++++++++++++
>  2 files changed, 67 insertions(+)
>  create mode 100644 xen/arch/arm/numa.c

While I was Cc-ed on this one, neither the diffstat nor any possible remarks
make clear whether anything is expected of me here.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.