From: <josephjang@google.com>
To: rafael@kernel.org, gregkh@linuxfoundation.org, rjw@rjwysocki.net,
pavel@ucw.cz, len.brown@intel.com, pmladek@suse.com,
sergey.senozhatsky@gmail.com, rostedt@goodmis.org
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
jonglin@google.com, woodylin@google.com, markcheng@google.com,
josephjang@google.com
Subject: [PATCH v3] power: suspend: Move dpm_watchdog to suspend.c and enhance it
Date: Wed, 18 Nov 2020 06:53:54 +0000 [thread overview]
Message-ID: <00000000000025043f05b45c1367@google.com> (raw)
> On Fri, Nov 13, 2020 at 2:26 PM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> >
> > On Fri, Oct 23, 2020 at 02:04:17PM +0800, Joseph Jang wrote:
> > > Since dpm_watchdog just cover device power management, we proposed to
> > > move it to core power suspend.c to cover not only device power
> management
> > > hang issues, but also core power management hand issues.
> > >
> > > Since dpm_watchdog stands for device pm, we propose to use new name
> sleep
> > > timer and new timeout handler to cover more sleep hang issues. The new
> > > timeout handler will dump disk sleep task at first round timeout and
> > > trigger kernel panic at second round timeout.
> > > The default timer for each round is defined in
> > > CONFIG_PM_SLEEP_TIMER_TIMEOUT.
> > >
> > > Signed-off-by: Joseph Jang <josephjang@google.com>
> >
> > It still seems odd you can't use a watchdog for this, as you really have
> > just implemented the same thing here, but "open coded" the logic.
> >
> > I'll let Rafael chime in here too, as he knows this area much better
> > than I as to if this is viable or not.
> It is viable AFAICS.
> Just make the existing thing work with dev == NULL and use it as needed.
Thank you Greg and Rafael code review and good suggestions.
Since dpm_watchdog just covers two functions __device_suspend() and
device_resume().
We still don't know how to use current dpm_watchdog to capture other
suspend hang cases
outside these two functions. So we are trying to enhance it by moving
dpm_watchdog from
"drivers/base/power/main.c" to "kernel/power/suspend.c" and enable/disable
the watchdog
in more core pm functions.
Could you help to review if we can do that or not? If not, could you help
to give us
other better suggestions?
If you agree to do that, I will provide a new PATCH version 4 to fix all
coding problems
later.
Thank you,
Joseph.
next reply other threads:[~2020-11-18 6:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 6:53 josephjang [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-10-23 6:04 [PATCH v3] power: suspend: Move dpm_watchdog to suspend.c and enhance it Joseph Jang
2020-11-13 13:27 ` Greg Kroah-Hartman
2020-11-16 17:18 ` Rafael J. Wysocki
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=00000000000025043f05b45c1367@google.com \
--to=josephjang@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=jonglin@google.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=markcheng@google.com \
--cc=pavel@ucw.cz \
--cc=pmladek@suse.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rostedt@goodmis.org \
--cc=sergey.senozhatsky@gmail.com \
--cc=woodylin@google.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 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).