[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>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 25 Apr 2023 11:16:43 +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=Am36Z/cVjOhEFeXClzPQpcORJB52iIGKESmRFUjF08g=; b=f1W02WmAr3pEE0ia0GlUugWduth2e+ObYIXxZFVL/AvTZ5DBgV2p9RsS21rrdnzAtg5tZ4RG9hmVfVfS358FyCagkKpB6zCg9BT9r3mqXk70bSZAO1agzJoINeusvJfHzGN0lBMuzuZ2RJb/a2eUMGoNxp2sBxMNi4niz+3BAcOlZ/Tes4QYCd8w+6HsYJue2s7Bl6l6YD8T7i7tMDps3JwVMFzEkE8KIPKj1RShL3GwdmsnwuRn9HHvVO0gLQ8Opbr8kQZUjxzPYMtuydCCZzls4gwqvRTmxJn+zn1socsPsI8pxeshaP0C2hDS1uG5AhDFwBc48W/HUaqe9cvJSA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h5GdVPIo3ax4hXGsZQRsuER/4Br+JzxTKb+PlKVLKL9hT2dbSV3erDC1BjFk0um4OMlEJvoN5WijlmQvzS+1klmGfef3jGG7YRjUVjvWBOrH2tel2FwtQyWhEFcvmZN4SqahFjiCpuogxfTdbObR2Qkc2a3ssfBDxsgNnGAaBhsNx1fE7hjUp4y8Na0xc0mYMtcrOfgpZT6dMTmN2bAnBXvuUw1XBxT6BJFNjz4/+3S56wxt/HLl57icuQG1D27InRH3+28v5ClqwrXmX4KgLXsM7TuWOKTjTAY8EM5psKNLfY5KSfKfzcnRltP6rRZoSforMuikLp9rzyMHAL/CDw==
  • 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 09:17:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


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

I understand your point. It might be worth asking e.g. on a community call
to see what others think (for now I did not see any objections). It might be
that everyone is ok with it under good justification.

~Michal



 


Rackspace

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