Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable review



Hi!

On Fri, 25 May 2007, Pavel Machek wrote:

Equally arguably, we should just have a "resume_late()" call that can be
used to do this after everything is up and running.

Yes, we can do that. But userland will see devices "not there" for a
few seconds after boot.

No they won't.

Why the HELL cannot you realize that kernel threads are different?

The right thing to do is AND HAS ALWAYS BEEN, to stop and start user
threads only around the whole thing.

Don't touch those kernel threads. Stop freezing them.

Then, what you do is:
- stop user space
- suspend
- resume
~~~~~~~~~~~
notice how resume of pcmcia card that poor user has needs
userspace. So this does not work.

- start user space

My proposed solution is "fix pcmcia to load firmware before suspend
even starts"

- HERE
- stop user space
- suspend
- resume
- start user space

Maybe freezer causes cancer in small children, but lets not blame it
for this.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: SystemPowerState messed up after reboot ...
    ... There is not such thing as "user space" in a Pocket PC device, ... lies in your code or the platform code. ... GwesPowerOfffor suspend is my choice. ... The reset works fine as long the device wasn't suspended. ...
    (microsoft.public.windowsce.embedded)
  • Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default
    ... To successfully freeze a kernel thread ... This affects kernel threads too, ... +kernel threads are controlled during hibernation or system-wide suspend (on some ... static int edac_kernel_thread ...
    (Linux-Kernel)
  • Re: Back to the future.
    ... needed for the suspend writeouts to succeed!), ... Still, I think, if a kernel thread is a part of a device driver, then _in_ ... and resume/thaw callbacks. ... With the freezing of kernel threads we provide a simple means of such ...
    (Linux-Kernel)
  • Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
    ... let's remove the freezer, which causes numerous problems ... And this is not something that can be fixed in fuse, ... suspend which would be pretty annoying. ... It may affect user space drivers, ...
    (Linux-Kernel)
  • Re: Back to the future.
    ... stopped to freeze kernel threads for the hibernation/suspend. ... I have no problems with the hibernation on my test boxes, ... for one network driver that doesn't bother to define a .suspend() callback. ... Anyway, the freezing of tasks, including kernel threads, is one of the few ...
    (Linux-Kernel)