RE: [PATCH 20/33] arm_mpam: Extend reset logic to allow devices to be reset any time
From: Shaopeng Tan (Fujitsu)
Date: Thu Nov 13 2025 - 21:52:22 EST
> 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>
Reviewed-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxxxxx>