How to use AMD P-State in Linux

hm… I’m not sure if its working here…

Sorry, output below is in Portuguese, but as you can see, with amd_pstate=active, I’m getting amd-pstate-epp and powersave.

amd_pstate=active
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
amd-pstate-epp

$ cpu_freq_check2
analisando o CPU 5:
  driver: amd-pstate-epp
  CPUs que rodam na mesma frequência de hardware: 5
  CPUs que precisam ter suas frequências coordenadas por software: 5
  maior latência de transição:  Cannot determine or is not supported.
  limites do hardware: 550 MHz - 4.55 GHz
  reguladores do cpufreq disponíveis: performance powersave
  política de frequência atual deve estar entre 550 MHz e 4.55 GHz.
                  O regulador "powersave" deve decidir qual velocidade usar
                  dentro desse limite.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.50 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: no

Now, with amd_pstated=guided, I’m back to amd-pstate and schedutil ? Not sure if this should be happening…

amd_pstate=guided
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
amd-pstate

$ LANG=C cpu_freq_check2
analyzing CPU 11:
  driver: amd-pstate
  CPUs which run at the same hardware frequency: 11
  CPUs which need to have their frequency coordinated by software: 11
  maximum transition latency: 20.0 us
  hardware limits: 550 MHz - 4.55 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 550 MHz and 4.55 GHz.
                  The governor "schedutil" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.64 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.55 GHz.
    AMD PSTATE Nominal Performance: 124. Nominal Frequency: 3.40 GHz.
    AMD PSTATE Lowest Non-linear Performance: 64. Lowest Non-linear Frequency: 1.75 GHz.
    AMD PSTATE Lowest Performance: 21. Lowest Frequency: 550 MHz.

Edit: cpu_freq_check2 is an alias for cpupower frequency-info