From: Xie XiuQi <xiexiuqi(a)huawei.com>
commit 6330b3511142934199dfbd9d273e2c5a13c59a23 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 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/mpam.c b/arch/arm64/kernel/mpam.c
index b83fd581fca7..4261c64f2a12 100644
--- a/arch/arm64/kernel/mpam.c
+++ b/arch/arm64/kernel/mpam.c
@@ -406,8 +406,10 @@ static __init bool get_rdt_mon_resources(void)
static __init bool get_resctrl_resources(void)
{
- if (!cpus_have_const_cap(ARM64_HAS_MPAM))
+ if (!cpus_have_const_cap(ARM64_HAS_MPAM)) {
+ pr_info("This cpu don't support MPAM feature: pfr0: %016llx\n",
read_sysreg_s(SYS_ID_AA64PFR0_EL1));
return false;
+ }
rdt_alloc_capable = get_rdt_alloc_resources();
rdt_mon_capable = get_rdt_mon_resources();
--
2.31.0