提交 1af26389 编写于 作者: C Chen Jun 提交者: Zheng Zengkai

perf: hisi: Fix read sccl_id and ccl_id error in some platform

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I584X2
CVE: NA

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

Some platforms with TSV200 or CORTEX_A55, sccl and ccl are keep in
aff2 if mt.
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 35ba3137
......@@ -434,12 +434,19 @@ static void hisi_read_sccl_and_ccl_id(int *scclp, int *cclp)
bool mt = mpidr & MPIDR_MT_BITMASK;
int sccl, ccl;
if (mt && read_cpuid_part_number() == HISI_CPU_PART_TSV110) {
sccl = aff2 >> 3;
ccl = aff2 & 0x7;
} else if (mt) {
sccl = aff3;
ccl = aff2;
if (mt) {
switch (read_cpuid_part_number()) {
case HISI_CPU_PART_TSV110:
case HISI_CPU_PART_TSV200:
case ARM_CPU_PART_CORTEX_A55:
sccl = aff2 >> 3;
ccl = aff2 & 0x7;
break;
default:
sccl = aff3;
ccl = aff2;
break;
}
} else {
sccl = aff2;
ccl = aff1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册