提交 85495901 编写于 作者: H Hanjun Guo 提交者: Yang Yingliang

arm64: topology: Support PHYTIUM CPU

hulk inclusion
category: feature
bugzilla: NA
CVE: NA
---------------------------

Add the support for PHYTIUM topology detect, it's better
use PPTT ACPI table to report the topology, but we can live
with it at now.
Signed-off-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 42014ca5
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
#define ARM_CPU_IMP_QCOM 0x51 #define ARM_CPU_IMP_QCOM 0x51
#define ARM_CPU_IMP_NVIDIA 0x4E #define ARM_CPU_IMP_NVIDIA 0x4E
#define ARM_CPU_IMP_HISI 0x48 #define ARM_CPU_IMP_HISI 0x48
#define ARM_CPU_IMP_PHYTIUM 0x70
#define ARM_CPU_PART_AEM_V8 0xD0F #define ARM_CPU_PART_AEM_V8 0xD0F
#define ARM_CPU_PART_FOUNDATION 0xD00 #define ARM_CPU_PART_FOUNDATION 0xD00
......
...@@ -286,6 +286,12 @@ void store_cpu_topology(unsigned int cpuid) ...@@ -286,6 +286,12 @@ void store_cpu_topology(unsigned int cpuid)
cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1) | cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1) |
MPIDR_AFFINITY_LEVEL(mpidr, 2) << 8 | MPIDR_AFFINITY_LEVEL(mpidr, 2) << 8 |
MPIDR_AFFINITY_LEVEL(mpidr, 3) << 16; MPIDR_AFFINITY_LEVEL(mpidr, 3) << 16;
if (read_cpuid_implementor() == ARM_CPU_IMP_PHYTIUM) {
cpuid_topo->thread_id = 0;
cpuid_topo->core_id = cpuid;
cpuid_topo->package_id = 0;
}
} }
pr_debug("CPU%u: cluster %d core %d thread %d mpidr %#016llx\n", pr_debug("CPU%u: cluster %d core %d thread %d mpidr %#016llx\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册