Re: [PATCH 24/33] arm_mpam: Probe and reset the rest of the features
From: Gavin Shan
Date: Sun Nov 09 2025 - 18:01:40 EST
On 11/7/25 10:34 PM, Ben Horgan wrote:
From: James Morse <james.morse@xxxxxxx>Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>
MPAM supports more features than are going to be exposed to resctrl.
For partid other than 0, the reset values of these controls isn't
known.
Discover the rest of the features so they can be reset to avoid any
side effects when resctrl is in use.
PARTID narrowing allows MSC/RIS to support less configuration space than
is usable. If this feature is found on a class of device we are likely
to use, then reduce the partid_max to make it usable. This allows us
to map a PARTID to itself.
CC: Rohit Mathew <Rohit.Mathew@xxxxxxx>
CC: Zeng Heng <zengheng4@xxxxxxxxxx>
CC: Dave Martin <Dave.Martin@xxxxxxx>
Signed-off-by: James Morse <james.morse@xxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
Tested-by: Fenghua Yu <fenghuay@xxxxxxxxxx>
Tested-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxxxxx>
Tested-by: Peter Newman <peternewman@xxxxxxxxxx>
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
Changes since v3:
enum order and commas
---
drivers/resctrl/mpam_devices.c | 188 ++++++++++++++++++++++++++++++++
drivers/resctrl/mpam_internal.h | 18 +++
2 files changed, 206 insertions(+)