Upstream: mc_smp cpu_table fix (sunxi) #27

Open
opened 2026-08-27 23:36:38 +00:00 by tiagoagueda · 1 comment
Owner

A single-patch series, and the best first submission this project has.

sunxi_cluster_powerup() can fail, but cpu_table is incremented regardless. That is a bug in
mainline affecting every sun9i board, not just this one — which makes it reviewable purely
on its own merits, with no dependency on the rest of this work.

ret = sunxi_cluster_powerup(cluster);
if (ret) { spin_unlock_irq(&boot_lock); return ret; }  /* do not ++cpu_table on failure */
  • Tree: sunxi (arch/arm/mach-sunxi/mc_smp.c)
  • Lists: linux-arm-kernel, linux-sunxi
  • Depends on: issue #4 (tree must be committed first)

⚠️ Nothing has been submitted. See 42-upstreaming.md for routing,
order, mechanics, and the DCO / AI-assistance caveats. Patches are exported to patches/,
which is not the same as proposing them.

A single-patch series, and the best first submission this project has. `sunxi_cluster_powerup()` can fail, but `cpu_table` is incremented regardless. That is a bug in mainline affecting **every sun9i board**, not just this one — which makes it reviewable purely on its own merits, with no dependency on the rest of this work. ```c ret = sunxi_cluster_powerup(cluster); if (ret) { spin_unlock_irq(&boot_lock); return ret; } /* do not ++cpu_table on failure */ ``` - Tree: sunxi (`arch/arm/mach-sunxi/mc_smp.c`) - Lists: linux-arm-kernel, linux-sunxi - Depends on: issue #4 (tree must be committed first) --- ⚠️ **Nothing has been submitted.** See [42-upstreaming.md](42-upstreaming.md) for routing, order, mechanics, and the DCO / AI-assistance caveats. Patches are exported to `patches/`, which is not the same as proposing them.
Author
Owner

Still fine to send - but do not bundle it, 2026-08-28.

patches/linux-mc-smp-a15/ holds two patches: this cpu_table fix and the A15 clamp/stepping
change. The second one must not go upstream yet - the cluster it enables corrupts memory
under load, see #53.

This issue is unaffected. The cpu_table fix is an independent mainline bug on every sun9i
board, reviewable on its own merits, and nothing about #53 touches it. That independence is
what makes it the best first submission, so it is worth keeping the two apart rather than
letting one hold up the other.

**Still fine to send - but do not bundle it, 2026-08-28.** `patches/linux-mc-smp-a15/` holds two patches: this `cpu_table` fix and the A15 clamp/stepping change. **The second one must not go upstream yet** - the cluster it enables corrupts memory under load, see #53. This issue is unaffected. The `cpu_table` fix is an independent mainline bug on every sun9i board, reviewable on its own merits, and nothing about #53 touches it. That independence is what makes it the best first submission, so it is worth keeping the two apart rather than letting one hold up the other.
Sign in to join this conversation.
No description provided.