Not able to set CPU clock frequency on Emulated Orin Nano

We have emulated AGX Orin 32 GB module as Jetson Orin Nano 8 GB module, which has 6 cores and 2 power modes 15W and 7W. Right now we are working on 15W MaxN mode which has all the 6 cores on and the max clk frequency for the same is 1510 MHz, but by default clk freq (cpuinfo_cur_freq) of core number 4 and 5 are 1900 MHz around. As you can see the logs below:

orin-3-nano@orin3nano-desktop:~$ tegrastats
07-25-2023 12:24:24 RAM 861/7773MB (lfb 1549x4MB) SWAP 0/3886MB (cached 0MB) CPU [0%@729,0%@729,0%@729,0%@729,0%@729,0%@729] EMC_FREQ 0% 665

orin-3-nano@orin3nano-desktop:~$ sudo tegrastats
07-25-2023 12:24:17 RAM 861/7773MB (lfb 1549x4MB) SWAP 0/3886MB (cached 0MB) CPU [0%@729,0%@729,0%@729,0%@729,0%@1909,0%@1915] EMC_FREQ 0%@665

Even when we try to set the frequency by manipulating scaling_max and scaling_min frequency it only changes that there are no changes shown in the cpuinfo_cur_freq for specifically those 2 cores other that that all the cores’ frequency can be easily manipulated in this nano module even in the NX module which is emulated one too. Here we have set the scaling_max_freq and scaling_min_freq of all cores at 1510 MHz, where tegrastats show reading of scaling_cur_freq and sudo tegrastats shows the reading of cupinfo_cur_freq:

orin-3-nano@orin3nano-desktop:~$ tegrastats
07-25-2023 12:26:23 RAM 874/7773MB (lfb 1545x4MB) SWAP 0/3886MB (cached 0MB) CPU [0%@1510,0%@1510,0%@1510,0%@1510,0%@1510,0%@1510] EMC_FREQ 0%

orin-3-nano@orin3nano-desktop:~$ sudo tegrastats
07-25-2023 12:26:35 RAM 874/7773MB (lfb 1545x4MB) SWAP 0/3886MB (cached 0MB) CPU [0%@1510,0%@1510,0%@1510,0%@1510,0%@1906,0%@1904] EMC_FREQ 0%@665

Here we can see the difference of cpuinfo_cur_freq and scaling_cur_freq for core 0 and core 4.

root@orin3nano-desktop:/home/orin-3-nano# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1510400
root@orin3nano-desktop:/home/orin-3-nano# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1510400
root@orin3nano-desktop:/home/orin-3-nano# cat /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq
1904000
root@orin3nano-desktop:/home/orin-3-nano# cat /sys/devices/system/cpu/cpu5/cpufreq/scaling_cur_freq
1510400

Need guidance for debugging and resolving this issue. Are these kind of scenarios normal in case of emulation? We have not observed such issues in NX emulated module only in nano we are facing. What are the possible solutions for to set the frequency?

Which JetPack SW you’re using?
Can you try with JetPack 5.1.1 to see if issue still presents?

We are facing this issue on Jetpack 5.1.1 only.

Could you help check what is the scaling_max_freq result from the problematic core?

Scaling max freq of core 5:

orin-3-nano@orin3nano-desktop:/sys/devices/system/cpu/cpu5/cpufreq$ cat scaling_max_freq
1510400

Please use JetPack 5.1.2 to see if issue still presented. Thanks

Okay, I will check with jetpack 5.1.2 and let you know.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.