Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1266852lqz; Sun, 31 Mar 2024 23:56:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbKwosoeNJ9ZXRucfpzTUtPhZJtR8AYCra8Pem/rQEpDN4df9j3kCYI70eiPHXHyPCEdbKwq8CLAbXJPKOQNgjbj5n7lzfSi8QyskZdw== X-Google-Smtp-Source: AGHT+IFu8eb545B03pUN2Sq/u+Jg9ceErXTYfBAct2Gbrlqd20Niij1ckGbbyywovNuazXAWUKzi X-Received: by 2002:a05:620a:3911:b0:78a:7431:757 with SMTP id qr17-20020a05620a391100b0078a74310757mr11667422qkn.35.1711954607250; Sun, 31 Mar 2024 23:56:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711954607; cv=pass; d=google.com; s=arc-20160816; b=DJyMkgpZETSm8RBmscuPDwnKVvVkFqyuR1fPOZj5+1TU7SF+x+eJsDg2eUDxXM/FGS obXYyjdy2DAp4OVsjNkw9WRUuZZ9iyhDIw2QxDX5Ae8d2h5VwCy3QVnc/0OwVcCHwQia 3Z8MiiSFEqBvDJgNoJLSJ27lcHUBXsN0NGXZU8KaL0zIjIqpdsco4d8te5CCVwppH1sv DMvTE0IMULjqPM9m9rOMZMhRAx8PAcwYfBIqGiteMARWFeeLnpQ6dUfXiOjniOmrJQVR z7HJhS5zZTyotTgjj/jqKoTvxYNqIeHrU8XP0pcPe6xhOWRaO+EunBwE5RgxUUWrwpPy LLsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k5QMc5A+3aApya8s9m/eSM60TrmnXCfV5wxTtT8TbHU=; fh=MsBjbq4/B0i/Cjlx1UKFNENgQuSDKQFIXux5rSVXwq8=; b=umaidpUiVU134kUQA+5tsBuMUemRXwt4LLZBoAwYY2MzQ06t2ZiV0bO7JhJiIsqus5 M52b+h51/uustRI6Ul+zgZcc0Zq+jhOXryrPLyoUbd4Y/kjXg7N2NeYXfzovazDA06N2 tz0jgqfb13QyyKGtiqEJaS170PaB84XwjJOBrEJVx7OL5OF1B3/2sY1T0LnDwWrG8F4e vLvbkI66l6szpfYJQ2MiUQlKFQnDBZXnG5gu8NmPOw4rKyVX1Qk6vYMUZTuRHuxSg6VS isDTVc06/vEq7PDqMGWovAzTkX4e2q+V34cB3d6vWseotcdMKc9JZxVwaie9JQ4P4hV4 e7pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=MFlBSyA0; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-126481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126481-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ee6-20020a05620a800600b0078bde363134si3026977qkb.68.2024.03.31.23.56.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 23:56:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=MFlBSyA0; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-126481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126481-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9128D1C209C0 for ; Mon, 1 Apr 2024 06:56:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12D43946C; Mon, 1 Apr 2024 06:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="MFlBSyA0" Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 484FF9479 for ; Mon, 1 Apr 2024 06:56:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711954601; cv=none; b=gIe+XxG6C/fBOkwNCAQaxsT0EwhoMUWJdQn+LCe6lsM75P3D/crJt+qMBhmgKCO6Eclg9YuI9+OF1EooIHhD8HEkh9l1XtePB6b2TUyIGr4MmuJwHF18NQYGUOShXYKwZZVBR/TuM3Y0ADhdcZz7pw0kw3yZOyXfVrL16HwVGec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711954601; c=relaxed/simple; bh=Yg6ZAZ9PYBDDNgkzym8CB2lmZAjdjykvvduvHFcu4ew=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AYBOxlx6F5Q1YJ0rqX3T91bGgA6VZGx/KSlTeFdJzrI+DXPW25sEwLaSyWvPNPQJvD4DRDJjBmihhX40hyFBN462ZV4PUzfd4Bh/J7SEVQ8TAVUh8n9/mav9tKRZmMAnmpudDroQfD0kQEuMfKN3ySG39KO7v5fKbnkl4S6mKxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=MFlBSyA0; arc=none smtp.client-ip=209.85.161.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5a558d9c33aso2423700eaf.1 for ; Sun, 31 Mar 2024 23:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1711954598; x=1712559398; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=k5QMc5A+3aApya8s9m/eSM60TrmnXCfV5wxTtT8TbHU=; b=MFlBSyA0bJ4CA4QK54HHyxL2JnJEOLwkKd/zJMBp49nih59P1uzsceUReutVAeS/O3 n/zDYPkGPNvvRTwjI3AgtiYAIMphEm1rwr1/a/ZyZ9o3ReU7rKmMeAVhEybQs8mF25Sn t5BmYH1QkUeNpna6oU1dpYeAyl7ZOwAToxH54yZZW6E61YvjIhYrFkLJ6kZmOUyHsi6M jyXHdGbRV0MByaYWzRaHGfqXD8EDtCHZn5+T9N2rTrjc7kFI9xZubLi0pTGJ6yO4NfFE 5/s3stM1bQOprEXe0g1AT4/1i4sgsqZDZKzBUxg2HVhnBWj6NgSENO3E6dbIPMH8gZXm gnig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711954598; x=1712559398; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k5QMc5A+3aApya8s9m/eSM60TrmnXCfV5wxTtT8TbHU=; b=Kz5pscTVtwFoVRBeHJqkUIunOfmS4sWdLPBn0gNTlqNpdAfIy823LfqXWnHuPaOqIl NP/iDnsMA4o2BrpWHZ5+UvRjUkZFJ0O1mAM4lj1hRFQePxu2U4FYyg+AxQQb2cfYeyVD xU0gkgOd2uVMuZve07ymFO9eIGiczwtQAj2m6c1QCJ2NfI33UugPV/19+fCImiIvR216 2dxhFamkun16p1aIxDDhdBpX8BKm2xGLsT8s0OY5LedQXsMWYmNlU/QUvaWpSf5WlD1p JK8603J8iN5yj0mWgD1xAkDEyNumIUpPVperz81dNnoQIrvS2Nor5h+/clnrV4S8HHUN n3Og== X-Forwarded-Encrypted: i=1; AJvYcCUnLzcLRFDelHyb8Xr1c0nBDD+oIHizqlYx9xBfd7QdcPXG3BZbitYwjTv17iJR0Ho8+VrCdx2xWEB/2ENGtolLqDJ8lKGg394iCmDU X-Gm-Message-State: AOJu0Yy6QHyEx7s3v6UPG1Lg41U8K8YWg3o36A4ZpGSNjts8WV6ViFBH gyTdlf/qyUMmt8+Sqh01cYTNT1zA57Hdg4BdNGtIa2h57Bd+P1LIZPJxNpQiKxQ= X-Received: by 2002:a05:6870:95a4:b0:22a:9d77:f654 with SMTP id k36-20020a05687095a400b0022a9d77f654mr10088415oao.31.1711954598213; Sun, 31 Mar 2024 23:56:38 -0700 (PDT) Received: from sunil-laptop ([106.51.187.230]) by smtp.gmail.com with ESMTPSA id hu20-20020a056871529400b00222b4f5a5e0sm2695353oac.18.2024.03.31.23.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 23:56:37 -0700 (PDT) Date: Mon, 1 Apr 2024 12:26:21 +0530 From: Sunil V L To: Haibo Xu Cc: xiaobo55x@gmail.com, ajones@ventanamicro.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J. Wysocki" , Len Brown , Robert Moore , Conor Dooley , Guo Ren , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexandre Ghiti , Greentime Hu , Charlie Jenkins , Sia Jee Heng , Sami Tolvanen , Zong Li , Jisheng Zhang , =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Baoquan He , Greg Kroah-Hartman , Chen Jiahao , James Morse , Arnd Bergmann , "Russell King (Oracle)" , Evan Green , Samuel Holland , Anup Patel , Ard Biesheuvel , Tony Luck , Yuntao Wang , Alison Schofield , Dave Hansen , Dan Williams , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev Subject: Re: [PATCH v2 3/6] ACPI: NUMA: Add handler for SRAT RINTC affinity structure Message-ID: References: <91a4bc39444c80ea960bbd070bea489d27628cb6.1709780590.git.haibo1.xu@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91a4bc39444c80ea960bbd070bea489d27628cb6.1709780590.git.haibo1.xu@intel.com> On Thu, Mar 07, 2024 at 04:47:55PM +0800, Haibo Xu wrote: > Add RINTC affinity structure handler during parsing SRAT table. > > Signed-off-by: Haibo Xu > --- > drivers/acpi/numa/srat.c | 32 +++++++++++++++++++++++++++++++- > 1 file changed, 31 insertions(+), 1 deletion(-) > > diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c > index 0214518fc582..1946431c0eef 100644 > --- a/drivers/acpi/numa/srat.c > +++ b/drivers/acpi/numa/srat.c > @@ -165,6 +165,19 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) > } > } > break; > + > + case ACPI_SRAT_TYPE_RINTC_AFFINITY: > + { > + struct acpi_srat_rintc_affinity *p = > + (struct acpi_srat_rintc_affinity *)header; > + pr_debug("SRAT Processor (acpi id[0x%04x]) in proximity domain %d %s\n", > + p->acpi_processor_uid, > + p->proximity_domain, > + (p->flags & ACPI_SRAT_RINTC_ENABLED) ? > + "enabled" : "disabled"); > + } > + break; > + > default: > pr_warn("Found unsupported SRAT entry (type = 0x%x)\n", > header->type); > @@ -448,6 +461,21 @@ acpi_parse_gi_affinity(union acpi_subtable_headers *header, > } > #endif /* defined(CONFIG_X86) || defined (CONFIG_ARM64) */ > > +static int __init > +acpi_parse_rintc_affinity(union acpi_subtable_headers *header, > + const unsigned long end) > +{ > + struct acpi_srat_rintc_affinity *rintc_affinity; > + > + rintc_affinity = (struct acpi_srat_rintc_affinity *)header; > + acpi_table_print_srat_entry(&header->common); > + > + /* let architecture-dependent part to do it */ > + acpi_numa_rintc_affinity_init(rintc_affinity); > + > + return 0; > +} > + > static int __initdata parsed_numa_memblks; > > static int __init > @@ -501,7 +529,7 @@ int __init acpi_numa_init(void) > > /* SRAT: System Resource Affinity Table */ > if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) { > - struct acpi_subtable_proc srat_proc[4]; > + struct acpi_subtable_proc srat_proc[5]; > > memset(srat_proc, 0, sizeof(srat_proc)); > srat_proc[0].id = ACPI_SRAT_TYPE_CPU_AFFINITY; > @@ -512,6 +540,8 @@ int __init acpi_numa_init(void) > srat_proc[2].handler = acpi_parse_gicc_affinity; > srat_proc[3].id = ACPI_SRAT_TYPE_GENERIC_AFFINITY; > srat_proc[3].handler = acpi_parse_gi_affinity; > + srat_proc[4].id = ACPI_SRAT_TYPE_RINTC_AFFINITY; > + srat_proc[4].handler = acpi_parse_rintc_affinity; > > acpi_table_parse_entries_array(ACPI_SIG_SRAT, > sizeof(struct acpi_table_srat), LGTM. Thanks! Reviewed-by: Sunil V L