From: Takashi Iwai <tiwai@suse.de>
To: Mark Brown <broonie@kernel.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
Hans de Goede <hdegoede@redhat.com>,
Liam Girdwood <liam.r.girdwood@linux.intel.com>,
alsa-devel@alsa-project.org
Subject: Re: [PATCH] ASoC: lower "no backend DAIs enabled for ... Port" log severity
Date: Fri, 04 Aug 2023 17:40:20 +0200 [thread overview]
Message-ID: <87y1iqoly3.wl-tiwai@suse.de> (raw)
In-Reply-To: <c320a2f8-7e53-4e51-84b9-9e7763ce1541@sirena.org.uk>
On Fri, 04 Aug 2023 17:15:14 +0200,
Mark Brown wrote:
>
> On Fri, Aug 04, 2023 at 04:42:34PM +0200, Takashi Iwai wrote:
> > Pierre-Louis Bossart wrote:
>
> > > > And also changes _soc_pcm_ret() to not log for -EINVAL errors, to fix
> > > > the other error. Userspace passing wrong parameters should not lead
> > > > to dmesg messages.
>
> > > Maybe, but it's a questionable flow if pipewire tries to open stuff
> > > without the mixer values set-up. Is there something done about this?
>
> > I think it's an oft-seen problem when user runs the system without
> > installing a proper UCM profile.
>
> Yeah, it's really easy to do.
>
> > > It really makes no sense for userspace to try and open devices that are
> > > known to be problematic. We can push kernel error logs below the rug, it
> > > doesn't make the programming flows better.
>
> > Downgrading the message also hides to show what's wrong there.
> > Although the message doesn't indicate how to fix the problem, no
> > message would make debug harder.
>
> > So in general I agree that it's annoying and it should be fixed, but
> > hiding all as default can be bad, too. Maybe we can introduce a
> > counter and shut out after three strikes?
>
> Hrm, do systems typically filter out debug logs? Most of the systems I
> work on do still log debug logs, they just only include them in dmesg by
> default.
I thought flipping the dynamic debug flag needed for showing them up
with dev_dbg() and co.
> There are ratelimited printk APIs which we could use, though
> they're not quite ratelimited enough for this I think.
Yes, this is printed not too frequently but just repeatedly.
IMHO, dev_err_once() would be a good compromise.
thanks,
Takashi
next prev parent reply other threads:[~2023-08-04 15:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-04 13:26 [PATCH] ASoC: lower "no backend DAIs enabled for ... Port" log severity Hans de Goede
2023-08-04 14:06 ` Pierre-Louis Bossart
2023-08-04 14:42 ` Takashi Iwai
2023-08-04 15:08 ` Hans de Goede
2023-08-04 15:28 ` Pierre-Louis Bossart
2023-08-04 15:15 ` Mark Brown
2023-08-04 15:40 ` Takashi Iwai [this message]
2023-08-04 15:50 ` Mark Brown
2023-08-04 15:57 ` Takashi Iwai
2023-08-07 21:34 ` Mark Brown
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=87y1iqoly3.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=hdegoede@redhat.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.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 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.