From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5A70CCD185 for ; Fri, 10 Oct 2025 16:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/MPVguMV9NyrF3zYNZD4l4fM14ZyBq1vu/CFwujsshY=; b=KoeuIkXcKoRs0nGO3gjHK3CGMk s0YwHzMSlZH7fXZxTCteqsmEOLJwb35dxWfrI2ZBq/jhW3B7nT2pQe48+JfCHfJ+qtHi4CV60rkJI 8KQIAqAJKRRUFrb9W9rolhTKOd01xPxaAzkhoR0hJUAuKNI4Nb9s6c9ggovT2p6LpQGqnxi6VrxgB A5VyXPcMaTlqIB/h0sZYJZ2NAclMUWRrlJbhOj/zvSvRxSHD5nHWrqrVa2EuVtnprU3iFcT5yfXHb QCSK3FznCMu4X3qmFC8oXAT2rukzvrTSbSs5fxg5zYLtMGYfd361d/nNNi8rwMJ6S7AIITrD8PR82 +ugWImNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v7GOR-000000090er-0i4t; Fri, 10 Oct 2025 16:54:59 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v7GOP-000000090dc-35wM for linux-arm-kernel@bombadil.infradead.org; Fri, 10 Oct 2025 16:54:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=/MPVguMV9NyrF3zYNZD4l4fM14ZyBq1vu/CFwujsshY=; b=f6NLnqCcZEMIyQFnUMzt/TDGVw VbpkMh0UIKke8s5nNOo6dzHrFdUwo/R+0/FTGsGc2n6s4V0tqZeA4HSKWAgad7YCgWs09n7EQhA1K e2KBnu4I+lkvUfNTGdcAK+z+82soC/UeMzYHb3BT2bqHIv0tIvzjwgeEFKzN7pkEVN/yM6yuL3fcd Wq04f/6yrsbkmweFq2pU6QRx9YUvVn8agF8NmABozgZO1y5beM+S7MtD3LNNYppw0bSpCLsweUYHv cs1BMbVq1urTd7WfHR0inFMa/n6Rkkgbp+TjGKsBWr2Vs2ViH17rZnaa+R5l45C8eW48adPZEIS2b sga4DGkw==; Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v7GOM-00000002JDz-3IWk for linux-arm-kernel@lists.infradead.org; Fri, 10 Oct 2025 16:54:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F2DCE1713; Fri, 10 Oct 2025 09:54:45 -0700 (PDT) Received: from [10.1.197.69] (eglon.cambridge.arm.com [10.1.197.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 912D03F66E; Fri, 10 Oct 2025 09:54:48 -0700 (PDT) Message-ID: Date: Fri, 10 Oct 2025 17:54:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 01/29] ACPI / PPTT: Add a helper to fill a cpumask from a processor container To: Fenghua Yu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Dave Martin , Koba Ko , Shanker Donthineni , baisheng.gao@unisoc.com, Jonathan Cameron , Rob Herring , Rohit Mathew , Rafael Wysocki , Len Brown , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Danilo Krummrich References: <20250910204309.20751-1-james.morse@arm.com> <20250910204309.20751-2-james.morse@arm.com> <89d5a73c-2a48-4aec-9249-07c71ca214ec@nvidia.com> Content-Language: en-GB From: James Morse In-Reply-To: <89d5a73c-2a48-4aec-9249-07c71ca214ec@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251010_175455_093160_C4D911C5 X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Fenghua, On 02/10/2025 04:35, Fenghua Yu wrote: > On 9/10/25 13:42, James Morse wrote: >> The ACPI MPAM table uses the UID of a processor container specified in >> the PPTT to indicate the subset of CPUs and cache topology that can >> access each MPAM System Component (MSC). >> >> This information is not directly useful to the kernel. The equivalent >> cpumask is needed instead. >> >> Add a helper to find the processor container by its id, then walk >> the possible CPUs to fill a cpumask with the CPUs that have this >> processor container as a parent. >> >> CC: Dave Martin >> Reviewed-by: Sudeep Holla >> Signed-off-by: James Morse > > Reviewed-by: Fenghua Yu Thanks! James