Re: [PATCH 05/33] ACPI / PPTT: Add a helper to fill a cpumask from a cache_id

From: Gavin Shan
Date: Sat Nov 08 2025 - 00:11:25 EST


On 11/7/25 10:34 PM, Ben Horgan wrote:
From: James Morse <james.morse@xxxxxxx>

MPAM identifies CPUs by the cache_id in the PPTT cache structure.

The driver needs to know which CPUs are associated with the cache.
The CPUs may not all be online, so cacheinfo does not have the
information.

Add a helper to pull this information out of the PPTT.

CC: Rohit Mathew <Rohit.Mathew@xxxxxxx>
Signed-off-by: James Morse <james.morse@xxxxxxx>
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
Changes since v3:
Equivalent changes to the previous patch:
Tags dropped due to rework
Fallout/simplification from adding acpi_pptt_cache_v1_full
Look for each cache type before incrementing level
---
drivers/acpi/pptt.c | 62 ++++++++++++++++++++++++++++++++++++++++++++
include/linux/acpi.h | 6 +++++
2 files changed, 68 insertions(+)


Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>