mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 04:38:30 +09:00
- format_benchmark printed a p50 taken with the nearest-rank rule beside a medianFrameCpuMs the device computes as the average of the two middle frames, and documented the two as one rule; on an even window they differ (the pre-flight printed p50=8.261ms next to medianCpuMs=271.766). p50 now goes through series_median, which is SummarizeSeries' rule transcribed; p95 and p99 stay nearest rank, which is the device's rule for p95 and the honest extension of it for the p99 the device does not compute at all - require_verified_profile treated a profile that simply omits PROFILE_VERIFIED as verified, which is the fail-open default a profile written by copying another one inherits - exactly the case the guard exists for. It defaults to unverified now, odinlite.env carries PROFILE_VERIFIED=1 explicitly (it is the one profile that earned it), and the refusal says "says 0, or says nothing" - the two new profiles claimed profile.sh refuses an unverified profile; it has no such check and needs none - it records a simpleperf profile and pins nothing. The claim is corrected in both profiles and in the README rather than a guard added where there is nothing to guard - the handle-ABA / CSO control step in test.yml set only MOBILEGL_ITEST_REQUIRE_GPU while its sibling verify step sets the three MOBILEGL_MAGMA_* fixes and arms core dumps. It runs the same DirectVulkan binary on the same runner, so a crash there left no core; it now carries both
36 lines
1.7 KiB
Bash
36 lines
1.7 KiB
Bash
# Device profile: AYN Odin Lite (MT6877 Dimensity 900, Mali-G68 MC4, Android 11)
|
|
# 2x A78 (policy6, max 2400000) + 6x A55 (policy0, max 2000000), GPU top OPP 902MHz.
|
|
# Panel: 1080x1920 @ 60Hz (presented FPS caps at 60 - render-side FPS comes from the
|
|
# FCLFPS logcat tag, which counts eglSwapBuffers; it is NOT vsync-capped when the
|
|
# game runs with vsync off).
|
|
# Read off this device and confirmed against one pinned window (big_cur/little_cur/gpu_cur_khz
|
|
# in the result JSON matched the pins), which is what earns the key. bench.sh / session.sh refuse
|
|
# a profile without it: the default is UNVERIFIED, so a profile written by copying this one starts
|
|
# out refused until somebody repeats that check on the new device.
|
|
PROFILE_VERIFIED=1
|
|
|
|
DEVICE_SERIAL=MTK0002207301023500
|
|
|
|
# Frequency pins, enforced via /proc/ppm/policy/hard_userlimit_* (plain cpufreq
|
|
# sysfs writes are reverted by the vendor game boost within seconds). The stock
|
|
# performance_mode=2 boost pins big=2400000/little=2000000 anyway, so we pin at
|
|
# the same values; bench.sh records live freqs at window end to catch thermal
|
|
# clamping. Fan must be in sport mode (settings put global fan_mode 3) or the
|
|
# SoC runs away past 80C.
|
|
CPU_BIG_POLICY=policy6
|
|
CPU_BIG_FREQ=2400000
|
|
CPU_LITTLE_POLICY=policy0
|
|
CPU_LITTLE_FREQ=2000000
|
|
|
|
# GPU pin via legacy MTK gpufreq: echo <khz> > /proc/gpufreq/gpufreq_opp_freq
|
|
# (0 restores DVFS). Top OPP on this device is 902000.
|
|
GPU_PIN_KHZ=902000
|
|
|
|
# Thermal gate: wait until this zone is at or below the threshold before starting.
|
|
THERMAL_ZONE_TYPE=mtktscpu
|
|
THERMAL_START_MAX_MC=50000
|
|
|
|
# MTK ged GPU utilization node; first field of the triple is busy %.
|
|
GPU_UTIL_NODE=/sys/kernel/ged/hal/gpu_utilization
|
|
GPU_CURFREQ_NODE=/sys/kernel/ged/hal/current_freqency
|