public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Don Zickus <dzickus@redhat.com>
To: sedat.dilek@gmail.com
Cc: LKML <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH] x86, perf, nmi: Disable perf if counters are not accessable
Date: Tue, 23 Nov 2010 11:56:57 -0500	[thread overview]
Message-ID: <20101123165657.GF18100@redhat.com> (raw)
In-Reply-To: <AANLkTikzSY09i=C+A2Y=_gVa-44r_bN76P-U2-NZMnpz@mail.gmail.com>

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

  parent reply	other threads:[~2010-11-23 16:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-23 15:15 [PATCH] x86, perf, nmi: Disable perf if counters are not accessable Sedat Dilek
2010-11-23 15:19 ` Peter Zijlstra
2010-11-23 16:56 ` Don Zickus [this message]
2010-11-23 18:21   ` Sedat Dilek
2010-11-23 18:27     ` Peter Zijlstra
2010-11-23 18:29       ` Sedat Dilek
2010-11-23 18:37         ` Sedat Dilek
2010-11-23 19:04       ` Cyrill Gorcunov
2010-11-23 19:07         ` Peter Zijlstra
  -- strict thread matches above, loose matches on Subject: below --
2010-11-23 19:18 Cyrill Gorcunov
2010-11-22 21:55 Don Zickus
2010-11-23 10:46 ` Peter Zijlstra
2010-11-23 14:13   ` Don Zickus

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=20101123165657.GF18100@redhat.com \
    --to=dzickus@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=sedat.dilek@gmail.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