龙芯 CPU 的原子加指令偶尔会丢失Loongson CPU's atomic add instruction occasionally gets lost


AI free token/AI免费积分

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

Bug
Edwards (42866)发表于 2026年09月27日 17时57分 星期日 龙芯 CPU 的原子加指令偶尔会丢失
来自泰坦棋手
今年 2 月 Debian 13 的龙芯架构移植版 loong13 的维护者在编译打包过程中发现,normaliz 的自带测试会死循环导致打包超时。第一次排查发现原子加指令会在特定情况下丢失更新,但原因未知。今年 8 月,开发者在 AI 的协助下重新寻找 normaliz 中原子加丢失的难题。他们让 AI 去找最小复现,在这个过程中负责指挥 AI 调查的方向。大概两天后找到了一个稳定的复现程序,才发现事情的根源是:CPU 的原子加法指令,偶尔会不原子。开发者向龙芯报告了难题,两周后龙芯给出了修复的测试固件,确认难题应对。龙芯表示会在国庆节(10 月 1 日)之前发布固件。该难题主要影响使用 LA664 核心的 3C6000/S 和 3A6000。
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

Bug

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

Loongson CPU's atomic add instruction occasionally gets lost

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry