新增到 grub 檔案時 intel_pstate 驅動程式未載入

新增到 grub 檔案時 intel_pstate 驅動程式未載入

我有一個

Processor   Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Memory  16305MB (2531MB used)
Machine Type    Laptop
Operating System    Ubuntu 20.04.3 LTS

在我的/etc/預設/grub文件我有一行

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"

我做了一個sudo 更新 grub更改後但是當我做了 cpupower 頻率資訊或 cpufreq-info --driver它說使用的驅動程式是英特爾CPU頻率

rt@sys76:~$ cpufreq-info --driver
intel_cpufreq


rt@sys76:~$ cpupower frequency-info

analyzing CPU 0:
  driver: intel_cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 20.0 us
  hardware limits: 800 MHz - 3.40 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 1.70 GHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 798 MHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
rt@sys76:~$ 

我怎樣才能得到cpufreq-info--驅動程式 使用英特爾_pstate司機?

答案1

您的處理器 i7-4700MQ 早於 HWP(硬體 Pstate)控制。對於這些 Intel 處理器,由核心電源管理群組確定的遷移路徑預設為使用 schedutil 縮放調節器處於被動模式的 intel_pstate CPU 頻率縮放驅動程式。為此,完成了此提交:

提交 33aa46f252c703e42c81a76696cd0c240f2281e4 作者:Rafael J. Wysocki[電子郵件受保護]日期:2020 年 3 月 25 日星期三 15:03:35 +0100

cpufreq: intel_pstate: Use passive mode by default without HWP

After recent changes allowing scale-invariant utilization to be
used on x86, the schedutil governor on top of intel_pstate in the
passive mode should be on par with (or better than) the active mode
"powersave" algorithm of intel_pstate on systems in which
hardware-managed P-states (HWP) are not used, so it should not be
necessary to use the internal scaling algorithm in those cases.

Accordingly, modify intel_pstate to start in the passive mode by
default if the processor at hand does not support HWP of if the driver
is requested to avoid using HWP through the kernel command line.

Among other things, that will allow utilization clamps and the
support for RT/DL tasks in the schedutil governor to be utilized on
systems in which intel_pstate is used.

您實際上正在使用 intel_pstate CPU 頻率縮放驅動程序,但它處於被動模式。嘗試這個:

echo active | sudo tee /sys/devices/system/cpu/intel_pstate/status

然後檢查:

cat /sys/devices/system/cpu/intel_pstate/status

如果按預期工作,則將 grub 行變更為:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=active"

看看它是否按照您想要的方式啟動。

請注意,CPU 頻率縮放驅動程式intel_cpufreq只是intel_pstate被動模式下的驅動程式。

例子:

doug@s19:~/temp$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu10/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu11/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu8/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_cpufreq

doug@s19:~/temp$ cat /sys/devices/system/cpu/intel_pstate/status
passive
doug@s19:~/temp$ echo active | sudo tee /sys/devices/system/cpu/intel_pstate/status
active

doug@s19:~/temp$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu10/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu11/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu8/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_pstate

答案2

筆記型電腦的電源停止工作,我更換了它。突然CPU又開始正常運作了。看起來電源壞了並且沒有輸出足夠的電流。

相關內容