Commit eda57f11 authored by Zeng Heng's avatar Zeng Heng
Browse files

arm_mpam: control memory bandwidth with hard limit flag

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT



---------------------------

When the max memory bandwidth is exceeded, the partition does not use any
more bandwidth until the memory bandwidth measurement for the partition
falls below max value setting.

Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent 1e7284b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1191,7 +1191,7 @@ static void mpam_reprogram_ris_partid(struct mpam_msc_ris *ris, u16 partid,

	if (mpam_has_feature(mpam_feat_mbw_max, rprops)) {
		if (mpam_has_feature(mpam_feat_mbw_max, cfg))
			mpam_write_partsel_reg(msc, MBW_MAX, cfg->mbw_max);
			mpam_write_partsel_reg(msc, MBW_MAX, cfg->mbw_max | MPAMCFG_MBW_MAX_HARDLIM);
		else
			mpam_write_partsel_reg(msc, MBW_MAX, bwa_fract);
	}