[PATCH OLK-6.6] arm64/mpam: Set 1 as the minimum setting value for CMAX

hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT -------------------------------- The MPAM hardware does not allow setting 0 as the cache occupancy limit value of CMAX. Otherwise, L3 msc would exhibit undefined behavior. Fixes: 83c4315c75ba ("arm64/mpam: Add CMAX feature") Signed-off-by: Zeng Heng <zengheng4@huawei.com> --- drivers/platform/mpam/mpam_resctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/mpam/mpam_resctrl.c b/drivers/platform/mpam/mpam_resctrl.c index 428afe27fda2..38d6d633a645 100644 --- a/drivers/platform/mpam/mpam_resctrl.c +++ b/drivers/platform/mpam/mpam_resctrl.c @@ -990,7 +990,7 @@ static int mpam_resctrl_resource_init(struct mpam_resctrl_res *res) if (cache_has_usable_cmax(class)) r->alloc_capable = true; - r->membw.min_bw = 0; + r->membw.min_bw = 1; r->membw.bw_gran = max(100 / (1 << cprops->cmax_wd), 1); break; -- 2.25.1

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/17488 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/MQI... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/17488 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/MQI...
participants (2)
-
patchwork bot
-
Zeng Heng