linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Call to rewrite swsusp
@ 2002-11-04 15:31 Shawn Starr
  2002-11-07 17:39 ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn Starr @ 2002-11-04 15:31 UTC (permalink / raw)
  To: linux-kernel


Talking with some people last night it seems we need to redo the swsusp (driver). From what I've been told and have seen (from the code) it doesn't talk to the generic subsystems (like block layer, network layer etc). From talks with some kernel developers, they tell me we would have to modify all the drivers to properly handle system suspends. Is it not APM/ACPI's job to bring down the system to a stable state when suspending the machine?

The swsusp should be asking all the generic subsystems. When the machine is about to be suspended it should flush any read/write buffers, stop processing packets and other things.

Am I totally wrong on this? :-)

Shawn.
Shawn Starr
Development Systems Support Analyst, Operations
T: 416-213-2001 ext 179  F: 416-213-2008
shawn.starr@datawire.net
www.datawire.net
"Sent from my Blackberry handheld"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Call to rewrite swsusp
  2002-11-04 15:31 Call to rewrite swsusp Shawn Starr
@ 2002-11-07 17:39 ` Pavel Machek
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2002-11-07 17:39 UTC (permalink / raw)
  To: Shawn Starr; +Cc: linux-kernel


> Talking with some people last night it seems we need to redo the
> swsusp (driver). From what I've been told and have seen (from the
> code) it doesn't talk to the generic subsystems (like block layer,
> network layer etc). From talks with some kernel developers, they
> tell me we would have to modify all the drivers to properly handle
> system suspends. Is it not APM/ACPI's job to bring down the system
> to a stable state when suspending the machine?

> The swsusp should be asking all the generic subsystems. When the
> machine is about to be suspended it should flush any read/write
> buffers, stop processing packets and other things.

> Am I totally wrong on this? :-)

Yes.
								Pavel

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Call to rewrite swsusp
@ 2002-11-04 15:39 Shawn Starr
  0 siblings, 0 replies; 3+ messages in thread
From: Shawn Starr @ 2002-11-04 15:39 UTC (permalink / raw)
  To: linux-kernel

Make that: Tell all generic subsystems to clear their buffers out and tell other subsystems they are not available. Suspend first then APM/ACPI last. Perhaps we need some sort of flag states to let other kernel subsystems know not to bother asking for requests. The kernel could preempt each subsystem and bring them down in a safe order no?

Shawn.

-----Original Message-----
From: "Shawn Starr" <shawnstarr@mobile.rogers.com>
Date: Mon, 4 Nov 2002 11:31:42 
To: linux-kernel@vger.kernel.org
Subject: Call to rewrite swsusp


Talking with some people last night it seems we need to redo the swsusp (driver). From what I've been told and have seen (from the code) it doesn't talk to the generic subsystems (like block layer, network layer etc). From talks with some kernel developers, they tell me we would have to modify all the drivers to properly handle system suspends. Is it not APM/ACPI's job to bring down the system to a stable state when suspending the machine?

The swsusp should be asking all the generic subsystems. When the machine is about to be suspended it should flush any read/write buffers, stop processing packets and other things.

Am I totally wrong on this? :-)

Shawn.
Shawn Starr
Development Systems Support Analyst, Operations
T: 416-213-2001 ext 179  F: 416-213-2008
shawn.starr@datawire.net
www.datawire.net
"Sent from my Blackberry handheld"
Shawn Starr
Development Systems Support Analyst, Operations
T: 416-213-2001 ext 179  F: 416-213-2008
shawn.starr@datawire.net
www.datawire.net
"Sent from my Blackberry handheld"

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-10 11:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 15:31 Call to rewrite swsusp Shawn Starr
2002-11-07 17:39 ` Pavel Machek
2002-11-04 15:39 Shawn Starr

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).