All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pranjal Shrivastava <praan@google.com>
To: Robin Murphy <robin.murphy@arm.com>
Cc: "Li,Rongqing" <lirongqing@baidu.com>,
	"joro@8bytes.org" <joro@8bytes.org>,
	"will@kernel.org" <will@kernel.org>,
	"iommu@lists.linux.dev" <iommu@lists.linux.dev>
Subject: Re: 答复: [外部邮件] Re: [PATCH] iommu: Downgrade print level for iommu group information
Date: Wed, 27 Nov 2024 20:56:24 +0000	[thread overview]
Message-ID: <Z0eHeDU25KEJsh38@google.com> (raw)
In-Reply-To: <ad917c62-0e19-4178-9fbc-a288117aa196@arm.com>

On Wed, Nov 27, 2024 at 12:37:38PM +0000, Robin Murphy wrote:
> On 27/11/2024 10:16 am, Pranjal Shrivastava wrote:
> > On Tue, Nov 26, 2024 at 12:09:03PM +0000, Li,Rongqing wrote:
> > > 
> > > > On 26/11/2024 7:23 am, Li RongQing wrote:
> > > > > This per device log is becoming longer with more and more PCI devices
> > > > > in system, which slows down the boot process due to the serializing
> > > > > nature of printk().
> > > > > 
> > > > > Downgrade dev_info() to dev_dbg() so it is still accessible for debug
> > > > > purposes.
> > > > 
> > > > Previously discussed 4 and a half years ago:
> > > > 
> > > > https://lore.kernel.org/linux-iommu/20200302154426.GC6540@8bytes.org/
> > > > 
> > 
> > Hmm.. I'm wondering if ratelimiting might help here?
> > We can define a rate_limit for the iommu subsystem that can be tuned
> > accordingly to control verbosity. We can keep the rate_limit to a min.
> > as we'd like and maintain it upstream and give users an option to tune
> > it as per their requirement.
> 
> No, this is not an issue of rate, and we're not going to reinvent some
> obscure IOMMU-API-specific version of loglevel just for this. These are at
> "info" level for good reason, so anyone who only cares about warnings or
> errors can already filter their console output to suit.
> 

Ack. Agreed.

> Debug enough "my device stops working after I enable the IOMMU" issues by
> email using only dmesg logs, and you might start to appreciate how often
> it's a case of scrolling way way back from the apparent error to see that
> the device was added to a *different* group than expected, or crucially,
> seeing the conspicuous *absence* of any message, because the IOMMU driver
> didn't believe it was responsible for that device in the first place.

Hmm.. I agree.

> 
> Thanks,
> Robin.
> 

Thanks,
Praan

  reply	other threads:[~2024-11-27 20:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-26  7:23 [PATCH] iommu: Downgrade print level for iommu group information Li RongQing
2024-11-26 10:25 ` Pranjal Shrivastava
2024-11-26 10:47   ` 答复: [????] " Li,Rongqing
2024-11-26 11:49 ` Robin Murphy
2024-11-26 12:09   ` 答复: [外部邮件] " Li,Rongqing
2024-11-27 10:16     ` Pranjal Shrivastava
2024-11-27 11:32       ` 答复: " Li,Rongqing
2024-11-29  8:21         ` Li,Rongqing
2024-11-27 12:37       ` Robin Murphy
2024-11-27 20:56         ` Pranjal Shrivastava [this message]
2024-11-27 12:12     ` Robin Murphy

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=Z0eHeDU25KEJsh38@google.com \
    --to=praan@google.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=lirongqing@baidu.com \
    --cc=robin.murphy@arm.com \
    --cc=will@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.