From: Xie XiuQi <xiexiuqi(a)huawei.com>
commit 5d46645b4e4f3786c083f6d9af0e92f9f87adda2 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/kernel/mpam.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/kernel/mpam.c b/arch/arm64/kernel/mpam.c
index 9cc9b2a232a9..260490dad226 100644
--- a/arch/arm64/kernel/mpam.c
+++ b/arch/arm64/kernel/mpam.c
@@ -1283,6 +1283,9 @@ static int __init mpam_late_init(void)
if (!cpus_have_const_cap(ARM64_HAS_MPAM))
return -ENODEV;
+ rdt_alloc_capable = 1;
+ rdt_mon_capable = 1;
+
mpam_init_padding();
ret = mpam_nodes_init();
--
2.31.0