hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IDAXZ8 -------------------------------- Restore all MPAM configurations to avoid impacting system performance after unmounting resctrl. After user updates the MPAM configuration, in_reset_state must be set to false. Only then, mpam_reset_ris() will restore the MPAM register setting. Fixes: be74872ad2e3 ("arm_mpam: Allow configuration to be applied and restored during cpu online") Signed-off-by: Zeng Heng <zengheng4@huawei.com> --- drivers/platform/mpam/mpam_devices.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/mpam/mpam_devices.c b/drivers/platform/mpam/mpam_devices.c index fab2dba70c9f..6c1c82f79ec0 100644 --- a/drivers/platform/mpam/mpam_devices.c +++ b/drivers/platform/mpam/mpam_devices.c @@ -2576,6 +2576,7 @@ int mpam_apply_config(struct mpam_component *comp, u16 partid, arg.ris = ris; mutex_lock(&ris->msc->lock); mpam_touch_msc(ris->msc, __write_config, &arg); + ris->in_reset_state = false; mutex_unlock(&ris->msc->lock); } srcu_read_unlock(&mpam_srcu, idx); -- 2.25.1