Repository navigation
Decode ARM CPU implementer/part so aarch64 nodes report a real CPU model - #12
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
aarch64 的
/proc/cpuinfo没有型号名,只有每个核心的CPU implementer与CPU part,面板因此显示unknown。按 lscpu 的表把它解码成型号名。lscpu-arm.c,名称与 lscpu 解码出的一致;32 位 Arm 与 Cortex-M/R 不收。覆盖 Neoverse N1/N2/N3/V1/V2/V3、Ampere-1/1a、Kunpeng-920/950、Azure-Cobalt-100、飞腾 FTC 系列、ThunderX、Apple M1/M2 等/连接,如 RK3588 显示Cortex-A55/Cortex-A76(主题会接上× 核数,用+会读成算式)Ampere),不认识的厂商仍是unknownmodel name/Model/cpu model存在时照旧优先(x86、树莓派内核给的板子名)测试:
an_arm_cpu_is_named_from_its_implementer_and_part;表项已逐条与lscpu-arm.c比对。