
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