cyring / CoreFreq

CoreFreq : CPU monitoring and tuning software designed for 64-bit processors.
https://www.cyring.fr
GNU General Public License v2.0
2.01k stars 128 forks source link

[Solved] MSI Tomahawk Z690 - Memory controller shows RAM is in single channel mode #351

Closed rushvora closed 2 years ago

rushvora commented 2 years ago

I need to double check this in Windows (with CPU-Z Or HWInfo), will update this issue with findings. The memory controller screen shows the RAM is in single channel. It should be dual channel, unless for some reason the motherboard is running them in single channel mode.

Corefreq CLI Screenshot

Output of corefreq-cli -s -n -m -n-M as asked here - https://twitter.com/cyring_labs/status/1543862290579169283

Let me know if there is any more information y'all need.

Processor                                 [12th Gen Intel(R) Core(TM) i9-12900K]
|- Architecture                                                     [Alder Lake]
|- Vendor ID                                                      [GenuineIntel]
|- Microcode                                                        [0x0000001f]
|- Signature                                                           [  06_97]
|- Stepping                                                            [      2]
|- Online CPU                                                          [ 24/ 24]
|- Base Clock                                                          [ 99.598]
|- Frequency            (MHz)                      Ratio                        
                 Min    796.74                    <   8 >                       
                 Max   3186.96                    <  32 >                       
|- Factory                                                             [100.000]
                       3200                       [  32 ]                       
|- Performance                                                                  
   |- P-State                                                                   
                 TGT    995.92                    <  10 >                       
   |- HWP                                                                       
                 Min    995.92                    <  10 >                       
                 Max   6473.51                    <  65 >                       
                 TGT      AUTO                    <   0 >                       
|- Turbo Boost                                                         [ UNLOCK]
                  1C   5178.80                    <  52 >                       
                  2C   5079.21                    <  51 >                       
                  3C   4979.62                    <  50 >                       
                  4C   4979.62                    <  50 >                       
                  5C   4880.03                    <  49 >                       
                  6C   4880.03                    <  49 >                       
                  7C   4880.03                    <  49 >                       
                  8C   4880.03                    <  49 >                       
|- Hybrid                                                              [ UNLOCK]
                  1C   3884.43                    <  39 >                       
                  2C   3884.43                    <  39 >                       
                  3C   3884.43                    <  39 >                       
                  4C   3884.43                    <  39 >                       
                  5C   3685.23                    <  37 >                       
                  6C   3685.23                    <  37 >                       
                  7C   3685.23                    <  37 >                       
                  8C   3685.23                    <  37 >                       
|- Uncore                                                              [ UNLOCK]
                 Min    796.81                    <   8 >                       
                 Max   5179.24                    <  52 >                       
|- TDP                                                           Level [  0:3  ]
   |- Programmable                                                     [ UNLOCK]
   |- Configuration                                                    [   LOCK]
   |- Turbo Activation                                                 [ UNLOCK]
             Nominal   3186.96                    [  32 ]                       
               Turbo      AUTO                    <   0 >                       

Instruction Set Extensions                                                      
|- 3DNow!/Ext [N/N]          ADX [Y]          AES [Y]  AVX/AVX2 [Y/Y] 
|- AVX512-F     [N]    AVX512-DQ [N]  AVX512-IFMA [N]   AVX512-PF [N] 
|- AVX512-ER    [N]    AVX512-CD [N]    AVX512-BW [N]   AVX512-VL [N] 
|- AVX512-VBMI  [N] AVX512-VBMI2 [N]  AVX512-VNNI [N]  AVX512-ALG [N] 
|- AVX512-VPOP  [N] AVX512-VNNIW [N] AVX512-FMAPS [N] AVX512-VP2I [N] 
|- AVX512-BF16  [N] AVX-VNNI-VEX [Y]      MOVDIRI [Y]   MOVDIR64B [Y] 
|- BMI1/BMI2  [Y/Y]         CLWB [Y]      CLFLUSH [Y] CLFLUSH-OPT [Y] 
|- CLAC-STAC    [Y]         CMOV [Y]    CMPXCHG8B [Y]  CMPXCHG16B [Y] 
|- F16C         [Y]          FPU [Y]         FXSR [Y]   LAHF-SAHF [Y] 
|- MMX/Ext    [Y/N] MON/MWAITX [Y/N]        MOVBE [Y]   PCLMULQDQ [Y] 
|- POPCNT       [Y]       RDRAND [Y]       RDSEED [Y]      RDTSCP [Y] 
|- SEP          [Y]          SHA [Y]          SSE [Y]        SSE2 [Y] 
|- SSE3         [Y]        SSSE3 [Y]  SSE4.1/4A [Y/N]      SSE4.2 [Y] 
|- SERIALIZE    [Y]      SYSCALL [Y]          SGX [N]       RDPID [Y] 

Features                                                                        
|- 1 GB Pages Support                                      1GB-PAGES   [Capable]
|- Advanced Configuration & Power Interface                     ACPI   [Capable]
|- Advanced Programmable Interrupt Controller                   APIC   [Capable]
|- APIC Timer Invariance                                        ARAT   [Capable]
|- Core Multi-Processing                                  CMP Legacy   [Missing]
|- L1 Data Cache Context ID                                  CNXT-ID   [Missing]
|- Direct Cache Access                                           DCA   [Missing]
|- Debugging Extension                                            DE   [Capable]
|- Debug Store & Precise Event Based Sampling               DS, PEBS   [Capable]
|- CPL Qualified Debug Store                                  DS-CPL   [Capable]
|- 64-Bit Debug Store                                         DTES64   [Capable]
|- Fast Short REP CMPSB                                         FSRC   [Missing]
|- Fast Short REP MOVSB                                         FSRM   [Capable]
|- Fast Short REP STOSB                                         FSRS   [Capable]
|- Fast Zero-length REP MOVSB                                   FZRM   [Missing]
|- Fast-String Operation                                        ERMS   [Capable]
|- Fused Multiply Add                                     FMA | FMA4   [Capable]
|- Hardware Feedback Interface                                   HFI   [Capable]
|- Hardware Lock Elision                                         HLE   [Missing]
|- History Reset                                              HRESET   [Capable]
|- Hybrid part processor                                      HYBRID   [Capable]
|- Instruction Based Sampling                                    IBS   [Missing]
|- Instruction INVPCID                                       INVPCID   [Capable]
|- Long Mode 64 bits                                       IA64 | LM   [Capable]
|- LightWeight Profiling                                         LWP   [Missing]
|- Machine-Check Architecture                                    MCA   [Capable]
|- Memory Protection Extensions                                  MPX   [Missing]
|- Model Specific Registers                                      MSR   [Capable]
|- Memory Type Range Registers                                  MTRR   [Capable]
|- OS-Enabled Ext. State Management                          OSXSAVE   [Capable]
|- Physical Address Extension                                    PAE   [Capable]
|- Page Attribute Table                                          PAT   [Capable]
|- Pending Break Enable                                          PBE   [Capable]
|- Platform Configuration                                    PCONFIG   [Capable]
|- Process Context Identifiers                                  PCID   [Capable]
|- Perfmon and Debug Capability                                 PDCM   [Capable]
|- Page Global Enable                                            PGE   [Capable]
|- Page Size Extension                                           PSE   [Capable]
|- 36-bit Page Size Extension                                  PSE36   [Capable]
|- Processor Serial Number                                       PSN   [Missing]
|- Resource Director Technology/PQE                            RDT-A   [Missing]
|- Resource Director Technology/PQM                            RDT-M   [Missing]
|- Restricted Transactional Memory                               RTM   [Missing]
|- Safer Mode Extensions                                         SMX   [Capable]
|- Self-Snoop                                                     SS   [Capable]
|- Supervisor-Mode Access Prevention                            SMAP   [Capable]
|- Supervisor-Mode Execution Prevention                         SMEP   [Capable]
|- Thread Director                                                TD   [Capable]
|- Time Stamp Counter                                            TSC [Invariant]
|- Time Stamp Counter Deadline                          TSC-DEADLINE   [Capable]
|- TSX Force Abort MSR Register                            TSX-ABORT   [Missing]
|- TSX Suspend Load Address Tracking                       TSX-LDTRK   [Missing]
|- User-Mode Instruction Prevention                             UMIP   [Capable]
|- Virtual Mode Extension                                        VME   [Capable]
|- Virtual Machine Extensions                                    VMX   [Capable]
|- Extended xAPIC Support                                     x2APIC   [ x2APIC]
|- Execution Disable Bit Support                              XD-Bit   [Capable]
|- XSAVE/XSTOR States                                          XSAVE   [Capable]
|- xTPR Update Control                                          xTPR   [Capable]
Mitigation mechanisms                                                           
|- Indirect Branch Restricted Speculation                       IBRS   [ Enable]
|- Indirect Branch Prediction Barrier                           IBPB   [Capable]
|- Single Thread Indirect Branch Predictor                     STIBP   [Capable]
|- Speculative Store Bypass Disable                             SSBD   [Capable]
|- Writeback & invalidate the L1 data cache                L1D-FLUSH   [Capable]
|- Hypervisor - No flush L1D on VM entry            L1DFL_VMENTRY_NO   [ Enable]
|- Architectural - Buffer Overwriting                       MD-CLEAR   [Capable]
|- Architectural - Rogue Data Cache Load                     RDCL_NO   [ Enable]
|- Architectural - Enhanced IBRS                            IBRS_ALL   [ Enable]
|- Architectural - Return Stack Buffer Alternate                RSBA   [Capable]
|- Architectural - Speculative Store Bypass                   SSB_NO   [Capable]
|- Architectural - Microarchitectural Data Sampling           MDS_NO   [ Enable]
|- Architectural - TSX Asynchronous Abort                     TAA_NO   [ Enable]
|- Architectural - Page Size Change MCE               PSCHANGE_MC_NO   [ Enable]
|- Architectural - STLB QoS                                     STLB   [Capable]
|- Architectural - Functional Safety Island                     FuSa   [Capable]
|- Architectural - RSM in CPL0 only                              RSM   [Capable]
|- Architectural - Split Locked Access Exception                SPLA   [Capable]
|- Architectural - Snoop Filter QoS Mask                SNOOP_FILTER   [Capable]

Technologies                                                                    
|- Data Cache Unit                                                              
   |- L1 Prefetcher                                                L1 HW   < ON>
   |- L1 IP Prefetcher                                          L1 HW IP   < ON>
   |- L2 Prefetcher                                                L2 HW   < ON>
   |- L2 Line Prefetcher                                        L2 HW CL   < ON>
|- System Management Mode                                       SMM-Dual   [ ON]
|- Hyper-Threading                                                   HTT   [ ON]
|- SpeedStep                                                        EIST   < ON>
|- Dynamic Acceleration                                              IDA   [ ON]
|- Turbo Boost Max 3.0                                             TURBO   < ON>
|- Energy Efficiency Optimization                                    EEO   <OFF>
|- Race To Halt Optimization                                         R2H   <OFF>
|- Watchdog Timer                                                    TCO   <OFF>
|- Virtualization                                                    VMX   [ ON]
   |- I/O MMU                                                       VT-d   [ ON]
   |- Version                                                     [         4.0]
   |- Hypervisor                                                           [OFF]
   |- Vendor ID                                                   [         N/A]

Performance Monitoring                                                          
|- Version                                                        PM       [  5]
|- Counters:          General                   Fixed                           
|           {  6,  0,  0 } x 48 bits            3 x 48 bits                     
|- Enhanced Halt State                                           C1E       <OFF>
|- C1 Auto Demotion                                              C1A       < ON>
|- C3 Auto Demotion                                              C3A       <OFF>
|- C1 UnDemotion                                                 C1U       < ON>
|- C3 UnDemotion                                                 C3U       <OFF>
|- C6 Core Demotion                                              CC6       <OFF>
|- C6 Module Demotion                                            MC6       <OFF>
|- Legacy Frequency ID control                                   FID       [OFF]
|- Legacy Voltage ID control                                     VID       [OFF]
|- P-State Hardware Coordination Feedback                MPERF/APERF       [ ON]
|- Hardware-Controlled Performance States                        HWP       < ON>
   |- Capabilities      (MHz)                      Ratio                        
              Lowest     99.60                    [   1 ]                       
           Efficient   1294.78                    [  13 ]                       
          Guaranteed   4083.53                    [  41 ]                       
             Highest   6473.88                    [  65 ]                       
|- Hardware Duty Cycling                                         HDC       [OFF]
|- Package C-States                                                             
   |- Configuration Control                                   CONFIG   [   LOCK]
   |- Lowest C-State                                           LIMIT   <     C0>
   |- I/O MWAIT Redirection                                  IOMWAIT   <Disable>
   |- Max C-State Inclusion                                    RANGE   <     C1>
|- Core C-States                                                                
   |- C-States Base Address                                      BAR   [ 0x1814]
|- MONITOR/MWAIT                                                                
   |- State index:    #0    #1    #2    #3    #4    #5    #6    #7              
   |- Sub C-State:     0     2     0     2     0     1     0     1              
|- Core Cycles                                                         [Capable]
|- Instructions Retired                                                [Capable]
|- Reference Cycles                                                    [Capable]
|- Last Level Cache References                                         [Capable]
|- Last Level Cache Misses                                             [Capable]
|- Branch Instructions Retired                                         [Capable]
|- Branch Mispredicts Retired                                          [Capable]
|- Top-down slots Counter                                              [Capable]

Power, Current & Thermal                                                        
|- Temperature Offset:Junction                                 TjMax [  0:100 C]
|- Clock Modulation                                             ODCM   <Disable>
   |- DutyCycle                                                        [  0.00%]
|- Power Management                                         PWR MGMT   [   LOCK]
   |- Energy Policy                                        Bias Hint   [      0]
   |- Energy Policy                                          HWP EPP   <    128>
|- Digital Thermal Sensor                                        DTS   [Capable]
|- Power Limit Notification                                      PLN   [Capable]
|- Package Thermal Management                                    PTM   [Capable]
|- Thermal Monitor 1                                             TM1   [ Enable]
|- Thermal Monitor 2                                             TM2   [Capable]
|- Thermal Design Power                                          TDP   [  125 W]
   |- Minimum Power                                              Min   [Missing]
   |- Maximum Power                                              Max   [Missing]
|- Thermal Design Power                                      Package   < Enable>
   |- Power Limit                                                PL1   < 4095 W>
   |- Time Window                                                TW1   <   56 s>
   |- Power Limit                                                PL2   < 4095 W>
   |- Time Window                                                TW2   <   2 ms>
|- Thermal Design Power                                         Core   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   < 976 us>
|- Thermal Design Power                                       Uncore   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   < 976 us>
|- Thermal Design Power                                         DRAM   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   < 976 us>
|- Thermal Design Power                                     Platform   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   <   28 s>
   |- Power Limit                                                PL2   <    0 W>
   |- Time Window                                                TW2   < 976 us>
|- Electrical Design Current                                     EDC   [Missing]
|- Thermal Design Current                                        TDC   [Missing]
|- Core Thermal Point                                                           
   |- DTS Threshold #1                                     Threshold   [Missing]
   |- DTS Threshold #2                                     Threshold   [Missing]
|- Package Thermal Point                                                        
   |- DTS Threshold #1                                     Threshold   [Missing]
   |- DTS Threshold #2                                     Threshold   [Missing]
|- Units                                                                        
   |- Power                                               watt   [  0.125000000]
   |- Energy                                             joule   [  0.000061035]
   |- Window                                            second   [  0.000976562]

CPU Pkg  Apic  Core/Thread  Caches      (w)rite-Back (i)nclusive              
 #   ID   ID  Hybrid ID/ID L1-Inst Way  L1-Data Way      L2  Way      L3  Way 
000:BSP    0  P   1   0  0   32768  8     49152 12   1310720 10  31457280 12  
001:  0    1  P   1   0  1   32768  8     49152 12   1310720 10  31457280 12  
002:  0    8  P   1   4  0   32768  8     49152 12   1310720 10  31457280 12  
003:  0    9  P   1   4  1   32768  8     49152 12   1310720 10  31457280 12  
004:  0   16  P   1   8  0   32768  8     49152 12   1310720 10  31457280 12  
005:  0   17  P   1   8  1   32768  8     49152 12   1310720 10  31457280 12  
006:  0   24  P   1  12  0   32768  8     49152 12   1310720 10  31457280 12  
007:  0   25  P   1  12  1   32768  8     49152 12   1310720 10  31457280 12  
008:  0   32  P   1  16  0   32768  8     49152 12   1310720 10  31457280 12  
009:  0   33  P   1  16  1   32768  8     49152 12   1310720 10  31457280 12  
010:  0   40  P   1  20  0   32768  8     49152 12   1310720 10  31457280 12  
011:  0   41  P   1  20  1   32768  8     49152 12   1310720 10  31457280 12  
012:  0   48  P   1  24  0   32768  8     49152 12   1310720 10  31457280 12  
013:  0   49  P   1  24  1   32768  8     49152 12   1310720 10  31457280 12  
014:  0   56  P   1  28  0   32768  8     49152 12   1310720 10  31457280 12  
015:  0   57  P   1  28  1   32768  8     49152 12   1310720 10  31457280 12  
016:  0   64  E   1  32  0   65536  8     32768  8   2097152 16  31457280 12  
017:  0   66  E   1  33  0   65536  8     32768  8   2097152 16  31457280 12  
018:  0   68  E   1  34  0   65536  8     32768  8   2097152 16  31457280 12  
019:  0   70  E   1  35  0   65536  8     32768  8   2097152 16  31457280 12  
020:  0   72  E   1  36  0   65536  8     32768  8   2097152 16  31457280 12  
021:  0   74  E   1  37  0   65536  8     32768  8   2097152 16  31457280 12  
022:  0   76  E   1  38  0   65536  8     32768  8   2097152 16  31457280 12  
023:  0   78  E   1  39  0   65536  8     32768  8   2097152 16  31457280 12  
cyring commented 2 years ago

Thank you for output. Indeed Windows collections may help to have a better understanding of IMC topology. Hybrid comes with additional features that make previous SNB-SKL decoders questionable

rushvora commented 2 years ago

Checked both CPU-Z and HWiNFO64, they report dual channel as expected. Let me know if there's any more information that I can provide.

cpuz_W0g7ltG4Nk HWiNFO64_Zn1n7Mh5ey cpuz_sQQ1JQcGw9
cyring commented 2 years ago

Hello,

Can you pull the develop branch and try again the IMC ?

cd tmp
git clone -b develop https://github.com/cyring/CoreFreq
cd CoreFreq
make clean all
# as root
insmod corefreqk.ko
./corefreqd
# as user
# check development version
./corefreq-cli -v
1.91.5
# dump IMC
./corefreq-cli -M
rushvora commented 2 years ago

Still says Single Channel

 13:32:51  ~/Downloads/corefreq/CoreFreq  develop                                                                                              17.2G RAM 
❯ ./corefreq-cli -M
                             Intel Z690  [7A84]                            
Controller #0                                               Single Channel 
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC

Controller #1                                               Single Channel 
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 13:32:56  ~/Downloads/corefreq/CoreFreq  develop                                                                                              17.2G RAM 
❯ ./corefreq-cli -v
1.91.5
 13:33:26  ~/Downloads/corefreq/CoreFreq  develop                                                                                              17.3G RAM 
❯ 
cyring commented 2 years ago

In fact I don't know what I'm supposed to get from this architecture ?

https://edc.intel.com/content/www/us/en/design/ipla/software-development-platforms/client/platforms/alder-lake-desktop/12th-generation-intel-core-processors-datasheet-volume-1-of-2/002/system-memory-frequency/

https://edc.intel.com/content/www/us/en/design/ipla/software-development-platforms/client/platforms/alder-lake-desktop/12th-generation-intel-core-processors-datasheet-volume-1-of-2/002/system-memory-controller-organization-mode-ddr4-5-only/

Edit:

  1. https://www.tomshardware.com/features/intel-alder-lake-ram-guide-ddr4-ddr5

I need to find a way to program directly on your hardware to discover the missing parts...

cyring commented 2 years ago

@BugReporterZ Could you try the develop branch with your i7-12700K and post the output of Memory Controller ?

corefreq-cli -M
BugReporterZ commented 2 years ago

@cyring Just tried that (last commit Sun Jul 31 16:22:48 2022 +0000):

./corefreq-cli -M
                             Intel Z690  [7A84]                            
Controller #0                                               Single Channel 
 Bus Rate  4600 MHz       Bus Speed 4612 MHz           DDR4 Speed 3609 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    18   22   22   42    4    9   40   24   12   46   18   7   2T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        36   29    7    7
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  CMK32GX4M2D3600C18

Controller #1                                               Single Channel 
 Bus Rate  4600 MHz       Bus Speed 4612 MHz           DDR4 Speed 3609 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    18   22   22   42    4    9   40   24   12   46   18   7   2T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        36   29    7    7
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  CMK32GX4M2D3600C18
cyring commented 2 years ago

@rushvora @BugReporterZ

For your IMC testings is attached this archive which attempts to decode the channel mode from DDPCD of ADL_CAPID_A register. (more to read in 655259_003.pdf)

CoreFreq_develop.tar.gz

The kernel log will also print data values of these capabilities

"CoreFreq:ADL_Cap_A[%x]\n"
"CoreFreq:ADL_Cap_B[%x]\n"
"CoreFreq:ADL_Cap_C[%x]\n"
"CoreFreq:ADL_Cap_E[%x]\n"
rushvora commented 2 years ago

The files within the tar you provided seems to work, it says Dual Channel now!

 02:10:08  ~/Downloads/corefreq-2/CoreFreq                                                                                                        16G RAM 
❯ ./corefreq-cli -v
1.91.5
 02:10:13  ~/Downloads/corefreq-2/CoreFreq                                                                                                        16G RAM 
❯ ./corefreq-cli -M
                             Intel Z690  [7A84]                            
Controller #0                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     5    8    8   28    4    4   16   14    6   24    6   4   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     4    4    4    4         4    4    4    4         4    4    4    4
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     4    4    4    4                     4100  180    0    4    1    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                                                  

Controller #1                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     5    8    8   28    4    4   16   14    6   24    6   4   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     4    4    4    4         4    4    4    4         4    4    4    4
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     4    4    4    4                     4100  180    0    4    1    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                           
rushvora commented 2 years ago

I need to find a way to program directly on your hardware to discover the missing parts...

I'll try and set up the env that's safe for me to allow you to SSH into my machine. I have a spare drive on which I can set up a fresh install of your preferred distro. I need to prevent/disable the other connected drives, which is the cumbersome part.

If there's any guide or something I can follow as an alternative to the above for you to SSH in, let me know (unless you've already figured it out, going by my previous comment).

cyring commented 2 years ago

The files within the tar you provided seems to work, it says Dual Channel now!

 02:10:08  ~/Downloads/corefreq-2/CoreFreq                                                                                                        16G RAM 
❯ ./corefreq-cli -v
1.91.5
 02:10:13  ~/Downloads/corefreq-2/CoreFreq                                                                                                        16G RAM 
❯ ./corefreq-cli -M
                             Intel Z690  [7A84]                            
Controller #0                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     5    8    8   28    4    4   16   14    6   24    6   4   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     4    4    4    4         4    4    4    4         4    4    4    4
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     4    4    4    4                     4100  180    0    4    1    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                                                  

Controller #1                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     5    8    8   28    4    4   16   14    6   24    6   4   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     4    4    4    4         4    4    4    4         4    4    4    4
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     4    4    4    4                     4100  180    0    4    1    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                           

Great progress, thank you.

Can you also post the CoreFreq traces from the kernel log (dmesg)

Verifying the channels count will also mean to detect the opposite case: Currently Dual, we need to test Single. I think if you just boot with only one DIMM, CoreFreq should print Single.

rushvora commented 2 years ago

Can you also post the CoreFreq traces from the kernel log (dmesg)

[39144.288416] CoreFreq(0:1:23): Processor [ 06_97] Architecture [Alder Lake] SMT [24/24]
[39144.288432] CoreFreq:ADL_Cap_A[62002028]
               CoreFreq:ADL_Cap_B[b0200000]
               CoreFreq:ADL_Cap_C[c6402380]
               CoreFreq:ADL_Cap_E[1e1640]
[39144.288458] resource sanity check: requesting [mem 0xfedc0000-0xfedcffff], which spans more than pnp 00:03 [mem 0xfedc0000-0xfedc7fff]
[39144.288459] caller Router+0xd6/0x120 [corefreqk] mapping multiple BARs

Verifying the channels count will also mean to detect the opposite case: Currently Dual, we need to test Single. I think if you just boot with only one DIMM, CoreFreq should print Single.

Will try this over the weekend.

cyring commented 2 years ago

Can you also post the CoreFreq traces from the kernel log (dmesg)

[39144.288416] CoreFreq(0:1:23): Processor [ 06_97] Architecture [Alder Lake] SMT [24/24]
[39144.288432] CoreFreq:ADL_Cap_A[62002028]
               CoreFreq:ADL_Cap_B[b0200000]
               CoreFreq:ADL_Cap_C[c6402380]
               CoreFreq:ADL_Cap_E[1e1640]
[39144.288458] resource sanity check: requesting [mem 0xfedc0000-0xfedcffff], which spans more than pnp 00:03 [mem 0xfedc0000-0xfedc7fff]
[39144.288459] caller Router+0xd6/0x120 [corefreqk] mapping multiple BARs

Verifying the channels count will also mean to detect the opposite case: Currently Dual, we need to test Single. I think if you just boot with only one DIMM, CoreFreq should print Single.

Will try this over the weekend.

Cool. Also don't forget to post CoreFreq kernel log when in single mode. I'll then make a bits difference between Capabilities in Dual and Single configs. Here

cyring commented 2 years ago

Fix, and other enhancements, are now available in the develop branch.

cyring commented 2 years ago

@rushvora Hello,

Can you tell about Single channel test ?

rushvora commented 2 years ago

@cyring My apologies, I didn't get the time I expected to have to test this out over the weekend. I'll try to get it done as soon as I can. I will be out of town this weekend (long weekend), I'll try to get it done sometime next week.

I believe removing/putting back the RAM stick will reset my BIOS configuration, so I want to do it when I have the time to record all the screens and the settings, since I have BIOS level CPU undervolt set up that's been stable all this while.

cyring commented 1 year ago

@rushvora Hello,

Can you tell about Single channel test ?

@rushvora Can you please pull and try latest develop branch and post the output of corefreq-cli -s -n -m -n -c 1 -n -k -n -B -n -M

rushvora commented 1 year ago

@cyring Firstly, apologies (again!) for not doing the single channel test… I'm exceptionally lazy to redo the BIOS settings for the RAM and CPU :see_no_evil:

The output you've requested.

Processor                                 [12th Gen Intel(R) Core(TM) i9-12900K]
|- Architecture                                                     [Alder Lake]
|- Vendor ID                                                      [GenuineIntel]
|- Microcode                                                        [0x00000026]
|- Signature                                                           [  06_97]
|- Stepping                                                            [      2]
|- Online CPU                                                          [ 24/ 24]
|- Base Clock                                                          [ 99.598]
|- Frequency            (MHz)                      Ratio                        
                 Min    796.79                    <   8 >                       
                 Max   3187.14                    <  32 >                       
|- Factory                                                             [100.000]
                       3200                       [  32 ]                       
|- Performance                                                                  
   |- P-State                                                                   
                 TGT   1095.58                    <  11 >                       
   |- HWP                                                                       
                 Min   1095.58                    <  11 >                       
                 Max   6473.89                    <  65 >                       
                 TGT      AUTO                    <   0 >                       
|- Turbo Boost                                                         [ UNLOCK]
                  1C   5179.11                    <  52 >                       
                  2C   5079.51                    <  51 >                       
                  3C   4979.91                    <  50 >                       
                  4C   4979.91                    <  50 >                       
                  5C   4880.32                    <  49 >                       
                  6C   4880.32                    <  49 >                       
                  7C   4880.32                    <  49 >                       
                  8C   4880.32                    <  49 >                       
|- Hybrid                                                              [ UNLOCK]
                  1C   3884.36                    <  39 >                       
                  2C   3884.36                    <  39 >                       
                  3C   3884.36                    <  39 >                       
                  4C   3884.36                    <  39 >                       
                  5C   3685.17                    <  37 >                       
                  6C   3685.17                    <  37 >                       
                  7C   3685.17                    <  37 >                       
                  8C   3685.17                    <  37 >                       
|- Uncore                                                              [ UNLOCK]
                 Min    796.79                    <   8 >                       
                 Max   5179.15                    <  52 >                       
|- TDP                                                           Level [  0:3  ]
   |- Programmable                                                     [ UNLOCK]
   |- Configuration                                                    [   LOCK]
   |- Turbo Activation                                                 [ UNLOCK]
             Nominal   3187.14                    [  32 ]                       
               Turbo      AUTO                    <   0 >                       

Instruction Set Extensions                                                      
|- 3DNow!/Ext [N/N]          ADX [Y]          AES [Y]  AVX/AVX2 [Y/Y] 
|- AVX512-F     [N]    AVX512-DQ [N]  AVX512-IFMA [N]   AVX512-PF [N] 
|- AVX512-ER    [N]    AVX512-CD [N]    AVX512-BW [N]   AVX512-VL [N] 
|- AVX512-VBMI  [N] AVX512-VBMI2 [N]  AVX512-VNNI [N]  AVX512-ALG [N] 
|- AVX512-VPOP  [N] AVX512-VNNIW [N] AVX512-FMAPS [N] AVX512-VP2I [N] 
|- AVX512-BF16  [N] AVX-VNNI-VEX [Y]      MOVDIRI [Y]   MOVDIR64B [Y] 
|- BMI1/BMI2  [Y/Y]         CLWB [Y]      CLFLUSH [Y] CLFLUSH-OPT [Y] 
|- CLAC-STAC    [Y]         CMOV [Y]    CMPXCHG8B [Y]  CMPXCHG16B [Y] 
|- F16C         [Y]          FPU [Y]         FXSR [Y]   LAHF-SAHF [Y] 
|- ENQCMD       [N]         GFNI [Y]        OSPKE [Y]     WAITPKG [Y] 
|- MMX/Ext    [Y/N] MON/MWAITX [Y/N]        MOVBE [Y]   PCLMULQDQ [Y] 
|- POPCNT       [Y]       RDRAND [Y]       RDSEED [Y]      RDTSCP [Y] 
|- SEP          [Y]          SHA [Y]          SSE [Y]        SSE2 [Y] 
|- SSE3         [Y]        SSSE3 [Y]  SSE4.1/4A [Y/N]      SSE4.2 [Y] 
|- SERIALIZE    [Y]      SYSCALL [Y]        RDPID [Y]         SGX [N] 
|- VAES         [Y]   VPCLMULQDQ [Y]   PREFETCH/W [Y]       LZCNT [Y] 

Features                                                                        
|- 1 GB Pages Support                                      1GB-PAGES   [Capable]
|- Advanced Configuration & Power Interface                     ACPI   [Capable]
|- Advanced Programmable Interrupt Controller                   APIC   [Capable]
|- APIC Timer Invariance                                        ARAT   [Capable]
|- Core Multi-Processing                                  CMP Legacy   [Missing]
|- L1 Data Cache Context ID                                  CNXT-ID   [Missing]
|- Direct Cache Access                                           DCA   [Missing]
|- Debugging Extension                                            DE   [Capable]
|- Debug Store & Precise Event Based Sampling               DS, PEBS   [Capable]
|- CPL Qualified Debug Store                                  DS-CPL   [Capable]
|- 64-Bit Debug Store                                         DTES64   [Capable]
|- Fast Short REP CMPSB                                         FSRC   [Missing]
|- Fast Short REP MOVSB                                         FSRM   [Capable]
|- Fast Short REP STOSB                                         FSRS   [Capable]
|- Fast Zero-length REP MOVSB                                   FZRM   [Missing]
|- Fast-String Operation                                        ERMS   [Capable]
|- Fused Multiply Add                                     FMA | FMA4   [Capable]
|- Hardware Feedback Interface                                   HFI   [Capable]
|- Hardware Lock Elision                                         HLE   [Missing]
|- History Reset                                              HRESET   [Capable]
|- Hybrid part processor                                      HYBRID   [Capable]
|- Instruction Based Sampling                                    IBS   [Missing]
|- Instruction INVPCID                                       INVPCID   [Capable]
|- Long Mode 64 bits                                       IA64 | LM   [Capable]
|- Linear Address Masking                                        LAM   [Missing]
|- LightWeight Profiling                                         LWP   [Missing]
|- Machine-Check Architecture                                    MCA   [Capable]
|- Memory Protection Extensions                                  MPX   [Missing]
|- Model Specific Registers                                      MSR   [Capable]
|- Memory Type Range Registers                                  MTRR   [Capable]
|- OS-Enabled Ext. State Management                          OSXSAVE   [Capable]
|- Physical Address Extension                                    PAE   [Capable]
|- Page Attribute Table                                          PAT   [Capable]
|- Pending Break Enable                                          PBE   [Capable]
|- Platform Configuration                                    PCONFIG   [Capable]
|- Process Context Identifiers                                  PCID   [Capable]
|- Perfmon and Debug Capability                                 PDCM   [Capable]
|- Page Global Enable                                            PGE   [Capable]
|- Page Size Extension                                           PSE   [Capable]
|- 36-bit Page Size Extension                                  PSE36   [Capable]
|- Processor Serial Number                                       PSN   [Missing]
|- Write Data to a Processor Trace Packet                    PTWRITE   [Capable]
|- Resource Director Technology/PQE                            RDT-A   [Missing]
|- Resource Director Technology/PQM                            RDT-M   [Missing]
|- Restricted Transactional Memory                               RTM   [Missing]
|- Safer Mode Extensions                                         SMX   [Capable]
|- Self-Snoop                                                     SS   [Capable]
|- Supervisor-Mode Access Prevention                            SMAP   [Capable]
|- Supervisor-Mode Execution Prevention                         SMEP   [Capable]
|- Thread Director                                                TD   [Capable]
|- Time Stamp Counter                                            TSC [Invariant]
|- Time Stamp Counter Deadline                          TSC-DEADLINE   [Capable]
|- TSX Force Abort MSR Register                            TSX-ABORT   [Missing]
|- TSX Suspend Load Address Tracking                       TSX-LDTRK   [Missing]
|- User-Mode Instruction Prevention                             UMIP   [Capable]
|- Virtual Mode Extension                                        VME   [Capable]
|- Virtual Machine Extensions                                    VMX   [Capable]
|- Write Back & Do Not Invalidate Cache                     WBNOINVD   [Missing]
|- Extended xAPIC Support                                     x2APIC   [ x2APIC]
|- Execution Disable Bit Support                              XD-Bit   [Capable]
|- XSAVE/XSTOR States                                          XSAVE   [Capable]
|- xTPR Update Control                                          xTPR   [Capable]
Mitigation mechanisms                                                           
|- Indirect Branch Restricted Speculation                       IBRS   [ Enable]
|- Indirect Branch Prediction Barrier                           IBPB   [Capable]
|- Single Thread Indirect Branch Predictor                     STIBP   [Capable]
|- Speculative Store Bypass Disable                             SSBD   [Capable]
|- Writeback & invalidate the L1 data cache                L1D-FLUSH   [Capable]
|- Hypervisor - No flush L1D on VM entry            L1DFL_VMENTRY_NO   [ Enable]
|- Arch - Buffer Overwriting                                MD-CLEAR   [Capable]
|- Arch - No Rogue Data Cache Load                           RDCL_NO   [ Enable]
|- Arch - Enhanced IBRS                                     IBRS_ALL   [ Enable]
|- Arch - Return Stack Buffer Alternate                         RSBA   [Capable]
|- Arch - No Speculative Store Bypass                         SSB_NO   [Capable]
|- Arch - No Microarchitectural Data Sampling                 MDS_NO   [ Enable]
|- Arch - No TSX Asynchronous Abort                           TAA_NO   [ Enable]
|- Arch - No Page Size Change MCE                     PSCHANGE_MC_NO   [ Enable]
|- Arch - STLB QoS                                              STLB   [ Enable]
|- Arch - Functional Safety Island                              FuSa   [ Enable]
|- Arch - RSM in CPL0 only                                       RSM   [ Enable]
|- Arch - Split Locked Access Exception                         SPLA   [ Enable]
|- Arch - Snoop Filter QoS Mask                         SNOOP_FILTER   [ Enable]
|- Arch - No Fast Predictive Store Forwarding                   PSFD   [Capable]
|- Arch - Data Operand Independent Timing Mode                 DOITM   [Capable]
|- Arch - Not affected by SBDR or SSDP                  SBDR_SSDP_NO   [ Enable]
|- Arch - No Fill Buffer Stale Data Propagator              FBSDP_NO   [ Enable]
|- Arch - No Primary Stale Data Propagator                   PSDP_NO   [ Enable]
|- Arch - Overwrite Fill Buffer values                      FB_CLEAR   [Capable]
|- Arch - Special Register Buffer Data Sampling                SRBDS   [ Unable]
   |- RDRAND and RDSEED mitigation                             RNGDS   [ Unable]
   |- Restricted Transactional Memory                            RTM   [ Unable]
   |- Verify Segment for Writing instruction                    VERW   [ Unable]
|- Arch - Restricted RSB Alternate                             RRSBA   [ Enable]
|- Arch - No Branch Target Injection                          BHI_NO   [Capable]
|- Arch - Legacy xAPIC Disable                             XAPIC_DIS   [ Unable]
|- Arch - No Post-Barrier Return Stack Buffer               PBRSB_NO   [Capable]
|- Arch - IPRED disabled for CPL3                        IPRED_DIS_U   [Capable]
|- Arch - IPRED disabled for CPL0/1/2                    IPRED_DIS_S   [Capable]
|- Arch - RRSBA disabled for CPL3                        RRSBA_DIS_U   [Capable]
|- Arch - RRSBA disabled for CPL0/1/2                    RRSBA_DIS_S   [Capable]
|- Arch - BHI disabled for CPL0/1/2                        BHI_DIS_S   [Capable]
|- No MXCSR Configuration Dependent Timing                   MCDT_NO   [ Unable]
Security Features                                                               
|- CPUID Key Locker                                               KL   [Capable]
|- AES Key Locker instructions                                AESKLE   [Missing]
|- AES Wide Key Locker instructions                          WIDE_KL   [Capable]
|- Software Guard SGX1 Extensions                               SGX1   [Missing]
|- Software Guard SGX2 Extensions                               SGX2   [Missing]

Technologies                                                                    
|- Data Cache Unit                                                              
   |- L1 Prefetcher                                                L1 HW   < ON>
   |- L1 IP Prefetcher                                          L1 HW IP   < ON>
   |- L2 Prefetcher                                                L2 HW   < ON>
   |- L2 Line Prefetcher                                        L2 HW CL   < ON>
|- System Management Mode                                       SMM-Dual   [ ON]
|- Hyper-Threading                                                   HTT   [ ON]
|- SpeedStep                                                        EIST   < ON>
|- Dynamic Acceleration                                              IDA   [ ON]
|- Turbo Boost Max 3.0                                             TURBO   < ON>
|- Energy Efficiency Optimization                                    EEO   <OFF>
|- Race To Halt Optimization                                         R2H   <OFF>
|- Watchdog Timer                                                    TCO   <OFF>
|- Virtualization                                                    VMX   [ ON]
   |- I/O MMU                                                       VT-d   [ ON]
   |- Version                                                     [         4.0]
   |- Hypervisor                                                           [OFF]
   |- Vendor ID                                                   [         N/A]

Performance Monitoring                                                          
|- Version                                                        PM       [  5]
|- Counters:          General                   Fixed                           
|           {  6,  0,  0 } x 48 bits            3 x 48 bits                     
|- Enhanced Halt State                                           C1E       < ON>
|- C1 Auto Demotion                                              C1A       < ON>
|- C3 Auto Demotion                                              C3A       <OFF>
|- C1 UnDemotion                                                 C1U       < ON>
|- C3 UnDemotion                                                 C3U       <OFF>
|- C6 Core Demotion                                              CC6       <OFF>
|- C6 Module Demotion                                            MC6       <OFF>
|- Legacy Frequency ID control                                   FID       [OFF]
|- Legacy Voltage ID control                                     VID       [OFF]
|- P-State Hardware Coordination Feedback                MPERF/APERF       [ ON]
|- Hardware Duty Cycling                                         HDC       [OFF]
|- Package C-States                                                             
   |- Configuration Control                                   CONFIG   [   LOCK]
   |- Lowest C-State                                           LIMIT   <     C0>
   |- I/O MWAIT Redirection                                  IOMWAIT   <Disable>
   |- Max C-State Inclusion                                    RANGE   <     C1>
|- Core C-States                                                                
   |- C-States Base Address                                      BAR   [ 0x1814]
|- ACPI Processor C-States                                      _CST   [      2]
|- MONITOR/MWAIT                                                                
   |- State index:    #0    #1    #2    #3    #4    #5    #6    #7              
   |- Sub C-State:     0     2     0     2     0     1     0     1              
|- Core Cycles                                                         [Capable]
|- Instructions Retired                                                [Capable]
|- Reference Cycles                                                    [Capable]
|- Last Level Cache References                                         [Capable]
|- Last Level Cache Misses                                             [Capable]
|- Branch Instructions Retired                                         [Capable]
|- Branch Mispredicts Retired                                          [Capable]
|- Top-down slots Counter                                              [Capable]
|- Processor Performance Control                                _PCT   [ Enable]
|- Performance Supported States                                 _PSS   [      0]
|- Performance Present Capabilities                             _PPC   [      0]

Power, Current & Thermal                                                        
|- Temperature Offset:Junction                                 TjMax <  0:100 C>
|- Clock Modulation                                             ODCM   <Disable>
   |- DutyCycle                                                        [  0.00%]
|- Power Management                                         PWR MGMT   [   LOCK]
   |- Energy Policy                                        Bias Hint   [      0]
   |- Energy Policy                                          HWP EPP   <    128>
|- Digital Thermal Sensor                                        DTS   [Capable]
|- Power Limit Notification                                      PLN   [Capable]
|- Package Thermal Management                                    PTM   [Capable]
|- Thermal Monitor 1                                             TM1   [ Enable]
|- Thermal Monitor 2                                             TM2   [Capable]
|- Thermal Design Power                                          TDP   [  125 W]
   |- Minimum Power                                              Min   [Missing]
   |- Maximum Power                                              Max   [Missing]
|- Thermal Design Power                                      Package   < Enable>
   |- Power Limit                                                PL1   < 4095 W>
   |- Time Window                                                TW1   <   56 s>
   |- Power Limit                                                PL2   < 4095 W>
   |- Time Window                                                TW2   <   2 ms>
|- Thermal Design Power                                         Core   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   < 976 us>
|- Thermal Design Power                                       Uncore   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   < 976 us>
|- Thermal Design Power                                         DRAM   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   < 976 us>
|- Thermal Design Power                                     Platform   <Disable>
   |- Power Limit                                                PL1   <    0 W>
   |- Time Window                                                TW1   <   28 s>
   |- Power Limit                                                PL2   <    0 W>
   |- Time Window                                                TW2   < 976 us>
|- Electrical Design Current                                     EDC   [Missing]
|- Thermal Design Current                                        TDC   [Missing]
|- Core Thermal Point                                                           
   |- DTS Threshold #1                                     Threshold   [Missing]
   |- DTS Threshold #2                                     Threshold   [Missing]
|- Package Thermal Point                                                        
   |- DTS Threshold #1                                     Threshold   [Missing]
   |- DTS Threshold #2                                     Threshold   [Missing]
|- Units                                                                        
   |- Power                                               watt   [  0.125000000]
   |- Energy                                             joule   [  0.000061035]
   |- Window                                            second   [  0.000976562]

CPU Pkg  Apic  Core/Thread  Caches      (w)rite-Back (i)nclusive              
 #   ID   ID  Hybrid ID/ID L1-Inst Way  L1-Data Way      L2  Way      L3  Way 
000:BSP    0  P   1   0  0   32768  8     49152 12   1310720 10  31457280 12  
001:  0    1  P   1   0  1   32768  8     49152 12   1310720 10  31457280 12  
002:  0    8  P   1   4  0   32768  8     49152 12   1310720 10  31457280 12  
003:  0    9  P   1   4  1   32768  8     49152 12   1310720 10  31457280 12  
004:  0   16  P   1   8  0   32768  8     49152 12   1310720 10  31457280 12  
005:  0   17  P   1   8  1   32768  8     49152 12   1310720 10  31457280 12  
006:  0   24  P   1  12  0   32768  8     49152 12   1310720 10  31457280 12  
007:  0   25  P   1  12  1   32768  8     49152 12   1310720 10  31457280 12  
008:  0   32  P   1  16  0   32768  8     49152 12   1310720 10  31457280 12  
009:  0   33  P   1  16  1   32768  8     49152 12   1310720 10  31457280 12  
010:  0   40  P   1  20  0   32768  8     49152 12   1310720 10  31457280 12  
011:  0   41  P   1  20  1   32768  8     49152 12   1310720 10  31457280 12  
012:  0   48  P   1  24  0   32768  8     49152 12   1310720 10  31457280 12  
013:  0   49  P   1  24  1   32768  8     49152 12   1310720 10  31457280 12  
014:  0   56  P   1  28  0   32768  8     49152 12   1310720 10  31457280 12  
015:  0   57  P   1  28  1   32768  8     49152 12   1310720 10  31457280 12  
016:  0   64  E   1  32  0   65536  8     32768  8   2097152 16  31457280 12  
017:  0   66  E   1  33  0   65536  8     32768  8   2097152 16  31457280 12  
018:  0   68  E   1  34  0   65536  8     32768  8   2097152 16  31457280 12  
019:  0   70  E   1  35  0   65536  8     32768  8   2097152 16  31457280 12  
020:  0   72  E   1  36  0   65536  8     32768  8   2097152 16  31457280 12  
021:  0   74  E   1  37  0   65536  8     32768  8   2097152 16  31457280 12  
022:  0   76  E   1  38  0   65536  8     32768  8   2097152 16  31457280 12  
023:  0   78  E   1  39  0   65536  8     32768  8   2097152 16  31457280 12  

CPU Freq(MHz) Ratio  Turbo  C0(%)  C1(%)  C3(%)  C6(%)  C7(%)  Min TMP:TS  Max
000   60.88 ( 0.61)   1.91   4.26  73.21   0.00   0.71  20.79  29 / 30:70 / 33
001    4.73 ( 0.05)   0.15   0.43  73.21   0.00   0.71  20.79  29 / 30:70 / 33
002  125.12 ( 1.26)   3.93   7.81  54.28   0.00   1.53  35.07  28 / 31:69 / 33
003   10.06 ( 0.10)   0.32   0.58  54.28   0.00   1.53  35.07  28 / 31:69 / 33
004  204.30 ( 2.05)   6.41  11.82  87.85   0.00   0.00   0.00  27 / 29:71 / 34
005    6.93 ( 0.07)   0.22   0.41  87.85   0.00   0.00   0.00  27 / 29:71 / 34
006  138.32 ( 1.39)   4.34   8.46  82.70   0.00   0.59   7.93  27 / 28:72 / 35
007    0.45 ( 0.00)   0.01   0.03  82.70   0.00   0.59   7.93  27 / 28:72 / 35
008  579.78 ( 5.82)  18.19  33.67  45.45   0.00   0.99  18.90  27 / 30:70 / 43
009    4.11 ( 0.04)   0.13   0.29  45.45   0.00   0.99  18.90  27 / 30:70 / 43
010  318.40 ( 3.20)   9.99  19.22  80.40   0.00   0.00   0.00  25 / 25:75 / 37
011    4.68 ( 0.05)   0.15   0.38  80.40   0.00   0.00   0.00  25 / 25:75 / 37
012  424.02 ( 4.26)  13.30  23.78  52.87   0.00   1.15  21.37  28 / 29:71 / 38
013    1.57 ( 0.02)   0.05   0.13  52.87   0.00   1.15  21.37  28 / 29:71 / 38
014  222.49 ( 2.23)   6.98  13.68  80.28   0.00   0.39   4.95  25 / 26:74 / 30
015    7.66 ( 0.08)   0.24   0.60  80.28   0.00   0.39   4.95  25 / 26:74 / 30
016   94.66 ( 0.95)   2.97   7.40  69.00   0.00  23.08   0.00  28 / 28:72 / 31
017   76.20 ( 0.77)   2.39   5.67  59.05   0.00  34.51   0.00  28 / 28:72 / 31
018   50.72 ( 0.51)   1.59   4.08  95.79   0.00   0.00   0.00  28 / 28:72 / 31
019  102.62 ( 1.03)   3.22   8.04  29.63   0.00  61.48   0.00  28 / 28:72 / 31
020   38.65 ( 0.39)   1.21   3.25   8.25   0.00  87.02   0.00  30 / 31:69 / 34
021   15.82 ( 0.16)   0.50   1.30   3.78   0.00  94.26   0.00  30 / 31:69 / 34
022   18.19 ( 0.18)   0.57   1.56   1.13   0.00  96.45   0.00  30 / 31:69 / 34
023   23.72 ( 0.24)   0.74   1.67  13.77   0.00  84.07   0.00  30 / 31:69 / 34

    Averages:        Turbo  C0(%)  C1(%)  C3(%)  C6(%)  C7(%)    TjMax:    Pkg:
                      3.31   6.60  58.10   0.00  20.48   9.08     100 C    34 C

Linux:                                                                          
|- Release                                                       [6.1.6-arch1-1]
|- Version              [#1 SMP PREEMPT_DYNAMIC Sat, 14 Jan 2023 13:09:35 +0000]
|- Machine                                                              [x86_64]
Memory:                                                                         
|- Total RAM                                                         32651652 KB
|- Shared RAM                                                          615400 KB
|- Free RAM                                                           3712472 KB
|- Buffer RAM                                                            1084 KB
|- Total High                                                               0 KB
|- Free High                                                                0 KB
Clock Source                                                  <             tsc>
CPU-Freq driver                                               [    intel_pstate]
Governor                                                      [         Missing]
CPU-Idle driver                                               [      intel_idle]
|- Idle Limit                                                 [             C10]
   |- State        POLL     C1E      C6      C8     C10                         
   |-           CPUIDLE MWAIT 0 MWAIT 0 MWAIT 0 MWAIT 0                         
   |- Power          -1       0       0       0       0                         
   |- Latency         0       2     220     280     680                         
   |- Residency       0       4     600     800    2000                         

[ 0] American Megatrends International, LLC.                                    
[ 1] 1.70                                                                       
[ 2] 07/04/2022                                                                 
[ 3] Micro-Star International Co., Ltd.                                         
[ 4] MS-7D32                                                                    
[ 5] 1.0                                                                        
[ 6] D---u---s---n-                                                             
[ 7] Default string                                                             
[ 8] Default string                                                             
[ 9] Micro-Star International Co., Ltd.                                         
[10] MAG Z690 TOMAHAWK WIFI DDR4 (MS-7D32)                                      
[11] 1.0                                                                        
[12] 0---2---L---4---3-                                                         
[13] Number Of Devices:4\Maximum Capacity:134217728 bytes                       
[14]                                                                            
[15] Controller0-DIMMA2\BANK 0                                                  
[16]                                                                            
[17] Controller1-DIMMB2\BANK 0                                                  
[18]                                                                            
[19] G Skill Intl                                                               
[20]                                                                            
[21] G Skill Intl                                                               
[22]                                                                            
[23] F4-3600C16-16GTZNC                                                         
[24]                                                                            
[25] F4-3600C16-16GTZNC                                                         

                             Intel B660  [7AB8]                            
Controller #0                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     0    0    0    0    0    0    0    0    0    0    0   0   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     0    0    0    0         0    0    0    0         0    0    0    0
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     0    0    0    0                        0    0    0    0    0    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                                                  

Controller #1                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     0    0    0    0    0    0    0    0    0    0    0   0   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     0    0    0    0         0    0    0    0         0    0    0    0
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     0    0    0    0                        0    0    0    0    0    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                               
cyring commented 1 year ago

Thank you

cyring commented 1 year ago

Hello,

I'm trying to identify your chipset. Can you post the output of lspci -nn ?

rushvora commented 1 year ago

@cyring

00:00.0 Host bridge [0600]: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers [8086:4660] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 [8086:460d] (rev 02)
00:02.0 Display controller [0380]: Intel Corporation AlderLake-S GT1 [8086:4680] (rev 0c)
00:06.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 [8086:464d] (rev 02)
00:08.0 System peripheral [0880]: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator [8086:464f] (rev 02)
00:14.0 USB controller [0c03]: Intel Corporation Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller [8086:7ae0] (rev 11)
00:14.2 RAM memory [0500]: Intel Corporation Alder Lake-S PCH Shared SRAM [8086:7aa7] (rev 11)
00:14.3 Network controller [0280]: Intel Corporation Alder Lake-S PCH CNVi WiFi [8086:7af0] (rev 11)
00:16.0 Communication controller [0780]: Intel Corporation Alder Lake-S PCH HECI Controller #1 [8086:7ae8] (rev 11)
00:17.0 SATA controller [0106]: Intel Corporation Alder Lake-S PCH SATA Controller [AHCI Mode] [8086:7ae2] (rev 11)
00:1a.0 PCI bridge [0604]: Intel Corporation Device [8086:7ac8] (rev 11)
00:1c.0 PCI bridge [0604]: Intel Corporation Alder Lake-S PCH PCI Express Root Port #1 [8086:7ab8] (rev 11)
00:1c.3 PCI bridge [0604]: Intel Corporation Device [8086:7abb] (rev 11)
00:1d.0 PCI bridge [0604]: Intel Corporation Alder Lake-S PCH PCI Express Root Port #9 [8086:7ab0] (rev 11)
00:1f.0 ISA bridge [0601]: Intel Corporation Z690 Chipset LPC/eSPI Controller [8086:7a84] (rev 11)
00:1f.3 Audio device [0403]: Intel Corporation Alder Lake-S HD Audio Controller [8086:7ad0] (rev 11)
00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake-S PCH SMBus Controller [8086:7aa3] (rev 11)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Alder Lake-S PCH SPI Controller [8086:7aa4] (rev 11)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080] [10de:2206] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1)
02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a808]
03:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31/PC711 NVMe Solid State Drive [1c5c:174a]
05:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller I225-V [8086:15f3] (rev 03)
06:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31/PC711 NVMe Solid State Drive [1c5c:174a]
cyring commented 1 year ago

Based on master can you please post the output corefreq-cli -M

cyring commented 1 year ago

@rushvora Hello, Could you show me the Memory Controller output using latest develop branch ? RCDw is the new timing I would like to check.

rushvora commented 1 year ago

Based on master can you please post the output corefreq-cli -M

 18:16:08  ~/Code/Github/CoreFreq  master                                                                                                      10.4G RAM 
❯ ./corefreq-cli -M
                             Intel Z690  [7A84]                            
Controller #0                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     0    0    0    0    0    0    0    0    0    0    0   0   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     0    0    0    0         0    0    0    0         0    0    0    0
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     0    0    0    0                        0    0    0    0    0    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                                                  

Controller #1                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL  RCD   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL CKE  CMD  GEAR
  #0    16   19   19   39    4    9   44   24   12   44   16   7   2T     1
  #1     0    0    0    0    0    0    0    0    0    0    0   0   1T     1
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     0    0    0    0         0    0    0    0         0    0    0    0
      sgWW dgWW drWW ddWW                     REFI  RFC  XS   XP CPDED  ECC
  #0     7    4   12   12                    14055  630  648   11    4    0
  #1     0    0    0    0                        0    0    0    0    0    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1     
rushvora commented 1 year ago

@rushvora Hello, Could you show me the Memory Controller output using latest develop branch ? RCDw is the new timing I would like to check.

Here you go

 18:18:59  ~/Code/Github/CoreFreq  develop                                                                                                     10.5G RAM 
❯ ./corefreq-cli -v   
1.95.2
 18:19:06  ~/Code/Github/CoreFreq  develop                                                                                                     10.5G RAM 
❯ ./corefreq-cli -M
                             Intel Z690  [7A84]                            
Controller #0                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL RCDr RCDw   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL  CKE  CMD
  #0    16   19   19   19   39    4    9   44   24   12   44   16    7   2T
  #1     0    0    0    0    0    0    0    0    0    0    0    0    0   1T
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     0    0    0    0         0    0    0    0         0    0    0    0
      sgWW dgWW drWW ddWW                REFI  RFC  XS   XP CPDED GEAR  ECC
  #0     7    4   12   12               14055  630  648   11    4    1    0
  #1     0    0    0    0                   0    0    0    0    0    1    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                                                  

Controller #1                                                Dual Channel  
 Bus Rate  3600 MHz       Bus Speed 3585 MHz           DDR4 Speed 3585 MHz 

 Cha    CL RCDr RCDw   RP  RAS RRDs RRDl  FAW   WR RTPr WTPr  CWL  CKE  CMD
  #0    16   19   19   19   39    4    9   44   24   12   44   16    7   2T
  #1     0    0    0    0    0    0    0    0    0    0    0    0    0   1T
      sgRR dgRR drRR ddRR      sgRW dgRW drRW ddRW      sgWR dgWR drWR ddWR
  #0     7    4   12   12        14   15   15   15        34   27    7    7
  #1     0    0    0    0         0    0    0    0         0    0    0    0
      sgWW dgWW drWW ddWW                REFI  RFC  XS   XP CPDED GEAR  ECC
  #0     7    4   12   12               14055  630  648   11    4    1    0
  #1     0    0    0    0                   0    0    0    0    0    1    0

 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1    16    2     65536      1024          16384  F4-3600C16-16GTZNC
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0                                                                  
       #1                                            
cyring commented 1 year ago

@rushvora Last output confirms the RCDr RCDw I was expecting from Z690 and DDR4. Thank you