Files
BFE EngineeringandClaude Opus 5.5 b4596ed737
ci / test (push) Successful in 31s
ci / bench (push) Successful in 14s
ci / mcdc (push) Successful in 26s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / quality (push) Successful in 1m18s
ci / badges (push) Skipped
ci / bench (pull_request) Successful in 10s
ci / patches-apply (push) Successful in 52s
ci / qemu-tools (push) Successful in 3m26s
ci / kernel-symbols (push) Successful in 5m12s
ci / test (pull_request) Successful in 8s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / badges (pull_request) Skipped
ci / qemu-tools (pull_request) Successful in 2m59s
ci / mcdc (pull_request) Successful in 19s
ci / patches-apply (pull_request) Successful in 52s
ci / quality (pull_request) Successful in 1m15s
ci / kernel-symbols (pull_request) Successful in 6m57s
kernel: keep the arm32 vDSO clock off the virtual counter (#35)
On the RV1106 the boot firmware does not enter the kernel in HYP mode and
leaves CNTVOFF non-zero. The DT timer node lists no virtual-timer PPI, so
the kernel keeps time on the physical counter, while the arm32 vDSO always
reads the virtual one: on bench a clock_gettime() ran 738.9 s ahead of the
kernel clock (pure offset, -0.1 ppm over 30 s) and every absolute deadline
taken from it expired minutes late (flare-edge#2319, the #2311 reset loop).

New patch 82-arch-timer-vdso-phys-counter.patch:
- rv1106.dtsi and rv1106-warden-m2.dts: the timer node carries
  arm,cpu-registers-not-fw-configured. The kernel keeps the physical
  timer it uses today, and arch/arm/kernel/vdso.c drops the vDSO clock
  symbols, so libc goes straight to the syscall.
- arm_arch_timer.c: on arm32, a kernel on the physical counter without
  HYP mode sets the counter's vdso_clock_mode to VDSO_CLOCKMODE_NONE, the
  safety net for a device tree without the property. QEMU -M virt (virtual
  PPI present) is unchanged.

tests/arch-timer/check-vdso-counter.py checks both guards in the patched
tree; CI's patches-apply job runs it and its 12 regression cases.

Fixes #35
Refs flare-edge#2319

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
2026-10-29 03:37:08 -06:00
..

The Kernel Patch Series

The delta that forward-ports the vendor Rockchip 5.10.160 RV1106 support onto a pristine upstream linux-6.18.46, as a reviewable, subsystem-split series. The series applies cleanly, in order, onto pristine 6.18.46 (git apply --check; a fix patch such as 82 edits files that an earlier patch adds), and the whole set reproduces the 223-file / ~136K-line delta that boots and is hardware-verified on warden-c8a3 (see ../kernel/rv1106-enablement/).

Build it with ../build/build-kernel.sh (fetch pristine -> apply these -> configure with ../build/warden_defconfig -> zImage + rv1106-warden.dtb).

The Series

Patch Scope
05-build-wiring.patch top-level drivers/{Kconfig,Makefile} (wire in rknpu)
10-clk-rv1106.patch CRU clock driver (clk-rv1106.c, reuses rv1126 data)
15-pinctrl.patch pinctrl-rockchip RV1106 iomux
20-arch-dts-bindings.patch arch/arm DTs (rv1106.dtsi, rv1106-warden.dts, pinctrl), mach, configs, include/dt-bindings
25-usb-phy.patch inno-usb2 phy
27-usb-phy-tuning.patch inno-usb2 phy: RV1106 signal-quality register tuning
29-usb2phy-no-blind-otg-sm.patch inno-usb2 phy: stop the OTG/charger state machines running blind
30-drm-vop-panel-rgb.patch VOP (rgb_dclk_pol=0 + WIN1 scanout), panel-simple bus-format, rockchip_rgb
35-mailbox-hpmcu.patch rockchip-mailbox (rv1106 num_chans=1)
40-pvtm-soc.patch PVTM (core+pmu) + include/soc/rockchip/pvtm.h
45-npu-rknpu.patch open GPL rknpu 0.9.2 driver + rknpu_ioctl.h uapi
50-rga.patch RGA 2D (rga3) + drivers/video wiring
60-wifi-aic8800.patch out-of-tree AIC8800 wifi/BT (the 88.5K-line vendor blob)
70-audio-codec.patch rv1106_codec + I2S wiring
80-misc-thermal-rtc-adc.patch tsadc, rtc-rockchip, saradc, trng, otp, gmac, goodix touch
82-arch-timer-vdso-phys-counter.patch arch timer: keep the arm32 vDSO clock off the virtual counter while the kernel times on the physical one (CNTVOFF left non-zero by the boot firmware, #35); checked by tests/arch-timer/check-vdso-counter.py
90-kconfig-no-python-symbol.patch drops DRM_MSM_VALIDATE_XML so the expanded .config (and KCONFIG_SHA256) does not depend on the host python (#19)

License

Everything in this directory is a derivative work of the Linux kernel and of GPL-2.0 vendor kernel code: GPL-2.0-only (or the per-file SPDX identifier where one is present), the same license the whole repository carries.

Provenance & regeneration

Baseline: linux-6.18.46 from kernel.org (build/linux-6.18.46.tar.xz.sha256 pins the tarball). The series was generated by overlaying the hardware-verified source tree onto pristine (build artifacts excluded) and splitting git diff by subsystem. Licensing/origin of each block is tracked in ../kernel/rv1106-enablement/PROVENANCE.md.

Whitespace: 60-wifi-aic8800.patch carries the vendor blob's trailing-whitespace verbatim; git apply --whitespace=nowarn (the build wrapper) accepts it. Do not re-flow vendor code; it must stay diffable against future vendor drops.