From: Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>
To: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>
Cc: Robert Richter <robert.richter-5C7GfCeVMHo@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kernel Testers List
<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Andi Kleen <ak-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Tim Blechmann <tim-xpEK/MU0Hawdnm+yROfE0A@public.gmane.org>
Subject: Re: [Bug #12395] 2.6.28-rc9: oprofile regression
Date: Tue, 3 Mar 2009 21:45:05 +0100 [thread overview]
Message-ID: <20090303204504.GA20038@elte.hu> (raw)
In-Reply-To: <200903032055.23969.rjw-KKrjLPT3xs0@public.gmane.org>
* Rafael J. Wysocki <rjw-KKrjLPT3xs0@public.gmane.org> wrote:
> On Tuesday 03 March 2009, Robert Richter wrote:
> > Fix upstream in tip/x86/urgent:
> >
> > 780eef9492b16a1543a3b2ae9f9526a735fc9856
>
> URL, please?
The fix is not yet in Linus's tree - the commit is below.
Ingo
------------>
From 780eef9492b16a1543a3b2ae9f9526a735fc9856 Mon Sep 17 00:00:00 2001
From: Tim Blechmann <tim-xpEK/MU0Hawdnm+yROfE0A@public.gmane.org>
Date: Thu, 19 Feb 2009 17:34:03 +0100
Subject: [PATCH] x86: oprofile: don't set counter width from cpuid on Core2
Impact: fix stuck NMIs and non-working oprofile on certain CPUs
Resetting the counter width of the performance counters on Intel's
Core2 CPUs, breaks the delivery of NMIs, when running in x86_64 mode.
This should fix bug #12395:
http://bugzilla.kernel.org/show_bug.cgi?id=12395
Signed-off-by: Tim Blechmann <tim-xpEK/MU0Hawdnm+yROfE0A@public.gmane.org>
Signed-off-by: Robert Richter <robert.richter-5C7GfCeVMHo@public.gmane.org>
LKML-Reference: <20090303100412.GC10085-yX1UDyMwZ8xWk0Htik3J/w@public.gmane.org>
Cc: <stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Signed-off-by: Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>
---
arch/x86/oprofile/op_model_ppro.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/x86/oprofile/op_model_ppro.c b/arch/x86/oprofile/op_model_ppro.c
index e9f80c7..10131fb 100644
--- a/arch/x86/oprofile/op_model_ppro.c
+++ b/arch/x86/oprofile/op_model_ppro.c
@@ -78,8 +78,18 @@ static void ppro_setup_ctrs(struct op_msrs const * const msrs)
if (cpu_has_arch_perfmon) {
union cpuid10_eax eax;
eax.full = cpuid_eax(0xa);
- if (counter_width < eax.split.bit_width)
- counter_width = eax.split.bit_width;
+
+ /*
+ * For Core2 (family 6, model 15), don't reset the
+ * counter width:
+ */
+ if (!(eax.split.version_id == 0 &&
+ current_cpu_data.x86 == 6 &&
+ current_cpu_data.x86_model == 15)) {
+
+ if (counter_width < eax.split.bit_width)
+ counter_width = eax.split.bit_width;
+ }
}
/* clear all counters */
next prev parent reply other threads:[~2009-03-03 20:45 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 22:00 2.6.29-rc6: Reported regressions 2.6.27 -> 2.6.28 Rafael J. Wysocki
2009-02-23 22:01 ` [Bug #12061] snd_hda_intel: power_save: sound cracks on powerdown Rafael J. Wysocki
2009-02-23 22:02 ` [Bug #12208] uml is very slow on 2.6.28 host Rafael J. Wysocki
2009-02-23 22:02 ` [Bug #12209] oldish top core dumps (in its meminfo() function) Rafael J. Wysocki
2009-02-23 22:02 ` [Bug #12160] networking oops after resume from s2ram (2.6.28-rc6) Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12337] ~100 extra wakeups reported by powertop Rafael J. Wysocki
2009-02-24 10:53 ` Alberto Gonzalez
2009-02-24 11:23 ` Nick Piggin
[not found] ` <200902242223.39069.nickpiggin-/E1597aS9LT0CCvOHzKKcA@public.gmane.org>
2009-02-24 12:25 ` Alberto Gonzalez
[not found] ` <77208.42754.qm-DE+e5QfjKZiB9c0Qi4KiSl5cfvJIxWXgQQ4Iyu8u01E@public.gmane.org>
2009-02-24 12:38 ` Nick Piggin
[not found] ` <200902242338.14105.nickpiggin-/E1597aS9LT0CCvOHzKKcA@public.gmane.org>
2009-02-24 13:50 ` Alberto Gonzalez
[not found] ` <819821.83409.qm-XPPYsw2aJMuB9c0Qi4KiSl5cfvJIxWXgQQ4Iyu8u01E@public.gmane.org>
2009-02-24 13:55 ` Henrique de Moraes Holschuh
2009-02-24 16:24 ` Jesse Barnes
2009-02-24 17:04 ` Alberto Gonzalez
2009-02-23 22:03 ` [Bug #12395] 2.6.28-rc9: oprofile regression Rafael J. Wysocki
2009-03-03 11:32 ` Robert Richter
[not found] ` <20090303113218.GE10085-yX1UDyMwZ8xWk0Htik3J/w@public.gmane.org>
2009-03-03 19:55 ` Rafael J. Wysocki
[not found] ` <200903032055.23969.rjw-KKrjLPT3xs0@public.gmane.org>
2009-03-03 20:45 ` Ingo Molnar [this message]
[not found] ` <20090303204504.GA20038-X9Un+BFzKDI@public.gmane.org>
2009-03-03 21:40 ` Rafael J. Wysocki
2009-03-04 17:58 ` Ingo Molnar
[not found] ` <20090304175828.GA1172-X9Un+BFzKDI@public.gmane.org>
2009-03-07 22:16 ` Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12393] debugging in dosemu causes lots of 'scheduling while atomic' Rafael J. Wysocki
2009-02-24 10:03 ` Thomas Gleixner
[not found] ` <alpine.LFD.2.00.0902241101580.3523-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-25 22:49 ` Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12406] 2.6.28 thinks that my PS/2 mouse is a touchpad Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12401] 2.6.28 regression: xbacklight broken on ThinkPad X61s Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12404] Oops in 2.6.28-rc9 and -rc8 -- mtrr issues / e1000e Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12405] oops in __bounce_end_io_read under kvm Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12407] Kernel 2.6.28 regression: Hang after hibernate Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12411] 2.6.28: BUG in r8169 Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12409] NULL pointer dereference at get_stats() Rafael J. Wysocki
2009-02-24 3:54 ` Tetsuo Handa
[not found] ` <200902240354.n1O3sous011760-etx+eQDEXHD7nzcFbJAaVXf5DAMn2ifp@public.gmane.org>
2009-02-25 22:51 ` Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12408] Funny problem with 2.6.28: Kernel stalls Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12421] GPF on 2.6.28 and 2.6.28-rc9-git3, e1000e and e1000 issues Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12559] Huawei E169 doesn't work as mass storage anymore Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12465] KVM guests stalling on 2.6.28 (bisected) Rafael J. Wysocki
2009-02-24 0:59 ` Kevin Shanahan
[not found] ` <1235437183.4988.2.camel-9TBizaOOD0ujuAshGpSIhRCuuivNXqWP@public.gmane.org>
2009-02-24 1:37 ` Rafael J. Wysocki
2009-02-24 12:09 ` Avi Kivity
[not found] ` <49A3E38F.7080306-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-02-24 22:11 ` Kevin Shanahan
2009-02-23 22:03 ` [Bug #12500] r8169: NETDEV WATCHDOG: eth0 (r8169): transmit timed out Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12619] Regression 2.6.28 and last - boot failed Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12614] WOL with forcedeth broken since f55c21fd9a92a444e55ad1ca4e4732d56661bf2e Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12634] video distortion and lockup with i830 video chip and 2.6.28.3 Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12612] hard lockup when interrupting cdda2wav Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12645] DMI low-memory-protect quirk causes resume hang on Samsung NC10 Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12757] >2.6.27 dies at cardbus init on laptop Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12690] DPMS (LCD powersave, poweroff) don't work Rafael J. Wysocki
2009-02-23 22:03 ` [Bug #12759] scsi: aic7xxx hang since v2.6.28-rc1 Rafael J. Wysocki
2009-02-24 1:29 ` [stable] 2.6.29-rc6: Reported regressions 2.6.27 -> 2.6.28 Greg KH
[not found] ` <20090224012959.GA25443-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2009-02-24 1:40 ` Rafael J. Wysocki
2009-02-24 15:10 ` [linux-pm] " Alan Stern
[not found] ` <Pine.LNX.4.44L0.0902241009020.3289-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2009-03-07 22:18 ` Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-03-03 19:34 2.6.29-rc6-git7: " Rafael J. Wysocki
2009-03-03 19:41 ` [Bug #12395] 2.6.28-rc9: oprofile regression Rafael J. Wysocki
2009-02-14 20:48 2.6.29-rc5: Reported regressions 2.6.27 -> 2.6.28 Rafael J. Wysocki
2009-02-14 20:50 ` [Bug #12395] 2.6.28-rc9: oprofile regression Rafael J. Wysocki
2009-02-04 10:55 2.6.29-rc3-git6: Reported regressions 2.6.27 -> 2.6.28 Rafael J. Wysocki
2009-02-04 10:58 ` [Bug #12395] 2.6.28-rc9: oprofile regression Rafael J. Wysocki
2009-01-19 21:41 2.6.29-rc2-git1: Reported regressions 2.6.27 -> 2.6.28 Rafael J. Wysocki
2009-01-19 21:45 ` [Bug #12395] 2.6.28-rc9: oprofile regression Rafael J. Wysocki
[not found] <nn3SOLVZ28H.A.bY.CafaJB@chimera>
2009-01-11 11:41 ` Rafael J. Wysocki
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=20090303204504.GA20038@elte.hu \
--to=mingo-x9un+bfzkdi@public.gmane.org \
--cc=ak-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
--cc=robert.richter-5C7GfCeVMHo@public.gmane.org \
--cc=tim-xpEK/MU0Hawdnm+yROfE0A@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).