Armbian can't run fast at rock pi s

Kernel   version of debian release  is too old to suport my application ,so I try armbian with radxa github public version.But it don't works well.top frequency maybe very low.and I can't read it:

pi@rockpi-s:/sys/devices/system/cpu/cpufreq$ ls
pi@rockpi-s:/sys/devices/system/cpu/cpufreq$

I capture some system boot log,wish someone can help me!

Lstrong textoading Environment from nowhere… OK
In: serial
Out: serial
Err: serial
Model: Radxa ROCK Pi S
rockchip_dnl_key_pressed read board id failed
Net: eth0: ethernet@ff4e0000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1…
Found U-Boot script /boot/boot.scr
3185 bytes read in 3 ms (1 MiB/s)

Executing script at 00500000

Boot script loaded from mmc 1
225 bytes read in 3 ms (73.2 KiB/s)
11385968 bytes read in 482 ms (22.5 MiB/s)
30212608 bytes read in 1273 ms (22.6 MiB/s)
53606 bytes read in 8 ms (6.4 MiB/s)
Failed to load ‘/boot/dtb/rockchip/overlay/rk3308-fixup.scr’
Moving Image from 0x680000 to 0x800000, end=2570000

Loading init Ramdisk from Legacy Image at 04000000 …

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 11385904 Bytes = 10.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK

Flattened Device Tree blob at 02800000

Booting using the fdt blob at 0x2800000
Loading Ramdisk to 1d44f000, end 1df2ac30 … OK
ERROR: reserving fdt memory region failed (addr=0 size=0)
Loading Device Tree to 000000001d3d9000, end 000000001d44efff … OK

Starting kernel …

Loading, please wait…
Starting version 247.3-7
Begin: Loading essential drivers … done.
Begin: Running /scripts/init-premount … done.
Begin: Mounting root file system … Begin: Running /scripts/local-top … done.
Begin: Running /scripts/local-premount … done.
Begin: Will now check root file system … fsck from util-linux 2.36.1
[/sbin/fsck.ext4 (1) – /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
/dev/mmcblk0p1: clean, 36174/7651328 files, 779524/15282176 blocks
done.
done.
Begin: Running /scripts/local-bottom … done.
Begin: Running /scripts/init-bottom … done.

Welcome to Armbian 22.05.0-trunk Bullseye!

[ OK ] Created slice system-getty.slice.
[ OK ] Created slice system-modprobe.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Set up automount Arbitrary…s File System Automount Point.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Paths.
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Slices.
[ OK ] Reached target Swap.
[ OK ] Reached target System Time Set.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on fsck to fsckd communication Socket.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on Journal Audit Socket.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Listening on udev Kernel Socket.
Mounting Huge Pages File System…
Mounting POSIX Message Queue File System…
Mounting Kernel Debug File System…
Mounting Kernel Trace File System…
Starting Restore / save the current clock…
Starting Set the console keyboard layout…
Starting Create list of st…odes for the current kernel…
Starting Load Kernel Module configfs…
Starting Load Kernel Module drm…
Starting Load Kernel Module fuse…
[ OK ] Started Nameserver information manager.
[ OK ] Reached target Network (Pre).

sudo watch -n 1  cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq

Lets you check current clock but cat around there will get you max in the right directory

Armbian often install cpufrequtils check /etc and edit also.
https://www.thinkwiki.org/wiki/How_to_use_cpufrequtils

Newer RK3308 have a lower clock of 1.2Mhz max I think from mem well just short of 1.2Mhz

Nothing! I think dtb is not loaded correctly.
pi@rockpi-s:/sys/devices/system/cpu/cpu0$ ls
cache crash_notes hotplug of_node power subsystem uevent
cpu_capacity crash_notes_size node0 online regs topology
pi@rockpi-s:/sys/devices/system/cpu/cpu0$

According to the documentation on the S/H chips, the maximum speed is now 1104MHz.

Close enough as don’t that is @solaris3308 problem.

Look this:
pi@rockpi-s:~$ sysbench --threads=4 --time=60 cpu run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 4
Initializing random number generator from current time

Prime numbers limit: 10000

Initializing worker threads…

Threads started!

CPU speed:
events per second: 1441.18

General statistics:
total time: 60.0025s
total number of events: 86488

Latency (ms):
min: 2.74
avg: 2.77
max: 890.77
95th percentile: 2.76
sum: 239639.34

Threads fairness:
events (avg/stddev): 21622.0000/363.16
execution time (avg/stddev): 59.9098/0.10

pi@rockpi-s:~$ uname -a
Linux rockpi-s 5.15.35-rockchip64 #trunk SMP PREEMPT Fri May 6 03:49:11 UTC 2022 aarch64 GNU/Linux
pi@rockpi-s:~$ cat /etc/os-release
PRETTY_NAME=“Armbian 22.05.0-trunk Bullseye”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/

On debian 10 with kernel 4.4 the score of “events per second” is 23XX.I sure cpu-freq of armbian is much lower than it on debian10

By the way,I look at this :
pi@rockpi-s:~$ sudo cat /sys/kernel/debug/opp/opp_summary
cat: /sys/kernel/debug/opp/opp_summary: No such file or directory
Looks like oop part of dtb is loaded.

cpufreq-driver also is not loaded.
pi@rockpi-s:~$ cpufreq-info
cpufrequtils 008: cpufreq-info © Dominik Brodowski 2004-2009
Report errors and bugs to cpufrer.kernel.org, please.
analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
maximum transition latency: 4294.55 ms.
analyzing CPU 1:
no or unknown cpufreq driver is active on this CPU
maximum transition latency: 4294.55 ms.
analyzing CPU 2:
no or unknown cpufreq driver is active on this CPU
maximum transition latency: 4294.55 ms.
analyzing CPU 3:
no or unknown cpufreq driver is active on this CPU
maximum transition latency: 4294.55 ms.
pi@rockpi-s:~$

The 5.18 kernel has broken cpufreq on the rock-pi-s.
Trouble was in the rk3308-rock-pi-s.dts device tree definitions.
[A couple overclocking CPU rates were incompletely defined]
Here are my sysbench results with cpufreq working again (ondemand governor):
(about a 25% speed improvement)

sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 4
Initializing random number generator from current time

Prime numbers limit: 10000

Initializing worker threads…

Threads started!

CPU speed:
events per second: 1790.97

General statistics:
total time: 60.0017s
total number of events: 107477

Latency (ms):
min: 2.22
avg: 2.23
max: 18.38
95th percentile: 2.22
sum: 239813.38

Threads fairness:
events (avg/stddev): 26869.2500/119.69
execution time (avg/stddev): 59.9533/0.00

rk33080-rock-pi-s.dts.zip (2.3 KB)