From: "Pan, Harry" <harry.pan@intel.com>
To: "tglx@linutronix.de" <tglx@linutronix.de>
Cc: "hpa@zytor.com" <hpa@zytor.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"peterz@infradead.org" <peterz@infradead.org>,
"srinivas.pandruvada@linux.intel.com"
<srinivas.pandruvada@linux.intel.com>,
"mingo@redhat.com" <mingo@redhat.com>,
"x86@kernel.org" <x86@kernel.org>, "bp@alien8.de" <bp@alien8.de>
Subject: Re: [PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell RAPL support
Date: Tue, 13 Sep 2016 17:30:43 +0000 [thread overview]
Message-ID: <1473787841.4582.13.camel@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1609131530530.6233@nanos>
On Tue, 2016-09-13 at 15:41 +0200, Thomas Gleixner wrote:
> On Sun, 11 Sep 2016, Harry Pan wrote:
> > This patch also enables multiple quirks.
>
> This patch adds a single quirk for Baytrail.
>
> Please stop sending out patches 5 seconds after a review. Take your time
Definitely I take this seriously because I felt awkward as well.
> > + /*
> > + * Some Atom processors (BYT/BSW) have 2^ESU microjoules
> > + * increment, refer to Software Developers' Manual, Vol. 3C,
> > + * Order No. 325384, Table 35-8 of MSR_RAPL_POWER_UNIT.
> > + *
> > + * TODO: In order to fit BYT/BSW quirk model, here remind
> > + * this generates timer rate in 80ms; by default
> > + * ESU of BYT/BSW is 5, so it leads (1000/200)*2^4.
>
> This sentence is not a sentence and I can't make any sense of it at
> all.
>
> What's the TODO here? And why is that TODO not addressed in this patch?
>
I reviewed my sentence and agreed your comment; yes, it is incorrect to
be a "TODO" tag since no decent suggestion/option.
This things is because of the Baytrail/Braswell quirk breaks original
assumption of perf RAPL polling timer rate calculation regarding of
counter overflow case based on 200W; in short, it leads every 80ms
system triggers an event to read counters, and this is concern I want to
comment (wrong tag?) because I could no assess any side effect.
Perhaps I should revise it as "remark" or "caveat" because I do not have
decent suggestion (fulfill "TODO" tag) so far.
Alternately, it shall not affect functionality since I compared w/
powercap driver through sysfs nodes during experiment, yet I am humble
to take any advice to make this patch better.
Sincerely,
Harry
next prev parent reply other threads:[~2016-09-13 17:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-11 5:18 [PATCH 1/3] perf/x86/rapl: Enable Apollo Lake RAPL support Harry Pan
2016-09-11 5:18 ` [PATCH 2/3] x86/perf/rapl: Make quirk a function pointer Harry Pan
2016-09-11 5:18 ` [PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell RAPL support Harry Pan
2016-09-13 13:41 ` Thomas Gleixner
2016-09-13 17:30 ` Pan, Harry [this message]
2016-09-14 16:16 ` Thomas Gleixner
-- strict thread matches above, loose matches on Subject: below --
2016-09-11 3:02 [PATCH 1/3] perf/x86/rapl: Enable Apollo Lake " Harry Pan
2016-09-11 3:02 ` [PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell " Harry Pan
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=1473787841.4582.13.camel@intel.com \
--to=harry.pan@intel.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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 NNTP newsgroup(s).