Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephane Eranian
Date: Friday, November 26, 2010 - 1:33 am

Lin,

Looked at the perfmon code, and it seems the mask is actual
cores, not threads:
                rdmsrl(MSR_NHM_UNC_GLOBAL_CTRL, val);
                val |= 1ULL << (48 + cpu_data(smp_processor_id()).cpu_core_id);
                wrmsrl(MSR_NHM_UNC_GLOBAL_CTRL, val);

That seems to imply both threads will get the interrupt.

In the the overflowed event was programmed from on of the two threads, that
means one will process the overflow, the other will get spurious.

On the cores where no uncore was programmed, then both threads will have
a spurious interrupt.

That brings up back to the 'spurious interrupt' issue and the 'NMI
Dazed' message
that Don tried to eliminate. Now we have a new situation where we will
get interrupt
with no work to do, so the perf_event will pass the interrupt onto the
next subsystem
and eventually we will get the 'dazed' message. I am just guessing here....


On Fri, Nov 26, 2010 at 9:18 AM, Stephane Eranian <eranian@google.com> wrote:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Peter Zijlstra, (Sun Nov 21, 10:44 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Tue Nov 23, 3:00 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Tue Nov 23, 3:17 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Peter Zijlstra, (Wed Nov 24, 11:09 pm)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Thu Nov 25, 1:48 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Thu Nov 25, 2:10 pm)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Fri Nov 26, 1:18 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Fri Nov 26, 1:33 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Fri Nov 26, 3:06 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Peter Zijlstra, (Fri Nov 26, 4:24 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Fri Nov 26, 4:25 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Peter Zijlstra, (Fri Nov 26, 4:36 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Fri Nov 26, 4:41 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Peter Zijlstra, (Wed Dec 1, 4:37 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Stephane Eranian, (Wed Dec 1, 6:04 am)
Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu, Peter Zijlstra, (Wed Dec 1, 7:18 am)