Re: [PATCH] x86, perf, nmi: Disable perf if counters are notaccessable

From: Don Zickus
Date: Tue Nov 23 2010 - 11:57:10 EST


On Tue, Nov 23, 2010 at 04:15:05PM +0100, Sedat Dilek wrote:
> Hi,
>
> I am seeing for a while this warning in my system-wide logs:
>
> Nov 23 11:54:14 tbox kernel: [ 0.040335] NMI watchdog failed to
> create perf event on cpu0: ffffffa1
>
> As I saw this patch from [1], I was hoping it's also fixing my problem
> on an Intel Pentium-M (Banias) Single-Core CPU:

I doubt it. This patch was intended for virtualization where the perf
counters are not emulated but the perf subsystem didn't know that.

Your error code is 'ffffffa1'. That translates to EOPNOTSUPP. The only
place I can see where that is returned is if your system does not have a
local apic on it (as set by the cpu feature bits).

Applying this patch may still get you the same result because the perf
counters might be there but there is no local apic to deliver the
interrupts.

I would have to see in your log file the output starting at the line with

Performance Events:

and pasting the next dozen lines or so to have a better understanding what
is going on. Or you can just attach the whole log in your reply.

Cheers,
Don
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/