From: Xie XiuQi <xiexiuqi(a)huawei.com>
commit 903aa1a596ee1a4122fb24bba206f818cce19399 openEuler-1.0
hulk inclusion
category: feature
bugzilla: 5510
CVE: NA
Signed-off-by: Xie XiuQi <xiexiuqi(a)huawei.com>
Reviewed-by: Hanjun Guo <guohanjun(a)huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang(a)huawei.com>
Signed-off-by: Xin Hao <haoxing990(a)gmail.com>
---
arch/arm64/include/asm/mpam_resource.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/include/asm/mpam_resource.h
b/arch/arm64/include/asm/mpam_resource.h
index 4150d706090e..630362eb91b1 100644
--- a/arch/arm64/include/asm/mpam_resource.h
+++ b/arch/arm64/include/asm/mpam_resource.h
@@ -83,8 +83,8 @@
#define MSMON_CFG_CSU_CTL_SET(m) (BIT(31)|(m))
/* [FIXME] hard code for hardlim */
-#define MBW_MAX_SET(v) (MBW_MAX_HARDLIM|((v) << (15 - BWA_WD)))
-#define MBW_MAX_GET(v) (((v) & MBW_MAX_MASK) >> (15 - BWA_WD))
+#define MBW_MAX_SET(v) (MBW_MAX_HARDLIM|((v) << (16 - BWA_WD)))
+#define MBW_MAX_GET(v) (((v) & MBW_MAX_MASK) >> (16 - BWA_WD))
/*
* emulate the mpam nodes
* These should be reported by ACPI MPAM Table.
--
2.31.0