User Tools

Site Tools


cpu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
cpu [2026-11-22 09:28 UTC (6 days ago)] – format with headings for consistency jazzycpu [2026-11-22 21:52 UTC (5 days ago)] (current) – update cpu docs, devling into features, kernel build choice, and crypto info qkb
Line 1: Line 1:
 ====== CPU ====== ====== CPU ======
  
 +The SoC is a Freescale/NXP i.MX6DL (DualLite), silicon revision 1.3, on a
 +TQ-Systems TQMa6S module with 512 MB RAM. The module name says TQMa6S, but Linux
 +identifies the chip as i.MX6DL.
  
-The CPU in the unit is a Freescale i.MX6SOLO rev1.3, single core at 792MHz. It's mounted on a TQMa6x system-on-module alongside 512MB RAM.  +The stock kernel is built uniprocessor. ''%%CONFIG_SMP%%'' is not set, so only CPU0 is 
- +online even though the SoC is a DualLite part. This is a kernel configuration 
-The architecture is Armv7l hardfloat (32 bit). Applications appear to be targeted at ''arm-v7a-linux-gnueabihf'' +choice, not a single-core SoC.
  
 <code> <code>
Line 11: Line 13:
 processor       : 0 processor       : 0
 model name      : ARMv7 Processor rev 10 (v7l) model name      : ARMv7 Processor rev 10 (v7l)
-BogoMIPS        : 3.00+BogoMIPS        : 6.00
 Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
 CPU implementer : 0x41 CPU implementer : 0x41
Line 24: Line 26:
 </code> </code>
  
-===== Monitoring =====+<code> 
 +# nproc 
 +1 
 +# zcat /proc/config.gz | grep CONFIG_SMP 
 +# CONFIG_SMP is not set 
 +</code>
  
 +The architecture is Armv7l, hard-float, 32-bit. Applications are built for
 +''%%arm-v7a-linux-gnueabihf%%''.
  
-Other commands of interest for the CPU:+The maximum CPU clock is 792 MHz: 
 + 
 +<code> 
 +# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq 
 +792000 
 +</code> 
 + 
 +===== Clock and governor ===== 
 + 
 +The stock driver is ''%%imx6q-cpufreq%%''. It offers 396 MHz and 792 MHz, with the 
 +''%%interactive%%'' governor by default. 
 + 
 +<code> 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq 
 +</code> 
 + 
 +To pin the CPU at full speed for a benchmark: 
 + 
 +<code> 
 +echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
 +</code> 
 + 
 +Put it back when you are done: 
 + 
 +<code> 
 +echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
 +</code> 
 + 
 +Time spent at each frequency is in ''%%stats/time_in_state%%''. The numbers are 
 +kernel ticks, not seconds. 
 + 
 +<code> 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state 
 +cat /sys/devices/system/cpu/cpu0/cpufreq/stats/total_trans 
 +</code> 
 + 
 +===== Idle states ===== 
 + 
 +<code> 
 +for d in /sys/devices/system/cpu/cpu0/cpuidle/state*; do 
 +  echo "$d: $(cat "$d/name") usage=$(cat "$d/usage") time=$(cat "$d/time")" 
 +done 
 +</code> 
 + 
 +The two states on this kernel are ''%%WFI%%'' and ''%%WAIT%%''. 
 + 
 +===== Temperature ===== 
 + 
 +The temperature sensor at ''%%hwmon0%%'' is the board LM75 at I2C address ''%%0x48%%'', 
 +not an on-die CPU sensor. There is no ''%%/sys/class/thermal%%'' zone on this kernel. 
 + 
 +<code> 
 +cat /sys/class/hwmon/hwmon0/temp1_input 
 +</code> 
 + 
 +The value is milli-degrees Celsius. Divide by 1000 for Celsius. 
 + 
 +===== Other useful checks ===== 
 + 
 +Hardware crypto: 
 + 
 +<code> 
 +grep -i caam /proc/crypto 
 +</code> 
 + 
 +Clock tree, after mounting debugfs: 
 + 
 +<code> 
 +mount -t debugfs debugfs /sys/kernel/debug 
 +head -40 /sys/kernel/debug/clk/clk_summary 
 +</code> 
 + 
 +Process priority and affinity tools: 
 + 
 +<code> 
 +chrt -p $$ 
 +nice 
 +ionice -p $$ 
 +taskset -p $$ 
 +</code> 
 + 
 +There is only CPU0, so affinity is not very useful. ''%%chrt%%'', ''%%nice%%'', and 
 +''%%ionice%%'' still work. 
 + 
 +Kernel command line and machine identity: 
 + 
 +<code> 
 +cat /proc/cmdline 
 +cat /proc/device-tree/model; echo 
 +tr "\0" " " < /proc/device-tree/compatible; echo 
 +</code>
  
-Checking temperature: ''cat /sys/class/hwmon/hwmon0/temp1_input'' (returns degrees celsius * 1000) 
cpu.txt · Last modified: by qkb