[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: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 25 Apr 2023 10:47:16 +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=MEVbymheg/pi0H18lPXe04kKTgelT+WrQ6x2GWgpn9I=; b=B9+kgu0oSLcNrIoIQywCf5pe2LBub97KciVvC6/lAOqQUOeKiwJD5lI9w/KQe/ikT/cvf1EqL33Ae+XzuhDNWtzTLev/EeIl5GXMbCYf47y3u2v3WE2C0a5rZ+SX+fMJyVgJJR/fl81DeFgVnI3UK6L0Sf0GkKjqAo7AIA7kaYNi+9oWOk3Gc3IuOpzfzLABpMbOgrwq7kqjRMBY3VPPaYMiOOuvWyt+Md70lMYTaLD3Yco4xY00JbHMiWxl9TiSjdhUyHnNsjhAEsnbwZ2/8Z7yMt9pzOeuIyVLA+Pq++dRKTHzsw7FzxPtlGPqzqziS30rCM30wGalwYsyag8JwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aEMvFQgCXLCKxepuJhgbqhycbVqswZtWUGmxPApDpetL4mxdtrhCjOSRcwITZSSDmccUXLABBGEBunkwmiv/ZFQ+hyq6bpVVrIzwoK5zw0mbpCH0ppwTsqhKNXD3zchZr/c/ePXoTCzylP3nFVChmRNhY9fE7bB2gXv0d8dpdmWs5VNrqxaectV2V8fBKdLBzSTyct1uiOnxaQdFaxOcSNi8H7zn0E55fit/oB/mOj/ryLMs/rhv3fsFlVElytw/53d4UFj7w9R13x/tbB+qRjNG8+vycyGMZ2TZ215UsQlgqL6O4nKhyFxuxP/wneDEtB35iIsruxfTIG5POYirKA==
  • 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, Henry Wang <Henry.Wang@xxxxxxx>
  • Delivery-date: Tue, 25 Apr 2023 08:47:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.04.2023 10:39, Michal Orzel wrote:
> 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).

Well. I could make a try, but getting ./CODING_STYLE changed has proven
to be difficult in the past, and I would prefer to not again sit on such
a patch for months or years. IOW I've become quite hesitant to submit
such patches, even more so for things which - imo - should go without
saying.

Jan



 


Rackspace

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