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
Fix Zgemma H9 CPU info #1659
Fix Zgemma H9 CPU info #1659
Conversation
I'm going to use this for Zgemma h9 CPU info problem (undefined) but we can use this in future for any hisilicon related thing so it's not box specific. /proc/cpuinfo won't give us what we need for h9 instead /proc/stb/info/chipset give us hi3798mv200 which is the right info for cpu model.
/proc/cpuinfo won't give us what we need for h9 instead /proc/stb/info/chipset give us hi3798mv200 After this you will see 1600 MHz (4 cores) too. It seems HiSilicon has this problem so you could use this for future models too. Screenshot: https://forums.openpli.org/topic/28532-merge-requests-for-plis-git/?view=findpost&p=912860 littlesat didn't accepted my old PR: #1658 but I won't give up. Thanks PLi anyway I'm still your fan.
The systeminfo is likely not needed... when the correct CPU grabber does not have output then just use chipinfo avoiding an if box x then y in systeminfo and also make the code usefull when other boxes do the same |
What /proc/cpuinfo displays for that model? Also lscpu shows what? (opkg install util-linux-lscpu) |
PP, what is the current response on the h9? Sorry I don’t have one... ;) |
cat /proc/cpuinfo: processor : 0 processor : 1 processor : 2 processor : 3 Hardware : bigfish lscpu: Architecture: armv7l Also I need to add /proc/stb/fp/temp_sensor for cpu temperature ... |
This works for me too: #1660 Is it ok for other brands/models or it breaks something? |
What is the current output as I see the cpu’s Are also mentioned in the proc |
With that output no need is changes as far I can see... What is shown now? |
This is my phython comment line test code for this one...
|
Current PLi shows : "undefined" without cores without speed without temp. With my changes: hi3798mv200 1600 4 core and temp I can't test your code right now but tomorrow I will ... |
We need to investigate why the info is not there |
I think it is more related to cases... I think it should be fixed when we force the line[0] to lower case... |
And I see it has max and min MHZ for |
I think you missed it, you're looking for "model name" in /proc/cpuinfo but there isn't one for hisilicon as you can see the output. The second part is from lscpu (see where I wrote lscpu:) which is available only when you install util-linux-lscpu so don't consider it (athoik asked for it). Also when I add #1660 undefined no more (correct cpu model) and with speed and cores. so speed and core detection is ok but cpu model is only available in /proc/stb/info/chipset For temp we don't have the correct proc file which is /proc/stb/fp/temp_sensor Please only test this #1660 on your machines as it's ok for hisilicon and h9, I just wan't to know if it doesn't break anything we can use it. |
Then when the current parser has no output do the thing you want to do... then no if box x then do y is required.... |
@littlesat forget about this PR just check #1660 please, which does the job for h9 and I want to know if it's ok for other models too (please test it on your boxes). Thanks in advance |
Each commit has descriptions.