linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Suspend not working with SATA:
@ 2003-12-15 15:00 Witold Krecicki
  2003-12-15 15:18 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Witold Krecicki @ 2003-12-15 15:00 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Stopping tasks: 
==================================================================
 stopping tasks failed (2 tasks remaining)
Restarting tasks...<6> Strange, katad-1 not stopped
 Strange, katad-2 not stopped
 done

-- 
Witold Kręcicki (adasi) adasi [at] culm.net
GPG key: 7AE20871
http://www.culm.net

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

* Re: Suspend not working with SATA:
  2003-12-15 15:00 Suspend not working with SATA: Witold Krecicki
@ 2003-12-15 15:18 ` Jeff Garzik
  2003-12-15 18:22   ` Nigel Cunningham
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2003-12-15 15:18 UTC (permalink / raw)
  To: Witold Krecicki; +Cc: Linux Kernel Mailing List

Witold Krecicki wrote:
> Stopping tasks: 
> ==================================================================
>  stopping tasks failed (2 tasks remaining)
> Restarting tasks...<6> Strange, katad-1 not stopped
>  Strange, katad-2 not stopped
>  done


Both Pavel Machek and I posted test patches to address this... 
basically, because of the design of swsusp, you must copy-n-paste the 
following code into every single kernel thread:

                         if (current->flags & PF_FREEZE)
                                 refrigerator(PF_IOTHREAD);

But I consider suspend untested at best... for reboot and suspend the 
driver should issue flush-cache and other things beyond simply freezing 
the kernel thread.  Further, suspending will suck if the kernel thread 
itself is the one doing I/O on behalf of the driver.  This occurs if the 
transfer mode is PIO rather than DMA.

	Jeff




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

* Re: Suspend not working with SATA:
  2003-12-15 15:18 ` Jeff Garzik
@ 2003-12-15 18:22   ` Nigel Cunningham
  0 siblings, 0 replies; 3+ messages in thread
From: Nigel Cunningham @ 2003-12-15 18:22 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Witold Krecicki, Linux Kernel Mailing List

Hi.

Set PF_IOTHREAD on the task's flags instead. That will allow it to run
during suspending.

Regards,

Nigel

On Tue, 2003-12-16 at 04:18, Jeff Garzik wrote:
> Witold Krecicki wrote:
> > Stopping tasks: 
> > ==================================================================
> >  stopping tasks failed (2 tasks remaining)
> > Restarting tasks...<6> Strange, katad-1 not stopped
> >  Strange, katad-2 not stopped
> >  done
> 
> 
> Both Pavel Machek and I posted test patches to address this... 
> basically, because of the design of swsusp, you must copy-n-paste the 
> following code into every single kernel thread:
> 
>                          if (current->flags & PF_FREEZE)
>                                  refrigerator(PF_IOTHREAD);
> 
> But I consider suspend untested at best... for reboot and suspend the 
> driver should issue flush-cache and other things beyond simply freezing 
> the kernel thread.  Further, suspending will suck if the kernel thread 
> itself is the one doing I/O on behalf of the driver.  This occurs if the 
> transfer mode is PIO rather than DMA.
> 
> 	Jeff
> 
> 
> 
> -
> 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/
-- 
My work on Software Suspend is graciously brought to you by
LinuxFund.org.


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

end of thread, other threads:[~2003-12-15 18:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 15:00 Suspend not working with SATA: Witold Krecicki
2003-12-15 15:18 ` Jeff Garzik
2003-12-15 18:22   ` Nigel Cunningham

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