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

RE: [PATCH v2 03/17] xen/arm: implement node distance helpers for Arm


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Thu, 12 Jan 2023 08:29:05 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=DL/iYYTLzQHhiT5NJsqQUflNwBq/XnQTi7AVoBheryk=; b=Cyzf6+iSsykWj/xpmqtOspoNxPEgVedyjRhrPJkIWY3gBQP6SnNDMufJiz1xjNylUFSXOGVwdS2JaJ64BHZuHAlcL7KR+mHBzsqMrNhYCBe+v3NKo5YCHaNv2x9VqbzhEfMMKoF2ueyrAs6qKfemzor/fl50qIVeA+2sPUjbNCnHFExijiJ/KtyXgAojXyUa5b1b8toWNkuP82+5q9deHlZgs9BsASBbNs4yvJ3fICJWm7c0ezdkERO0aOEKdc+LM+Bn7kd0J/DLVsLaa7FpOoOMvL7ydYIHQAx4cxZhmiruXtw3XUCNFX1GFlKHj/Qou7K3oYS8svFN/UKgnwjRTw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bmG8eWe4dlobd7eEWvDmTZd6ThgCekBpIr2vPOLvYVWkPTbQ87EmQTfEezkcRQiKS1L3/KDYqQkUw4TJeX3fBrkr/Rzm7lTLG2b90r0QsbM/JgHxhuldHxRjOsjr5NHhCbv3X2ZyZeR8Et2V/ac0TMKmmBSVWRQcQ7BkLZ54D7HxXdn34R1M/Sdp3EcLMQwDlTbGiNyxMiUNbWIDRXDdR10S//hbSQZsIJgmSI9hWqPPy57Vy8hjxuBMuET5/ISirZoQBSagMdTXe74nedqkFATMy5hDrSqBOn+HGdamuRXVrtvdidCaeHWBxGLmpC1w/0KYjBTsmEfr6xSy5GmRIg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: nd <nd@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 12 Jan 2023 08:29:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZJNEfrPi0xon1hUWBAoFjpzsCdK6X3MQAgAJ3JNCAAB1cgIAAAqfA
  • Thread-topic: [PATCH v2 03/17] xen/arm: implement node distance helpers for Arm

Hi Jan,

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: 2023年1月12日 16:11
> To: Wei Chen <Wei.Chen@xxxxxxx>
> Cc: nd <nd@xxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; Julien
> Grall <julien@xxxxxxx>; Bertrand Marquis <Bertrand.Marquis@xxxxxxx>;
> Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>; Andrew Cooper
> <andrew.cooper3@xxxxxxxxxx>; George Dunlap <george.dunlap@xxxxxxxxxx>; Wei
> Liu <wl@xxxxxxx>; Roger Pau Monné <roger.pau@xxxxxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2 03/17] xen/arm: implement node distance helpers for
> Arm
> 
> On 12.01.2023 07:31, Wei Chen wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: 2023年1月11日 0:47
> >>
> >> On 10.01.2023 09:49, Wei Chen wrote:
> >>> --- a/xen/arch/arm/include/asm/numa.h
> >>> +++ b/xen/arch/arm/include/asm/numa.h
> >>> @@ -28,6 +28,20 @@ enum dt_numa_status {
> >>>      DT_NUMA_OFF,
> >>>  };
> >>>
> >>> +/*
> >>> + * In ACPI spec, 0-9 are the reserved values for node distance,
> >>> + * 10 indicates local node distance, 20 indicates remote node
> >>> + * distance. Set node distance map in device tree will follow
> >>> + * the ACPI's definition.
> >>> + */
> >>> +#define NUMA_DISTANCE_UDF_MIN   0
> >>> +#define NUMA_DISTANCE_UDF_MAX   9
> >>> +#define NUMA_LOCAL_DISTANCE     10
> >>> +#define NUMA_REMOTE_DISTANCE    20
> >>
> >> In the absence of a caller of numa_set_distance() it is entirely
> unclear
> >> whether this tying to ACPI used values is actually appropriate.
> >>
> >
> > From Kernel's NUMA device tree binding, it seems DT NUMA are reusing
> > ACPI used values for distances [1].
> 
> I can't find any mention of ACPI in that doc, so the example values used
> there matching ACPI's may also be coincidental. In no event can a Linux
> kernel doc serve as DT specification. If values are to match ACPI's, I
> expect a DT spec to actually say so.
> 

Unfortunately, the latest device tree spec doesn't have any NUMA
description [1]. But if we define different values for DT NUMA in Xen,
we may have an incompatible with Linux DT.

[1] 
https://github.com/devicetree-org/devicetree-specification/releases/download/v0.4-rc1/devicetree-specification-v0.4-rc1.pdf

Cheers,
Wei Chen

> Jan

 


Rackspace

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