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

Re: [PATCH v4 07/17] xen/arm: introduce a helper to parse device tree processor node


  • To: Henry Wang <Henry.Wang@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 25 Apr 2023 10:20:07 +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=7D+O7eAjRI6QP88+awE5NKGVnJ/s/oPhYACqqFuXpC4=; b=i3GLZu644N4gOMiteDtyw0gqnV3y8xX41xFM83ps+36cbM41JsWS7r3TkdaOTu8SIEefe66HPXCKAd+jNtAx7bLuOBEelwK+btHXO14+GvDM4IDmWH73J++kNlP+O0z+xtH8iiYREdxuHxS4DjAwZLA8ktAXkwEyARojmtWLUMOk7R3Am2eUi13j6rS5UPt4Crb3E+QvUKBTXTSpcFeVRDP6Yi+wmVzTJ31/cSkvk56yIPCo9UKc1e2prgEuFdNywAs2Dd97W+nxDCaEBLXAaXog96RDw9S1F+9tRSujZtnBujiy8D2UdoOJfgDedQTlm9zMGkaPqtBocrz5/mJKeQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OzwqqpXSn2uCxHe9I2vxgBwXwST7+fqG3K6uBNIMLm60UW/gs9RzP9z/TNVGgp4MnzyNKDSVwpICWK9b1F/piPtK1lWw7mB0hnFTDhvqr0YSswZx7IOdIESvKw9n2LLb5d3Xua6MLgXPxafD4ZB3Nkf8Suy0rRBNlfllU2UwmGaktyz0TFQxK5W/GjaKmWALTJq1afCZGfBhU/G/KzR4kGx55aAJdHAkXTf8xkIw/xWM6TYFz64G8kZpkuMdQn5NVf1gxuZb8znKh7O948ynGJykkvIrbeQEPDir2CwSiI1rsUC8oQQqHTn0uUqYpYgPDkmMiVx6aWBHVaZpCOPbMg==
  • 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: Tue, 25 Apr 2023 08:20:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.04.2023 09:56, Henry Wang wrote:
> From: Wei Chen <wei.chen@xxxxxxx>
> 
> Processor NUMA ID information is stored in device tree's processor
> node as "numa-node-id". We need a new helper to parse this ID from
> processor node. If we get this ID from processor node, this ID's
> validity still need to be checked. Once we got a invalid NUMA ID
> from any processor node, the device tree will be marked as NUMA
> information invalid.
> 
> Since new helpers need to know the NUMA status, move the
> enum dt_numa_status to the Arm NUMA header.
> 
> Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> Signed-off-by: Henry Wang <Henry.Wang@xxxxxxx>
> ---
> v3 -> v4:
> 1. No change.
> v2 -> v3:
> 1. Move the enum dt_numa_status to the Arm NUMA header.
> 2. Update the year in copyright to 2023.
> v1 -> v2:
> 1. Move numa_disabled from fdt_numa_processor_affinity_init
>    to fdt_parse_numa_cpu_node.
> 2. Move invalid NUMA id check to fdt_parse_numa_cpu_node.
> 3. Return ENODATA for normal dtb without NUMA info.
> 4. Use NUMA status helpers instead of SRAT functions.
> ---
>  xen/arch/arm/Makefile           |  1 +
>  xen/arch/arm/include/asm/numa.h |  8 +++++
>  xen/arch/arm/numa.c             |  8 +----
>  xen/arch/arm/numa_device_tree.c | 64 +++++++++++++++++++++++++++++++++
>  4 files changed, 74 insertions(+), 7 deletions(-)
>  create mode 100644 xen/arch/arm/numa_device_tree.c

As asked for in various other contexts, may I please ask that new files
prefer dashes over underscores in their names? Additionally short but
still descriptive names are imo to be generally preferred; in the case
here how about numa-dt.c?

Jan



 


Rackspace

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