-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ARM features detection #132
Comments
Another related issue is in |
This shows that not all ARM cores have 1 SIMD unit. It is also worth noting that NEON includes FMA, which is not considered in the current cpufetch code |
This suggests a better implementation for (at least) fetching the MIDR. |
Oaknut, the ARM64 emitter, also has some expansive detection of processor features across different operating systems and platforms that could be a good reference: |
They use I've had in mind for a long time to remove all features but NEON, and also check how to find if the CPU supports SVE and/or SME, which would be the "equivalent" to the features shown in the x86 version. Maybe also renaming it to "Vector extensions", e.g., go from:
to
Another thing I have in mind is to show the ARM version (This is already implemented but not simply not shown). I don't know which title to use or if it should be merged into another line. I think I'll implement all these ideas for the upcoming cpufetch release. |
cpufetch runs in userspace so you are limited to data given by kernel. In EFI environment (edk2 UEFI shell, U-Boot EFI support) you can run my ArmCpuInfo tool https://github.com/hrw/edk2-armcpuinfo/ and get all data you can. But under Linux you do not have access to all those system registers. |
Current features detected under ARM are not always relevant, and probably there are relevant features that are not shown (e.g, #130).
A list of relevant features should be elaborated and the program should be updated accordingly.
The text was updated successfully, but these errors were encountered: