public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Arnaldo Carvalho de Melo <acme@infradead.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] perf changes for v3.11
Date: Fri, 5 Jul 2013 08:27:08 +0200	[thread overview]
Message-ID: <20130705062708.GB29487@gmail.com> (raw)
In-Reply-To: <20130703075542.GF23916@twins.programming.kicks-ass.net>


* Peter Zijlstra <peterz@infradead.org> wrote:

> On Tue, Jul 02, 2013 at 05:50:29PM -0700, Linus Torvalds wrote:
> > On Mon, Jul 1, 2013 at 2:03 AM, Ingo Molnar <mingo@kernel.org> wrote:
> > >
> > >    git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus
> > >
> > > Kernel improvements:
> > >
> > >  * AMD IOMMU uncore PMU support by Suravee Suthikulpanit001a
> > 
> > This one prints a really annoying error message if you're not on an
> > AMD platform:
> > 
> > +       if (!amd_iommu_pc_supported()) {
> > +               pr_err("perf: amd_iommu PMU not installed. No support!\n");
> > +               return -ENODEV;
> > +       }
> > 
> > and you know what? That's not acceptable. It damn well is *not* an
> > error to not have an AMD IOMMU.
> > 
> > It should - at most - be a pr_info(). Maybe nothing at all. "pr_err()"
> > is just totally out of line.
> 
> Quite; it prints enough stuff when it does find one so I'm all for 
> scrapping that one print when it doesn't find it.
> 
> Sorry for not seeing that; when I initially read that code I thought it 
> was for the case where the hardware was expected to have the device but 
> we couldn't find it for some weird reason.
> 
> ---
> Subject: perf, amd: Do not print an error when the device is not present
> 
> As Linus said its not an error to not have an AMD IOMMU; esp. when you're not
> even running on an AMD platform.
> 
> Requested-by: Linus Torvalds <torvalds@linux-foundation.org>

Applied to perf/urgent, thanks!

( The pedantic in me changed that tag to Reported-by as we treat console 
  spam as bugs. )

Thanks,

	Ingo

  parent reply	other threads:[~2013-07-05  6:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01  9:03 [GIT PULL] perf changes for v3.11 Ingo Molnar
2013-07-03  0:50 ` Linus Torvalds
2013-07-03  7:55   ` Peter Zijlstra
2013-07-03 17:32     ` Suravee Suthikulpanit
2013-07-05  6:27     ` Ingo Molnar [this message]
2013-07-05  6:51     ` [tip:perf/urgent] perf/x86/amd: Do not print an error when the device is not present tip-bot for Peter Zijlstra

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=20130705062708.GB29487@gmail.com \
    --to=mingo@kernel.org \
    --cc=acme@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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