Replace every em dash with real punctuation (rewrites, not hyphen swaps) in docs, code comments, scripts, configs, and the port records; convert en dashes, curly quotes, ellipsis glyphs, arrows, and section signs to ASCII; drop machine-writing tell phrases from living docs. ADR titles now use a colon. The M2 bring-up DTS model string carried an em dash into the patch series and its record echoes; fixed at both, and the full series re-verified to apply cleanly onto pristine 6.18.46. One comment in freshness.h deliberately names the em dash glyph the UI renders as the unknown mark; that is data, kept as prose naming it. Verified: cargo tests (sim, config-lint, rs485-bridge), shellcheck, both driver MC/DC harnesses, patches-apply.
2.2 KiB
arch-timer / vDSO clock fix: plan (issue #3)
Status: DIAGNOSED off-board, fix gated on two bench measurements.
Established (2026-08-30, qemu/ device sim)
The same kernel family under qemu-system-arm -M virt gives musl
CLOCK_MONOTONIC/_RAW rate ratio 0.99963 vs /proc/uptime (interval
measurement, qemu/tests/clockprobe). The generic 6.18 armv7 vDSO is
therefore CORRECT; the board symptom (musl reads ~12% high, kernel time
right) is RV1106-specific. The boot chain runs in the secure world and is
closed rkbin: the NS view of the CPU timer registers (CNTFRQ, CNTVOFF) is
whatever it left behind, and only the arch-counter path (vDSO,
arch_sys_counter) trusts them.
What the bench must answer (single boot of the _b slot)
Run clockprobe (interval mode) on the 6.18 slot:
ratio_monofar from 1.0 -> RATE error: CNTFRQ wrong. The true rate = claimed rate (dmesgarch_timer: cp15 timer running at X MHz) times the measured ratio.ratio_mono~= 1.0 butabs_ratiofar from 1.0 -> OFFSET error: CNTVOFF left nonzero; rate fine.
(The original issue measured only one absolute sample, which cannot distinguish these.)
The fix (both cases, one DT override)
Append to the BOARD dts (rv1106-warden.dts, never the vendor dtsi) an
override on the armv7-timer node:
arm,cpu-registers-not-fw-configured;
clock-frequency = <MEASURED_HZ>;
The property makes the driver use the physical counter, ignore CNTVOFF, and
take the frequency from DT: the documented remedy for firmware that does
not configure the CPU timer registers. MEASURED_HZ comes from bench
answer 1 (do NOT guess; a wrong value makes every clock wrong instead of
one path). Ship as an update to the arch/dts patch in patches/.
Regression guards
- Off-board:
qemu/tests/clock-sanity.shasserts the vDSO rate in the VM (guards the generic path; cannot see board registers). - On-board: re-run
clockprobeon the patched_bslot; both ratios and the absolute ratio must be ~1.0. Record the numbers here and in issue #3.
Bench access note
2026-08-30: c8a3 is physically dark (CP2102 console silent through two remote power cycles; both network paths down), needs hands at the bench before the measurements can run.