From: Thomas Renninger <trenn@suse.de>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: "Herton R. Krzesinski" <herton@redhat.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpupower: mperf monitor: fix output in MAX_FREQ_SYSFS mode
Date: Wed, 27 May 2015 15:24:56 +0200 [thread overview]
Message-ID: <3575658.uqSK43yRpj@skinner> (raw)
In-Reply-To: <31826905.dNXxBhfo7A@vostro.rjw.lan>
Hi,
and sorry for the late answer, this had not highest prio...
On Wednesday, May 20, 2015 02:26:47 AM Rafael J. Wysocki wrote:
> On Monday, May 11, 2015 12:40:22 PM Herton R. Krzesinski wrote:
> > On Mon, May 11, 2015 at 11:35:35AM -0300, Herton R. Krzesinski wrote:
> > > There is clearly wrong output when mperf monitor runs in MAX_FREQ_SYSFS
> > > mode: average frequency shows in kHz unit (despite the intended output
> > > to be in MHz), and percentages for C state information are all wrong
> > > (including high/negative values shown).
> > >
> > > The problem is that the max_frequency read on initialization isn't used
> > > where it should have been used on mperf_get_count_percent (to estimate
> > > the number of ticks in the given time period), and the value we read
> > > from sysfs is in kHz, so we must divide it to get the MHz value to use
> > > in current calculations.
> > >
> > > While at it, also I fixed another small issues in the debug output of
> > > max_frequency value in mperf_get_count_freq.
> > >
> > > Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
> > > ---
> > >
> > > tools/power/cpupower/utils/idle_monitor/mperf_monitor.c | 5 +++--
> > > 1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > Actually please consider v2 patch below, just a minor change in the debug
> > output, which isn't a percentage...
>
> Thomas, any comments?
I tried to find fitting HW without much success.
The MAX_FREQ_SYSFS is used only on rare HW and it may never got a proper test.
Patch looks sane. Even I cannot add a Tested-by:
you may add:
Acked-by: Thomas Renninger <trenn@suse.de>
and add it.
Thanks,
Thomas
prev parent reply other threads:[~2015-05-27 13:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 14:35 [PATCH] cpupower: mperf monitor: fix output in MAX_FREQ_SYSFS mode Herton R. Krzesinski
2015-05-11 15:40 ` Herton R. Krzesinski
2015-05-20 0:26 ` Rafael J. Wysocki
2015-05-27 13:24 ` Thomas Renninger [this message]
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=3575658.uqSK43yRpj@skinner \
--to=trenn@suse.de \
--cc=herton@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rjw@rjwysocki.net \
/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