CPU: show heterogeneous RISC-V microarchitectures - #2566
Open
RevySR wants to merge 1 commit into
Open
Conversation
Read all per-CPU uarch descriptions even when a SoC name is available. Append a counted breakdown for heterogeneous systems while preserving the existing display for homogeneous or incomplete descriptions. Distinguish equal-frequency implementations such as A210 C908 and C920 without inferring performance/efficiency classes from their names. Keep frequency reporting and the existing coreTypes interface unchanged. Add tests for mixed, interleaved, homogeneous and malformed CPU descriptions, including an unterminated final line and inconsistent online CPU counts. Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Member
|
I don't like this. I think this is against fastfetch's design and it looks like an AI slop to me (I'm sorry if it isn't) |
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.
Summary
Show a per-microarchitecture CPU breakdown on heterogeneous RISC-V systems, even when a SoC name has already been detected.
For example, the A210 contains four C908 and four C920 cores. Both clusters report the same maximum frequency, so frequency-based grouping alone does not distinguish them.
Related issue (required for new logos for new distros)
N/A
Changes
uarchdescriptions from/proc/cpuinfo.coreTypesinterface unchanged.Screenshots
Expected output:
Before:
After:
Checklist