2023-02-16

Linux kernel 5.19 で AMD P-State Driver の表示が変わった

Linux Mint 21.1 でカーネル起動オプションに追加指定することで AMD P-State Driver を動かすことができ、最近はこれを常用しています。

最初に P-State Driver を動かした時は Linux kernel 5.15 の時ですね。/etc/default/grub に以下のような指定をすることで P-State Driver が有効になりました。

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_pstate.shared_mem=1 amdgpu.ppfeaturemask=0xffffffff"

その際の cpupower frequency-info コマンドの結果がこちらです。

$ cpupower frequency-info
analyzing CPU 0:
  driver: amd-pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 131 us
  hardware limits: 550 MHz - 3.91 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 550 MHz and 3.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 864 MHz (asserted by call to kernel)
  boost state support:
    Supported: no
    Active: no


そして、最近に Linux Mint 21.1 に Linux kernel 5.19 が配信されたのですが、たまたま cpupower frequency-info コマンドを実行したら「なんか前と表示結果が違う?」と思って比べてみたら、やはり違っていました。

$ cpupower frequency-info
analyzing CPU 0:
  driver: amd-pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 131 us
  hardware limits: 550 MHz - 3.91 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 550 MHz and 3.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.01 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 3.91 GHz.
    AMD PSTATE Nominal Performance: 153. Nominal Frequency: 3.60 GHz.
    AMD PSTATE Lowest Non-linear Performance: 74. Lowest Non-linear Frequency: 1.74 GHz.
    AMD PSTATE Lowest Performance: 24. Lowest Frequency: 550 MHz.

一番下の 4行が追加されていました。「AMD PSTATE Highest Performance 〜」という部分です。隣の数字(166、153、74、24)は何を示しているんでしょうか?

この CPU はブースト時のクロックが 3.9GHz で、定格の上限が 3.6GHz です。ACPI-Driver を使っていると CPU の下限クロックが 1.8GHz くらいまでしか下がらないのですが、AMD P-State Driver に差し替えると下限クロックが 550MHz まで下がってくれるので、CPU 温度も下がってくれます。

これが AMD P-State Driver のお気に入りのポイントで、常用している理由です。

 

Linux kernel のバージョンが変わると AMD P-State Driver も変化してるんですね。(そりゃそうか)

次に Linux Mint に新しい Linux kernel が配信されたらまた確認してみますかね。(次は 6.1?6.2?)