Hello,

On Mon, Oct 22, 2007 at 10:55:08AM +0800, Zhang, Yanmin wrote:
> > > 
> > > Below is the part of dmesg related to perfmon processors identification:
> > > 
> > > perfmon: unsupported CPU model 14
> > > perfmon: Intel P6 processor Family PMU detection failed
> > > perfmon: unsupported family=6
> > 
> > Normal.
> > 
> > > perfmon: Intel P4 PMU detection failed
> > 
> > Normal
> > 
> > > perfmon: nmi_watchdog=-1 nmi_active=0 force_nmi=0
> > > perfmon: PEBS supported, enabled
> > > perfmon: Intel Core PMU detected, 4 PMCs, 5 PMDs, 5 counters (31 bits)
> > > perfmon: Intel Core PMU installed
> > 
> > Not normal.
> > 
> > > perfmon: detected architecural perfmon v1
> > > perfmon: num_gen=2 width=40 num_fixed=0 width=0
> > > perfmon: register Intel architectural PMU error -16
> > 
> > That's normal because there is already a description registered.
> > 
> > > Looks like it finds the hardware, but later fails to register it (line 
> > > with 
> > > "error -16", -EBUSY. So something like the following to generate some 
> > > more 
> > > detail information information from the PFM_INFO's would be useful:
> > > 
> > In perfmon_intel_core.c, look at the :
> > 
> > static int pfm_core_probe_pmu(void)
> > {
> >         unsigned int i;
> > 
> >         /*
> >          * Check for Intel Core processor explicitely
> >          * Checking for cpu_has_perfmon is not enough as this
> >          * matches intel Core Duo/Core Solo but none supports
> >          * PEBS.
> >          *
> >          * Intel Core = arch perfmon v2 + PEBS
> >          */
> >         if (cpu_data->x86 != 6 || cpu_data->x86_model != 15)
> > 
> > If you come in with 6,14, this should fail. But it seems you have things
> > compiled in, so maybe there is something wrong there

Could someone instrument pfm_core_probe_pmu() to print out the x86 and 
x86_model values.
After rechecking on my machines, this works fine with me even when everything 
is compiled
in. I do not have a 6/14 machine. Also please try again using the 2.6.23 kernel 
patch so
that we compare the same code.


> I ran into the same issue on my new quad-core machine. Is there any update?

Are you sure you have processor famiy 6, model 15?

Please instrument pfm_core_probe_pmu() as well.

Thanks.

--
-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to