Re: [PATCH v6 16/40] arm_mpam: resctrl: Implement resctrl_arch_reset_all_ctrls()
From: Gavin Shan
Date: Mon Mar 23 2026 - 02:41:59 EST
On 3/14/26 12:45 AM, Ben Horgan wrote:
From: James Morse <james.morse@xxxxxxx>
We already have a helper for resetting an mpam class and component. Hook
it up to resctrl_arch_reset_all_ctrls() and the domain offline path.
Tested-by: Gavin Shan <gshan@xxxxxxxxxx>
Tested-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxxxxx>
Tested-by: Peter Newman <peternewman@xxxxxxxxxx>
Tested-by: Zeng Heng <zengheng4@xxxxxxxxxx>
Tested-by: Punit Agrawal <punit.agrawal@xxxxxxxxxxxxxxxx>
Reviewed-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxxxxx>
Reviewed-by: Zeng Heng <zengheng4@xxxxxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
Signed-off-by: James Morse <james.morse@xxxxxxx>
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
Changes since v2:
Don't expose unlocked reset
Changes since v3:
Don't use or expose mpam_reset_component_locked()
---
drivers/resctrl/mpam_devices.c | 2 +-
drivers/resctrl/mpam_internal.h | 3 +++
drivers/resctrl/mpam_resctrl.c | 13 +++++++++++++
3 files changed, 17 insertions(+), 1 deletion(-)
Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>