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

RE: [XEN RFC PATCH 17/40] xen/arm: Introduce DEVICE_TREE_NUMA Kconfig for arm64


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Fri, 20 Aug 2021 02:30:18 +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-SenderADCheck; bh=HddaFCK3CI3FCr5H1XwicGOX81s2LCclFL5816nC6fs=; b=PFSAnwTaWTeyB4jtIQVpeQ6pTNr+qYz7j423WzeE9/5i4l9/PQT73HZ7PBTH/TtFAJTCt4wAHqMWOQa/41+UeHvPvloCHm/L/xg9DTgyhlTByQ6BVAiTZBSLCxgRklrAHDusFdIrmnY98OsHLCnlLvI08sLUtvMyaDE1QDDV2JIG80gIC152PULyseS/KAuVV009HhUAibyTN0ylOHWq/MTlnT+fRQ6v22p6FjBg927m8hf+92iaOI4bs5qfj0BciZl9rFWrs5yPVn7vy7P646SWAArxHL0+EPEg0mtLJ2kn7/qdmEANARyXsbSuzCpAockf3cklg1Ypkc188YTPCw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ysz4NYMbq9EAbW2Yk3HRTaJPbBnV8emLyFkwR6/p5558teSLunLcVJ6wjivlHB4DgYPhOBMIOEHKYxKi3gR80OqV8mgfphUy57ZCWwL4CB/pyN6wDEFapmZvopmxVDV0JxmM31pHCmjF03Zwtw4FdrKAQ6kW0rS5J9uP/8kpNrP+teQhA/zVXJ9SFzh/5ggIHh4DbL69No97fn9lrzgZ+FkRXax07rVi5SAg/XckyGcm4A4vjFs3oRezP4212KRCmo88+oXFGWcqKpE193jCO9TqZFuFTPbif3/JAQPmXa7SPGT7yNknOAPUXdbYbgUDFkI+A4OPUs2HwlPHM6YdMQ==
  • Authentication-results-original: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Fri, 20 Aug 2021 02:30:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXjps53Qsrm+WTv06/kg1OUu3sHKt64bkAgADV/ZA=
  • Thread-topic: [XEN RFC PATCH 17/40] xen/arm: Introduce DEVICE_TREE_NUMA Kconfig for arm64

Hi Julien,

> -----Original Message-----
> From: Julien Grall <julien@xxxxxxx>
> Sent: 2021年8月19日 21:38
> To: Wei Chen <Wei.Chen@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx;
> sstabellini@xxxxxxxxxx; jbeulich@xxxxxxxx
> Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
> Subject: Re: [XEN RFC PATCH 17/40] xen/arm: Introduce DEVICE_TREE_NUMA
> Kconfig for arm64
> 
> Hi,
> 
> On 11/08/2021 11:24, Wei Chen wrote:
> > We need a Kconfig option to distinguish with ACPI based
> > NUMA. So we introduce the new Kconfig option:
> > DEVICE_TREE_NUMA in this patch for Arm64.
> >
> > Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> > ---
> >   xen/arch/arm/Kconfig | 10 ++++++++++
> >   1 file changed, 10 insertions(+)
> >
> > diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
> > index ecfa6822e4..678cc98ea3 100644
> > --- a/xen/arch/arm/Kconfig
> > +++ b/xen/arch/arm/Kconfig
> > @@ -33,6 +33,16 @@ config ACPI
> >       Advanced Configuration and Power Interface (ACPI) support for Xen
> is
> >       an alternative to device tree on ARM64.
> >
> > +config DEVICE_TREE_NUMA
> 
> The name suggests that NUMA should only be enabled for Device-Tree...
> But the description looks generic.
> 
> However, I think the user should only have the choice to say whether
> they want NUMA to be enabled or not. We should not give them the choice
> to enable/disable the parsing for DT/ACPI.
> 
> So we should have a generic config that will then select DT (and ACPI in
> the future).
> 

How about we select DT_NUMA default on Arm64. And DT_NUMA select NUMA
like what we have done in patch#6 in x86? And remove the description?

If we make generic NUMA as a selectable option, and depends on
NUMA to select DT or ACPI NUMA. It seems to be quite different from
the existing logic?

> > +   bool "NUMA (Non-Uniform Memory Access) Support (UNSUPPORTED)" if
> UNSUPPORTED
> > +   depends on ARM_64
> > +   select NUMA
> > +   ---help---
> > +
> > +     Non-Uniform Memory Access (NUMA) is a computer memory design used
> in
> > +     multiprocessing, where the memory access time depends on the
> memory
> > +     location relative to the processor.
> > +
> 
> Cheers,
> 
> --
> Julien Grall

 


Rackspace

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