Hello Dennis,
I checked the Kernel source code in Linux SDK LS1021a v0.4, the patch "0001-cpufreq-qoriq-fixed-a-clock-setting-error.patch"(fixing DFS on non-t4240 not working) has already been applied, so DFS feature in this version SDK should work.
Please check the following Kernel configuration.
CPU Power Management -->
CPU Frequency scaling -->
[*] CPU Frequency scaling
<*> CPU frequency translation statistics
Default CPUFreq governor (userspace) -->
-*- 'userspace' governor for userspace frequency scaling
ARM CPU frequency scaling drivers -->
<*> CPU frequency scaling driver for Freescale QorIQ SoCs
1. list all the frequencies a core can support (take cpu 0 for example) :
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
1000000 500000 250000
2. check the CPU's current frequency
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1000000
3. change the CPU's frequency we expect:
# echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
4. # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
500000
Did you measure CPU current without any change?
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------