[Bug 262933] cpucontrol: incorrect detection of Intel CPU revision - wrong microcode file selected

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 31 Mar 2022 07:51:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262933

--- Comment #4 from moon300web@gmx.net ---
(In reply to Ed Maste from comment #3)
Sorry for not mentioning the version immediately
It seems my system does not find the version you have (I use pkgs not ports)

pkg search devcpu-data
  devcpu-data-20211109           AMD and Intel CPUs microcode updates
  devcpu-data-amd-20211115       AMD CPUs microcode updates
  devcpu-data-intel-20210608     Intel CPU microcode updates

pkg info devcpu-data-intel-20210608
devcpu-data-intel-20210608
Name           : devcpu-data-intel
Version        : 20210608
Installed on   : Mon Mar 21 21:36:21 2022 CET
Origin         : sysutils/devcpu-data-intel
Architecture   : FreeBSD:13:*
Prefix         : /usr/local
Categories     : sysutietcls
Licenses       : EULA
Maintainer     : sbruno@FreeBSD.org
WWW            :
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
Comment        : Intel CPU microcode updates
Annotations    :
        cpe            : cpe:2.3:o:intel:microcode:20210608:::::freebsd13:x64
        repo_type      : binary
        repository     : FreeBSD
(coming from:
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/releases/tag/microcode-20210608)

pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

Wanted to test with another 06-86-05 file (see if detected as compatible), but
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/tree/main/intel-ucode
does not list a 06-86-05 file indeed.

https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/releases
states it was removed in the latest release:
Removed Platforms
Processor       Stepping        F-M-S/PI        Old Ver         New Ver        
Products
SNR     B0      06-86-04/01     0b00000f                Atom P59xxB
SNR     B1      06-86-05/01     0b00000f                Atom P59xxB

Still interesting that the CPU revision seems correctly encoded in the file:
od -t x4 /usr/local/share/cpucontrol/06-86-05.01 | head -1
0000000          00000001        0b00000f        02172021        00080665

but cpucontrol detects it as a file compatible with 06-8e-0c.

-- 
You are receiving this mail because:
You are the assignee for the bug.