From: James Morse <james.morse@arm.com>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: linux-acpi@vger.kernel.org, Rafael Wysocki <rafael@kernel.org>,
Len Brown <lenb@kernel.org>,
jeremy.linton@arm.com
Subject: Re: [PATCH 1/4] ACPI / PPTT: Add a helper to fill a cpumask from a processor container
Date: Thu, 26 Jun 2025 18:11:58 +0100 [thread overview]
Message-ID: <0a659a48-fb39-4966-afb3-01db796919a8@arm.com> (raw)
In-Reply-To: <20250623-optimistic-chicken-of-merriment-fbefe3@sudeepholla>
Hi Sudeep,
On 23/06/2025 14:21, Sudeep Holla wrote:
> On Thu, Jun 12, 2025 at 05:13:33PM +0000, James Morse wrote:
>> The PPTT describes CPUs and caches, as well as processor containers.
>> The ACPI table for MPAM describes the set of CPUs that can access an MSC
>> with the UID of a processor container.
>>
>> 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.
>> diff --git a/drivers/acpi/pptt.c b/drivers/acpi/pptt.c
>> index 54676e3d82dd..aaf9b5a26d07 100644
>> --- a/drivers/acpi/pptt.c
>> +++ b/drivers/acpi/pptt.c
>> +
>> +/**
>> + * acpi_pptt_get_cpus_from_container() - Populate a cpumask with all CPUs in a
>> + * processor containers
>> + * @acpi_cpu_id: The UID of the processor container.
>> + * @cpus The resulting CPU mask.
>> + *
>> + * Find the specified Processor Container, and fill @cpus with all the cpus
>> + * below it.
>> + *
>> + * Not all 'Processor' entries in the PPTT are either a CPU or a Processor
>> + * Container, they may exist purely to describe a Private resource. CPUs
>> + * have to be leaves, so a Processor Container is a non-leaf that has the
>> + * 'ACPI Processor ID valid' flag set.
>> + *
>> + * Return: 0 for a complete walk, or an error if the mask is incomplete.
>> + */
>> +int acpi_pptt_get_cpus_from_container(u32 acpi_cpu_id, cpumask_t *cpus)
>> +{
> Just noticed now that it is not used anywhere in the series. Can this be added
> along with the user later instead ?
T'was mentioned in the cover letter - I'll roll these into the series with the driver -
which will unfortunately give you more email. There is another pre-requisite series, which
made posting it like this was going to be easier for reviewers.
Do you have an opinion on how this should get merged?
The MPAM driver may need to go via tip if it has dependencies on resctrl, but also arm64
because it touches the arch code's __cpu_switch_to() path. Adding acpi and potentially
Greg's tree for cacheinfo makes this more complicated. I will probably defer the restrl
parts of the MPAM driver to remove one of these.
Thanks,
James
next prev parent reply other threads:[~2025-06-26 17:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-12 17:13 [PATCH 0/4] ACPI / PPTT: Add helpers to fill cpumask from PPTT James Morse
2025-06-12 17:13 ` [PATCH 1/4] ACPI / PPTT: Add a helper to fill a cpumask from a processor container James Morse
2025-06-23 13:08 ` Sudeep Holla
2025-06-26 17:14 ` James Morse
2025-06-23 13:21 ` Sudeep Holla
2025-06-26 17:11 ` James Morse [this message]
2025-06-26 17:10 ` James Morse
2025-06-12 17:13 ` [PATCH 2/4] ACPI / PPTT: Stop acpi_count_levels() expecting callers to clear levels James Morse
2025-06-23 13:10 ` Sudeep Holla
2025-06-26 17:11 ` James Morse
2025-06-12 17:13 ` [PATCH 3/4] ACPI / PPTT: Find cache level by cache-id James Morse
2025-06-23 13:21 ` Sudeep Holla
2025-06-12 17:13 ` [PATCH 4/4] ACPI / PPTT: Add a helper to fill a cpumask from a cache_id James Morse
2025-06-23 13:22 ` Sudeep Holla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a659a48-fb39-4966-afb3-01db796919a8@arm.com \
--to=james.morse@arm.com \
--cc=jeremy.linton@arm.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=sudeep.holla@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox