From: stephane eranian <eranian@googlemail.com>
To: "Wang, Yong Y" <yong.y.wang@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
LKML <linux-kernel@vger.kernel.org>,
Paul Mackerras <paulus@samba.org>,
Andi Kleen <andi@firstfloor.org>
Subject: Re: perf_counter Atom patch
Date: Tue, 23 Jun 2009 09:45:03 +0200 [thread overview]
Message-ID: <7c86c4470906230045k578bc146wa0e09e4094d937a5@mail.gmail.com> (raw)
In-Reply-To: <9F0C1DB20AFA954FA1DA05309350433D7B2584D1@pdsmsx503.ccr.corp.intel.com>
Hi,
On Tue, Jun 23, 2009 at 5:38 AM, Wang, Yong Y<yong.y.wang@intel.com> wrote:
>> From: stephane eranian [mailto:eranian@googlemail.com]
>>
>> I would like to better understand what makes you think
>> this is the case.
>>
>
> Because I observed that the output of 'perf stat -e 0:0 -e 0:1 -e 0:6 <cmd>'
> is always like below without the quirk.
>
> Performance counter stats for '<cmd>':
>
> 0 cycles
> 0 instructions
> 0 bus-cycles
>
>> Perfmon is working on Atom and there, fixed counters work perfectly:
>> $ head -6 /proc/cpuinfo
>> processor : 0
>> vendor_id : GenuineIntel
>> cpu family : 6
>> model : 28
>> model name : Intel(R) Atom(TM) CPU 230 @ 1.60GHz
>> stepping : 2
>> ...
>
> My cpuinfo is below and the only difference I can see is 270 vs 230.
>
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 6
> model : 28
> model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
> stepping : 2
>
Unfortunately, I don't have a N270 to compare with your results.
We need to verify whether or not N270 implements the fixed counters.
Does it report architected perfmon v3 or v1?
> The return value of CPUID(0xa) is indeed bogus, too and there is another quirk for that in
> intel_pmu_init() in arch/x86/kernel/cpu/perf_counter.c
>
> x86_pmu.num_counters_fixed = max((int)edx.split.num_counters_fixed, 3);
>
> Is this what you were talking about?
Not quite, because with the max() you'd have a problem on Intel Core
Duo/Solo processors
as they do implement the first generation of architected perfmon and
that one did not have
fixed counters. So you'd have to special case family=6 model=14.
next prev parent reply other threads:[~2009-06-23 7:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 20:26 stephane eranian
2009-06-23 3:38 ` Wang, Yong Y
2009-06-23 7:45 ` stephane eranian [this message]
2009-06-23 7:59 ` Yong Wang
2009-06-23 8:27 ` stephane eranian
2009-06-23 8:34 ` Yong Wang
2009-06-23 9:10 ` Peter Zijlstra
2009-06-23 9:40 ` stephane eranian
2009-06-23 8:40 ` stephane eranian
2009-06-23 8:53 ` Yong Wang
2009-06-23 9:19 ` stephane eranian
2009-06-23 9:47 ` Ingo Molnar
2009-06-24 2:19 ` Yong Wang
2009-06-24 8:52 ` Ingo Molnar
2009-06-25 10:39 ` stephane eranian
2009-06-23 5:59 ` Wang, Yong Y
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=7c86c4470906230045k578bc146wa0e09e4094d937a5@mail.gmail.com \
--to=eranian@googlemail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=andi@firstfloor.org \
--cc=eranian@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=yong.y.wang@intel.com \
/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
all inboxes | Powered by JetHome®