Re: [PATCH][v3] PM / sleep: Add pm_debug_messages boot command control

From: Chen Yu
Date: Mon Apr 06 2020 - 05:53:53 EST


Hi Pavel,
thanks for review.
On Mon, Apr 06, 2020 at 11:18:13AM +0200, Pavel Machek wrote:
> Hi!
>
> > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> > > index ed73df5f1369..3fb9cbee8d28 100644
> > > --- a/Documentation/admin-guide/kernel-parameters.txt
> > > +++ b/Documentation/admin-guide/kernel-parameters.txt
> > > @@ -3720,6 +3720,9 @@
> > > Override pmtimer IOPort with a hex value.
> > > e.g. pmtmr=0x508
> > >
> > > + pm_debug_messages [SUSPEND,KNL]
> > > + Enable suspend/resume debug messages during boot up.
> > > +
> > > pnp.debug=1 [PNP]
> > > Enable PNP debug messages (depends on the
> > > CONFIG_PNP_DEBUG_MESSAGES option). Change at run-time
>
> > Applied (as 5.7-rc material) with modified subject and changelog,
> thanks!
>
> Please don't.
>
> We have pnp.debug, i8042.debug, acpi.debug_*, lsm.debug... It makes
> sense to do pm.debug... we want to have some consistency.
>
We also have initcall_debug. It looks like the 'dot' indicates
that it is a module(or driver) parameter, and have multiple options
for user to choose from, but it looks like this is not the case for
pm_debug_messages.

Thanks,
Chenyu
> Thanks,
> Pavel
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html