non-casuality on Alpha

By: Linus Torvalds (torvalds.delete@this.linux-foundation.org),
Room: Moderated Discussions
Michael S (already5chosen.delete@this.yahoo.com) on September 16, 2015 6:39 am wrote:
>
> I wonder, did you see non-casuality on Alpha by yourself or just in the manual?

I never saw it myself, and I don't think any of the models I ever had access to actually did it. Which actually made the (slow) RMB instruction extra annoying, because it was just pure downside.

Even on CPU's that actually could re-order the loads, it was apparently basically impossible to hit in practice. Which is actually pretty nasty. It result in "oops, I forgot a barrier, but everything worked fine for a decade, with three odd reports of 'that can't happen' bugs from the field" kinds of things. Figuring out what's going on is just painful as hell.

> Which models actually had it? And how exactly they got here?

I think it was the 21264, and I have this dim memory of it being due to a partitioned cache: even if the originating CPU did two writes in order (with a wmb in between), the reading CPU might end up having the first write delayed (because the cache partition that it went into was busy with other updates), and would read the second write first. If that second write was the address to the first one, it could then follow that pointer, and without a read barrier to synchronize the cache partitions, it could see the old stale value.

But note the "dim memory". I may have confused it with something else. I haven't actually used an alpha in closer to two decades by now. You can get very similar effects from value prediction, but I don't think any alpha microarchitecture ever did that.

Anyway, there definitely were versions of the alpha that could do this, and it wasn't just purely theoretical.

Linus
< Previous Post in ThreadNext Post in Thread >
Thread (193 posts)
TopicPosted ByPosted
Weakly ordered WC stores in HaswellGabriele Svelto
  Weakly ordered WC stores in Haswelldmcq
    Weakly ordered WC stores in HaswellJonah L
      Forum bug: the "Preview" button posts (NT)Jonah L
        Can you describe the bug more fully?David Kanter
          Can you describe the bug more fully?Johah L
            Can you describe the bug more fully?David Kanter
              Can you describe the bug more fully?Johah L
      Weakly ordered WC stores in Haswelldmcq
        Weakly ordered WC stores in HaswellRicardo B
          Weakly ordered WC stores in Haswelldmcq
            Weakly ordered WC stores in HaswellRicardo B
              Weakly ordered WC stores in Haswelldmcq
                Weakly ordered WC stores in HaswellRicardo B
                  Weakly ordered WC stores in Haswellnksingh
                    Weakly ordered WC stores in HaswellRicardo B
                      Weakly ordered WC stores in Haswelldmcq
                        Weakly ordered WC stores in HaswellWilco
                          Weakly ordered WC stores in HaswellRicardo B
                            Weakly ordered WC stores in HaswellWilco
                              Weakly ordered WC stores in HaswellRicardo B
                          Weakly ordered WC stores in Haswelldmcq
                            Weakly ordered WC stores in HaswellWilco
                            Weakly ordered WC stores in HaswellLinus Torvalds
                              Weakly ordered WC stores in HaswellLinus Torvalds
                              Weakly ordered WC stores in Haswelldmcq
                                Weakly ordered WC stores in HaswellLinus Torvalds
                                  Weakly ordered WC stores in Haswelldmcq
                                  Weakly ordered WC stores in HaswellRicardo B
                                    Weakly ordered WC stores in HaswellLinus Torvalds
                                      Weakly ordered WC stores in HaswellRicardo B
                                        Weakly ordered WC stores in HaswellLinus Torvalds
                                      non-casuality on AlphaMichael S
                                        non-casuality on AlphaLinus Torvalds
                                Weakly ordered WC stores in HaswellMartin Kristiansen
                                  Weakly ordered WC stores in HaswellRicardo B
                              Weakly ordered WC stores in HaswellEconMan
                                Weakly ordered WC stores in HaswellDavid Kanter
                                  L0 register file ideaEconMan
                                    Units of pWatts make no senseJonah L
                                      Units of pWatts make no senseEconMan
                                    L0 register file ideaDavid Kanter
                                      L0 register file ideaEconMan
                                        L0 register file ideaDavid Kanter
                                          L0 register file ideaEconMan
                                            L0 register file ideaDavid Kanter
                                              L0 register file ideaEconMan
                                        L0 register file ideaWilco
                                          L0 register file ideaMegol
                                            L0 register file ideaWilco
                                              L0 register file ideaEconMan
                                                L0 register file ideaWilco
                                                  L0 register file ideaEconMan
                                                    L0 register file ideaWilco
                                                      L0 register file ideaEconMan
                                                        L0 register file ideaNoSpammer
                                                          L0 register file ideaEconMan
                                                            L0 register file ideaKlimax
                                                              L0 register file ideaEconMan
                                                                L0 register file ideaKlimax
                                                                  Microsoft would never make your PC slower over timeEconMan
                                                                    tip:Grow up, shut up (NT)Megol
                                Weakly ordered WC stores in HaswellLinus Torvalds
                                  Weakly ordered WC stores in HaswellEconMan
                                    Weakly ordered WC stores in HaswellLinus Torvalds
                                      Weakly ordered WC stores in Haswelldmcq
                                        Weakly ordered WC stores in Haswelldmcq
                                          Weakly ordered WC stores in HaswellRicardo B
                                            Weakly ordered WC stores in Haswelldmcq
                                        Weakly ordered WC stores in HaswellLinus Torvalds
                                          Weakly ordered WC stores in Haswelldmcq
                                Weakly ordered WC stores in HaswellStubabe
                            Weakly ordered WC stores in HaswellSimon Farnsworth
                              Weakly ordered WC stores in HaswellRicardo B
                                Weakly ordered WC stores in Haswelldmcq
                                  Weakly ordered WC stores in HaswellRicardo B
                                    Weakly ordered WC stores in Haswellanon
                                      Weakly ordered WC stores in HaswellRicardo B
                                        Weakly ordered WC stores in Haswellanon
                                          Weakly ordered WC stores in HaswellJukka Larja
                                            Weakly ordered WC stores in HaswellGabriele Svelto
                                              ReferenceGabriele Svelto
                                                ReferenceJukka Larja
                                                  Wii U. I supose (NT)Michael S
                                                Referencedmcq
                                                  ReferenceMichael S
                                                    ReferenceGabriele Svelto
                                                  ReferenceGabriele Svelto
                                                    Referencedmcq
                                                      ReferenceGabriele Svelto
                                                        Referencedmcq
                                                ReferenceKonrad Schwarz
                                              Weakly ordered WC stores in Haswellanon
                                                Weakly ordered WC stores in HaswellGabriele Svelto
                                                  Weakly ordered WC stores in Haswelldmcq
                                                  Weakly ordered WC stores in Haswellanon
                                                    Weakly ordered WC stores in HaswellGabriele Svelto
                                                      Weakly ordered WC stores in Haswellanon
                                                        Weakly ordered WC stores in HaswellGabriele Svelto
                                                          Weakly ordered WC stores in Haswellanon
                                            Weakly ordered WC stores in Haswellanon
                                              Weakly ordered WC stores in HaswellJukka Larja
                                                Weakly ordered WC stores in Haswellanon
                                                  Weakly ordered WC stores in Haswelliz
                                                  Weakly ordered WC stores in HaswellMichael S
                                                    Weakly ordered WC stores in Haswellanon
                                                Weakly ordered WC stores in HaswellGabriele Svelto
                                              Weakly ordered WC stores in HaswellRicardo B
                                                Weakly ordered WC stores in Haswellanon
                                                  Weakly ordered WC stores in HaswellRicardo B
                                                    Weakly ordered WC stores in Haswellanon
                                                      Weakly ordered WC stores in HaswellMichael S
                                                        Weakly ordered WC stores in Haswellanon
                                                          Weakly ordered WC stores in HaswellMichael S
                                                            Weakly ordered WC stores in Haswellanon
                                                            Weakly ordered WC stores in HaswellMaynard Handley
                                                          Weakly ordered WC stores in Haswelldmcq
                                                            Weakly ordered WC stores in HaswellMaynard Handley
                                                Weakly ordered WC stores in Haswelldmcq
                                                  Weakly ordered WC stores in HaswellRicardo B
                                                    Weakly ordered WC stores in Haswelldmcq
                                                      Weakly ordered WC stores in HaswellRicardo B
                                                        Weakly ordered WC stores in Haswelldmcq
                                                          Weakly ordered WC stores in HaswellRicardo B
                                                            Weakly ordered WC stores in Haswelldmcq
                                                              Weakly ordered WC stores in HaswellRicardo B
                                                                Weakly ordered WC stores in Haswelldmcq
                                                                  Weakly ordered WC stores in HaswellRicardo B
                                                                    Weakly ordered WC stores in Haswelldmcq
                                                                      Weakly ordered WC stores in HaswellRicardo B
                                                                Weakly ordered WC stores in HaswellMaynard Handley
                                                                  Weakly ordered WC stores in HaswellRicardo B
                                                                    Weakly ordered WC stores in Haswelldmcq
                                                                      Weakly ordered WC stores in HaswellRicardo B
                                                                        Weakly ordered WC stores in HaswellWilco
                                                                          Weakly ordered WC stores in HaswellRicardo B
                                                                            Weakly ordered WC stores in HaswellMaynard Handley
                                                                              Weakly ordered WC stores in Haswelldmcq
                                                                              Weakly ordered WC stores in HaswellRicardo B
                                                                              Weakly ordered WC stores in HaswellRobin Morisset
                                                                                Weakly ordered WC stores in HaswellMaynard Handley
                                                                                Weakly ordered WC stores in HaswellGabriele Svelto
                                                              Weakly ordered WC stores in HaswellMichael S
                                                                Weakly ordered WC stores in Haswelldmcq
                                                                  Weakly ordered WC stores in HaswellJukka Larja
                                                                    Weakly ordered WC stores in Haswelldmcq
                                                                      Weakly ordered WC stores in Haswelleli
                                                                    Weakly ordered WC stores in HaswellEugene Nalimov
                                                                      Weakly ordered WC stores in Haswelldmcq
                                                                        Weakly ordered WC stores in HaswellLinus Torvalds
                                                                          Weakly ordered WC stores in HaswellMichael S
                                                                            Weakly ordered WC stores in Haswelldmcq
                                                                              Weakly ordered WC stores in Haswelldmcq
                                                                            Weakly ordered WC stores in HaswellLinus Torvalds
                                                                              Weakly ordered WC stores in HaswellLinus Torvalds
                                                                                Weakly ordered WC stores in Haswelldmcq
                                                                                  Weakly ordered WC stores in HaswellLinus Torvalds
                                                                                    Weakly ordered WC stores in Haswelldmcq
                                                                                      Weakly ordered WC stores in HaswellLinus Torvalds
                                                                              Weakly ordered WC stores in HaswellMichael S
                                                                                Weakly ordered WC stores in Haswellnone
                                                                                  Weakly ordered WC stores in Haswellgallier2
                                                                              Weakly ordered WC stores in Haswelldmcq
                                                                                Weakly ordered WC stores in HaswellLinus Torvalds
                                                                      Weakly ordered WC stores in HaswellMichael S
                                                                        Weakly ordered WC stores in HaswellEugene Nalimov
                                                                          Weakly ordered WC stores in HaswellMichael S
                                                  Weakly ordered WC stores in HaswellLinus Torvalds
                                                    Weakly ordered WC stores in Haswelldmcq
                                                      Weakly ordered WC stores in HaswellLinus Torvalds
                                                        Weakly ordered WC stores in Haswelldmcq
                                                          Weakly ordered WC stores in HaswellLinus Torvalds
                                                            Weakly ordered WC stores in Haswelldmcq
                                    Weakly ordered WC stores in HaswellRicardo B
                                      Weakly ordered WC stores in Haswelldmcq
                                        Weakly ordered WC stores in Haswelldmcq
                                          Weakly ordered WC stores in Haswelldmcq
                                            converter Michael S
                                              converter dmcq
                                        Weakly ordered WC stores in HaswellKonrad Schwarz
                                          Weakly ordered WC stores in Haswelldmcq
                          Weakly ordered WC stores in HaswellKonrad Schwarz
      Weakly ordered WC stores in HaswellRicardo B
  Weakly ordered WC stores in HaswellRicardo B
  Weakly ordered WC stores in HaswellLinus Torvalds
    Oh well, screwed up the block quote (NT)Linus Torvalds
    Weakly ordered WC stores in HaswellDavid Kanter
      Weakly ordered WC stores in HaswellRicardo B
      Weakly ordered WC stores in HaswellStubabe
        Weakly ordered WC stores in HaswellGabriele Svelto
    Weakly ordered WC stores in HaswellGabriele Svelto
    Weakly ordered WC stores in HaswellGabriele Svelto
  Weakly ordered WC stores in HaswellTravis Downs