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

Re: [PATCH 25/37] xen/arm: implement bad_srat for Arm NUMA initialization


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Chen <wei.chen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 24 Sep 2021 10:07:59 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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; bh=F6No7pRe5XjDcTkRgjdWd+8yzZrBfcMAd46s/hA9XNE=; b=bL1MBn+w5gQUv58bzgMEXlsWMloMEbFPxhisnDddHxBHzNli5DwnUBNWgykCY35t3Co29xVKE7MlyTUKMeKNyeBR6GgQOq5KIwu+ZiWprFNuenGLJvkpGg/aiJrJ/CY79Cp5ehJn3EZQLmW/F0cSYJjnEzegU83c0VIxOcDlDouEkYG4Glwl4sGiIEp13v1D/LF3Fc2nlwpR3aLosShsRFev8Y/e8ISN7aFqWdGdunCIwmOsjYwSJtXdQ9b5GFYfNoBwn1DNQQLANoXeJb8pT2KKrLbmnhBTvn0jTuNiBfyoniHmT1MDbgk2MnsdN1c/VYp1rGV+e9Cnjlxa4gAWLQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PTprzOliNT8eaxHUPP9XYT/lOIws7ZSdDiDQJ/Tchqs6r37a0chTmmqo9JxkkqwYT0hhkktbxD3aBtZDUYJKRJvaO46G791i6Ag8+gn+e9CBE5iw1+yhqjpJ07XkdAS/ACY1krSqiWHXef0EqJKJGGbH87jtSnTr1Pm1dcqRuVSOAPxikVf0SGZm++NH43uTaT3jUjk0M5Fwy5uRrX0X1zkEkHoN1yTKcp8sIU19A2AJfMqWD2jd5LoCZHGT5aaz7rE0lzyllBmDiUl+6hUsN4w6+gsMHNPS9H3hg9OkEqd5mSqAPMBmtsr9G2F1FMMFTI7Ymmd3sKii/o0vm52j3g==
  • Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, julien@xxxxxxx, Bertrand.Marquis@xxxxxxx, andrew.cooper3@xxxxxxxxxx, roger.pau@xxxxxxxxxx, wl@xxxxxxx
  • Delivery-date: Fri, 24 Sep 2021 08:08:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24.09.2021 04:09, Stefano Stabellini wrote:
> On Thu, 23 Sep 2021, Wei Chen wrote:
>> NUMA initialization will parse information from firmware provided
>> static resource affinity table (ACPI SRAT or DTB). bad_srat if a
>> function that will be used when initialization code encounters
>> some unexcepted errors.
>>
>> In this patch, we introduce Arm version bad_srat for NUMA common
>> initialization code to invoke it.
>>
>> Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
>> ---
>>  xen/arch/arm/numa.c | 7 +++++++
>>  1 file changed, 7 insertions(+)
>>
>> diff --git a/xen/arch/arm/numa.c b/xen/arch/arm/numa.c
>> index 3755b01ef4..5209d3de4d 100644
>> --- a/xen/arch/arm/numa.c
>> +++ b/xen/arch/arm/numa.c
>> @@ -18,6 +18,7 @@
>>   *
>>   */
>>  #include <xen/init.h>
>> +#include <xen/nodemask.h>
>>  #include <xen/numa.h>
>>  
>>  static uint8_t __read_mostly
>> @@ -25,6 +26,12 @@ node_distance_map[MAX_NUMNODES][MAX_NUMNODES] = {
>>      { 0 }
>>  };
>>  
>> +__init void bad_srat(void)
>> +{
>> +    printk(KERN_ERR "NUMA: Firmware SRAT table not used.\n");
>> +    fw_numa = -1;
>> +}
> 
> I realize that the series keeps the "srat" terminology everywhere on DT
> too. I wonder if it is worth replacing srat with something like
> "numa_distance" everywhere as appropriate. I am adding the x86
> maintainers for an opinion.
> 
> If you guys prefer to keep srat (if nothing else, it is concise), I am
> also OK with keeping srat although it is not technically accurate.

I think we want to tell apart both things: Where we truly talk about
the firmware's SRAT table, keeping that name is fine. But I suppose
there no "Firmware SRAT table" (as in the log message above) when
using DT? If so, at the very least in log messages SRAT shouldn't be
mentioned. Perhaps even functions serving both an ACPI and a DT
purpose would better not use "srat" in their names (but I'm not as
fussed about it there.)

Jan




 


Rackspace

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