Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1283198lqz; Mon, 1 Apr 2024 00:42:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeXmZtFnwH5G7Oukhjp3r+7Ytt8MLyQfcDlOwSTLcsceBhc/mGFl3ZgOjqSER/tbQB9U/P8QG9Vt/QlLefC7zFmQK88U9JqNZTw2t8Ow== X-Google-Smtp-Source: AGHT+IHl3y1t0udfg75LE6xLkLAfeYc2pVRxjsSe4mx+WSzIpDT7Yf3D4Bxp4OPBuHO5M3Vr7TQQ X-Received: by 2002:a05:6a20:549e:b0:1a3:c4f4:5bb3 with SMTP id i30-20020a056a20549e00b001a3c4f45bb3mr8502536pzk.4.1711957340875; Mon, 01 Apr 2024 00:42:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711957340; cv=pass; d=google.com; s=arc-20160816; b=acdPm6bce63fRu3575pT2jU6vPj4kEbuv0WItxUd4Vo0UEPMGvRx6GKanMLBe0GU+t goXPxUDAPN6DLOOxYBlPuTl9LYhgTLfLhj60PKm8+U+sZt0P+yXMgkPfY7ZAGTONTYzn 9C6GCm9TFb+VNKg5RE20YXKij0jWOzJPV1ACDBd0x5xfiWUyITDXntHelEQZAqxC3LyL fEXAiwW+X2SWXR2i2jBOQcuSLiRmcFzstxj6+OubgOded1GitOqNCCvZViq1S0QPQSMV /UFXolEduEhcqOHATtzL+a7bVQA68BAsfuAfX4ymJPDg4R0B2+RbOnzXP7mbsa4n48dl bNuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=5SSJljyfKnuJeOjPki7PuFiCXRujcBFkC7jlbcW3GDA=; fh=sA3j8ZBr5qX4ELUU0/y6ZvwnUXnOzMR3DzO7qdaDZYg=; b=adO14y1ZzDgDU39m5txSVpM7+TOYB/zPbsqAj7k50MNnVFgBwHQSxiN4wJ+BZvwIb6 Bde/XoEn8joXOJWxljoHTV4/enBbe6G4VJWzaAXK5bXNeSsbeojgkpjukImc1LSkd9Qh m335nCUtgj/zcmPiWm8HQIo+mwAOcPFXAUF3mUUfp7N555905szd9NmsQU8GZC6bV8os RVwhkuHlWDZRn0VIht7m4aJnHrZ7gtFGsqLnwIxIojOj/E/hjxSke3AphkZk00wHIXUf Oe/BRnMViehQMQEbPLCh9mG7rpzZG+6B5m00Pow9O6PIxAUvGjEXN/AGK71d3914NEKN 2lKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=emcpKvnI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-126499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e22-20020a63db16000000b005cda184c281si8271166pgg.199.2024.04.01.00.42.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 00:42:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=emcpKvnI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-126499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 86CA6281A7E for ; Mon, 1 Apr 2024 07:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65391BA49; Mon, 1 Apr 2024 07:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="emcpKvnI" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 E1FE7B66C; Mon, 1 Apr 2024 07:42:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711957333; cv=none; b=BbiiMXR0oyfPv6B3yBkWh0C0jApXyhPmcGIKK2dsskEdcg7Z2u652lqDTL8zZ2CIKT51A8TOEohVJH0qtbIgtR5G2ZJKmuW7iCVdfl8FpwTvfFFJFXyk9IRzZn3cgRgMqYduzFpiRBwpDtiEUZ6yVO9+2bB5I+1PuZEIjAPqFxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711957333; c=relaxed/simple; bh=P//M+IKlwXWXeRYmsYCshnL9dhQNOzT6a0koi/j5vcE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ecrvVQF39ciLkJCsHGekpx+92gM9B9L3Wf94IZaCkdYa7mukF+Z+xBsMyqgRNo1AFJSUO61aCJiwwyxWszpp2QyUob5xqXhlB+wVAWz63G3qmXC88l8teWf4Hn0JN/jfkG8B5sGn09VoVcWzkV94yTDBeNuzIQXsRLXwWxq49hQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=emcpKvnI; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d6a1af9c07so43213871fa.3; Mon, 01 Apr 2024 00:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711957330; x=1712562130; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5SSJljyfKnuJeOjPki7PuFiCXRujcBFkC7jlbcW3GDA=; b=emcpKvnI6Y7rJNWcJLpOrABturJVlgJmyox/CcPyvRs3j5GlyRRknQ+pbUzhPdFR73 YdsBTNKisk3xAYz5PG1AW2/Vcl+aveyaACXGH4GVPd5n1WbtoFbN1DACZRWfhpbx32mV UtvBSIFXIo8MHvNtkHK7W6DNtoxRFVzEM4ueQu2eZTTOBIozKmOd7aO6CA/RgA+UN2IW Vt5k1/rXD4Hw44WS+32katjM8ngZAD2zIkTwxKGJgXDO/VaBKmo+OaPMMe3HeFD/2ABS m5bV6XvIjcncqPjEiM1lDenabZ+yZEA1SkIJU9Hcqt6wdjH/HkcCNGKKAR0unARgGDg9 6gCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711957330; x=1712562130; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5SSJljyfKnuJeOjPki7PuFiCXRujcBFkC7jlbcW3GDA=; b=cGt9TbLEUT7tWmxWMdSsX/63gaVkvpsB0HFFtnPAx8KSZ34fDBZfgTBu2mI9PS0n8n YUYe1hjHyyJM+2KD6kP9x/jLBAfbEVIZ5Nnubc+0pORO6iul62V7WatoRJRPBfsfUECC 2K+4WYaAGkiwp2F2GqCs7Oh3VmKt3DifBhc+OlaziEyKpiOrT4I4fQjXOWd/3zWIeGmA 0pjHaSlQhdDxADdhrjurj3Hy+a3GFKcqtRDzfHr+gE/nLojLSM23y0joS9nhe+gl/oVr obT4qe50PJ87DXMpNiasOnSlmVxyG2Hoc6v4wxLqzIhd4Y3VBSvDBZSpGSpxPePROZy/ udqA== X-Forwarded-Encrypted: i=1; AJvYcCUT4maVjvXWoW3JkD6H1xRGwr1/lOz/LqPWZUHFob5mTcSguFLRNcPbX5GovSIVZMX9rNghmpUade4qQjg3eJpWDc28lOzpEbim4d2a8DbEZLxb+D5sHE95OEI4kLtaiJBJdkT+AExJ0g== X-Gm-Message-State: AOJu0YwPwZaXQhUcwVONRCnzDiS855M6BgHS9jml/ZKTOst3+CFtU7Vf LbhDLn84d/S3wZNtefRSeyoKqMWZoDnKdPiF4ylM3DIO5UiMZ7iOQxQ/0lu9K2gD9aXgoLYB3dU MnLmzaySokiv1LIMXewgcJiMA4no= X-Received: by 2002:a2e:a455:0:b0:2d6:f5db:4d6e with SMTP id v21-20020a2ea455000000b002d6f5db4d6emr4780215ljn.40.1711957329905; Mon, 01 Apr 2024 00:42:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <7ca110c59cbb2fb358304a9ba4f9c7cbeb191345.1709780590.git.haibo1.xu@intel.com> In-Reply-To: From: Haibo Xu Date: Mon, 1 Apr 2024 15:41:58 +0800 Message-ID: Subject: Re: [PATCH v2 2/6] ACPI: RISCV: Add NUMA support based on SRAT and SLIT To: Sunil V L Cc: Haibo Xu , ajones@ventanamicro.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J. Wysocki" , Len Brown , Robert Moore , Conor Dooley , Guo Ren , Alexandre Ghiti , Greentime Hu , Jisheng Zhang , Baoquan He , Sami Tolvanen , Zong Li , =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Greg Kroah-Hartman , Chen Jiahao , Arnd Bergmann , James Morse , "Russell King (Oracle)" , Evan Green , Samuel Holland , Marc Zyngier , Anup Patel , Ard Biesheuvel , Tony Luck , Yuntao Wang , Dave Hansen , Alison Schofield , Dan Williams , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 1, 2024 at 3:06=E2=80=AFPM Sunil V L = wrote: > > On Thu, Mar 07, 2024 at 04:47:54PM +0800, Haibo Xu wrote: > > Add acpi_numa.c file to enable parse NUMA information from > > ACPI SRAT and SLIT tables. SRAT table provide CPUs(Hart) and > > memory nodes to proximity domain mapping, while SLIT table > > provide the distance metrics between proximity domains. > > > > Signed-off-by: Haibo Xu > > --- > > arch/riscv/include/asm/acpi.h | 15 +++- > > arch/riscv/kernel/Makefile | 1 + > > arch/riscv/kernel/acpi.c | 5 -- > > arch/riscv/kernel/acpi_numa.c | 131 ++++++++++++++++++++++++++++++++++ > > arch/riscv/kernel/setup.c | 4 +- > > arch/riscv/kernel/smpboot.c | 2 - > > include/linux/acpi.h | 6 ++ > > 7 files changed, 154 insertions(+), 10 deletions(-) > > #ifndef PHYS_CPUID_INVALID > > typedef u32 phys_cpuid_t; > > #define PHYS_CPUID_INVALID (phys_cpuid_t)(-1) > > -- > This is a large patch spanning across multiple files. Can we split this > into multiple smaller patches? Changes look fine to me though. > Thanks for the review! I will try to break them in v3. > Reviewed-by: Sunil V L