Re: [PATCH 20/33] arm_mpam: Extend reset logic to allow devices to be reset any time

From: Gavin Shan

Date: Sun Nov 09 2025 - 17:16:36 EST


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

cpuhp callbacks aren't the only time the MSC configuration may need to
be reset. Resctrl has an API call to reset a class.
If an MPAM error interrupt arrives it indicates the driver has
misprogrammed an MSC. The safest thing to do is reset all the MSCs
and disable MPAM.

Add a helper to reset RIS via their class. Call this from mpam_disable(),
which can be scheduled from the error interrupt handler.

Signed-off-by: James Morse <james.morse@xxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
Reviewed-by: Ben Horgan <ben.horgan@xxxxxxx>
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>
---
drivers/resctrl/mpam_devices.c | 57 ++++++++++++++++++++++++++++++++--
1 file changed, 54 insertions(+), 3 deletions(-)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>