Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.hardware.pc-homebuilt > #34328

Re: Intel's Skylake Prime Number Bug.

From Paul <nospam@needed.com>
Newsgroups alt.comp.hardware.pc-homebuilt, comp.arch, comp.lang.c, sci.electronics.design
Subject Re: Intel's Skylake Prime Number Bug.
Date 2016-01-12 04:38 -0500
Organization A noiseless patient Spider
Message-ID <n72hcv$4so$1@dont-email.me> (permalink)
References <cadfe$5693cdf1$d47876e2$58382@news.ziggo.nl> <bpk79bto62bga3n1a5ueeq4i11l27dmiqk@4ax.com> <mms79b914sureqvbe2ph408b4523b01j42@4ax.com> <n70suf$vn1$1@jstuckle.eternal-september.org> <n72aok$fst$1@dont-email.me>

Cross-posted to 4 groups.

Show all headers | View raw


Tom Del Rosso wrote:
> Jerry Stuckle wrote:
>> 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.
> 
> That's not so obvious unless the microcode is in flash.  Isn't it a mask 
> ROM?
> 

Try page 431 here, section 9.11.1 "Microcode Update".
Microcode updates are a part of the BIOS flash image, and a
file in the BIOS file system contains a set of updates.
A typical file in the past, might have contained
eight patches. I used to dissect these, so I could
tell people whether there was a patch for their
non-standard processor or not. (Maybe someone stuffs
a Xeon into a regular desktop socket.)

https://web.archive.org/web/20110516145322/http://www.intel.com/Assets/PDF/manual/253668.pdf

Intel don't generally give information about the "encrypted
data" within a patch.

Some processors, the patch area is only 2KB in size.
Later processors, the patching format was made variable
length, in multiples of 2KB. I've taken apart a BIOS
module before, and found some of the slightly longer
patches (at least 4KB long, maybe slightly longer).

Some processors have as many as 1000 instructions, and
it's not clear that the patch actually contains an entire
microcode. But without a document describing the encrypted
section, we'll never know. It's encrypted presumably to
prevent some sort of hacking (bypassing security features
such as they are).

Intel provides a file suitable for usage by Linux, and
this is a text file for inclusion in compiled code.
Unpack the tar file, get the .dat out, change the
file extension to text and have a look. You can then
compare the samples in here, to the header format
in the above architecture book.

https://downloadmirror.intel.com/18148/eng/microcode-20090927.tgz

/*  Sun Sep 27 10:52:54 CST 2009  */
/*  727-MU168313.inc  */
0x00000001,	0x00000013,	0x02062001,	0x00000683,
0x2f0da1b0,	0x00000001,	0x00000001,	0x00000000,
0x00000000,	0x00000000,	0x00000000,	0x00000000,
0xbf5ad468,	0xc79f5237,	0xbd53889e,	0x896bfd13,
0x7adc0c8f,	0x44e9e0bc,	0x1a331fc9,	0x00b0f479,
0x53e9ceb3,	0xb14131a4,	0x39fc8310,	0x6993ee0d,
0xdb0c59b4,	0x67f24fd0,	0x63e83516,	0x0a4d411d,
0xb86a4294,	0x72c2edc5,	0xc543c5df,	0x7f3dd290,
...

The only vaguely interesting part, is the bit at the beginning,
as the encrypted body, we can't look at that. I'm sure someone
has figured out by now, how that is encrypted, and it's even
possible that is a variant design as well (encryption became
stronger with time). Whatever encryption they used in the P6
era, probably isn't strong enough any more.

Both the BIOS and the OS have a patcher. Patches are only
accepted, if the version number of the patch is higher than
the current version number loaded. And you can check whether
a patch has "taken" later, by using Intel PIU or similar.
So if I checked the BIOS and the version was 07 for your
processor, Intel PIU should report at least 07, and if the
OS loaded 11, then Intel PIU would report 11 instead of 07.
The BIOS must be able to patch out egregious bugs well enough
to allow OS booting to finish. The OS may have a later
version than the crusty old BIOS file content you were
given.

If Asus provides say, eight different versions of BIOS images
for your downloading pleasure, perhaps four of those contain
no substantive changes, and they have the latest versions of
Intel microcode content. So when it says "supports new processors",
sometimes that includes new microcode with a higher version
number. Part of the BIOS support is "recognition" code,
and some is "new microcode patches". Without recognition
code, the BIOS may declare "you have a P6", when you actually
have a Core2, that sort of thing. I have at least one computer
here, where the recognition is wrong, and the thing still works.
That's because I patched the microcode by hand, so the microcode
is actually up to date, but the recognition section, I didn't
have a way to modify that.

The BIOS also used to include a "microcode cache" function.
At least the BIOS for Award, there is a way to load the
microcode yourself, it is stored in flash in the BIOS.
It's non-volatile until you pull the CPU out of the
socket, and plug in another CPU. Doing so would purge the
cache, and you'd have to do the manual loading operation
again if you put the original processor back. The machine I
manually patched, I haven't pulled the processor out of it
since that. I probably wouldn't remember how to repeat
the procedure now. I was putting a Tualatin in a motherboard
that wasn't intended for Tualatin.

HTH,
    Paul

Back to alt.comp.hardware.pc-homebuilt | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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 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. 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. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 12:53 -0500
          Re: Intel's Skylake Prime Number Bug. Mark - <nonemail@spamspamapam.net> - 2016-01-12 20:00 +0000
            Re: Intel's Skylake Prime Number Bug. Larc <larc@notmyaddress.com> - 2016-01-12 16:54 -0500
              Re: Intel's Skylake Prime Number Bug. Mark - <nonemail@spamspamapam.net> - 2016-01-12 22:14 +0000
  Re: Intel's Skylake Prime Number Bug. Keith Thompson <kst-u@mib.org> - 2016-01-11 23:46 -0800

csiph-web