From: "Bartłomiej Zimoń" <uzi18@o2.pl>
To: linux-kernel@vger.kernel.org
Cc: "Andy Walls" <awalls@radix.net>,
linux-pm@lists.linux-foundation.org,
"Daniel Borkmann" <danborkmann@googlemail.com>
Subject: Re: [suspend/resume] Re: userspace notification from module
Date: Sun, 03 Jan 2010 23:53:49 +0100 [thread overview]
Message-ID: <24fb84fa.38887c91.4b411ffd.e7f1f@o2.pl> (raw)
In-Reply-To: <201001032229.53221.rjw@sisk.pl>
Dnia 3 stycznia 2010 22:29 "Rafael J. Wysocki" <rjw@sisk.pl> napisał(a):
> > > To put it in a different way, you apparently want the kernel to notify the user
> > > space of an event originating from the user space and my question is why not
> > > to set up the user space to generate the notification without relying on the
> > > kernel to do that.
> >
> > Because now kernel know better what is going on.
>
> That's because it's just been told by the user space about that.
>
> Basically, you want something like this to happen:
>
> process A ->(suspend) kernel
> kernel ->(suspending) process B
>
Yes.
> where the kernel won't wait for process B to do whatever it has to do before
> suspending. In my opinion it'd be better to do something like this
>
> process A ->(suspending) process B
> process B ->(ack) process A
> process A ->(suspend) kernel
>
> ...
Please forget for a moment about pm-utils.
I was thinking about sf like this:
pm-notify is registered in pm_notifier_chain or called before pm_notifiers_chain
pm-notify -> (suspending) all registerd processes
some processes ->(ack) pm-notify
after timeout ( 1s. could be ok) pm-notify will send NOTIFY_OK and kernel will cont. suspending
It could be even UIO module but there are no pm events reachable there?
If it is not clean, we must extend pm-utils or write something new
(with backends dbus, ipc, scripts, ...)
But You see? We still have no information from kernel about events
(especialy resume) or maybe i dont see this ;/
Thanks for your understanding Rafael :)
Best regards.
Bartłomiej Zimoń
PLD Linux, Kadu Team, FreeRunner user
http://kadu-im.blogspot.com/
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm
next prev parent reply other threads:[~2010-01-03 22:53 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl>
[not found] ` <201001022201.04281.rjw@sisk.pl>
[not found] ` <7cf4f51f.5fc2a5cd.4b3fc3ad.c849c@o2.pl>
2010-01-02 23:29 ` [suspend/resume] Re: userspace notification from module Rafael J. Wysocki
2010-01-03 1:03 ` Bartłomiej Zimoń
2010-01-03 9:30 ` Daniel Borkmann
2010-01-03 21:29 ` Rafael J. Wysocki
[not found] ` <4B4063AB.7080401@gmail.com>
2010-01-03 10:06 ` Daniel Borkmann
[not found] ` <4B406C14.2070907@gmail.com>
2010-01-03 11:01 ` Bartłomiej Zimoń
2010-01-03 21:49 ` Rafael J. Wysocki
[not found] ` <201001032249.11510.rjw@sisk.pl>
2010-01-04 13:38 ` Stefan Seyfried
2010-01-03 21:33 ` Rafael J. Wysocki
[not found] ` <201001032229.53221.rjw@sisk.pl>
2010-01-03 22:53 ` Bartłomiej Zimoń [this message]
2010-01-03 23:30 ` Rafael J. Wysocki
[not found] ` <201001040030.01256.rjw@sisk.pl>
2010-01-03 23:35 ` Bartłomiej Zimoń
[not found] ` <54ac764e.502c1a33.4b4129c3.9dc1b@o2.pl>
2010-01-03 23:45 ` Rafael J. Wysocki
[not found] ` <201001040045.39517.rjw@sisk.pl>
2010-01-04 0:51 ` Bartłomiej Zimoń
2010-01-04 12:46 ` Daniel Borkmann
[not found] ` <a522f3c.3bab16d1.4b413b9c.ec43@o2.pl>
2010-01-04 19:43 ` Rafael J. Wysocki
[not found] ` <201001042043.27037.rjw@sisk.pl>
2010-01-05 9:07 ` Anders Eriksson
[not found] ` <20100105090706.751D233C4B0@tippex.mynet.homeunix.org>
2010-01-05 21:02 ` Bartłomiej Zimoń
2010-01-05 21:23 ` Rafael J. Wysocki
[not found] ` <201001052223.21964.rjw@sisk.pl>
2010-01-05 22:12 ` Bartłomiej Zimoń
[not found] ` <16a1b165.2fdc37c6.4b43b943.c6733@o2.pl>
2010-01-05 23:03 ` Rafael J. Wysocki
[not found] ` <201001060003.23419.rjw@sisk.pl>
2010-01-05 23:37 ` Bartłomiej Zimoń
2010-01-06 14:35 ` Anders Eriksson
[not found] ` <20100106143534.A7EEA33C5F5@tippex.mynet.homeunix.org>
2010-01-06 20:37 ` [suspend/resume] Re: userspace notific ation " Bartłomiej Zimoń
[not found] ` <5c33d92a.63a2de8c.4b44f47a.8762@o2.pl>
2010-01-06 20:49 ` Roland Dreier
[not found] ` <adatyuzt0vg.fsf@roland-alpha.cisco.com>
2010-01-06 20:56 ` Roland Dreier
2010-01-15 20:02 ` [suspend/resume] Re: userspace notification " Pavel Machek
2010-01-05 21:26 ` Stefan Seyfried
[not found] ` <20100105222657.27218c4c@strolchi.home.s3e.de>
2010-01-05 22:22 ` Bartłomiej Zimoń
2010-01-05 23:05 ` Rafael J. Wysocki
[not found] ` <201001060005.17246.rjw@sisk.pl>
2010-01-06 0:43 ` Bartłomiej Zimoń
2010-01-06 10:10 ` Stefan Seyfried
[not found] ` <4B41E318.4050809@gmail.com>
2010-01-04 19:45 ` Rafael J. Wysocki
2010-01-03 17:20 ` Bartłomiej Zimoń
[not found] ` <ff72e3e.3b5092ec.4b40d1ec.54407@o2.pl>
2010-01-03 21:50 ` Rafael J. Wysocki
2010-01-03 23:17 Bartłomiej Zimoń
-- strict thread matches above, loose matches on Subject: below --
2010-01-06 1:05 Bartłomiej Zimoń
[not found] <1df13dac.5ba05e5c.4b43e1e2.120e@o2.pl>
2010-01-06 22:48 ` 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=24fb84fa.38887c91.4b411ffd.e7f1f@o2.pl \
--to=uzi18@o2.pl \
--cc=awalls@radix.net \
--cc=danborkmann@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.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