damentz / liquorix-package

Liquorix Debian Package
https://liquorix.net
GNU General Public License v2.0
288 stars 23 forks source link

Comet Lake & problem cpufreq #62

Closed varlesh closed 3 years ago

varlesh commented 3 years ago

OS: KDE Neon (Ubuntu 20.04) Kernel: 5.12.0-19.3-liquorix-amd64 CPU: Intel Core i5-10400F

By default used acpi-cpufreq module :

ls /usr/lib/modules/$(uname -r)/kernel/drivers/cpufreq/
acpi-cpufreq.ko          p4-clockmod.ko  powernow-k8.ko
amd_freq_sensitivity.ko  pcc-cpufreq.ko  speedstep-lib.ko

But acpi-cpufreq not have support this CPU:

cpupower frequency-info
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: yes
    Active: yes

CPU Info:

cpu-info
Packages:
        0: Intel Core i5-10400F
Cores:
        0: 2 processors (0-1), Intel unknown
        1: 2 processors (2-3), Intel unknown
        2: 2 processors (4-5), Intel unknown
        3: 2 processors (6-7), Intel unknown
        4: 2 processors (8-9), Intel unknown
        5: 2 processors (10-11), Intel unknown
Logical processors:
        0: APIC ID 0x00000000
        1: APIC ID 0x00000001
        2: APIC ID 0x00000002
        3: APIC ID 0x00000003
        4: APIC ID 0x00000004
        5: APIC ID 0x00000005
        6: APIC ID 0x00000006
        7: APIC ID 0x00000007
        8: APIC ID 0x00000008
        9: APIC ID 0x00000009
        10: APIC ID 0x0000000a
        11: APIC ID 0x0000000b

I try change grub config and enable intel_pstate but module not loaded and not worked too.

What's happening?

varlesh commented 3 years ago

i7z

i7z DEBUG: i7z version: svn-r93-(27-MAY-2013)
i7z DEBUG: Found Intel Processor
i7z DEBUG:    Stepping 5
i7z DEBUG:    Model 5
i7z DEBUG:    Family 6
i7z DEBUG:    Processor Type 0
i7z DEBUG:    Extended Model a
i7z DEBUG: msr = Model Specific Register
i7z DEBUG: Unknown processor, not exactly based on Nehalem, Sandy bridge or Ivy Bridge
i7z DEBUG: msr device files exist /dev/cpu/*/msr
i7z DEBUG: You have write permissions to msr device files

------------------------------
--[core id]--- Other information
-------------------------------------
--[0] Processor number 0
--[0] Socket number/Hyperthreaded Sibling number  0,6
--[0] Core id number 0
--[0] Display core in i7z Tool: Yes

--[1] Processor number 1
--[1] Socket number/Hyperthreaded Sibling number  0,7
--[1] Core id number 1
--[1] Display core in i7z Tool: Yes

--[2] Processor number 2
--[2] Socket number/Hyperthreaded Sibling number  0,8
--[2] Core id number 2
--[2] Display core in i7z Tool: Yes

--[3] Processor number 3
--[3] Socket number/Hyperthreaded Sibling number  0,9
--[3] Core id number 3
--[3] Display core in i7z Tool: Yes

--[4] Processor number 4
--[4] Socket number/Hyperthreaded Sibling number  0,10
--[4] Core id number 4
--[4] Display core in i7z Tool: Yes

--[5] Processor number 5
--[5] Socket number/Hyperthreaded Sibling number  0,11
--[5] Core id number 5
--[5] Display core in i7z Tool: Yes

--[6] Processor number 6
--[6] Socket number/Hyperthreaded Sibling number  0,0
--[6] Core id number 0
--[6] Display core in i7z Tool: No

--[7] Processor number 7
--[7] Socket number/Hyperthreaded Sibling number  0,1
--[7] Core id number 1
--[7] Display core in i7z Tool: No

--[8] Processor number 8
--[8] Socket number/Hyperthreaded Sibling number  0,2
--[8] Core id number 2
--[8] Display core in i7z Tool: No

--[9] Processor number 9
--[9] Socket number/Hyperthreaded Sibling number  0,3
--[9] Core id number 3
--[9] Display core in i7z Tool: No

--[10] Processor number 10
--[10] Socket number/Hyperthreaded Sibling number  0,4
--[10] Core id number 4
--[10] Display core in i7z Tool: No

--[11] Processor number 11
--[11] Socket number/Hyperthreaded Sibling number  0,5
--[11] Core id number 5
--[11] Display core in i7z Tool: No

Socket-0 [num of cpus 6 physical 6 logical 12] 0,1,2,3,4,5,
Socket-1 [num of cpus 0 physical 0 logical 0] 
GUI has been Turned ON
i7z DEBUG: Single Socket Detected
i7z DEBUG: In i7z Single_Socket()
i7z DEBUG: guessing Nehalem

Cpu speed from cpuinfo 2903.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess correctly try estimating via tsc
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 2903 MHz
  CPU Multiplier 29x || Bus clock frequency (BCLK) 100.10 MHz

Socket [0] - [physical cores=6, logical cores=12, max online cores ever=6]
  TURBO ENABLED on 6 Cores, Hyper Threading ON
  Max Frequency without considering Turbo 3003.10 MHz (100.10 x [30])
  Max TURBO Multiplier (if Enabled) with 1/2/3/4/5/6 Cores is  43x/42x/41x/41x/40x/40x
  Real Current Frequency 2897.47 MHz [100.10 x 28.94] (Max of below)
        Core [core-id]  :Actual Freq (Mult.)      C0%   Halt(C1)%  C3 %   C6 %  Temp      VCore
        Core 1 [0]:       2897.47 (28.94x)         1     100       0       0    39      0.9041
        Core 2 [1]:       2895.29 (28.92x)         1     100       0       0    39      0.9041
        Core 3 [2]:       2891.36 (28.88x)         1    99.8       0       0    41      0.9041
        Core 4 [3]:       2892.19 (28.89x)         1    99.8       0       0    40      0.8979
        Core 5 [4]:       2892.31 (28.89x)      1.16    98.8       0       0    40      0.8979
        Core 6 [5]:       2892.19 (28.89x)         1    99.8       0       0    39      0.8979

C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power saver modes with cores idling)
C3 = Cores running with PLL turned off and core cache turned off
C6, C7 = Everything in C3 + core state saved to last level cache, C7 is deeper than C6
  Above values in table are in percentage over the last 1 sec
[core-id] refers to core-id number in /proc/cpuinfo
'Garbage Values' message printed when garbage values are read
damentz commented 3 years ago

What happens when you add intel_pstate=enable into your kernel boot parameters?

Also regarding your output of cpufreq drivers, Intel P-State only works as a static in-kernel driver, so you won't see it listed in that folder. But it is built-in, but with one minor modification.

Intel P-State is disabled by default with Liquorix. You can override that by passing the parameter I mentioned above. This is a customization that's not part of mainline but necessary for Liquorix to behave the way it does.

varlesh commented 3 years ago

i found problem with acpi_cpufreq - wrong bios settings. I'm enable perfomance mode on Asus and this not allow the OS to control CPU power management. Now all fine. But anyway intel_pstate not loaded.

cat /etc/default/grub | grep intel
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"
sudo update-grub
sudo reboot
ls /usr/lib/modules/$(uname -r)/kernel/drivers/cpufreq/
acpi-cpufreq.ko          p4-clockmod.ko  powernow-k8.ko
amd_freq_sensitivity.ko  pcc-cpufreq.ko  speedstep-lib.ko
varlesh commented 3 years ago

oops sorry, my fault:

cpupower frequency-info
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 4.30 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 4.30 GHz and 4.30 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 4.09 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes