From: Huang Rui <ray.huang@amd.com>
To: Mike Lothian <mike@fireburn.co.uk>
Cc: Linux PM list <linux-pm@vger.kernel.org>,
Jinzhou.Su@amd.com, Xiaojian.Du@amd.com
Subject: Re: AMD Pstate
Date: Tue, 23 Nov 2021 19:32:43 +0800 [thread overview]
Message-ID: <YZzRW3pjIoJ4k4O4@hr-amd> (raw)
In-Reply-To: <CAHbf0-GPqod-W5exGt4c63YYVG27M4qdSi25wwqmFfC_ypTFyw@mail.gmail.com>
On Tue, Nov 23, 2021 at 07:22:24PM +0800, Mike Lothian wrote:
> On Tue, 23 Nov 2021 at 11:18, Huang Rui <ray.huang@amd.com> wrote:
> >
> > On Tue, Nov 23, 2021 at 06:47:34PM +0800, Mike Lothian wrote:
> > > Hi again
> > >
> > > Do I need to enable something else for shedutil to work, I've tried
> > > with and without shared_mem? Compiling a kernel with -j16 has the freq
> > > stuck at 1GHz on all cores - ondemand works fine
> > >
> >
> > If you set the CONFIG_CPU_FREQ_GOV_SCHEDUTIL, then no more configurations.
> >
> > Did you use the V4 version?
> >
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Frui%2Flinux.git%2Flog%2F%3Fh%3Damd-pstate-dev-v4&data=04%7C01%7Cray.huang%40amd.com%7C3006dbf33ae54ffaa1aa08d9ae738d2d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637732633874328299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=L1H7yy9UCweIH9CaSYTrfo4DZUDok1wgQxjtNCNLC9g%3D&reserved=0
> >
> > > That's on a AMD Ryzen 9 5900HX
> > >
> > > Also compiling with Clang-13 gives the following warnings:
> > >
> > > drivers/cpufreq/amd-pstate.c:257:6: warning: variable 'amd_des_perf'
> > > is used uninitialized whenever 'if' condition is false
> > > [-Wsometimes-uninitialized]
> > >
> > > if (target_perf < capacity)
> > >
> > > ^~~~~~~~~~~~~~~~~~~~~~
> > >
> > > drivers/cpufreq/amd-pstate.c:272:40: note: uninitialized use occurs here
> > >
> > > amd_des_perf = clamp_t(unsigned long, amd_des_perf,
> > >
> > > ^~~~~~~~~~~~
> >
> > Ah, miss one line. Thanks for the info. I will correct it.
> >
> > Thanks,
> > Ray
> >
>
> Hi
>
> Yes I used v4 and CONFIG_CPU_FREQ_GOV_SCHEDUTIL was set as the
> default, is there any other info that would be useful, I can switch
> back to schedutil from ondemand and collect for you
>
> > > That's on a AMD Ryzen 9 5900HX
May I know the CPU family/model id? (you can dump it from lscpu)
But you may need to add "amd_pstate.shared_mem=1" in your grub to enable
the shared memory manually. Because we are debugging the performance issue
on shared memory solution, so it is disabled by default.
> > > amd_des_perf = clamp_t(unsigned long, amd_des_perf,
It's not the V4's codes. I renamed this variate in the V4.
Thanks,
Ray
next prev parent reply other threads:[~2021-11-23 11:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-21 10:37 AMD Pstate Mike Lothian
2021-11-21 11:52 ` Huang Rui
2021-11-21 12:35 ` Huang Rui
2021-11-23 10:47 ` Mike Lothian
2021-11-23 11:17 ` Huang Rui
2021-11-23 11:22 ` Mike Lothian
2021-11-23 11:32 ` Huang Rui [this message]
2021-11-24 0:17 ` Mike Lothian
[not found] ` <YZ22dYQ8dgQTwqnh@amd.com>
[not found] ` <CAHbf0-FnFpkmZ2bkfS2S=Cw_RLbK1y7eSHySAFGVecs+t+-aVg@mail.gmail.com>
2021-11-26 10:50 ` Mike Lothian
2021-11-26 11:32 ` Du, Xiaojian
2021-11-26 13:24 ` Mike Lothian
2021-11-30 10:50 ` Huang Rui
[not found] ` <CAHbf0-EWVeD8xehHZc8ff-4vYbXC69z=kMf0_=RXJsHKG_2M7Q@mail.gmail.com>
2021-12-01 6:51 ` Huang Rui
2021-12-03 1:08 ` Mike Lothian
2021-12-03 3:27 ` Huang Rui
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=YZzRW3pjIoJ4k4O4@hr-amd \
--to=ray.huang@amd.com \
--cc=Jinzhou.Su@amd.com \
--cc=Xiaojian.Du@amd.com \
--cc=linux-pm@vger.kernel.org \
--cc=mike@fireburn.co.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.