Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1533384
| From | "Liang, Kan" <kan.liang@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question |
| Date | 2016-11-30 16:30 +0100 |
| Message-ID | <sJeZA-7OM-19@gated-at.bofh.it> (permalink) |
| References | <sJaMi-52Z-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>
> > hi,
> > I'm trying to find out some documentation background for this part of
> > uncore code:
> >
> > ---
> > static int uncore_pmu_event_init(struct perf_event *event) {
> > ...
> > if (event->attr.config == UNCORE_FIXED_EVENT) {
> > /* no fixed counter */
> > if (!pmu->type->fixed_ctl)
> > return -EINVAL;
> > /*
> > * if there is only one fixed counter, only the first pmu
> > * can access the fixed counter
> > */
> > if (pmu->type->single_fixed && pmu->pmu_idx > 0)
> > return -EINVAL;
> > ...
> > ---
> >
> > that for some uncore types (those with pmu->type->single_fixed) only
> > the first pmu (code_id == 0) will allow to touch the clocktick event
> >
> > other cores boxes will not allow to open clocktick event, eventhough
> > it's announced via /sys/../events/..
> >
> > I'm probably missing some HW logic of specific boxes that would
> > explain that, but I can't find it.
>
> The client uncore has a standalone clocktick fixed counter. It doesn't belong
> to any boxes, which is different from server uncore.
>
> But client and server uncore share the same uncore_pmu_event_init.
> So it forces that only the first box can access the fixed counter.
>
> Maybe we should create a clocktick box for client uncore to fix it.
>
> You can find the fixed counter information from 18.11.6 in latest SDM
> (Order Number: 325384-060US).
>
> There should be a Skylake client uncore document published somewhere.
> But I cannot find it from Google. Let me ask around.
Here is the published document.
http://www.intel.com/content/www/us/en/processors/core/6th-gen-core-family-uncore-performance-monitoring-manual.html
>
> Thanks,
> Kan
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC] perf/x86/intel/uncore: pmu->type->single_fixed question Jiri Olsa <jolsa@redhat.com> - 2016-11-30 12:00 +0100
RE: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question "Liang, Kan" <kan.liang@intel.com> - 2016-11-30 15:50 +0100
Re: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question Andi Kleen <andi@firstfloor.org> - 2016-11-30 19:00 +0100
Re: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question Peter Zijlstra <peterz@infradead.org> - 2016-12-01 17:40 +0100
RE: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question "Liang, Kan" <kan.liang@intel.com> - 2016-12-01 17:40 +0100
RE: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question "Liang, Kan" <kan.liang@intel.com> - 2016-11-30 16:30 +0100
Re: [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question Jiri Olsa <jolsa@redhat.com> - 2016-11-30 16:40 +0100
csiph-web