RE: [PATCH 01/33] ACPI / PPTT: Add a helper to fill a cpumask from a processor container

Shaopeng Tan (Fujitsu)
2025-11-12T05:45:35Z

> From: James Morse <james.morse@arm.com>
>
> 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 <dave.martin@arm.com>
> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
> Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
> Reviewed-by: Gavin Shan <gshan@redhat.com>
> Tested-by: Fenghua Yu <fenghuay@nvidia.com>
> Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
> Tested-by: Peter Newman <peternewman@google.com>
> Signed-off-by: James Morse <james.morse@arm.com>
> Signed-off-by: Ben Horgan <ben.horgan@arm.com>

Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>