|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN RFC PATCH 23/40] xen/arm: introduce a helper to parse device tree memory node
Hi Wei, On 28/08/2021 04:56, Wei Chen wrote: -----Original Message----- From: Stefano Stabellini <sstabellini@xxxxxxxxxx> Sent: 2021年8月28日 9:06 To: Wei Chen <Wei.Chen@xxxxxxx> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; sstabellini@xxxxxxxxxx; julien@xxxxxxx; jbeulich@xxxxxxxx; Bertrand Marquis <Bertrand.Marquis@xxxxxxx> Subject: Re: [XEN RFC PATCH 23/40] xen/arm: introduce a helper to parse device tree memory node On Wed, 11 Aug 2021, Wei Chen wrote:Memory blocks' NUMA ID information is stored in device tree's memory nodes as "numa-node-id". We need a new helper to parse and verify this ID from memory nodes. In order to support memory affinity in later use, the valid memory ranges and NUMA ID will be saved to tables. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- xen/arch/arm/numa_device_tree.c | 130 ++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/xen/arch/arm/numa_device_tree.cb/xen/arch/arm/numa_device_tree.c I couldn't find any restriction for ACPI. Although, I only briefly looked at the spec. If yes, I think this will affect x86 ACPI NUMA too. In next version, we plan to merge dtb_numa_memory_affinity_init and acpi_numa_memory_affinity_init into a neutral function. So we can fix them at the same time. If not, maybe we have to keep the diversity for dtb and ACPI here. I am not entirely sure what you mean. Are you saying if ACPI doesn't allow non-contiguous ranges of memory, then we should keep the implementation separated? If so, then I disagree with that. It is fine to have code that supports more than what a firmware table supports. The main benefit is less code and therefore less long term maintenance (with the current solution we would need to check both the ACPI and DT implementation if there is a bug in one). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |