[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: Jan Beulich <jbeulich@xxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 25 Apr 2023 10:39:56 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=5paBJTUOvhG4VMZZAzjbXUjIwXGSXCGhIfccklRUmHw=; b=N+pEnd4+FdQGqwk3+WHeLQ+eU9YOb5uG5QzteSYqkzZhaTqiP6TbWacp8VJIouTmm6m9kJpJGD3xZ34lReHx7y+hzxRAQk7eiUK1jmC19fcitXuUtHZlnZt+T/9YVyoU2pETo4pF94nwm+iWV/l3W0IIzOaOxnK/HxUxpnlvKu7BbUSmJs9zvUDJc7ipGebS4c23+dSvPAiD255kdfGPRPPObjIi64jUVXXSsiMpomJRjOuqus8Ju2HtLvws/I453vtW9WaV40H3hok+80sbuIqu1/QSL3+RBVD5vrT9rD+xM2iKn55JH/BMrYy1Vt5b6vQcZ81Hzv/J6aJFAjDYug==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GyA1jSptl/o30kx708Cv58lW6lwkGqBu0d8+AEaG+/5hmxbdEdc+QtUGz9Ge53gqrv6W+Q51xkn03EvUEjlPB3fWEimsFGaaNtmwQJzV5MyGAlbLqC3eETCa9zInoq2B30Ujgv/9IMd+tLqqYXnx/0QHL54VCO+yeRqllTCNOWlpWBKm1cwgvnUxDqyXQ0COrr4arRz4lNMRNpQlv3Ce+NYqKELtu7Tyh/D/xuznYmWdjRROIeD+/e/X433xOX8vZ6UoblDnl9b6hU7W7PfSF7P3VVnlmGZleatWi9gnwRCkTUFGhfUaGX7HvMngQx/zKESoI0TKFRXFHGK7jWxGLg==
  • 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:40:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Jan,

On 25/04/2023 10:20, Jan Beulich wrote:
> 
> 
> 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?

Seeing that you made this request multiple times within the last months, maybe 
it would
be better to write it down in CODING_STYLE or CONTRIBUTING? Otherwise, you will 
keep making
these requests indefinitely without people being able to know things like that 
before pushing
new files (+ this always requires respin).

~Michal



 


Rackspace

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