Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
25 stars 0 forks source link

Maximum reported frequency is base frequency, not turbo frequency (Windows 11) #522

Open johanes2115 opened 1 year ago

johanes2115 commented 1 year ago

Dasharo version (if applicable) v1.7.0

Dasharo variant (if applicable) Novacustom

Affected component(s) or functionality (if applicable) CPU frequency testing

Brief summary

(Get-CimInstance CIM_Processor).MaxClockSpeed command returns base CPU frequency instead of max frequency, despite it being present in the SMBIOS.

Expected behaviour

The command mentioned above returns max CPU frequency, including turbo boost.

Actual behaviour

The command returns base clock speed.

mkopec commented 1 year ago

So the MaxClockSpeed object in the Win32_Processor takes its value from SMBIOS Type 4 data. We should have the maximum turbo clock speed in there: https://github.com/Dasharo/coreboot/blob/c1386ef6128922f49f93de5690ccd130a26eecf2/src/soc/intel/common/block/cpu/cpulib.c#L507 so the test should be valid. Needs some investigation.

@johanes2115 would you mind running sudo dmidecode on Ubuntu and copy the output here?

johanes2115 commented 1 year ago

dmidecode 3.3

Getting SMBIOS data from sysfs. SMBIOS 3.3.0 present. Table at 0x76132000.

Handle 0x0000, DMI type 0, 26 bytes BIOS Information Vendor: 3mdeb Version: Dasharo (coreboot+UEFI) v1.7.0 Release Date: 10/03/2023 ROM Size: 32 MB Characteristics: PCI is supported PC Card (PCMCIA) is supported BIOS is upgradeable Selectable boot is supported ACPI is supported Targeted content distribution is supported BIOS Revision: 1.7 Firmware Revision: 0.0

Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: Notebook Product Name: NV4xPZ Version: v2.1 Serial Number: 123456789 UUID: Not Settable Wake-up Type: Power Switch SKU Number: Not Applicable Family: Not Applicable

Handle 0x0002, DMI type 2, 14 bytes Base Board Information Manufacturer: Notebook Product Name: NV4xPZ Version: v2.1 Serial Number: 123456789 Asset Tag: Not Specified Features: None Location In Chassis: Not Specified Chassis Handle: 0x0003 Type: Motherboard

Handle 0x0003, DMI type 3, 22 bytes Chassis Information Manufacturer: Notebook Type: Notebook Lock: Not Present Version: Not Specified Serial Number: Not Specified Asset Tag: Not Specified Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: None OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: 1 Contained Elements: 0 SKU Number: Not Specified

Handle 0x0004, DMI type 4, 48 bytes Processor Information Socket Designation: CPU0 Type: Central Processor Family: Pentium Pro Manufacturer: GenuineIntel ID: A3 06 09 00 FF FB EB BF Signature: Type 0, Family 6, Model 154, Stepping 3 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: 12th Gen Intel(R) Core(TM) i5-1240P Voltage: 0.8 V External Clock: 100 MHz Max Speed: 4400 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: L1 Cache Handle: 0x0006 L2 Cache Handle: 0x0007 L3 Cache Handle: 0x0008 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 8 Core Enabled: 8 Thread Count: 16 Characteristics: Hardware Thread Execute Protection Enhanced Virtualization

Handle 0x0005, DMI type 7, 27 bytes Cache Information Socket Designation: CACHE1 Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Unknown Location: Internal Installed Size: 384 kB Maximum Size: 384 kB Supported SRAM Types: Unknown Installed SRAM Type: Unknown Speed: Unknown Error Correction Type: Unknown System Type: Data Associativity: 12-way Set-associative

Handle 0x0006, DMI type 7, 27 bytes Cache Information Socket Designation: CACHE1 Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Unknown Location: Internal Installed Size: 256 kB Maximum Size: 256 kB Supported SRAM Types: Unknown Installed SRAM Type: Unknown Speed: Unknown Error Correction Type: Unknown System Type: Instruction Associativity: 8-way Set-associative

Handle 0x0007, DMI type 7, 27 bytes Cache Information Socket Designation: CACHE2 Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Unknown Location: Internal Installed Size: 2560 kB Maximum Size: 2560 kB Supported SRAM Types: Unknown Installed SRAM Type: Unknown Speed: Unknown Error Correction Type: Unknown System Type: Unified Associativity: Unknown

Handle 0x0008, DMI type 7, 27 bytes Cache Information Socket Designation: CACHE3 Configuration: Enabled, Not Socketed, Level 3 Operational Mode: Unknown Location: Internal Installed Size: 12 MB Maximum Size: 12 MB Supported SRAM Types: Unknown Installed SRAM Type: Unknown Speed: Unknown Error Correction Type: Unknown System Type: Unified Associativity: 8-way Set-associative

Handle 0x0009, DMI type 11, 5 bytes OEM Strings String 1: EC: open-source String 2: EC firmware version: 2023-10-12_2c56a12

Handle 0x000A, DMI type 16, 23 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 128 GB Error Information Handle: Not Provided Number Of Devices: 2

Handle 0x000B, DMI type 17, 40 bytes Memory Device Array Handle: 0x000A Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 8 GB Form Factor: SODIMM Set: None Locator: Channel-0-DIMM-0 Bank Locator: BANK 0 Type: DDR4 Type Detail: Unknown Synchronous Speed: 3200 MT/s Manufacturer: Kingston Serial Number: ff9af46c Asset Tag: Channel-0-DIMM-0-AssetTag Part Number: 9905700-118.A00G Rank: 1 Configured Memory Speed: 3200 MT/s Minimum Voltage: 1.2 V Maximum Voltage: 1.2 V Configured Voltage: 1.2 V

Handle 0x000C, DMI type 17, 40 bytes Memory Device Array Handle: 0x000A Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 8 GB Form Factor: SODIMM Set: None Locator: Channel-0-DIMM-0 Bank Locator: BANK 0 Type: DDR4 Type Detail: Unknown Synchronous Speed: 3200 MT/s Manufacturer: Kingston Serial Number: 00daf016 Asset Tag: Channel-0-DIMM-0-AssetTag Part Number: 9905700-118.A00G Rank: 1 Configured Memory Speed: 3200 MT/s Minimum Voltage: 1.2 V Maximum Voltage: 1.2 V Configured Voltage: 1.2 V

Handle 0x000D, DMI type 19, 31 bytes Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x003FFFFFFFF Range Size: 16 GB Physical Array Handle: 0x000A Partition Width: 2

Handle 0x000E, DMI type 20, 35 bytes Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x001FFFFFFFF Range Size: 8 GB Physical Device Handle: 0x000B Memory Array Mapped Address Handle: 0x000D Partition Row Position: Unknown Interleave Position: Unknown Interleaved Data Depth: Unknown

Handle 0x000F, DMI type 20, 35 bytes Memory Device Mapped Address Starting Address: 0x00200000000 Ending Address: 0x003FFFFFFFF Range Size: 8 GB Physical Device Handle: 0x000B Memory Array Mapped Address Handle: 0x000D Partition Row Position: Unknown Interleave Position: Unknown Interleaved Data Depth: Unknown

Handle 0x0010, DMI type 32, 11 bytes System Boot Information Status: No errors detected

Handle 0x0011, DMI type 41, 11 bytes Onboard Device Reference Designation: VGA compatible controller Type: Video Status: Enabled Type Instance: 0 Bus Address: 0000:00:02.0

Handle 0x0012, DMI type 133, 5 bytes OEM-specific Type Header and Data: 85 05 12 00 01 Strings: KHOIHGIUCCHHII

Handle 0xFEFF, DMI type 127, 4 bytes End Of Table

Also as we discussed offline, I changed the contents of the issue, as it seems to be a problem not with our documentation, but with the device itself @mkopec

wessel-novacustom commented 11 months ago

@johanes2115 Is this issue still happening on Dasharo v1.5.2-rc1 (11th Gen) and Dasharo v1.7.2-rc1 (12th Gen)? https://github.com/Dasharo/coreboot/actions/runs/6907218746

macpijan commented 7 months ago

Related issue has been spotted on another platform. Please see this summary: https://github.com/Dasharo/dasharo-issues/issues/747#issuecomment-2013255550

macpijan commented 7 months ago

Reference dmidecode for Protectli VP4670 v2:

dmidecode -t processor
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.

Handle 0x0004, DMI type 4, 48 bytes
Processor Information
        Socket Designation: CPU0
        Type: Central Processor
        Family: Pentium Pro
        Manufacturer: GenuineIntel
        ID: 61 06 0A 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 166, Stepping 1
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Core(TM) i7-10810U CPU @ 1.10GHz
        Voltage: Unknown
        External Clock: 100 MHz
        Max Speed: 4900 MHz
        Current Speed: 1600 MHz
        Status: Populated, Enabled
        Upgrade: Unknown
        L1 Cache Handle: 0x0006
        L2 Cache Handle: 0x0007
        L3 Cache Handle: 0x0008
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 6
        Core Enabled: 6
        Thread Count: 12
        Characteristics:
                Hardware Thread
                Execute Protection
                Enhanced Virtualization

Relevant part is:

        Max Speed: 4900 MHz
        Current Speed: 1600 MHz
mkopec commented 7 months ago

Looks like we're only getting the static Current Speed value on Windows, not the correct Max Speed value that we need