• Re: Is the CPU microcode updated?

    From =?UTF-8?Q?J=C3=B6rg-Volker_Peetz?=@21:1/5 to All on Wed Sep 25 15:00:01 2024
    What is the output of

    sudo dmesg | grep -E '(microcode|model)'

    ?
    This should show information about your CPU model and if its microcode is actually updated.

    Regards,
    Jörg.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Ritter@21:1/5 to Franco Martelli on Wed Sep 25 18:40:01 2024
    Franco Martelli wrote:
    On 25/09/24 at 14:58, J�rg-Volker Peetz wrote:
    What is the output of

    sudo dmesg | grep -E '(microcode|model)'

    ?
    This should show information about your CPU model and if its microcode
    is actually updated.

    Regards,
    J�rg.


    It returns:

    ~# dmesg | grep -E '(microcode|model)'
    [ 0.131534] smpboot: CPU0: AMD FX(tm)-8350 Eight-Core Processor (family: 0x15, model: 0x2, stepping: 0x0)
    [ 0.470751] microcode: microcode updated early to new patch_level=0x06000852
    [ 0.470889] microcode: CPU0: patch_level=0x06000852
    [ 0.470968] microcode: CPU1: patch_level=0x06000852
    [ 0.471078] microcode: CPU2: patch_level=0x06000852
    [ 0.471166] microcode: CPU3: patch_level=0x06000852
    [ 0.471276] microcode: CPU4: patch_level=0x06000852
    [ 0.471360] microcode: CPU5: patch_level=0x06000852
    [ 0.471438] microcode: CPU6: patch_level=0x06000852
    [ 0.471523] microcode: CPU7: patch_level=0x06000852
    [ 0.471627] microcode: Microcode Update Driver: v2.2.

    Is the CPU updated to the latest microcode?

    Yes.

    Resources I needed to find that out for you: https://www.cpu-world.com/cgi-bin/CPUID.pl?CPUID=22328

    and

    https://github.com/platomav/CPUMicrocodes/blob/master/AMD/cpu00600F20_ver06000852_2018-02-06_893C1544.bin

    -dsr-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Ritter@21:1/5 to Franco Martelli on Wed Sep 25 22:10:01 2024
    Franco Martelli wrote:
    On 25/09/24 at 18:16, Dan Ritter wrote:
    Is the CPU updated to the latest microcode?
    Yes.

    Resources I needed to find that out for you: https://www.cpu-world.com/cgi-bin/CPUID.pl?CPUID=22328

    Thank you for the time you spent for me

    and

    https://github.com/platomav/CPUMicrocodes/blob/master/AMD/cpu00600F20_ver06000852_2018-02-06_893C1544.bin

    So the CPU's microcode currently installed is dated February 2018, am I right?


    Correct. And it is not surprising, because AMD hasn't produced a
    chip with that core since 2015.

    What I'm looking for it was a procedure to discover if the CPU's microcode
    is synced with that provided by "amd64-microcode" package. Like that posted by Jeffrey Walton:

    Doesn't matter: it has the latest available from AMD, and either amd64-microcode has the same version, or it has an earlier
    version -- which is unlikely.

    -dsr-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michel Verdier@21:1/5 to Franco Martelli on Thu Sep 26 10:40:01 2024
    On 2024-09-25, Franco Martelli wrote:

    The file that contains the microcode for my CPU is dated April 2022:

    $ LANG=C ls -l /lib/firmware/amd-ucode/microcode_amd_fam15h.bin
    -rw-r--r-- 1 root root 7876 Apr 15 2022
    /lib/firmware/amd-ucode/microcode_amd_fam15h.bin

    Same for me. And :

    # dpkg -l amd64-microcode
    ii amd64-microcode 3.20240820.1~deb12u1 amd64 Platform firmware and microcode for AMD CPUs and SoCs

    But I got :

    # cat /proc/cpuinfo | grep microcode
    microcode : 0xa601206
    [x cpu nb]

    Previously you said :

    The issue is that I'm running an homemade Kernel image that it had the CONFIG_MICROCODE_AMD item disabled by me mistakenly, so I'm not sure that the microcode of my CPU was updated. Of course I've rebuild and installed a new kernel with that item enabled before rebooting.

    I also build my custom kernel. I use sources from 6.10.6-1~bpo12+1. I
    have no CONFIG_MICROCODE_AMD but a CONFIG_MICROCODE set by
    CONFIG_CPU_SUP_AMD. Which kernel version do you use ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=C3=B6rg-Volker_Peetz?=@21:1/5 to Franco Martelli on Thu Sep 26 15:00:02 2024
    Hi Franco,

    Franco Martelli wrote on 25/09/2024 17:07:
    On 25/09/24 at 14:58, Jörg-Volker Peetz wrote:
    What is the output of

    sudo dmesg | grep -E '(microcode|model)'

    ?
    This should show information about your CPU model and if its microcode is
    actually updated.

    Regards,
    Jörg.


    It returns:

    ~# dmesg | grep -E '(microcode|model)'
    [    0.131534] smpboot: CPU0: AMD FX(tm)-8350 Eight-Core Processor (family:
    0x15, model: 0x2, stepping: 0x0)
    [    0.470751] microcode: microcode updated early to new patch_level=0x06000852
    [    0.470889] microcode: CPU0: patch_level=0x06000852
    <snip>

    A new microcode for your CPU should be inside of

    /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin

    since it says 'family: 0x15' in your output.
    There is a little program on https://github.com/AMDESE/amd_ucode_info to look into the microcode file. For the package amd64-microcode on Debian testing version 3.20240820.1 it yields:

    $ amd_ucode_info.py /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin Microcode patches in xx/usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin:
    Family=0x15 Model=0x01 Stepping=0x02: Patch=0x0600063e Length=2592 bytes
    Family=0x15 Model=0x02 Stepping=0x00: Patch=0x06000852 Length=2592 bytes
    Family=0x15 Model=0x10 Stepping=0x01: Patch=0x06001119 Length=2592 bytes

    So yes, your CPU microcode is up-to-date.

    Regards,
    Jörg.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Henrik Ahlgren@21:1/5 to All on Fri Sep 27 09:50:01 2024
    On Thu, 2024-09-26 at 14:53 +0200, Jörg-Volker Peetz wrote:
    There is a little program on https://github.com/AMDESE/amd_ucode_info to look
    into the microcode file. For the package amd64-microcode on Debian testing version 3.20240820.1 it yields:

    $ amd_ucode_info.py /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin Microcode patches in xx/usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin:
    Family=0x15 Model=0x01 Stepping=0x02: Patch=0x0600063e Length=2592 bytes
    Family=0x15 Model=0x02 Stepping=0x00: Patch=0x06000852 Length=2592 bytes
    Family=0x15 Model=0x10 Stepping=0x01: Patch=0x06001119 Length=2592 bytes

    So yes, your CPU microcode is up-to-date.

    Perhaps it would be nice to ship a similar tool (or just a textual table as documentation) in the amd64-microcode package. I agree that it is not too
    easy to verify your AMD CPU microcode is indeed up-to-date with the latest microcode shipped in the package (or available from AMD), especially if you
    are not too familiar with all the details – like how /proc/cpuinfo reports the family and model numbers in decimal and not in hex, unlike everywhere
    else.

    Related bug report discussion with pretty good analysis and ideas from Matt Taggart:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076703#30

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)