Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] microcode applied?
Date: Tue, 09 Jan 2018 09:58:32
Message-Id: CAC=wYCFSNHs2yrx3q9hpEypN3mFxbNMWHsTo-53oqcScN03P0w@mail.gmail.com
In Reply to: Re: [gentoo-user] microcode applied? by Adam Carter
1 >
2 > Hopefully there's an equivalent for AMD.
3 >
4
5 Here's what I came up with. This is very hacky and unreliable, but get the
6 CPUID with;
7
8 cpuid -r | grep "0x00000001 0x00" | awk '{ print $3}' | uniq | cut -d x -f 3
9
10 then grab MCE (thanks Max for the suggestion) from
11 https://github.com/platomav/MCExtractor
12
13 unzip MCExtractor-master.zip
14 cd MCExtractor-master
15 chmod +x MCE.py
16 dos2unix MCE.py
17 ./MCE.py /lib/firmware/amd-ucode/*bin
18 (at this stage it complained about missing dev-python/colorama and
19 dev-python/prettytable, so i had to emerge them)
20 Then press enter and it dumps out CPUID and version for each file.
21
22 Other than case differences i found the CPUID for my fam10 AMD system. eg
23 # cpuid -r | grep "0x00000001 0x00" | awk '{ print $3}' | uniq | cut -d x
24 -f 3
25 00100f43
26
27 And in the MCE output;
28 | 4 | 00100F43 | 010000C8 | 2010-03-11 | Latest |
29
30 Dmesg had
31 microcode: CPU0: patch_level=0x010000c8
32
33 So its confirmed its at the latest microcode, from 2010