[imx8mm][Linux] Missing CPU frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[imx8mm][Linux] Missing CPU frequency

2,901 Views
Nonifier
Contributor II

Hi guys,

According to your linux user guide documentation : https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf#_OPENTOPIC_TOC_PROCESSING_d672e1012....

To check the maximum frequency:

cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq

On my running IM8MM board, none of those 'cpufreq' folders exist :

imx8mmevk:~$ ls /sys/devices/system/cpu/cpu*/cpufreq/*
ls: cannot access '/sys/devices/system/cpu/cpu*/cpufreq/*': No such file or directory

Also, '/proc/cpuinfo' does not report any CPU frequency either :

imx8mmevk:~$ cat /proc/cpuinfo 
processor : 0
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

The image I'm using has been built using Yocto :

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-gatesgarth -m imx-5.10.9-1.0.0.xml
repo sync
MACHINE=imx8mmevk DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b bld-xwayland
bitbake imx-image-full

 

Is there anything special that needs to be done to enable cpu frequency reporting working properly ? Did I do something wrong ?

Thanks for your help.

Olivier.

5 Replies

2,845 Views
Nonifier
Contributor II

Any update on this by any chance ?

Thanks a lot,

Olivier.

0 Kudos
Reply

2,884 Views
Nonifier
Contributor II

Hi @igorpadykov 

Thanks for the quick reply.

The file you're referring to (/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq) is missing from my image. That's my original point

None of the /cpufreq/ folder is present on my image. Do I need any Yocto configuration/step/recipe to have those /cpufreq/ kernel files configured in my image ?

Best,

Olivier. 

0 Kudos
Reply

2,881 Views
igorpadykov
NXP Employee
NXP Employee

could you try to reproduce issue on NXP EVK reference board.

 

Best regards
igor

0 Kudos
Reply

2,878 Views
Nonifier
Contributor II

Hi @igorpadykov 

I'm experiencing the issue on a i.MX8M Mini Evaluation Kit

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-...

Not sure if this is considered as a "EVK reference board".

Best,

Olivier.

0 Kudos
Reply

2,891 Views
igorpadykov
NXP Employee
NXP Employee

Hi Olivier

 

one can check cpufreq linux kernel configuration described in sect.2.5.3.4 Menu Configuration Options

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 Kudos
Reply