Re: [PATCH v9 12/12] arm_mpam: detect and enable MPAM-Fb PCC support
From: Gavin Shan
Date: Wed Aug 26 2026 - 20:11:01 EST
On 8/7/26 8:54 PM, Andre Przywara wrote:
The Arm MPAM-Fb specification [1] describes a protocol to access MSC
registers through a firmware interface. This requires a shared memory
region to hold the message, and a mailbox to trigger the access.
For ACPI this is wrapped as a PCC channel, described using existing
ACPI abstractions.
Add code to parse those PCC table descriptions associated with an MSC,
and store the parsed information in the MSC struct.
There can be multiple PCC channels, and each channel can serve multiple
MSCs, so we need to keep track of the channel usage, using a list and
a refcount.
This will be used by the MPAM-Fb access wrapper code.
[1] https://developer.arm.com/documentation/den0144/latest
Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
Tested-by: Ritwick Sharma <ritwick.sharma@xxxxxxx> # on Arm AGI CPU
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>
Tested-by: Srivathsa L Rao <srivathsa.rao@xxxxxxxxxxxxxxxx>
---
drivers/resctrl/mpam_devices.c | 112 +++++++++++++++++++++++++++++++-
drivers/resctrl/mpam_fb.c | 41 ++++++++++++
drivers/resctrl/mpam_internal.h | 2 +
3 files changed, 153 insertions(+), 2 deletions(-)
Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>