mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
Measured on the test device: 6 reboots in a row on 6.18.54, each with the hotspot and mobile data up, no oops, no failed unit. (One earlier boot in about fourteen hung after switch_root and left nothing behind; the changes below are what makes the next one leave evidence.) Wi-Fi (sprd_wlan_combo), the 14c race: the tx context was published before it was complete, its readers in the MSI completion handlers loaded the pointer twice, and tx_deinit() freed it before clearing it. It is published with a release store once complete, read once with an acquire load, and on teardown cleared first and freed only after synchronize_rcu() (the handlers run in interrupt context). sc2355_tx_free_pcie_data() had no check at all. Logs: the driver printed per-frame and per-command traces with plain pr_info/pr_warn (a multicast LUT lookup 588 times in two minutes, every command sent as a warning), which pushed a boot's messages out of the 128 KiB ring buffer within a minute - an oops at boot would have been gone before anyone looked. Those are pr_debug now, per-packet errors rate limited: 2165 -> 794 driver lines in the first two minutes, mostly the one-off bring-up. The forced command line has log_buf_len=4M. Evidence of a failed boot: mu300-early-recorder (dmesg and unit states into boot_b's persistent log area for the first five minutes) was never enabled in the Ubuntu image. It is now. systemd's 10 min reboot watchdog was rejected by the UMP9620 PMIC watchdog (max 300 s), so a hang during reboot was not caught: RebootWatchdogSec=2min. Kernel choice: /mnt/mu300-disk/boot/kernel (5.4 or 6.18) decides which bundle mu300-update installs - before, an update of a device on 6.18 wrote the release's 5.4 kernel. "mu300-update kernel 6.18" selects and installs it; rollback-boot restores the choice of the image it brings back. make-release.sh packages upstream/out as mu300-kernel-6.18.tar.gz; the OpenWrt image takes the mainline module directory from the modules' vermagic. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>