Skip to content

Commit

Permalink
Mini fixes to deal with Radxa's rbuild images
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKaiser committed Feb 14, 2023
1 parent e0eb8b4 commit 0fd4428
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 3 deletions.
49 changes: 49 additions & 0 deletions results/reviews/NanoPi-M1-Plus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# FriendlyArm NanoPi M1 Plus

Tested on Mon, 13 Feb 2023 15:46:34 +0100. Full info: [http://ix.io/4nWb](http://ix.io/4nWb)

### General information:

Allwinner H3, Kernel: armv7l, Userland: armhf

CPU sysfs topology (clusters, cpufreq members, clockspeeds)
cpufreq min max
CPU cluster policy speed speed core type
0 0 0 120 1368 Cortex-A7 / r0p5
1 0 0 120 1368 Cortex-A7 / r0p5
2 0 0 120 1368 Cortex-A7 / r0p5
3 0 0 120 1368 Cortex-A7 / r0p5

### Governors/policies (performance vs. idle consumption):

Original governor settings:

cpufreq-policy0: ondemand / 1200 MHz (conservative userspace powersave ondemand performance schedutil)

Tuned governor settings:

cpufreq-policy0: performance / 1200 MHz

### Clockspeeds (idle vs. heated up):

Before at 43.6°C:

cpu0 (Cortex-A7): OPP: 1368, Measured: 1365

After at 74.9°C:

cpu0 (Cortex-A7): OPP: 1368, Measured: 1365

### Software versions:

* Ubuntu 18.04.6 LTS
* Build scripts: NanoPi M1 Plus, sun8i, sunxi, 5.65
* Compiler: /usr/bin/gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 / arm-linux-gnueabihf
* OpenSSL 1.1.1, built on 11 Sep 2018
* Kernel 4.19.62-sunxi / CONFIG_HZ=250

Kernel 4.19.62 is not latest 4.19.271 LTS that was released on 2023-01-24.

Please check https://endoflife.date/linux for details. It is somewhat likely
that a lot of exploitable vulnerabilities exist for this kernel as well as
many unfixed bugs. Better upgrade to a supported version ASAP.
73 changes: 73 additions & 0 deletions results/reviews/Rock-4A-5.10-BSP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Radxa ROCK Pi 4A

Tested on Tue, 14 Feb 2023 11:57:30 +0000. Full info: [http://ix.io/4o0G](http://ix.io/4o0G)

### General information:

Rockchip RK3399, Kernel: aarch64, Userland: arm64

CPU sysfs topology (clusters, cpufreq members, clockspeeds)
cpufreq min max
CPU cluster policy speed speed core type
0 0 0 408 1416 Cortex-A53 / r0p4
1 0 0 408 1416 Cortex-A53 / r0p4
2 0 0 408 1416 Cortex-A53 / r0p4
3 0 0 408 1416 Cortex-A53 / r0p4
4 1 4 408 1800 Cortex-A72 / r0p2
5 1 4 408 1800 Cortex-A72 / r0p2

### Governors/policies (performance vs. idle consumption):

Original governor settings:

cpufreq-policy0: ondemand / 1008 MHz (ondemand performance schedutil)
cpufreq-policy4: ondemand / 408 MHz (ondemand performance schedutil)
dmc: dmc_ondemand / 856 MHz (dmc_ondemand simple_ondemand)
ff9a0000.gpu: simple_ondemand / 200 MHz (dmc_ondemand simple_ondemand)

Tuned governor settings:

cpufreq-policy0: performance / 1416 MHz
cpufreq-policy4: performance / 1800 MHz
dmc: performance / 856 MHz
ff9a0000.gpu: performance / 800 MHz

Status of performance related policies found below /sys:

/sys/devices/platform/ff9a0000.gpu/core_availability_policy: [fixed] devfreq
/sys/devices/platform/ff9a0000.gpu/power_policy: [coarse_demand] always_on
/sys/module/pcie_aspm/parameters/policy: default [performance] powersave powersupersave

### Clockspeeds (idle vs. heated up):

Before at 46.2°C:

cpu0-cpu3 (Cortex-A53): OPP: 1416, Measured: 1412
cpu4-cpu5 (Cortex-A72): OPP: 1800, Measured: 1797

After at 81.1°C:

cpu0-cpu3 (Cortex-A53): OPP: 1416, Measured: 1412
cpu4-cpu5 (Cortex-A72): OPP: 1800, Measured: 1443 (-19.8%)

### Software versions:

* Debian GNU/Linux 11 (bullseye)
* Compiler: /usr/bin/gcc (Debian 10.2.1-6) 10.2.1 20210110 / aarch64-linux-gnu
* OpenSSL 1.1.1n, built on 15 Mar 2022
* Kernel 5.10.110-1-rockchip / CONFIG_HZ=300

Kernel 5.10.110 is not latest 5.10.166 LTS that was released on 2023-02-01.

Please check https://endoflife.date/linux for details. It is somewhat likely
that a lot of exploitable vulnerabilities exist for this kernel as well as
many unfixed bugs. Better upgrade to a supported version ASAP.

But this version string doesn't matter that much since this device is not
running an official LTS Linux from kernel.org.

This device runs a Rockchip BSP kernel based on a mixture of Android GKI and
other sources. Also some community attempts to do version string cosmetics
might have happened, see https://tinyurl.com/2p8fuubd for example. To examine
how far away this 5.10.110 is from an official LTS of same version someone
would have to reapply Rockchip's thousands of patches to a clean 5.10.110 LTS.
7 changes: 4 additions & 3 deletions sbc-bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2200,6 +2200,7 @@ CheckMissingPackages() {
command -v curl >/dev/null 2>&1 || echo -e "curl \c"
command -v dmidecode >/dev/null 2>&1 || echo -e "dmidecode \c"
command -v lshw >/dev/null 2>&1 || echo -e "lshw \c"
command -v strings >/dev/null 2>&1 || echo -e "binutils \c"
command -v mbw >/dev/null 2>&1 || echo -e "mbw \c"
command -v powercap-info >/dev/null 2>&1
[ $? -ne 0 -a -d /sys/devices/virtual/powercap ] && echo -e "powercap-utils \c"
Expand Down Expand Up @@ -6300,7 +6301,7 @@ CheckKernelVersion() {
if [ "X${CheckEOL}" = "X${EOLDate}" -a "X${EOLDate}" != "Xfalse" ]; then
# EOL date is in the past
echo -e "${LRED}${BOLD}${ShortKernelVersion}${KernelSuffix} has reached end-of-life on ${EOLDate} with version ${LatestKernelVersion}.${NC}"
echo -e "${LRED}${BOLD}Your ${KernelVersionDigitsOnly} and all other ${ShortKernelVersion}${KernelSuffix} versions are unsupported since then.${NC}"
echo -e "${LRED}${BOLD}Your ${KernelVersionDigitsOnly} and all other ${ShortKernelVersion}${KernelSuffix} revisions are unsupported since then.${NC}"
elif [ ${RevisionDifference} -gt 5 ]; then
# report version mismatch only if kernel revision difference is greater than 5
echo -e "${BOLD}Kernel ${KernelVersionDigitsOnly} is not latest ${LatestKernelVersion}${KernelSuffix} that was released on ${LatestKernelDate}.${NC}\n"
Expand Down Expand Up @@ -6479,13 +6480,13 @@ CheckKernelVersion() {
# With RK3399 we need to differentiate between mainline and BSP kernel, for
# example CONFIG_HZ (not reliable once someone gets the idea to switch BSP
# settings from 300 to 250) or microvolts entries below /sys/devices/platform/
grep -q vcc_ddr <<<"${OPPTables}" && PrintBSPWarning RockchipGKI
dmesg | grep -q pvtm-volt-sel && PrintBSPWarning RockchipGKI
;;
*RK3566*|*RK3568*)
# With RK3566/RK3568 same problem: how to differentiate between latest
# RK BSP based on 5.10.66/5.10.110 and former mainlining efforts? Check
# dmesg output for PVTM for example
grep -q 'cpu cpu0: pvtm' <<<"${DMESG}" && PrintBSPWarning RockchipGKI
dmesg | grep -q 'cpu cpu0: pvtm' && PrintBSPWarning RockchipGKI
;;
esac
;;
Expand Down

0 comments on commit 0fd4428

Please sign in to comment.