Skip to content
0
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Sketchy)
  • No Skin
Collapse

Wandering Adventure Party

  1. Home
  2. Uncategorized
  3. In the early days of personal computing CPU bugs were so rare as to be newsworthy.

In the early days of personal computing CPU bugs were so rare as to be newsworthy.

Scheduled Pinned Locked Moved Uncategorized
78 Posts 29 Posters 119 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Gabriele SveltoG Gabriele Svelto

    In the early days of personal computing CPU bugs were so rare as to be newsworthy. The infamous Pentium FDIV bug is remembered by many, and even earlier CPUs had their own issues (the 6502 comes to mind). Nowadays they've become so common that I encounter them routinely while triaging crash reports sent from Firefox users. Given the nature of CPUs you might wonder how these bugs arise, how they manifest and what can and can't be done about them. 🧵 1/31

    N This user is from outside of this forum
    N This user is from outside of this forum
    Neil Moffatt
    wrote on last edited by
    #64

    @gabrielesvelto The book 'Silicon' by the Italian who designed the 4004, 8080 and Z80 is a most splendid read. Fascinating that he had to add reverse engineering optical confusions to minimise cloning by rivals.

    1 Reply Last reply
    0
    • Alex@rtnVFRmedia Suffolk UKV Alex@rtnVFRmedia Suffolk UK

      @perpetuum_mobile @gabrielesvelto I used to even code in assembler on 8 bit platforms, for years I could not quite get my head round how modern CPUs worked until this thread (and now I know a bit more)

      Perpetuum MobileP This user is from outside of this forum
      Perpetuum MobileP This user is from outside of this forum
      Perpetuum Mobile
      wrote on last edited by
      #65

      @vfrmedia @gabrielesvelto I did code a little bit in x86 asm when I was a teen. It was the only way to turn on SVGA modes in Turbo Pascal and I wanted to make games back then 😉 I did a program which simulated a flame in real time, doing per pixel average of surrounding pixels and adding random 255 sparks on the bottom to make the flame move and look real

      1 Reply Last reply
      0
      • x0X x0

        @gabrielesvelto I wonder if they could use said statistical toys as part of a large-scale fuzzing process to detect such bugs?

        Gabriele SveltoG This user is from outside of this forum
        Gabriele SveltoG This user is from outside of this forum
        Gabriele Svelto
        wrote on last edited by
        #66

        @x0 hardware design already involves various forms of fuzzing, but the amount of state involved is so large that no amount of testing can be truly exhaustive

        x0X 1 Reply Last reply
        0
        • Gabriele SveltoG Gabriele Svelto

          @x0 hardware design already involves various forms of fuzzing, but the amount of state involved is so large that no amount of testing can be truly exhaustive

          x0X This user is from outside of this forum
          x0X This user is from outside of this forum
          x0
          wrote on last edited by
          #67

          @gabrielesvelto Makes sense. Especially when something like voltage/temperature fluctuations are involved.

          1 Reply Last reply
          0
          • Grumble 🇺🇸 🇺🇦 🇬🇱G Grumble 🇺🇸 🇺🇦 🇬🇱

            @gabrielesvelto I went to a lecture in the early 1990's by Tim Leonard, the formal methods guy at DEC. His story was that DEC had as-built simulators for every CPU they designed, and they had correct-per-the-spec simulators for these CPUs.

            At night, after the engineers went home, their workstations would fire up tools that generated random sequences of instructions, throw those sequences at both simulators, and compare the results. This took *lots *of machines, but, as Tim joked, Equipment was DEC's middle name.

            And they'd find bugs - typically with longer sequences, and with weird corner cases of exceptions and interrupts - but real bugs in real products they'd already shipped.

            But here was the banger: sure, they'd fix those bugs. But there were still more bugs to find, and it took longer and longer to find them.

            Leonard's empirical conclusion is that there is no "last bug" to be found and fixed in real hardware. There's always one more bug out there, and it'll take you longer and longer (and cost more and more) to find it.

            Mike SpoonerS This user is from outside of this forum
            Mike SpoonerS This user is from outside of this forum
            Mike Spooner
            wrote on last edited by
            #68

            @grumble209 @gabrielesvelto I rember that the UltraSPARC-II (Blackbird) CPU, over it's lifetime (and to date, to boot) only had a single errata, and that was an extremely unlikely timing issue, not a logic bug. Unfortunately, that overall goodness was offset by the widespread off-chip L2 cache issue circa y2k.

            1 Reply Last reply
            0
            • Gabriele SveltoG Gabriele Svelto

              @gsuberland thanks, I was playing a bit fast and loose with the terminology. As I was writing these toots I reminded myself that entire books have been written just to model transistor behavior and propagation delay, and my very crude wording would probably give their authors a heart attack.

              Graham Sutherland / PolynomialG This user is from outside of this forum
              Graham Sutherland / PolynomialG This user is from outside of this forum
              Graham Sutherland / Polynomial
              wrote on last edited by
              #69

              @gabrielesvelto haha for sure 😄

              Graham Sutherland / PolynomialG 1 Reply Last reply
              0
              • Graham Sutherland / PolynomialG Graham Sutherland / Polynomial

                @gabrielesvelto haha for sure 😄

                Graham Sutherland / PolynomialG This user is from outside of this forum
                Graham Sutherland / PolynomialG This user is from outside of this forum
                Graham Sutherland / Polynomial
                wrote on last edited by
                #70

                @gabrielesvelto I actually keep meaning to find a decent reference text on FET construction and modelling. I've got plenty on SI/EMI, power delivery, etc. but everything I've found for FETs has been the sort of thing that presumes you're either someone with a deep background in semiconductor physics or a professional semiconductor/ASIC engineer just looking for a reference text. very little out there for EE folks who are coming at it from the practical side.

                Craig BishopC 1 Reply Last reply
                0
                • A Flock of BeaglesB A Flock of Beagles

                  @gabrielesvelto there was also no meaningful computer security nor much need for it in the days of 6502. it's much different when most computers are now connected to the internet and can be infected with malware within seconds of connecting.

                  Mike SpoonerS This user is from outside of this forum
                  Mike SpoonerS This user is from outside of this forum
                  Mike Spooner
                  wrote on last edited by
                  #71

                  @burnitdown @gabrielesvelto in the 70's, most issues were largely logic bugs, nowadays there are a larger proportion of timing/analogue issues.

                  1 Reply Last reply
                  0
                  • Gabriele SveltoG Gabriele Svelto

                    @mdione yes, it's very complex, but motherboard firmware has a mechanism to load the new microcode right as the CPU is bootstrapped. That is even before the CPU is capable of accessing DRAM. All the rest of the UEFI machinery runs after that. Note that this early bootstrap mechanisms usually involves a separate bootstrap CPU, usually an embedded microcontroller whose task is to get the main x86 core up and running.

                    Marcos DioneM This user is from outside of this forum
                    Marcos DioneM This user is from outside of this forum
                    Marcos Dione
                    wrote on last edited by
                    #72

                    @gabrielesvelto wow, and where does it get the microcode from? Another computer within the computer? (turtles and all that 🙂

                    Rick AltherrM 1 Reply Last reply
                    0
                    • Gabriele SveltoG Gabriele Svelto

                      In the early days of personal computing CPU bugs were so rare as to be newsworthy. The infamous Pentium FDIV bug is remembered by many, and even earlier CPUs had their own issues (the 6502 comes to mind). Nowadays they've become so common that I encounter them routinely while triaging crash reports sent from Firefox users. Given the nature of CPUs you might wonder how these bugs arise, how they manifest and what can and can't be done about them. 🧵 1/31

                      BrokarB This user is from outside of this forum
                      BrokarB This user is from outside of this forum
                      Brokar
                      wrote on last edited by
                      #73

                      @gabrielesvelto I was just thinking about those bugs and something crept up my neck when i thought "now add hallucinating AIs to all that". Pretty sure they're already used in CPU development to deal with the increasing complexity.
                      So the problem will become much worse than it already is.

                      👌 for the article. Loved it.

                      1 Reply Last reply
                      0
                      • Graham Sutherland / PolynomialG Graham Sutherland / Polynomial

                        @gabrielesvelto I actually keep meaning to find a decent reference text on FET construction and modelling. I've got plenty on SI/EMI, power delivery, etc. but everything I've found for FETs has been the sort of thing that presumes you're either someone with a deep background in semiconductor physics or a professional semiconductor/ASIC engineer just looking for a reference text. very little out there for EE folks who are coming at it from the practical side.

                        Craig BishopC This user is from outside of this forum
                        Craig BishopC This user is from outside of this forum
                        Craig Bishop
                        wrote on last edited by
                        #74

                        @gsuberland @gabrielesvelto You mean you don’t want my college device physics textbook that starts with solving Schrödinger's equation for a hydrogen atom? They should not have allowed that class at 7am.

                        For the practical side, I really like Jacob Baker’s books.

                        1 Reply Last reply
                        0
                        • Gabriele SveltoG Gabriele Svelto

                          In the early days of personal computing CPU bugs were so rare as to be newsworthy. The infamous Pentium FDIV bug is remembered by many, and even earlier CPUs had their own issues (the 6502 comes to mind). Nowadays they've become so common that I encounter them routinely while triaging crash reports sent from Firefox users. Given the nature of CPUs you might wonder how these bugs arise, how they manifest and what can and can't be done about them. 🧵 1/31

                          Marty FoutsM This user is from outside of this forum
                          Marty FoutsM This user is from outside of this forum
                          Marty Fouts
                          wrote on last edited by
                          #75

                          @gabrielesvelto As someone involved in CPU design in those days I would frame it slightly differently. The bugs were there but we did a better job of providing work arounds, usually through compiler changes to avoid code sequences that would trigger the bug. The FDIV bug was memorable because of how many Pentium chips were in customer hands before it was discovered.

                          1 Reply Last reply
                          0
                          • Marcos DioneM Marcos Dione

                            @gabrielesvelto wow, and where does it get the microcode from? Another computer within the computer? (turtles and all that 🙂

                            Rick AltherrM This user is from outside of this forum
                            Rick AltherrM This user is from outside of this forum
                            Rick Altherr
                            wrote on last edited by
                            #76

                            @mdione @gabrielesvelto in the same flash that contains UEFI. There's a set of headers that describe what is in the flash. That typically includes microcode for the chip generations supported by the motherboard. For example, a board that supports Zen2 and Zen3 will have two microcodes in the flash and the one that matches the CPU installed will be used

                            1 Reply Last reply
                            0
                            • Gabriele SveltoG Gabriele Svelto

                              In the early days of personal computing CPU bugs were so rare as to be newsworthy. The infamous Pentium FDIV bug is remembered by many, and even earlier CPUs had their own issues (the 6502 comes to mind). Nowadays they've become so common that I encounter them routinely while triaging crash reports sent from Firefox users. Given the nature of CPUs you might wonder how these bugs arise, how they manifest and what can and can't be done about them. 🧵 1/31

                              ÖlbaumO This user is from outside of this forum
                              ÖlbaumO This user is from outside of this forum
                              Ölbaum
                              wrote on last edited by
                              #77

                              @gabrielesvelto @eniko I shouldn’t have read that while sick. Now every time I’m between sleep and wake, I have one of these feverish hallucinations that I’m a little worker inside a CPU core, waiting for a branch prediction to resolve, my hand on the button that dumps everything that was wrongly preloaded.

                              That’s a very boring job.

                              1 Reply Last reply
                              0
                              • Gabriele SveltoG Gabriele Svelto

                                In the early days of personal computing CPU bugs were so rare as to be newsworthy. The infamous Pentium FDIV bug is remembered by many, and even earlier CPUs had their own issues (the 6502 comes to mind). Nowadays they've become so common that I encounter them routinely while triaging crash reports sent from Firefox users. Given the nature of CPUs you might wonder how these bugs arise, how they manifest and what can and can't be done about them. 🧵 1/31

                                The TurtleT This user is from outside of this forum
                                The TurtleT This user is from outside of this forum
                                The Turtle
                                wrote on last edited by
                                #78

                                @gabrielesvelto #getafuckingblog

                                1 Reply Last reply
                                0
                                • Jürgen HubertJ Jürgen Hubert shared this topic on
                                  Pteryx the Puzzle SecretaryP Pteryx the Puzzle Secretary shared this topic on

                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Login or register to search.
                                Powered by NodeBB Contributors
                                • First post
                                  Last post