Re: Common firmware testing
Posted: Thu Apr 16, 2020 11:51 am
Common firmware is now on the master branch of rpi-update. next branch is still being used for 5.4 kernel testing.
A small, affordable computer with free resources to help people learn, make things, and have fun
https://www.raspberrypi.org/forums/
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=267576
Code: Select all
vcgencmd measure_clock core
vcgencmd measure_clock h264
Code: Select all
echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=200008304
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=199995120
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=200008304
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=199995120
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=200008304
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=199995120
Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=499987808
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=500000992
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=499987808
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=500000992
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=499987808
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=500000992
Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=200008304
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=200008304
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=200008304
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=199995120
Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=500000992
Hmmm. Common firmware only affects Pi0-3. Pi4 firmware was unchanged by this switch.Realizator wrote: ↑Fri Apr 17, 2020 11:46 amWe noticed a dramatic performance drop while H264 decode/encode with the new firmware on RPi 4.
Excuse my intervention but your h264 freq look low; is your RPI on stand by when you run the command ?Realizator wrote: With the new firmware:Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock h264 frequency(28)=200008304 root@cosmostreamer:~# vcgencmd measure_clock h264 frequency(28)=199995120 ....
.....Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock core frequency(1)=499987808 root@cosmostreamer:~# vcgencmd measure_clock core frequency(1)=500000992 ...
Code: Select all
LibreELEC:~ # vcgencmd measure_clock h264
frequency(28)=500000992
LibreELEC:~ # vcgencmd measure_clock core
frequency(1)=500000992
Code: Select all
root@cosmostreamer:/# vcgencmd version
Sep 24 2019 17:36:31
Copyright (c) 2012 Broadcom
version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start_x)
root@cosmostreamer:/boot# uname -a
Linux cosmostreamer 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Code: Select all
root@raspberrypi:~# vcgencmd version
Apr 15 2020 11:42:37
Copyright (c) 2012 Broadcom
version 1103ec16df2571274600b377411499bf5aed6d0d (clean) (release) (start_x)
root@raspberrypi:~# uname -a
Linux raspberrypi 4.19.114-v7+ #1303 SMP Tue Apr 7 15:44:16 BST 2020 armv7l GNU/Linux
Still on your old test firmware, h264 freq it is high compared with test on new firmware.Realizator wrote: This system works without GUI as embedded device, and main load is h264 encode/decode. May be this is a reason of this low core frequency.
Hmmm... You a right. The frequencies are vice-versa for h264 and core...
Code: Select all
root@cosmostreamer:~# vcgencmd measure_clock h264
frequency(28)=240007328
root@cosmostreamer:~# vcgencmd measure_clock core
frequency(1)=500000992
Code: Select all
#!/bin/bash
# This bash script outputs the status of your Pi and checks whether you are being throttled for undervoltage and gives you your temperature
# Article and discussion at https://jamesachambers.com/measure-raspberry-pi-undervoltage-true-clock-speeds/
# Author James A Chambers 6-6-17
# Output current configuration
vcgencmd get_config int | egrep "(arm|core|gpu|sdram)_freq|over_volt"
# Measure clock speeds
for src in arm core h264 isp v3d; do echo -e "$src:\t$(vcgencmd measure_clock $src)"; done
# Measure Volts
for id in core sdram_c sdram_i sdram_p ; do echo -e "$id:\t$(vcgencmd measure_volts $id)"; done
# Measure Temperature
vcgencmd measure_temp
# See if we are being throttled
throttled="$(vcgencmd get_throttled)"
echo -e "$throttled"
if [[ $throttled != "throttled=0x0" ]]; then
echo "WARNING: You are being throttled. This is likely because you are undervoltage. Please connect your PI to a better power supply!"
fi
no3rpi, thank you for your advice!
Code: Select all
root@cosmostreamer:~# vcgencmd get_throttled
throttled=0x50005
I understand this, and will try to use a couple of pins. But we use exactly the same hardware and power cable connections, just changing a micro SD card. And got high h264 frequency in the first case, and low in the second...dickon wrote: ↑Fri Apr 17, 2020 5:12 pmAre you using both 5V pins (and two grounds) as power inputs, or just one? I'm fairly sure -- as in, I'm sure I've seen something to this effect around here before -- that one is not quite enough, especially if the conductors are thin. You get enough of a voltage drop to cause trouble.
No idea why that would trigger on a later firmware, though.