[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v4 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: Fri, 9 Sep 2022 07:07:53 +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=ZvWkcognY6wSHcm/z9A0QIbFtyhFhg/zGkjoyp/W7gM=; b=b6zWkKmpR/7/Dq7PFkf4QSDytFZ8A6HfK53e2cDEFAHo+NjC9glJ5JEkgh/3kOz4b+Z95N8GDySE6yNYw9FKA7tEc18bdLCwFHbgbdKhA42aKRVfnQ0/S2zwISOncI3QEaOjZ7ayowEF6/rdkKF4lymbd0MVBiVigQKnsxQaVN0nxhHI+CFgynjql5J380gaYOp42skbhW2ZvBDuMEGBNHR5QVJvauQNAQhX6fJjRJmUn67N7ehPIX/bIDjd6nGLFGxaS0sgESncfbSfoLD6WKQSnWl+1st8z/lIDBuYlav6G+cOm8QaXa4xLAPKfMdzSSIMWp+4RgMOnrBfv3zOGA==
- 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=ZvWkcognY6wSHcm/z9A0QIbFtyhFhg/zGkjoyp/W7gM=; b=RDeiA6qVLQwXy8NiWoFFe3xQssLiQqxgrQO4Pp20YQBv8IzQOPvs10op/tFpXIHJlJroy6lrLabhshxtovm+Gy+Q2HQcjVGwYtwIcx//fKqWCbkb09EjofpdhB3NUwaEEau1xfHS8omJFEFyF326LcORJPbIGQduXe0amm/E987gdrMLWKE92I3CuAxXVNbdpNOhyt0ylEjt3U47CqUpIxlf13NUa6yN5W2mSXwwWJcj8/F+H6jretA1CEeykzWNca23JxnoZKlCnutBxe/uxz4qgYxaKEBR19ik9V+dmRgclEmT/vZHg4vRk5uIQ42qqSmhArkHLk3TdtjOvIF2fg==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Dkus3QtP95I8rjUi30GcnQnaQ8y2/H+Nhe3aE/t6ORKTbopfdJstgiTYcE4+zu6dz4Ecz+cjZkU0W9gJElz4L2ucVbMn1DOHFbdu1jqxjuLcVgScX7NdWP1MFEHHVAmwWh8MA83JdRE9cW21Owxix0iOLjCoX4ghAUQnPVPwfRdRhfytHCYH1eXtmGnsYRCeGqSZ+zmUksPa+91Wsds3pwtUaeO5uVuQ7zcQfOE+v5F9Ns0NUZmT0PGZw/IklxErcSz3JdEcBpp2eUW9Xtd4t3fGf0uArsr1sS/MxYk0HJf43PqdYv2GGhNW1uxK/UYf+BqvvEzgg2WTuimXkeVHJg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QonGTrs6H7OHcFh/a7uqD40DS0RwViVUUU65C/u6XWe5wNHUN4zXPsgYJrARhezO93HMmMIM86fdg82dHyhkJhL9Fqy9TVvQIBFhA0PxW22UYyXJobsnRrbFmXiHV51n97T54fhzvQPTezOVq1xIC4x73E3npQbdrfGqZ5NLeYzdSSiFewSwkt9BeCwXMju9UZBxZ7hvHlJw2r2DkRyIDML0ZFXGEWMBgVSAgBQYW6AiCBnFO4j8MNQPIhNRME7afV3p6B3vZ4ccfSfOWn3Ek5luEHtZZZOobNv7999vnseOI+D3xbIy42JficgD1z4OMMXYLJMea6b3eaBAvxSzsg==
- 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: Fri, 09 Sep 2022 07:08:15 +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: AQHYvnyUZh7WY/u61UisC2n0bZDyXq3ViaOAgAAfcVCAABKJgIAA/F0w
- Thread-topic: [PATCH v4 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月9日 0:02
> 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 v4 5/6] xen/x86: move NUMA scan nodes codes from x86
> to common
>
> On 08.09.2022 17:26, Wei Chen wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: 2022年9月8日 21:03
> >>
> >> On 02.09.2022 05:31, Wei Chen wrote:
> >>> --- a/xen/arch/x86/numa.c
> >>> +++ b/xen/arch/x86/numa.c
> >>> @@ -41,9 +41,12 @@ int __init arch_numa_setup(const char *opt)
> >>> return -EINVAL;
> >>> }
> >>>
> >>> -bool arch_numa_disabled(void)
> >>> +bool arch_numa_disabled(bool init_as_disable)
> >>
> >> I'm afraid my question as to the meaning of the name of the parameter
> has
> >> remained unanswered.
> >>
> >
> > Sorry, I might missed some contents of your reply in v3. The name of
> this
> > parameter has been bothering me for a long time, and now this is
> actually
> > quite awkward. The origin of this parameter is because the current NUMA
> > implementation will make different judgments under different usage
> > conditions when using acpi_numa. In acpi_scan_nodes, it uses acpi_numa
> <= 0
> > as the condition for judging that ACPI NUMA is turned off. But only use
> > acpi_numa < 0 as condition in srat_disabled and elsewhere. I use this
> > parameter in the hope that we can keep the same semantics as the
> original
> > code without changing the code of the caller.
>
> The difference is "bad only" vs "bad or no data". Maybe that's easier
> to express via two functions - arch_numa_disabled() (checking <= 0)
> and arch_numa_broken() (checking < 0)? With a single function I guess
> the name of the parameter would always be clumsy at best. Unless
> someone has a good idea for a suitable name ...
>
Yes, I can't find a good name for the parameter, so break into two functions
would be better, I will do it in next version.
> >>> --- 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
> >>
> >> Are you selecting an option here which doesn't exist anywhere? Or
> >> am I overlooking where this new option is being added?
> >>
> >
> > Yes, this is a new Kconfig option. Should I need to introduce in a
> > separate patch?
>
> I don't think that'll need to be in a separate patch; it can simply
> be another hunk in the one here, adding the needed 2 lines (plus a
> blank one) to, presumably, common/Kconfig.
Ok.
Thanks,
Wei Chen
>
> Jan
|