public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: CPU microcode reported wrong in /proc/cpuinfo
@ 2020-06-10 15:34 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2020-06-10 21:45 ` Brian Inglis
  0 siblings, 1 reply; 12+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2020-06-10 15:34 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> also have to look for Update Signature

It's Windows 7 here (Windows 10 uses newer registry key names, with the word "Revision" in them, instead).

> Could you please run:

$ head /proc/version
CYGWIN_NT-6.1-7601 version 3.1.4-340.x86_64 (corinna@calimero) (gcc version 7.4.0 20181206 (Fedora Cygwin 7.4.0-1) (GCC) ) 2020-02-19 08:49 UTC

$ regtool list -v "/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/" | fgrep =
CurrentVersion (REG_SZ) = "6.1"
CurrentBuild (REG_SZ) = "7601"
SoftwareType (REG_SZ) = "System"
CurrentType (REG_SZ) = "Multiprocessor Free"
InstallDate (REG_DWORD) = 0x54373393 (1412903827)
RegisteredOrganization (REG_SZ) = ""
RegisteredOwner (REG_SZ) = "ANTON"
SystemRoot (REG_SZ) = "C:\Windows"
InstallationType (REG_SZ) = "Client"
EditionID (REG_SZ) = "HomePremium"
ProductName (REG_SZ) = "Windows 7 Home Premium"
ProductId (REG_SZ) = "00359-OEM-8702121-81656"
DigitalProductId (REG_BINARY) = a4 00 00 00 03 00 00 00
DigitalProductId4 (REG_BINARY) = f8 04 00 00 04 00 00 00
CurrentBuildNumber (REG_SZ) = "7601"
BuildLab (REG_SZ) = "7601.win7sp1_ldr_escrow.200102-1707"
BuildLabEx (REG_SZ) = "7601.24545.amd64fre.win7sp1_ldr_escrow.200102-1707"
BuildGUID (REG_SZ) = "3b42db76-c1db-4ecd-8368-b2e532306b4a"
CSDBuildNumber (REG_SZ) = "1130"
PathName (REG_SZ) = "C:\Windows"
CSDVersion (REG_SZ) = "Service Pack 1"
UBR (REG_DWORD) = 0x00005fe2 (24546)

$ regtool list -v /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/0/
Component Information (REG_BINARY) = 00 00 00 00 00 00 00 00
Identifier (REG_SZ) = "Intel64 Family 6 Model 23 Stepping 10"
Configuration Data (REG_FULL_RESOURCE_DESCRIPTOR) = ?
ProcessorNameString (REG_SZ) = "Intel(R) Xeon(R) CPU           X5470  @ 3.33GHz"
VendorIdentifier (REG_SZ) = "GenuineIntel"
FeatureSet (REG_DWORD) = 0x215b3ffe (559628286)
~MHz (REG_DWORD) = 0x00000d04 (3332)
Update Signature (REG_BINARY) = 00 00 00 00 0e 0a 00 00
Update Status (REG_DWORD) = 0x00000007 (7)
Previous Update Signature (REG_BINARY) = 00 00 00 00 0e 0a 00 00
Platform ID (REG_DWORD) = 0x00000040 (64)

P.S. I have since updated the microcode to version 0xA0E (from 0xA0B that used to show in my last email).

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: CPU microcode reported wrong in /proc/cpuinfo
@ 2020-07-16 20:41 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  0 siblings, 0 replies; 12+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2020-07-16 20:41 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> https://software.intel.com/security-software-guidance/insights/microcode-update-guidance

Thanks, interesting reading.

I think in my case the ucode update is done via the FIT method, though, as the latest microcode (0xA0E) is included in the re-packaged BIOS, and re-flashed into ROM along with it.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: CPU microcode reported wrong in /proc/cpuinfo
@ 2020-07-16 20:36 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  0 siblings, 0 replies; 12+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2020-07-16 20:36 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> So I think you probably encountered another Windows sleep bug

Quite possibly...  The microcode version in the registry looks okay after wake-up from hibernate, though (but that subsumes the system POST and clean boot).

> 0 - ucode loading supported by CPU - update available and successfully applied - loaded ucode (Update...) != BIOS boot ucode (Previous Update...)

Hmmm, cores1-3 "updated" after sleep?  I think it must be a bug then, indeed.

> If you are on Windows 10 you could report the issue to MS

Nah, Windows 7 here...  No longer "supported"


^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: CPU microcode reported wrong in /proc/cpuinfo
@ 2020-06-10 20:23 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2020-06-10 21:45 ` Brian Inglis
  0 siblings, 1 reply; 12+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2020-06-10 20:23 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> I'll have to recheck how Linux handles these

JFYI I was in correspondence with the cpuid utility team lately, and they told me that Linux uses vendor-specific MSRs to pull that info out:

> Check out:
> 
>    MSR_IA32_UCODE_REV
>    MSR_AMD64_PATCH_LEVEL
> 
> Both reference MSR 0x8b.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* CPU microcode reported wrong in /proc/cpuinfo
@ 2020-05-31 15:07 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2020-06-02 20:11 ` Brian Inglis
  0 siblings, 1 reply; 12+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2020-05-31 15:07 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi All,

In the updated Cygwin (3.1.4), /proc/cpuinfo still reports the microcode version wrong.

Compare:

Cygwin:
$ uname -a
CYGWIN_NT-6.1 xxx 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           X5470  @ 3.33GHz
stepping        : 10
microcode       : 0xFFFFFFF0
cpu MHz         : 3340.000

Linux:
$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           X5470  @ 3.33GHz
stepping	: 10
microcode	: 0xa0b

I checked the Windows registry, and the data stored there seem to identify the CPU correctly.

HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0
    Component Information    REG_BINARY    00000000000000000000000000000000
    Identifier    REG_SZ    Intel64 Family 6 Model 23 Stepping 10
    Configuration Data    REG_FULL_RESOURCE_DESCRIPTOR    FFFFFFFFFFFFFFFF000000
0000000000
    ProcessorNameString    REG_SZ    Intel(R) Xeon(R) CPU           X5470  @ 3.3
3GHz
    VendorIdentifier    REG_SZ    GenuineIntel
    FeatureSet    REG_DWORD    0x215b3ffe
    ~MHz    REG_DWORD    0xd05
    Update Signature    REG_BINARY    000000000B0A0000
    Update Status    REG_DWORD    0x0
    Previous Update Signature    REG_BINARY    00000000070A0000
    Platform ID    REG_DWORD    0x40

(Intel's CPU ID utility does so as well, "CPU Revision: A0B".)

Any ideas, why Cygwin is off?

Thanks,
Anton


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-07-16 20:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 15:34 CPU microcode reported wrong in /proc/cpuinfo Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2020-06-10 21:45 ` Brian Inglis
  -- strict thread matches above, loose matches on Subject: below --
2020-07-16 20:41 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2020-07-16 20:36 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2020-06-10 20:23 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2020-06-10 21:45 ` Brian Inglis
2020-07-10  1:27   ` Brian Inglis
2020-07-16 14:56     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2020-07-16 19:46       ` Brian Inglis
2020-07-16 20:13         ` Brian Inglis
2020-05-31 15:07 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2020-06-02 20:11 ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).