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

RE: [PATCH v5 5/6] xen/x86: move NUMA scan nodes codes from x86 to common


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Sun, 9 Oct 2022 07:25:14 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • 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=2; 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=3RmasekNwVZi3GCrRiO0Y6AzzYy2ZSdK+KPVikoIS2I=; b=U7XXoJBx9Q77mm/Ku3sGwALbOqiRxvg7qT4mGRjxJl1R+zZMzBSt5sGmD8egIM9avUdcH9vevTghDLW2MN8azQbtjQt6BgMtgJ+23ebOVXOSjp/CktHozLuTLmGzDYMGBSGIkbzQR8FxewEdFD8fPiMrrt9aJhaFq6LAFJ7XYq1rXDvcFjE9EhvFKt6rEFCf+9Ij+p+jAxS38DcRPFtTqyg/BH46s2whcI3tUpFPXLUei1mXejuSVGl4roozH6rOZpFzSR36WldXsVn6W2cvVPid5JJmGEIDiYcu4MpJyj2oVZ9MkZ/t2HyktVBFE/+xojise0zLC0341oRrhRBq9A==
  • 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=3RmasekNwVZi3GCrRiO0Y6AzzYy2ZSdK+KPVikoIS2I=; b=NVPZwTCDEkxlad4YkgUUHlFUkCp89amDuKBZs94UTvCgZ+3WtIXV4EI5aHT8xI6bsOsxE9fofAmxKehoL8taYecBF110NODNXnCnv391uglIQ8/Ie16kLNhnDhVozycB+A10CGOwRlJHEVh38E8XF9ojB1Mh8qMiK3IGVcWbyALYUNx9siLqHZTrrR02aMQw8PUlDTHH5aY6haqSFklgOSNACtktjK3juJpJDRD5AvZ/UQxvFD41fbDszAMrh5UEIK9hYFlZz/NaLt+x1D5JXAuta2DNAWsRQrMvRE0CJ9LIMgUiECfMkAtqoqyBKyjLEam2i/qcQmrVmGCfP03JsA==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=TRQXSXuShkTTpttDVFogQldPI2yKzgg16DGAe+2EDe5UetiDgkoGRaPBa6Wqye/Xnd76aWLD2H+1KpNF2T6XPYCWGqlpABw3Voe7SOCADSz25+RSQy68XaK5OvA+G1mypUueaNLyXm18YtbMV+I1QCATCJqD6tHuv+uLky+on/tE6iWNXfJCNvcuMy0WiUIR46v3zovvzGlDOEKqSa58sxVLXz7MKXIKK+1dG5txgv8ZjyNAZen6P4weoPYsNCos12+ZxjadzaTcJKCKqnXTnSIixNgxE5fcdXAOLGlfnEYsD67UwS3WnrTIppr4yPwZmg+7IZJiInuXjaFcQ8HSow==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TITeQl0G8RYlii/zj2Svt5DvV0W4rT6wSbBiZAsEHXUaFFUvCbrj1hjNRbF7VG2BjvEJSg7D2mPSkc6DEDwkLACoTGjhsiwCzZg8ODmwszUjC0fE6T90EKJFt79AMM6Y7zG0kUxAx0hjZQLLDS0FBprDmk6fgNuK52hFUUg3OGN2tU/8sLAnFjXIbcC6fJX8HwHIbWrjgpIQHGatWEQnlANdowgZmioZ1m8ZgRjtNdoRwT3C5SiXQcQ3y8/vFTRTISSCkEaoj9doVlVoTvcqcRe3twYbmUoSdz9HcolyGb/L+i2i/IrlisL/V/XFQeYaiO8jQ3PHjhwuL2zA70GG8A==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: nd <nd@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Sun, 09 Oct 2022 07:25:49 +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: AQHYzNExhaWvtVxVf06aoC2sQxI0u63zd60AgAKngwCAAEMigIAA3nNwgABKNYCADjuwgA==
  • Thread-topic: [PATCH v5 5/6] xen/x86: move NUMA scan nodes codes from x86 to common

Hi Jan,

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: 2022年9月30日 14:03
> To: Wei Chen <Wei.Chen@xxxxxxx>
> Cc: nd <nd@xxxxxxx>; Andrew Cooper <andrew.cooper3@xxxxxxxxxx>; Roger Pau
> Monné <roger.pau@xxxxxxxxxx>; Wei Liu <wl@xxxxxxx>; George Dunlap
> <george.dunlap@xxxxxxxxxx>; Julien Grall <julien@xxxxxxx>; Stefano
> Stabellini <sstabellini@xxxxxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v5 5/6] xen/x86: move NUMA scan nodes codes from x86
> to common
> 
> On 30.09.2022 03:40, Wei Chen wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: 2022年9月29日 20:21
> >>
> >> On 29.09.2022 10:21, Wei Chen wrote:
> >>> On 2022/9/27 23:48, Jan Beulich wrote:
> >>>> On 20.09.2022 11:12, Wei Chen wrote:
> >>>>> --- a/xen/drivers/acpi/Kconfig
> >>>>> +++ b/xen/drivers/acpi/Kconfig
> >>>>> @@ -7,4 +7,5 @@ config ACPI_LEGACY_TABLES_LOOKUP
> >>>>>
> >>>>>   config ACPI_NUMA
> >>>>>         bool
> >>>>> +       select HAS_NUMA_NODE_FWID
> >>>>>         select NUMA
> >>>>
> >>>> While I might guess that you've chosen the insertion point to have
> >>>> things sorted alphabetically, I think here it would be more natural
> >>>> to select the wider option first and then also select the more
> >>>> narrow one.
> >>>>
> >>>
> >>> Ok, I will adjust the order.
> >>>
> >>>> One further question though: How is this going to work for Arm64
> >>>> once it wants to support both the form of NUMA you're working to
> >>>> enable _and_ ACPI-based NUMA? There better wouldn't be a requirement
> >>>> to pick one of the two at build time - it would be nice for support
> >>>> of both forms to be able to co-exist in a single binary.
> >>>
> >>> We are also working in this way. In part#3, we will check ACPI first,
> >>> only when ACPI is off, the DT NUMA will be used by Arm. If ACPI is on,
> >>> we will skip DT NUMA.
> >>
> >> Even more so an answer to my question would be nice: You'll then have
> >> CONFIG_HAS_NUMA_NODE_FWID=y even on Arm (using PXM as mandated by ACPI
> >> when in ACPI mode). But then what's the FWID for DT? I know it was me
> >> to suggest this build time distinction, but I'm afraid I wasn't doing
> >> much good with that (and I'm sorry).
> >
> > How about introducing a flag for selected NUMA implementation to
> > set it in runtime?
> > For example:
> > bool numa_has_fw_nodeid;
> >
> > ACPI NUMA will set this flag to 1, but 0 for DT NUMA.
> 
> That's an option alongside going back to what you had in an earlier
> version. Another would be (name subject to improvement)
> 
> const char *__ro_after_init numa_fw_nid_name;
> 
> which for ACPI would be set to "PXM" (eliminating the need to pass
> it to certain functions, albeit the fw_nid will continue to need to
> be passed anyway). I guess I'm not really certain which of this and
> your earlier approach I prefer; the boolean you suggest above looks
> less desirable to me, though.
> 

Ok, I will follow your suggestion.

Cheers,
Wei Chen

> Jan

 


Rackspace

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