linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Drop WARN on AMD lack of perfctrs
@ 2013-05-16 15:10 Josh Boyer
  2013-05-16 17:51 ` Peter Zijlstra
  0 siblings, 1 reply; 21+ messages in thread
From: Josh Boyer @ 2013-05-16 15:10 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo
  Cc: x86, linux-kernel, gleb

Hi All,

If you boot a KVM guest on an AMD family 15h and specify -cpu host,
you'll get the following splat:

[    0.031000] ------------[ cut here ]------------
[    0.031000] WARNING: at arch/x86/kernel/cpu/perf_event_amd.c:772
amd_pmu_init+0x18c/0x249()
[    0.031000] Hardware name: Bochs
[    0.031000] Odd, counter constraints enabled but no core perfctrs
detected!
[    0.031000] Modules linked in:

[    0.031000] Pid: 1, comm: swapper/0 Not tainted
3.9.0-0.rc1.git0.4.fc19.x86_64 #1
[    0.031000] Call Trace:
[    0.031000]  [<ffffffff81d10c67>] ? amd_pmu_init+0x18c/0x249
[    0.031000]  [<ffffffff8105c9a0>] warn_slowpath_common+0x70/0xa0
[    0.031000]  [<ffffffff81d106b3>] ? check_bugs+0x2d/0x2d
[    0.031000]  [<ffffffff8105ca1c>] warn_slowpath_fmt+0x4c/0x50
[    0.031000]  [<ffffffff81d10c67>] amd_pmu_init+0x18c/0x249
[    0.031000]  [<ffffffff81d106e7>] init_hw_perf_events+0x34/0x428
[    0.031000]  [<ffffffff81d106b3>] ? check_bugs+0x2d/0x2d
[    0.031000]  [<ffffffff8100210a>] do_one_initcall+0x10a/0x160
[    0.031000]  [<ffffffff81d06fa5>] kernel_init_freeable+0xcf/0x1fa
[    0.031000]  [<ffffffff81629800>] ? rest_init+0x80/0x80
[    0.031000]  [<ffffffff8162980e>] kernel_init+0xe/0x190
[    0.031000]  [<ffffffff8164e22c>] ret_from_fork+0x7c/0xb0
[    0.031000]  [<ffffffff81629800>] ? rest_init+0x80/0x80
[    0.031000] ---[ end trace a1e57d3cb8668105 ]---

That seems a bit excessive, and it gets picked up by auto-reporting
tools like ABRT as a bug.  Can we remove the WARN and just use pr_err or
something else instead?

josh

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2013-05-28 13:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16 15:10 Drop WARN on AMD lack of perfctrs Josh Boyer
2013-05-16 17:51 ` Peter Zijlstra
2013-05-16 17:55   ` Josh Boyer
2013-05-16 18:10     ` Peter Zijlstra
2013-05-16 20:55       ` Robert Richter
2013-05-16 21:34         ` Borislav Petkov
2013-05-17  9:04           ` Peter Zijlstra
2013-05-17  9:16             ` Borislav Petkov
2013-05-17  9:27               ` Peter Zijlstra
2013-05-17  9:45                 ` Borislav Petkov
2013-05-17 10:36                   ` Robert Richter
2013-05-17 10:57                     ` Peter Zijlstra
2013-05-21  8:56                       ` Robert Richter
2013-05-21 11:05                         ` Peter Zijlstra
2013-05-21 13:58                           ` Robert Richter
2013-05-21 15:20                           ` Jacob Shin
2013-05-28 13:03                           ` [tip:perf/core] perf/x86/amd: Rework AMD PMU init code tip-bot for Peter Zijlstra
2013-05-16 21:54         ` Drop WARN on AMD lack of perfctrs Josh Boyer
2013-05-16 22:33           ` Robert Richter
2013-05-16 19:31   ` Gleb Natapov
2013-05-16 20:00     ` Borislav Petkov

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).