龙芯 CPU 的原子加指令偶尔会丢失

来自泰坦棋手
https://jia.je/hardware/2026/09/24/loongson-cpu-erratum/#%E7%AC%AC%E4%B8%80%E8%BD%AE%E6%8E%92%E6%9F%A5
本文来源:https://www.solidot.org/story?sid=85484
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。
Loongson CPU's atomic add instruction occasionally loses updates

In February this year, the maintainer of loong13, the LoongArch port of Debian 13, discovered during compilation and packaging that normaliz's built-in test would enter an infinite loop, causing packaging timeouts. The initial investigation found that the atomic add instruction would lose updates under certain circumstances, but the cause was unknown. In August this year, with the assistance of AI, developers revisited the problem of lost atomic adds in normaliz. They had the AI find a minimal reproduction while they directed the AI's investigation direction. After about two days, a stable reproduction program was found, and only then was the root cause discovered: the CPU's atomic add instruction is occasionally not atomic. The developers reported the problem to Loongson, and two weeks later Loongson provided a fixed test firmware, confirming the issue was resolved. Loongson stated it would release the firmware before National Day (October 1). This issue mainly affects the 3C6000/S and 3A6000, which use the LA664 core. https://jia.je/hardware/2026/09/24/loongson-cpu-erratum/#%E7%AC%AC%E4%B8%80%E8%BD%AE%E6%8E%92%E6%9F%A5
Reply
