‹ BackHN Continuity

Thread

The Lost Atomic Update on Loongson CPU

131 points · 7 comments · jiegec

  1. TazeTSchnitzel · · focus · HN ↗
    > The fix is to set bit 13 of MCSR24 to 1. MCSR24 is an internal CSR whose function is not described in the manual. After setting this bit, the lost update no longer occurs. Testing showed the performance loss is very small: single-core performance is unaffected, and multi-core performance drops only slightly.

    Presumably this is a so-called “chicken bit”.

    1. [deleted] · · focus · HN ↗

      [deleted]

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.