This series adds a few helper functions that are needed by the MPAM driver. The MPAM ACPI tables identifies the caches that MPAM can control by cache-id. The properties of the cache, such as the CPUs it is associated with are then found in the PPTT. Cacheinfo has most of this information, but only once a CPU has come online. Cacheinfo has to be this way because while the cache properties are fixed on arm64, they are not fixed for other architectures. (I think its PowerPC where this stuff can change for offline CPUs) This is unfortunate as it means MPAM can't be used predictably on platforms where CPUs are brought online late by user-space. Adding these PPTT helpers solves this. This series is based on v6.16-rc1, and can be retrieved from: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/ mpam/pptt/v1 The MPAM driver that makes use of these can be found here: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v6.16-rc1 What is MPAM? Set your time-machine to 2020: https://lore.kernel.org/lkml/20201030161120.227225-1-james.morse@xxxxxxx/ If you prefer, I can glom these onto the beginning of the MPAM driver series - but in its worst case, that is an ~80 patch series. (and who wants that!) Bugs welcome, Thanks, James James Morse (4): ACPI / PPTT: Add a helper to fill a cpumask from a processor container ACPI / PPTT: Stop acpi_count_levels() expecting callers to clear levels ACPI / PPTT: Find cache level by cache-id ACPI / PPTT: Add a helper to fill a cpumask from a cache_id drivers/acpi/pptt.c | 238 ++++++++++++++++++++++++++++++++++++++++++- include/linux/acpi.h | 17 ++++ 2 files changed, 254 insertions(+), 1 deletion(-) -- 2.39.5