public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Microcode update AMD
Date: Tue, 18 Jan 2011 09:34:14 -0800	[thread overview]
Message-ID: <AANLkTi=99gr7WOFvLWBwDd-Nx6FVH0OS3++m64YD-DwB@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinhJ0N39pqvkRPhHOjjv8++qNncB5u1ho5biq62@mail.gmail.com>

On Tue, Jan 18, 2011 at 8:16 AM, Mark Knecht <markknecht@gmail.com> wrote:
> On Tue, Jan 18, 2011 at 7:38 AM, Paul Hartman
> <paul.hartman+gentoo@gmail.com> wrote:
>> On Mon, Jan 17, 2011 at 10:29 PM, William Kenworthy <billk@iinet.net.au> wrote:
>>> The bios microcode update is likely an enable setting rather than the
>>> bios actually updating the cpu.  You need to do some reading/asking of
>>> the manufacturers (not here) if it bothers you.
>>
>> Thanks for the links, I didn't realize they made the microcode data
>> available separately.
>>
>> From Intel's download site for the microcode data:
>>
>> "The microcode data file contains the latest microcode definitions for
>> all Intel processors. Intel releases microcode updates to correct
>> processor behavior as documented in the respective processor
>> specification updates. While the regular approach to getting this
>> microcode update is via a BIOS upgrade, Intel realizes that this can
>> be an administrative hassle. The Linux Operating System and VMware ESX
>> products have a mechanism to update the microcode after booting. For
>> example, this file will be used by the operating system mechanism if
>> the file is placed in the /etc/firmware directory of the Linux
>> system."
>>
>>
> Thanks for the info Paul.
>
> For kicks I tried it on an Intel DH55HC MB running an Core i5-661.
>
> 1) Created /etc/firmware
> 2) Downloaded the Intel microcode-20101123.tgz file
> 3) Enabled the /dev/cpu/microcode option under Processor Types and Features
> 4) Rebuilt the kernel and rebooted
>
> I see this in dmesg:
>
> mark@firefly ~ $ dmesg | grep micro
> [    0.495337] microcode: CPU0 sig=0x20652, pf=0x2, revision=0x9
> [    0.495436] microcode: CPU1 sig=0x20652, pf=0x2, revision=0x9
> [    0.495535] microcode: CPU2 sig=0x20652, pf=0x2, revision=0x9
> [    0.495635] microcode: CPU3 sig=0x20652, pf=0x2, revision=0x9
> [    0.495751] microcode: Microcode Update Driver: v2.00
> <tigran@aivazian.fsnet.co.uk>, Peter Oruba
> mark@firefly ~ $
>
> On this machine the message doesn't change whether the microcode file
> is located in /etc/firmware or not so I don't know how to tell if the
> process worked but the processor doesn't need any updates or whether
> it didn't work at all.
>
> - Mark
>

OK, I got it to load by hand:

1) emerge microcode-ctl

which also emerges microcode-data. Unfortunately microcode-data looks
to be out of date. Add microcode_ctl to the boot level:

rc-update add microcode_ctl boot

2) Unzip and untar the microcode file from Intel.

3) The above emerge placed the microcode.dat file in /lib/firmware,
not /etc/firmware as suggested by the kernel, so I loaded the newer
one from Intel by hand using microcode-ctl:


firefly firmware # microcode_ctl -f /etc/firmware/microcode-20101123.dat
microcode_ctl: writing microcode (length: 430080)
microcode_ctl: microcode successfuly written to /dev/cpu/microcode
firefly firmware # dmesg | grep micro
[    0.495755] microcode: CPU0 sig=0x20652, pf=0x2, revision=0x9
[    0.495853] microcode: CPU1 sig=0x20652, pf=0x2, revision=0x9
[    0.495952] microcode: CPU2 sig=0x20652, pf=0x2, revision=0x9
[    0.496050] microcode: CPU3 sig=0x20652, pf=0x2, revision=0x9
[    0.496168] microcode: Microcode Update Driver: v2.00
<tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 2647.731262] microcode: CPU0 updated to revision 0xc, date = 2010-06-10
[ 2647.731982] microcode: CPU1 updated to revision 0xc, date = 2010-06-10
[ 2647.732815] microcode: CPU2 updated to revision 0xc, date = 2010-06-10
[ 2647.733608] microcode: CPU3 updated to revision 0xc, date = 2010-06-10
firefly firmware #

Now the microcode revision appears to be updated.

I suspected that if I renamed the file in /etc/firmware to
'microcode.dat' maybe it would load automatically at boot time but it
didn't so I moved it to lib/firmware where microcode_ctl does load it.

NOTE: There is a /etc/conf.d/microcode_ctl config file but it doesn't
see to include a path for microcode so I guess at this time I'm stuck
overwriting the /lib/firmware directory until I learn more.

Cheers,
Mark



  reply	other threads:[~2011-01-18 18:07 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-17 17:21 [gentoo-user] Microcode update AMD meino.cramer
2011-01-17 18:10 ` BRM
2011-01-17 18:34   ` meino.cramer
2011-01-17 19:14     ` Volker Armin Hemmann
2011-01-17 18:48   ` Mark Knecht
2011-01-17 19:12     ` Volker Armin Hemmann
2011-01-20  0:53       ` [gentoo-user] " walt
2011-01-20  1:08         ` walt
2011-01-17 19:08 ` [gentoo-user] " Volker Armin Hemmann
2011-01-17 19:19   ` meino.cramer
2011-01-17 19:46     ` Volker Armin Hemmann
2011-01-17 19:57       ` meino.cramer
2011-01-17 20:12         ` Mark Knecht
2011-01-17 20:52           ` Volker Armin Hemmann
2011-01-18  4:29       ` William Kenworthy
2011-01-18 15:38         ` Paul Hartman
2011-01-18 16:16           ` Mark Knecht
2011-01-18 17:34             ` Mark Knecht [this message]
2011-01-18 17:48               ` Volker Armin Hemmann
2011-02-05 14:28                 ` Enrico Weigelt
2011-02-05 15:26                   ` meino.cramer
2011-02-05 17:07                   ` Volker Armin Hemmann
2011-02-06 11:36                   ` Volker Armin Hemmann
2011-01-18 17:55               ` Paul Hartman
2011-01-18 18:21                 ` Mark Knecht
2011-01-18 20:42                   ` Paul Hartman
2011-01-18 20:56                     ` Mick
2011-01-18 21:13                       ` Paul Hartman
2011-01-18 23:08                         ` Mick
2011-01-18 23:56                       ` Mark Knecht
2011-01-17 20:13     ` Jason Weisberger
2011-01-17 20:49       ` Volker Armin Hemmann
2011-01-17 21:59         ` Jason Weisberger
2011-01-17 23:27           ` Volker Armin Hemmann
2011-01-18 15:39           ` [gentoo-user] " Nuno J. Silva
2011-02-05 13:34   ` [gentoo-user] " Enrico Weigelt
2011-02-05 16:15     ` Florian Philipp
2011-01-18 16:27 ` Volker Armin Hemmann
2011-01-19 17:10 ` Volker Armin Hemmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=99gr7WOFvLWBwDd-Nx6FVH0OS3++m64YD-DwB@mail.gmail.com' \
    --to=markknecht@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox