Re: swsusp 'disk' fails in bk-current - intel_agp at fault?

From: Pavel Machek (pavel_at_suse.cz)
Date: 03/25/05

  • Next message: Alexander Y. Fomichev: "2.6.11: spend too many time in miragtion thread"
    Date:	Fri, 25 Mar 2005 16:42:37 +0100
    To: dtor_core@ameritech.net
    
    

    Hi!

    > > > This is more of a general swsusp problem I believe - the second phase
    > > > when it blindly resumes entire system. Resume of a device can fail
    > > > (any reason whatsoever) and it will attempt to clean up after itself,
    > > > but userspace is dead and hotplug never completes. While I am
    > > > interested to know why ALPS does not want to resume on ANdy's laptop
    > > > the issue will never be completely resolved from within the input
    > > > system.
    > >
    > > When device fails to resume, what should I do? I think I could
    > >
    > > if (error)
    > > panic("Device resume failed\n");
    > >
    > > , but... that does not look like what you want.
    >
    > Oh, always panic-happy Pavel ;). It really depends on what kind of
    > device has faled to resume. If the device is really needed for writing
    > image then panic is the only recourse, but if it some other device you
    > resuming just ignore it, who cares...

    You are right, for resume-during-suspend, we may as well risk it. We
    have consistent state, and if we happen to write it on disk,
    everything is okay.

    For resume-during-resume, I don't really know how we can handle
    that. Running with some devices non-working seems dangerous to me.

    > Btw, I dont think that doing selective resume (as opposed to selective
    > suspend and Nigel's partial device trees) would be so much
    > complicated. You'd always resume sysdevs and then, when iterating over
    > "normal" devices, just skip ones not in resume path. It can all be
    > contained in driver core I believe (sorry but no patch, for now at
    > least).

    :-) I think we can simply make device freeze/unfreeze fast enough.
    [We do not need to do full suspend/resume; freeze is enough].

                                                                    Pavel

    -- 
    People were complaining that M$ turns users into beta-testers...
    ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Alexander Y. Fomichev: "2.6.11: spend too many time in miragtion thread"

    Relevant Pages

    • Re: Suspend 2 merge
      ... since swsusp1 cheats and discards caches. ... before suspend attempt 800MB were in use. ... half-of-memory limit does not bite too badly). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rc2-mm1 swsusp bug report.
      ... > It is easy to lose sight of the user perspective on these things if all ... > sprinkling the code with panics, ... never fails to suspend and is in Linus' tree. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [lhcs-devel] Re: [PATCH][2.6-mm] i386 Hotplug CPU
      ... we steer the APs straight into the offline cpu ... I do not understand what AP and BSP means in this context. ... we can just shut those cpus down on suspend and completely boot ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Screwy clock after apm suspend
      ... something wanting timeout of five minutes, then suspend one minute ... machine sleeps for a hour. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)