====== 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 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
choice, not a single-core SoC.
# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 10 (v7l)
BogoMIPS : 6.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10
Hardware : Freescale i.MX6 Quad/DualLite (Device Tree)
Revision : 0000
Serial : 0000000000000000
# nproc
1
# zcat /proc/config.gz | grep CONFIG_SMP
# CONFIG_SMP is not set
The architecture is Armv7l, hard-float, 32-bit. Applications are built for
''%%arm-v7a-linux-gnueabihf%%''.
The maximum CPU clock is 792 MHz:
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
792000
===== Clock and governor =====
The stock driver is ''%%imx6q-cpufreq%%''. It offers 396 MHz and 792 MHz, with the
''%%interactive%%'' governor by default.
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
To pin the CPU at full speed for a benchmark:
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Put it back when you are done:
echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Time spent at each frequency is in ''%%stats/time_in_state%%''. The numbers are
kernel ticks, not seconds.
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/total_trans
===== Idle states =====
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
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.
cat /sys/class/hwmon/hwmon0/temp1_input
The value is milli-degrees Celsius. Divide by 1000 for Celsius.
===== Other useful checks =====
Hardware crypto:
grep -i caam /proc/crypto
Clock tree, after mounting debugfs:
mount -t debugfs debugfs /sys/kernel/debug
head -40 /sys/kernel/debug/clk/clk_summary
Process priority and affinity tools:
chrt -p $$
nice
ionice -p $$
taskset -p $$
There is only CPU0, so affinity is not very useful. ''%%chrt%%'', ''%%nice%%'', and
''%%ionice%%'' still work.
Kernel command line and machine identity:
cat /proc/cmdline
cat /proc/device-tree/model; echo
tr "\0" " " < /proc/device-tree/compatible; echo