Kernel Newbies archive mirror
 help / color / mirror / Atom feed
From: Siddh Raman Pant <sanganaka@siddh.me>
To: "Kernelnewbies" <kernelnewbies@kernelnewbies.org>
Subject: amd-pstate: Setting the maximum frequency in guided mode
Date: Tue, 15 Aug 2023 18:44:56 +0530	[thread overview]
Message-ID: <189f955c8cc.69f5ace356423.9176265811174449395@siddh.me> (raw)
In-Reply-To: 

Hi,

I am trying out the amd-pstate guided mode. If I understand the docs
correctly [1], guided mode essentially enforces a range (min, max)
over the frequency which can be selected by the processor, i.e. it is
like active mode but with range enforced.

If true, it looks attractive for battery saving. So on battery, I'd
like to use conservative governor with a max frequency of, say, 1.8
GHz, just as a test.

So after setting the maximum scaling frequency to 1.8 GHz using
TLP (which now supports amd-pstate [2]), `$ cpupower frequency-info`
yielded the following:

======================================================================
analyzing CPU 7:
  driver: amd-pstate
  CPUs which run at the same hardware frequency: 7
  CPUs which need to have their frequency coordinated by software: 7
  maximum transition latency: 20.0 us
  hardware limits: 400 MHz - 2.10 GHz
  available cpufreq governors: userspace powersave ondemand conservative performance schedutil
  current policy: frequency should be within 400 MHz and 1.80 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.75 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: no
    AMD PSTATE Highest Performance: 255. Maximum Frequency: 4.06 GHz.
    AMD PSTATE Nominal Performance: 132. Nominal Frequency: 2.10 GHz.
    AMD PSTATE Lowest Non-linear Performance: 70. Lowest Non-linear Frequency: 1.11 GHz.
    AMD PSTATE Lowest Performance: 26. Lowest Frequency: 400 MHz.
======================================================================

Why is the frequency 2.75 GHz? Even the nominal max is 2.1 GHz, and
the output says boost is not active either. 

Thanks,
Siddh

[1] https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html
[2] https://github.com/linrunner/TLP/issues/630


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

                 reply	other threads:[~2023-08-15 13:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=189f955c8cc.69f5ace356423.9176265811174449395@siddh.me \
    --to=sanganaka@siddh.me \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).