‹ 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. aleph_minus_one · · focus · HN ↗
      > Presumably this is a so-called “chicken bit”.

      For those who are out of the loop:

      &gt; <a href="https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;744840&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;744840&#x2F;

      See also

      &gt; <a href="https:&#x2F;&#x2F;en.wiktionary.org&#x2F;wiki&#x2F;chicken_bit" rel="nofollow">https:&#x2F;&#x2F;en.wiktionary.org&#x2F;wiki&#x2F;chicken_bit

      (click on &quot;quotations&quot;) for a list of scientific texts in which this term occurs.

      1. oynqr · · focus · HN ↗
        more like out of the coop
      2. jacquesm · · focus · HN ↗
        Famously, the first GPS satellites had one of these, in case Einstein was wrong...

        <a href="https:&#x2F;&#x2F;www.quora.com&#x2F;Why-did-the-GPS-system-initially-resist-using-General-relativity-corrections-and-what-changed-after-they-were-applied#AZtGs" rel="nofollow">https:&#x2F;&#x2F;www.quora.com&#x2F;Why-did-the-GPS-system-initially-resis...

        He wasn&#x27;t.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.