Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #393201 > unrolled thread
| Started by | "Skybuck Flying" <skybuck2000@hotmail.com> |
|---|---|
| First post | 2016-01-11 16:44 +0100 |
| Last post | 2016-01-11 23:46 -0800 |
| Articles | 20 on this page of 64 — 30 participants |
Back to article view | Back to sci.electronics.design
Intel's Skylake Prime Number Bug. "Skybuck Flying" <skybuck2000@hotmail.com> - 2016-01-11 16:44 +0100
Re: Intel's Skylake Prime Number Bug. Larc <larc@notmyaddress.com> - 2016-01-11 11:10 -0500
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-11 10:22 -0800
Re: Intel's Skylake Prime Number Bug. Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-11 13:42 -0500
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-11 11:12 -0800
Re: Intel's Skylake Prime Number Bug. David Brown <david.brown@hesbynett.no> - 2016-01-12 11:06 +0100
Re: Intel's Skylake Prime Number Bug. Richard Heathfield <rjh@cpax.org.uk> - 2016-01-12 10:21 +0000
Re: Intel's Skylake Prime Number Bug. David Brown <david.brown@hesbynett.no> - 2016-01-12 11:42 +0100
t cluttered John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 09:25 -0800
Re: t cluttered David Brown <david.brown@hesbynett.no> - 2016-01-12 22:05 +0100
Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-12 14:03 -0800
Re: t cluttered Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2016-01-12 21:44 -0800
Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-13 15:41 +0800
Re: t cluttered krw <krw@nowhere.com> - 2016-01-13 21:39 -0500
Re: t cluttered Rick Jones <rick.jones2@hpe.com> - 2016-01-12 22:41 +0000
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-12 23:01 +0000
Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-12 16:16 -0800
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-13 10:35 +0000
Re: t cluttered Anonymous <no_email@invalid.invalid> - 2016-01-13 14:36 +0000
Re: t cluttered Robert Wessel <robertwessel2@yahoo.com> - 2016-01-14 02:48 -0600
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-14 10:50 +0000
Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-13 11:54 -0800
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-13 20:41 +0000
Re: t cluttered mrs@kithrup.com (Mike Stump) - 2016-01-18 13:37 +0000
Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-19 00:06 +0800
Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-18 15:27 -0800
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-19 09:43 +0000
Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-19 18:00 +0800
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-19 11:25 +0000
Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-19 19:48 +0700
Re: t cluttered Walter Banks <walter@bytecraft.com> - 2016-01-19 09:54 -0500
Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-19 16:49 +0000
Re: t cluttered krw <krw@nowhere.com> - 2016-01-12 20:53 -0500
Re: t cluttered Dennis <dennis@none.none> - 2016-01-13 14:56 -0600
Re: t cluttered krw <krw@nowhere.com> - 2016-01-13 21:43 -0500
Re: t cluttered upsidedown@downunder.com - 2016-01-13 10:15 +0200
Re: Intel's Skylake Prime Number Bug. JJ <jj4public@vfemail.net> - 2016-01-12 13:11 +0700
Re: Intel's Skylake Prime Number Bug. "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2016-01-12 02:45 -0500
Re: Intel's Skylake Prime Number Bug. Paul <nospam@needed.com> - 2016-01-12 04:38 -0500
Re: Intel's Skylake Prime Number Bug. krw <krw@nowhere.com> - 2016-01-12 12:35 -0500
Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-11 15:37 -0500
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-11 20:35 -0800
Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 02:38 -0500
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 09:27 -0800
Re: Intel's Skylake Prime Number Bug. Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-01-12 09:11 +0000
Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 13:08 +0000
Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 09:45 -0500
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 09:29 -0800
Re: Intel's Skylake Prime Number Bug. Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-01-12 17:55 +0000
Re: Intel's Skylake Prime Number Bug. M Philbrook <jamie_ka1lpa@charter.net> - 2016-01-12 18:25 -0500
Re: Intel's Skylake Prime Number Bug. Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2016-01-13 12:03 -0500
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 16:18 -0800
Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 20:10 -0800
Re: Intel's Skylake Prime Number Bug. Joe Hey <joehey@mailinator.com> - 2016-01-12 08:05 +0000
Re: Intel's Skylake Prime Number Bug. Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-01-11 22:21 +0000
Re: Intel's Skylake Prime Number Bug. krw <krw@nowhere.com> - 2016-01-11 21:38 -0500
Re: Intel's Skylake Prime Number Bug. krw <krw@nowhere.com> - 2016-01-11 21:37 -0500
Re: Intel's Skylake Prime Number Bug. Robert Baer <robertbaer@localnet.com> - 2016-01-12 20:23 -0800
Re: Intel's Skylake Prime Number Bug. John Levine <johnl@iecc.com> - 2016-01-13 05:19 +0000
Re: Intel's Skylake Prime Number Bug. "Skybuck Flying" <skybuck2000@hotmail.com> - 2016-01-11 21:44 +0100
Re: Intel's Skylake Prime Number Bug. Paul <nospam@needed.com> - 2016-01-11 16:55 -0500
Re: Intel's Skylake Prime Number Bug. B00ze <B00ze64@hotmail.com> - 2016-01-11 23:48 -0500
Re: Intel's Skylake Prime Number Bug. "Skybuck Flying" <skybuck2000@hotmail.com> - 2016-01-12 16:35 +0100
Re: Intel's Skylake Prime Number Bug. Keith Thompson <kst-u@mib.org> - 2016-01-11 23:46 -0800
Page 1 of 4 [1] 2 3 4 Next page →
| From | "Skybuck Flying" <skybuck2000@hotmail.com> |
|---|---|
| Date | 2016-01-11 16:44 +0100 |
| Subject | Intel's Skylake Prime Number Bug. |
| Message-ID | <cadfe$5693cdf1$d47876e2$58382@news.ziggo.nl> |
Hello, Apperently Intel's Skylake Processors can freeze up when calculating certain Prime Numbers. I am investigating this story further, for now here is a link about it: https://communities.intel.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F524553 Enjoy ! =D Bye, Skybuck =D
[toc] | [next] | [standalone]
| From | Larc <larc@notmyaddress.com> |
|---|---|
| Date | 2016-01-11 11:10 -0500 |
| Message-ID | <bpk79bto62bga3n1a5ueeq4i11l27dmiqk@4ax.com> |
| In reply to | #393201 |
On Mon, 11 Jan 2016 16:44:49 +0100, "Skybuck Flying" <skybuck2000@hotmail.com> wrote: | Hello, | | Apperently Intel's Skylake Processors can freeze up when calculating certain | Prime Numbers. | | I am investigating this story further, for now here is a link about it: | | https://communities.intel.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F524553 Intel is apparently aware of this and is working with its partners to distribute a fix in form of a BIOS update. http://arstechnica.com/gadgets/2016/01/intel-skylake-bug-causes-pcs-to-freeze-during-complex-workloads/ Larc
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2016-01-11 10:22 -0800 |
| Message-ID | <mms79b914sureqvbe2ph408b4523b01j42@4ax.com> |
| In reply to | #393206 |
On Mon, 11 Jan 2016 11:10:44 -0500, Larc <larc@notmyaddress.com> wrote: >On Mon, 11 Jan 2016 16:44:49 +0100, "Skybuck Flying" <skybuck2000@hotmail.com> wrote: > >| Hello, >| >| Apperently Intel's Skylake Processors can freeze up when calculating certain >| Prime Numbers. >| >| I am investigating this story further, for now here is a link about it: >| >| https://communities.intel.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F524553 > >Intel is apparently aware of this and is working with its partners to distribute a >fix in form of a BIOS update. > >http://arstechnica.com/gadgets/2016/01/intel-skylake-bug-causes-pcs-to-freeze-during-complex-workloads/ > >Larc I wonder how the BIOS can fix an FPU error. Trap exceptions? Change some firmware? -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-01-11 13:42 -0500 |
| Message-ID | <n70suf$vn1$1@jstuckle.eternal-september.org> |
| In reply to | #393234 |
On 1/11/2016 1:22 PM, John Larkin wrote: > On Mon, 11 Jan 2016 11:10:44 -0500, Larc <larc@notmyaddress.com> > wrote: > >> On Mon, 11 Jan 2016 16:44:49 +0100, "Skybuck Flying" <skybuck2000@hotmail.com> wrote: >> >> | Hello, >> | >> | Apperently Intel's Skylake Processors can freeze up when calculating certain >> | Prime Numbers. >> | >> | I am investigating this story further, for now here is a link about it: >> | >> | https://communities.intel.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F524553 >> >> Intel is apparently aware of this and is working with its partners to distribute a >> fix in form of a BIOS update. >> >> http://arstechnica.com/gadgets/2016/01/intel-skylake-bug-causes-pcs-to-freeze-during-complex-workloads/ >> >> Larc > > I wonder how the BIOS can fix an FPU error. Trap exceptions? Change > some firmware? > > Nowadays processors (from micro to mainframe) are run by microcode. A problem like this can be in the circuitry (as was with the FPU problem in the early-mid 90's) or it can be in the microcode. IOW, it can be a hardware bug or a software bug :) Obviously if it's a microcode bug, an update should be able to fix it. Even if it's a hardware bug, there might be a way around the bug in the microcode. Being as this is a hang, my guess would be it's a microcode bug. But obviously I don't know. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2016-01-11 11:12 -0800 |
| Message-ID | <5ru79b5r812besijjhjorbrtlfui7hksku@4ax.com> |
| In reply to | #393237 |
On Mon, 11 Jan 2016 13:42:57 -0500, Jerry Stuckle <jstucklex@attglobal.net> wrote: >On 1/11/2016 1:22 PM, John Larkin wrote: >> On Mon, 11 Jan 2016 11:10:44 -0500, Larc <larc@notmyaddress.com> >> wrote: >> >>> On Mon, 11 Jan 2016 16:44:49 +0100, "Skybuck Flying" <skybuck2000@hotmail.com> wrote: >>> >>> | Hello, >>> | >>> | Apperently Intel's Skylake Processors can freeze up when calculating certain >>> | Prime Numbers. >>> | >>> | I am investigating this story further, for now here is a link about it: >>> | >>> | https://communities.intel.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F524553 >>> >>> Intel is apparently aware of this and is working with its partners to distribute a >>> fix in form of a BIOS update. >>> >>> http://arstechnica.com/gadgets/2016/01/intel-skylake-bug-causes-pcs-to-freeze-during-complex-workloads/ >>> >>> Larc >> >> I wonder how the BIOS can fix an FPU error. Trap exceptions? Change >> some firmware? >> >> > >Nowadays processors (from micro to mainframe) are run by microcode. Not all. Some RISC machines are pure logic. ARM, Coldfire, maybe MIPS? Intels are still microcode based. A >problem like this can be in the circuitry (as was with the FPU problem >in the early-mid 90's) or it can be in the microcode. IOW, it can be a >hardware bug or a software bug :) > >Obviously if it's a microcode bug, an update should be able to fix it. >Even if it's a hardware bug, there might be a way around the bug in the >microcode. > >Being as this is a hang, my guess would be it's a microcode bug. But >obviously I don't know. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2016-01-12 11:06 +0100 |
| Message-ID | <n72j2j$agg$1@dont-email.me> |
| In reply to | #393242 |
On 11/01/16 20:12, John Larkin wrote: > On Mon, 11 Jan 2016 13:42:57 -0500, Jerry Stuckle >> Nowadays processors (from micro to mainframe) are run by microcode. > > Not all. Some RISC machines are pure logic. ARM, Coldfire, maybe MIPS? (When the microcode based 68K architecture was being redesigned into a RISC structure with little or no microcode for the Coldfire, the designers planned to keep the microcoded division instructions. But then someone noticed that a pure software division routine ran faster than the microcoded division hardware, so support was dropped.) One of the driving forces of "RISC" compared to older "CISC" designs was to get rid of microcode. And since by far most modern cpus (both in terms of the numbers produced, and the number of designs) are microcontrollers, which almost never use microcode, it's fair to say that only a small proportion of currently active processors have microcode - even though those processors are rather important. > > Intels are still microcode based. > Yes, both Intel and AMD's x86 processors have a lot of microcode. But they are not really "microcode based". Some parts, such as the FPU (especially multi-cycle functions) are microcoded - but many other parts are handled directly in hard logic. The distinction between what is microcoded and what is hard logic is not easy to guess, and details are considered part of the design secrets. Microcode lets Intel and AMD do some fixes by microcode patches, either using the BIOS (needed for Windows) or loaded by the Linux kernel at startup.
[toc] | [prev] | [next] | [standalone]
| From | Richard Heathfield <rjh@cpax.org.uk> |
|---|---|
| Date | 2016-01-12 10:21 +0000 |
| Message-ID | <n72jtj$cv4$1@dont-email.me> |
| In reply to | #393358 |
On 12/01/16 10:06, David Brown wrote: > One of the driving forces of "RISC" compared to older "CISC" designs was > to get rid of microcode. David, you're posting to five newsgroups whose only common factor is one of their subscribers. I know it's not your doing, but could you please trim comp.lang.c from followups in future? Thanks. <snip> -- Richard Heathfield Email: rjh at cpax dot org dot uk "Usenet is a strange place" - dmr 29 July 1999 Sig line 4 vacant - apply within
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2016-01-12 11:42 +0100 |
| Message-ID | <n72l5r$iud$1@dont-email.me> |
| In reply to | #393362 |
On 12/01/16 11:21, Richard Heathfield wrote: > On 12/01/16 10:06, David Brown wrote: >> One of the driving forces of "RISC" compared to older "CISC" designs was >> to get rid of microcode. > > David, you're posting to five newsgroups whose only common factor is one > of their subscribers. I know it's not your doing, but could you please > trim comp.lang.c from followups in future? Thanks. > > <snip> > My apologies - I was not paying attention to the newsgroups. (I'll trim c.l.c and other off-topic groups if I post again in this thread, but the apologies need to go to the right places.)
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2016-01-12 09:25 -0800 |
| Subject | t cluttered |
| Message-ID | <97da9blhofagc048ikc9osrv8714hjgaea@4ax.com> |
| In reply to | #393358 |
On Tue, 12 Jan 2016 11:06:45 +0100, David Brown <david.brown@hesbynett.no> wrote: >On 11/01/16 20:12, John Larkin wrote: >> On Mon, 11 Jan 2016 13:42:57 -0500, Jerry Stuckle > >>> Nowadays processors (from micro to mainframe) are run by microcode. >> >> Not all. Some RISC machines are pure logic. ARM, Coldfire, maybe MIPS? > >(When the microcode based 68K architecture was being redesigned into a >RISC structure with little or no microcode for the Coldfire, the >designers planned to keep the microcoded division instructions. But >then someone noticed that a pure software division routine ran faster >than the microcoded division hardware, so support was dropped.) Some CPU, maybe the HPPA Risc or something, didn't even have a multiply instruction. It cluttered the pipeline so they eliminated it. > >One of the driving forces of "RISC" compared to older "CISC" designs was >to get rid of microcode. > >And since by far most modern cpus (both in terms of the numbers >produced, and the number of designs) are microcontrollers, which almost >never use microcode, it's fair to say that only a small proportion of >currently active processors have microcode - even though those >processors are rather important. I think the fundamental RISC concept is to design an instruction set that's compiler friendly and not people friendly. CISC attempted to make assembly programming look like a programming language; RISC pretty much assumes that binaries are created by compilers. > >> >> Intels are still microcode based. >> > >Yes, both Intel and AMD's x86 processors have a lot of microcode. But >they are not really "microcode based". Some parts, such as the FPU >(especially multi-cycle functions) are microcoded - but many other parts >are handled directly in hard logic. The distinction between what is >microcoded and what is hard logic is not easy to guess, and details are >considered part of the design secrets. They are stuck with a CISC instruction set that was originally microcoded. They have to work very hard to butcher that to make it fast. > >Microcode lets Intel and AMD do some fixes by microcode patches, either >using the BIOS (needed for Windows) or loaded by the Linux kernel at >startup. Less bugs is another approach. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2016-01-12 22:05 +0100 |
| Subject | Re: t cluttered |
| Message-ID | <n73pkv$a6f$1@dont-email.me> |
| In reply to | #393420 |
On 12/01/16 18:25, John Larkin wrote: > On Tue, 12 Jan 2016 11:06:45 +0100, David Brown > <david.brown@hesbynett.no> wrote: > >> On 11/01/16 20:12, John Larkin wrote: >>> On Mon, 11 Jan 2016 13:42:57 -0500, Jerry Stuckle >> >>>> Nowadays processors (from micro to mainframe) are run by microcode. >>> >>> Not all. Some RISC machines are pure logic. ARM, Coldfire, maybe MIPS? >> >> (When the microcode based 68K architecture was being redesigned into a >> RISC structure with little or no microcode for the Coldfire, the >> designers planned to keep the microcoded division instructions. But >> then someone noticed that a pure software division routine ran faster >> than the microcoded division hardware, so support was dropped.) > > Some CPU, maybe the HPPA Risc or something, didn't even have a > multiply instruction. It cluttered the pipeline so they eliminated it. There are plenty of small cpus with no multiply, in order to keep the design small and simple. (I don't expect that die space was a major factor when omitting a multiplier from the HPPA Risc, or whichever processor you meant.) The interesting thing with division on the Coldfire was that the software-only solution turned out to be faster than the hardware (at least with the old design). > > >> >> One of the driving forces of "RISC" compared to older "CISC" designs was >> to get rid of microcode. >> >> And since by far most modern cpus (both in terms of the numbers >> produced, and the number of designs) are microcontrollers, which almost >> never use microcode, it's fair to say that only a small proportion of >> currently active processors have microcode - even though those >> processors are rather important. > > I think the fundamental RISC concept is to design an instruction set > that's compiler friendly and not people friendly. CISC attempted to > make assembly programming look like a programming language; RISC > pretty much assumes that binaries are created by compilers. > That's true. But a key point in a RISC design is that the instructions should each be simple, and do one thing (so you have a "load" instruction, and an "add" instruction, but not a "load then add" instruction). Then you make these instructions run as fast as possible - and that means no microcoding to add delays. > > > >> >>> >>> Intels are still microcode based. >>> >> >> Yes, both Intel and AMD's x86 processors have a lot of microcode. But >> they are not really "microcode based". Some parts, such as the FPU >> (especially multi-cycle functions) are microcoded - but many other parts >> are handled directly in hard logic. The distinction between what is >> microcoded and what is hard logic is not easy to guess, and details are >> considered part of the design secrets. > > They are stuck with a CISC instruction set that was originally > microcoded. They have to work very hard to butcher that to make it > fast. Yes. So what happens internally is that the CISC instructions are decoded and turned into mostly RISC instructions of a design-specific RISC cpu that is invisible to the programmer. In most cases, one CISC instruction turns into one or more RISC instructions to avoid microcoding - but sometimes a few CISC instructions map to one RISC instruction, and for some units microcoding is still used. > > >> >> Microcode lets Intel and AMD do some fixes by microcode patches, either >> using the BIOS (needed for Windows) or loaded by the Linux kernel at >> startup. > > Less bugs is another approach. > :-)
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2016-01-12 14:03 -0800 |
| Subject | Re: t cluttered |
| Message-ID | <n73t2d$o1f$1@dont-email.me> |
| In reply to | #393479 |
On 1/12/2016 1:05 PM, David Brown wrote: > On 12/01/16 18:25, John Larkin wrote: >>> Yes, both Intel and AMD's x86 processors have a lot of microcode. But >>> they are not really "microcode based". Some parts, such as the FPU >>> (especially multi-cycle functions) are microcoded - but many other parts >>> are handled directly in hard logic. The distinction between what is >>> microcoded and what is hard logic is not easy to guess, and details are >>> considered part of the design secrets. >> >> They are stuck with a CISC instruction set that was originally >> microcoded. They have to work very hard to butcher that to make it >> fast. > > Yes. So what happens internally is that the CISC instructions are > decoded and turned into mostly RISC instructions of a design-specific > RISC cpu that is invisible to the programmer. In most cases, one CISC > instruction turns into one or more RISC instructions to avoid > microcoding - but sometimes a few CISC instructions map to one RISC > instruction, and for some units microcoding is still used. Funny; I'd call that "microcoded". Perhaps you are distinguishing between horizontal and vertical microcode?
[toc] | [prev] | [next] | [standalone]
| From | Stephen Fuld <SFuld@alumni.cmu.edu.invalid> |
|---|---|
| Date | 2016-01-12 21:44 -0800 |
| Subject | Re: t cluttered |
| Message-ID | <n74o2b$403$1@dont-email.me> |
| In reply to | #393485 |
On 1/12/2016 2:03 PM, Ivan Godard wrote: > On 1/12/2016 1:05 PM, David Brown wrote: >> On 12/01/16 18:25, John Larkin wrote: > >>>> Yes, both Intel and AMD's x86 processors have a lot of microcode. But >>>> they are not really "microcode based". Some parts, such as the FPU >>>> (especially multi-cycle functions) are microcoded - but many other >>>> parts >>>> are handled directly in hard logic. The distinction between what is >>>> microcoded and what is hard logic is not easy to guess, and details are >>>> considered part of the design secrets. >>> >>> They are stuck with a CISC instruction set that was originally >>> microcoded. They have to work very hard to butcher that to make it >>> fast. >> >> Yes. So what happens internally is that the CISC instructions are >> decoded and turned into mostly RISC instructions of a design-specific >> RISC cpu that is invisible to the programmer. In most cases, one CISC >> instruction turns into one or more RISC instructions to avoid >> microcoding - but sometimes a few CISC instructions map to one RISC >> instruction, and for some units microcoding is still used. > > Funny; I'd call that "microcoded". Perhaps you are distinguishing > between horizontal and vertical microcode? At first, your response stunned me. It seemed obvious that there was a huge difference. But the more I thought about it, the harder it became to explain to myself what the difference was. :-( After some time, I came up with the following. Traditional microcode is like an interpreter. When encountering an instruction, the CPU "branches" to the appropriate microcode to handle that instruction. There are pre-coded routines in the microcode store for each instruction to be executed. On the other hand, "breaking" a CISC instruction into one or more micro-ops is more like a JIT compiler. When the complex instruction is encountered, it is "compiled" into a sequence of "native" instructions, which are then executed. Unlike the microcode approach, the instructions don't exist before the instruction decode creates them (though, of course, the decoded may have something like a "template" to guide its "compilation"). Does this make any sense? -- - Stephen Fuld (e-mail address disguised to prevent spam)
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2016-01-13 15:41 +0800 |
| Subject | Re: t cluttered |
| Message-ID | <n74v3s$11eo$1@gioia.aioe.org> |
| In reply to | #393564 |
Stephen Fuld wrote: > On 1/12/2016 2:03 PM, Ivan Godard wrote: >> On 1/12/2016 1:05 PM, David Brown wrote: >>> On 12/01/16 18:25, John Larkin wrote: >> >>>>> Yes, both Intel and AMD's x86 processors have a lot of microcode. But >>>>> they are not really "microcode based". Some parts, such as the FPU >>>>> (especially multi-cycle functions) are microcoded - but many other >>>>> parts >>>>> are handled directly in hard logic. The distinction between what is >>>>> microcoded and what is hard logic is not easy to guess, and details >>>>> are >>>>> considered part of the design secrets. >>>> >>>> They are stuck with a CISC instruction set that was originally >>>> microcoded. They have to work very hard to butcher that to make it >>>> fast. >>> >>> Yes. So what happens internally is that the CISC instructions are >>> decoded and turned into mostly RISC instructions of a design-specific >>> RISC cpu that is invisible to the programmer. In most cases, one CISC >>> instruction turns into one or more RISC instructions to avoid >>> microcoding - but sometimes a few CISC instructions map to one RISC >>> instruction, and for some units microcoding is still used. >> >> Funny; I'd call that "microcoded". Perhaps you are distinguishing >> between horizontal and vertical microcode? > > > At first, your response stunned me. It seemed obvious that there was a > huge difference. But the more I thought about it, the harder it became > to explain to myself what the difference was. :-( > > After some time, I came up with the following. Traditional microcode is > like an interpreter. When encountering an instruction, the CPU > "branches" to the appropriate microcode to handle that instruction. > There are pre-coded routines in the microcode store for each instruction > to be executed. > > On the other hand, "breaking" a CISC instruction into one or more > micro-ops is more like a JIT compiler. When the complex instruction is > encountered, it is "compiled" into a sequence of "native" instructions, > which are then executed. Unlike the microcode approach, the > instructions don't exist before the instruction decode creates them > (though, of course, the decoded may have something like a "template" to > guide its "compilation"). > > Does this make any sense? Indeed it does. In my mental model the big difference between an instruction which is microcoded and one where the instruction decoder splits it into a fixed set of actual hw instructions lies in the scheduling: With a traditional complex microcoded instruction the CPU effectively branches to a hw function, doing nothing else until it is done, while a decoder that spits out multiple instructions will allow them to run independently through the rest of the cpu stages. Particularly with OoO cpus this difference can be significant. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | krw <krw@nowhere.com> |
|---|---|
| Date | 2016-01-13 21:39 -0500 |
| Subject | Re: t cluttered |
| Message-ID | <ae2e9bpou4q2m5v2gcvoit1n6bvnl9e1o2@4ax.com> |
| In reply to | #393577 |
On Wed, 13 Jan 2016 15:41:47 +0800, Terje Mathisen <terje.mathisen@tmsw.no> wrote: >Stephen Fuld wrote: >> On 1/12/2016 2:03 PM, Ivan Godard wrote: >>> On 1/12/2016 1:05 PM, David Brown wrote: >>>> On 12/01/16 18:25, John Larkin wrote: >>> >>>>>> Yes, both Intel and AMD's x86 processors have a lot of microcode. But >>>>>> they are not really "microcode based". Some parts, such as the FPU >>>>>> (especially multi-cycle functions) are microcoded - but many other >>>>>> parts >>>>>> are handled directly in hard logic. The distinction between what is >>>>>> microcoded and what is hard logic is not easy to guess, and details >>>>>> are >>>>>> considered part of the design secrets. >>>>> >>>>> They are stuck with a CISC instruction set that was originally >>>>> microcoded. They have to work very hard to butcher that to make it >>>>> fast. >>>> >>>> Yes. So what happens internally is that the CISC instructions are >>>> decoded and turned into mostly RISC instructions of a design-specific >>>> RISC cpu that is invisible to the programmer. In most cases, one CISC >>>> instruction turns into one or more RISC instructions to avoid >>>> microcoding - but sometimes a few CISC instructions map to one RISC >>>> instruction, and for some units microcoding is still used. >>> >>> Funny; I'd call that "microcoded". Perhaps you are distinguishing >>> between horizontal and vertical microcode? >> >> >> At first, your response stunned me. It seemed obvious that there was a >> huge difference. But the more I thought about it, the harder it became >> to explain to myself what the difference was. :-( >> >> After some time, I came up with the following. Traditional microcode is >> like an interpreter. When encountering an instruction, the CPU >> "branches" to the appropriate microcode to handle that instruction. >> There are pre-coded routines in the microcode store for each instruction >> to be executed. >> >> On the other hand, "breaking" a CISC instruction into one or more >> micro-ops is more like a JIT compiler. When the complex instruction is >> encountered, it is "compiled" into a sequence of "native" instructions, >> which are then executed. Unlike the microcode approach, the >> instructions don't exist before the instruction decode creates them >> (though, of course, the decoded may have something like a "template" to >> guide its "compilation"). >> >> Does this make any sense? > >Indeed it does. > >In my mental model the big difference between an instruction which is >microcoded and one where the instruction decoder splits it into a fixed >set of actual hw instructions lies in the scheduling: > >With a traditional complex microcoded instruction the CPU effectively >branches to a hw function, doing nothing else until it is done, while a >decoder that spits out multiple instructions will allow them to run >independently through the rest of the cpu stages. These "stages" need not be in series, either. They can be parallel execution units. The machine state is then updated when all of the pieces are complete. >Particularly with OoO cpus this difference can be significant. > >Terje
[toc] | [prev] | [next] | [standalone]
| From | Rick Jones <rick.jones2@hpe.com> |
|---|---|
| Date | 2016-01-12 22:41 +0000 |
| Subject | Re: t cluttered |
| Message-ID | <n73ve1$93n$1@news.hpeswlab.net> |
| In reply to | #393479 |
> > Some CPU, maybe the HPPA Risc or something, didn't even have a > > multiply instruction. It cluttered the pipeline so they eliminated > > it. > There are plenty of small cpus with no multiply, in order to keep the > design small and simple. (I don't expect that die space was a major > factor when omitting a multiplier from the HPPA Risc, or whichever > processor you meant.) Indeed, per my recollection HP-PA or PA-RISC (two names for the same architecture) 1.0 chips did not have an integer multiply. And for those the floating point unit was separate and optional. My recollection may be a bit fuzzy but by PA 1.1 (or somewhere in the "middle" of it, and certainly by PA 2.0, all the chips had an integrated floating point unit. I probably have a couple things off - wasn't a PA hardware guy. rick jones -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-12 23:01 +0000 |
| Subject | Re: t cluttered |
| Message-ID | <n740l4$8ot$1@dont-email.me> |
| In reply to | #393492 |
In article <n73ve1$93n$1@news.hpeswlab.net>, Rick Jones <rick.jones2@hpe.com> wrote: > >> > Some CPU, maybe the HPPA Risc or something, didn't even have a >> > multiply instruction. It cluttered the pipeline so they eliminated >> > it. > >> There are plenty of small cpus with no multiply, in order to keep the >> design small and simple. (I don't expect that die space was a major >> factor when omitting a multiplier from the HPPA Risc, or whichever >> processor you meant.) > >Indeed, per my recollection HP-PA or PA-RISC (two names for the same >architecture) 1.0 chips did not have an integer multiply. And for >those the floating point unit was separate and optional. > >My recollection may be a bit fuzzy but by PA 1.1 (or somewhere in the >"middle" of it, and certainly by PA 2.0, all the chips had an >integrated floating point unit. Yes, but the integer multiply was part of the floating-point unit, and not the integer/pointer arithmetic unit, which caused a massive slowdown on matrix codes where strength reduction was inapplicable. I saw a factor of 3, on the total application time. It has been known for half a century that integer multiply is a critical addressing operation for a significant proportion of important codes, though 'computer scientists' often refuse to admit it. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2016-01-12 16:16 -0800 |
| Subject | Re: t cluttered |
| Message-ID | <n744s9$lhb$1@dont-email.me> |
| In reply to | #393501 |
On 1/12/2016 3:01 PM, Nick Maclaren wrote: > It has been known for half a century that integer multiply is a > critical addressing operation for a significant proportion of > important codes, though 'computer scientists' often refuse to > admit it. Nick - mul for scaling by stride, when you can't strength-reduce to an add, or when there are more disjoint addresses than you have registers to use for control variables. However, with modern high-reg-count architectures (or long belt-count) and a general choice of natural alignment in arrays (leading to the mul being a manifest power-of-two and hence implementable with a shift) it's much less an issue. And where neither strength reduction nor shift work, most compilers are fairly clever about doing immediate multiplies as shift-and-add combinations. We looked hard at this, and concluded that we needed to support stride scaling in addressing for all scalar strides. Pending measurement we have not yet settled on whether to extend that to 2*scalar stride, primarily for complex. Actually the bits are there to encode strides up to 128, although the utility of that is questionable :-) However, an integer multiplier is not that much of a monster these days, for any but the extreme low end of our range, and so at least one is configured in to nearly all of the anticipated Mill family members.
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-13 10:35 +0000 |
| Subject | Re: t cluttered |
| Message-ID | <n759a7$luj$1@dont-email.me> |
| In reply to | #393506 |
In article <n744s9$lhb$1@dont-email.me>, Ivan Godard <ivan@millcomputing.com> wrote: > >> It has been known for half a century that integer multiply is a >> critical addressing operation for a significant proportion of >> important codes, though 'computer scientists' often refuse to >> admit it. > >Nick - mul for scaling by stride, when you can't strength-reduce to an >add, or when there are more disjoint addresses than you have registers >to use for control variables. > >However, with modern high-reg-count architectures (or long belt-count) >and a general choice of natural alignment in arrays (leading to the mul >being a manifest power-of-two and hence implementable with a shift) it's >much less an issue. And where neither strength reduction nor shift work, >most compilers are fairly clever about doing immediate multiplies as >shift-and-add combinations. Not in my experience :-( The sort of algorithms that critically need such code are not typically ones where you can control the sizes or strides. I would be interested in which compilers, because I have observed the converse - i.e. that trick is less common than it used to be. But see below: dynamic sizes and strides are the ones of interest. >We looked hard at this, and concluded that we needed to support stride >scaling in addressing for all scalar strides. Pending measurement we >have not yet settled on whether to extend that to 2*scalar stride, >primarily for complex. Actually the bits are there to encode strides up >to 128, although the utility of that is questionable :-) Grrk. That's a CATASTROPHIC solution! I am not arguing about whether to be able to address in terms of simple, fixed object sizes - that's a separate issue and the one that actually resolves. But, once you start thinking of array sizes and strides as fixed at compile-time, you end up with (original) Pascal/C/C++ - ghastly languages for array algorithms, all. >However, an integer multiplier is not that much of a monster these days, >for any but the extreme low end of our range, and so at least one is >configured in to nearly all of the anticipated Mill family members. My point is that at least one needs to be part of the addressing pipeline, in designs which separate that from the floating-point one. It doesn't matter if it is fairly slow (e.g. 3x addition is fine, and 5x is OK) and restricted to 'addressing size' results, but the classic mistake is to allow it to force the addressing pipeline to be halted and restarted. That's why PA-RISC ran like a drain on such codes. If I were doing it, and was inflicted with a two pipeline model, I would have 'addressing only' operations in the addressing pipeline, and a complete set of integer ones in the 'floating-point' one. It would be only the latter that would have single*single=>double and double/single=>(single,single), of course. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | Anonymous <no_email@invalid.invalid> |
|---|---|
| Date | 2016-01-13 14:36 +0000 |
| Subject | Re: t cluttered |
| Message-ID | <dfn5miF3102U1@mid.individual.net> |
| In reply to | #393624 |
Nick Maclaren <nmm@wheeler.UUCP> wrote: > In article <n744s9$lhb$1@dont-email.me>, > Ivan Godard <ivan@millcomputing.com> wrote: >> >>> It has been known for half a century that integer multiply is a >>> critical addressing operation for a significant proportion of >>> important codes, though 'computer scientists' often refuse to >>> admit it. >> >> Nick - mul for scaling by stride, when you can't strength-reduce to an >> add, or when there are more disjoint addresses than you have registers >> to use for control variables. >> >> However, with modern high-reg-count architectures (or long belt-count) >> and a general choice of natural alignment in arrays (leading to the mul >> being a manifest power-of-two and hence implementable with a shift) it's >> much less an issue. And where neither strength reduction nor shift work, >> most compilers are fairly clever about doing immediate multiplies as >> shift-and-add combinations. > > Not in my experience :-( The sort of algorithms that critically need > such code are not typically ones where you can control the sizes or > strides. I would be interested in which compilers, because I have > observed the converse - i.e. that trick is less common than it used > to be. But see below: dynamic sizes and strides are the ones of > interest. > >> We looked hard at this, and concluded that we needed to support stride >> scaling in addressing for all scalar strides. Pending measurement we >> have not yet settled on whether to extend that to 2*scalar stride, >> primarily for complex. Actually the bits are there to encode strides up >> to 128, although the utility of that is questionable :-) > > Grrk. That's a CATASTROPHIC solution! I am not arguing about whether > to be able to address in terms of simple, fixed object sizes - that's > a separate issue and the one that actually resolves. But, once you > start thinking of array sizes and strides as fixed at compile-time, > you end up with (original) Pascal/C/C++ - ghastly languages for array > algorithms, all. Yup. It is fascinating that the KDF9, delivered 52 years ago, had auto-increment addressing modes that updated the loop count by 1 and the address/offset by a dynamically-settable stride that could be as large as the largest address, and either positive or negative. In conjunction with its FMA operation, and a jump-on-nonzero-count instruction that looped inside the instruction buffer, it made a superb scalar-product evaluator of a machine with very modest h/w resources. I think I might detect the influence of Jim Wilkinson in this. -- Bill Findlay
[toc] | [prev] | [next] | [standalone]
| From | Robert Wessel <robertwessel2@yahoo.com> |
|---|---|
| Date | 2016-01-14 02:48 -0600 |
| Subject | Re: t cluttered |
| Message-ID | <l3oe9b9afmqcom4ur2aupecrpq1de08co3@4ax.com> |
| In reply to | #393650 |
On 13 Jan 2016 14:36:03 GMT, Anonymous <no_email@invalid.invalid> wrote: >Nick Maclaren <nmm@wheeler.UUCP> wrote: >> In article <n744s9$lhb$1@dont-email.me>, >> Ivan Godard <ivan@millcomputing.com> wrote: >>> >>>> It has been known for half a century that integer multiply is a >>>> critical addressing operation for a significant proportion of >>>> important codes, though 'computer scientists' often refuse to >>>> admit it. >>> >>> Nick - mul for scaling by stride, when you can't strength-reduce to an >>> add, or when there are more disjoint addresses than you have registers >>> to use for control variables. >>> >>> However, with modern high-reg-count architectures (or long belt-count) >>> and a general choice of natural alignment in arrays (leading to the mul >>> being a manifest power-of-two and hence implementable with a shift) it's >>> much less an issue. And where neither strength reduction nor shift work, >>> most compilers are fairly clever about doing immediate multiplies as >>> shift-and-add combinations. >> >> Not in my experience :-( The sort of algorithms that critically need >> such code are not typically ones where you can control the sizes or >> strides. I would be interested in which compilers, because I have >> observed the converse - i.e. that trick is less common than it used >> to be. But see below: dynamic sizes and strides are the ones of >> interest. >> >>> We looked hard at this, and concluded that we needed to support stride >>> scaling in addressing for all scalar strides. Pending measurement we >>> have not yet settled on whether to extend that to 2*scalar stride, >>> primarily for complex. Actually the bits are there to encode strides up >>> to 128, although the utility of that is questionable :-) >> >> Grrk. That's a CATASTROPHIC solution! I am not arguing about whether >> to be able to address in terms of simple, fixed object sizes - that's >> a separate issue and the one that actually resolves. But, once you >> start thinking of array sizes and strides as fixed at compile-time, >> you end up with (original) Pascal/C/C++ - ghastly languages for array >> algorithms, all. > >Yup. It is fascinating that the KDF9, delivered 52 years ago, had >auto-increment addressing modes that updated the loop count by 1 >and the address/offset by a dynamically-settable stride that could be >as large as the largest address, and either positive or negative. S/360 BXH/BXLE did something similar - add a value to an index, then compare it to a limit before branching if the limit is not exceeded.
[toc] | [prev] | [next] | [standalone]
Page 1 of 4 [1] 2 3 4 Next page →
Back to top | Article view | sci.electronics.design
csiph-web