public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] AMD microcode updates - where are they?!
Date: Sat, 13 Jul 2019 18:18:35 +0100	[thread overview]
Message-ID: <5413979.80MaF9lyBd@localhost> (raw)
In-Reply-To: <FRUPBBF2.MAMXSQ2E.EVIVMRYN@7QHO4ER6.3LM5TRXL.UJEEQPU4>

[-- Attachment #1: Type: text/plain, Size: 3448 bytes --]

On Saturday, 13 July 2019 17:21:40 BST Jack wrote:
> On 2019.07.12 08:18, Mick wrote:

> > https://www.bleepingcomputer.com/news/hardware/amd-releases-spectre-v2-mic
> > rocode-updates-for-cpus-going-back-to-2011/
> I have not yet done any further searching or digging, but that link
> seems to only talk specifically about Windows updates, not generic
> firmware updates.

Yes, but any microcode releases are/should be CPU specific.  If they're 
released for applying via one OS, they should be available to others too.

Of course, if microcode has only been released to MoBo OEM's, then we're in 
the mercy of OEM commercial interests.  I'm sure when asked for an update they 
will try to sell to us all the latest models they have recently launched.  :p


> I have three different AMD based PCs, and so far, I don't see anything
> different from Mick.  However, on two Artix linux systems, I'm still
> not quite sure whether the microcode is in the initramfs or not.  I
> hate to admit I'm also not sure on my Gentoo box, having so far made
> only minor changes to the kernel from the June stage 3 tarball, and
> used genkernel to compile both kernel and initramfs.  I'm working on
> configuring 5.2.0, but it will take me a while to get through the
> complete configuration (starting from scratch.)

I'm not familiar with dracut to know what it uses as a default archiving 
engine and if you can run it to inspect directly the contents of an already 
created initramfs.  I know it can output on the console what it is including 
in initramfs at the time of creation.

Anyway, if you want to look at the initramfs contents manually, I suppose you 
will need to decompress your initramfs in a temporary directory to see its 
contents.  First find what archive format has been used.  

file /boot/EFI/... initramfs-XXX.img

will output gzip, bzip2, lzma or similar archive type.  Then create a 
temporary directory to work in and use the corresponding compression type:

mkdir ~/tmp_initramfs
cd ~/tmp_initramfs

zcat /boot/EFI/... initramfs-XXX.img | cpio -idmv

or 

bzcat /boot/EFI/... initramfs-XXX.img | cpio -idmv

or 

xv -dc < /boot/EFI/... initramfs-XXX.img | cpio -idmv

Something like the above ought to do the job.

> One suggestion - don't just grep for microcode, also check for
> "firmware" for which I use 'dmesg | egrep -i "firmware|microcode"'.

Well, 'firmware' will capture other firmware files, like graphics card, WiFi, 
BT, etc. rather than the CPU microcode.


> And, one question - if I have linux-firmware emerged with savedconfig
> use flag set, what's the best/easiest way to hunt through the actually
> available firmware, to check if I might have missed something
> relevant.  So far, I've just searched the git repository for the
> package.  I suppose I could have kept a copy of the manifest from the
> initial emerge (without savedconfig)  but I didn't think of it at the
> time.
> 
> Jack

Look under your /lib/firmware/ directory for the file you want to use, or the 
file dmesg complains is missing.  For microcode there will be no complaining, 
but for other hardware there usually is something along the lines:  "failed to 
load blah-blah.bin, file not found."

The appropriate microcode file for your AMD CPUs can be deduced from the table 
here:

https://wiki.gentoo.org/wiki/AMD_microcode

and it should be stored under your:

/lib/firmware/amd-ucode/

after you install linux-firmware.

-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-07-13 17:18 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12 12:18 [gentoo-user] AMD microcode updates - where are they?! Mick
2019-07-12 16:07 ` [gentoo-user] " Ian Zimmerman
2019-07-13  0:56   ` Adam Carter
2019-07-13  1:13     ` Adam Carter
2019-07-13 10:04       ` Mick
2019-07-13 10:01     ` Mick
2019-07-13 16:21 ` [gentoo-user] " Jack
2019-07-13 17:18   ` Mick [this message]
2019-07-13 17:23     ` Mick
2019-07-13 17:42     ` Jack
2019-07-13 18:06       ` Mick
2019-07-13 18:16         ` Corbin
2019-07-13 19:23           ` Mick
2019-07-13 20:16             ` Wols Lists
2019-07-13 21:01               ` Rich Freeman
2019-07-13 22:03                 ` Mick
2019-07-14 13:26                   ` Mick
2019-07-15  0:42                     ` Adam Carter
2019-07-17  3:21                     ` Corbin
2019-07-17 10:58                       ` Mick
2019-07-17 12:46                         ` Corbin
2019-07-17 20:51                           ` [gentoo-user] " Ian Zimmerman
2019-07-18 12:33                             ` Corbin
2019-07-18 18:23                               ` Mick
2019-07-17 23:38                         ` [gentoo-user] " Adam Carter
2019-07-15  4:30         ` [gentoo-user] " Ian Zimmerman
2019-07-15 21:18           ` Ian Zimmerman
2019-07-16  9:47             ` Mick
2019-07-15  5:15         ` [gentoo-user] " Adam Carter
2019-07-16  8:10     ` Neil Bothwick

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=5413979.80MaF9lyBd@localhost \
    --to=michaelkintzios@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