linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libata and pm
@ 2003-11-30 10:51 Prakash K. Cheemplavam
  2003-11-30 16:02 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Prakash K. Cheemplavam @ 2003-11-30 10:51 UTC (permalink / raw)
  To: lkml; +Cc: Jeff Garzik

Hi,

I wonder whether libata can easily be made compatible with swsup or pmdisk.

Currently my tries stop with the message:

PM: Preparing system for suspend
Stopping tasks: 
=================================================exiting...========
  stopping tasks failed (1 tasks remaining)
Restarting tasks...<6> Strange, katad-1 not stopped
  done


I think that katad belongs to libata.

Cheers,

Prakash


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

* Re: libata and pm
  2003-11-30 10:51 libata and pm Prakash K. Cheemplavam
@ 2003-11-30 16:02 ` Jeff Garzik
  2003-11-30 16:56   ` Prakash K. Cheemplavam
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2003-11-30 16:02 UTC (permalink / raw)
  To: Prakash K. Cheemplavam; +Cc: lkml

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

Prakash K. Cheemplavam wrote:
> Hi,
> 
> I wonder whether libata can easily be made compatible with swsup or pmdisk.
> 
> Currently my tries stop with the message:
> 
> PM: Preparing system for suspend
> Stopping tasks: 
> =================================================exiting...========
>  stopping tasks failed (1 tasks remaining)
> Restarting tasks...<6> Strange, katad-1 not stopped
>  done
> 
> 
> I think that katad belongs to libata.

I'm curious if this [completely untested] patch works?  :)

	Jeff



[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 402 bytes --]

===== drivers/scsi/libata-core.c 1.7 vs edited =====
--- 1.7/drivers/scsi/libata-core.c	Mon Nov 24 11:19:30 2003
+++ edited/drivers/scsi/libata-core.c	Sun Nov 30 11:01:26 2003
@@ -2567,6 +2567,9 @@
 
 		timeout = ata_thread_iter(ap);
 
+		if (current->flags & PF_FREEZE)
+			refrigerator(PF_IOTHREAD);
+
                 if (signal_pending (current))
                         flush_signals(current);
 

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

* Re: libata and pm
  2003-11-30 16:02 ` Jeff Garzik
@ 2003-11-30 16:56   ` Prakash K. Cheemplavam
  2003-11-30 17:02     ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Prakash K. Cheemplavam @ 2003-11-30 16:56 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: lkml

Jeff Garzik wrote:
> Prakash K. Cheemplavam wrote:
> 
>> Hi,
>>
>> I wonder whether libata can easily be made compatible with swsup or 
>> pmdisk.
>>
>> Currently my tries stop with the message:
>>
>> PM: Preparing system for suspend
>> Stopping tasks: 
>> =================================================exiting...========
>>  stopping tasks failed (1 tasks remaining)
>> Restarting tasks...<6> Strange, katad-1 not stopped
>>  done
>>
>>
>> I think that katad belongs to libata.
> 
> 
> I'm curious if this [completely untested] patch works?  :)

Well, it works as it should -I guess-,ie. swsusp proceeds, but (as 
expected) after all it doesn't work with scsi and swsusp gives a kernel 
panic. But that is another matter. ;-)

Nevertheless I got following wanrings on compile (second one was already 
there):

drivers/scsi/libata-core.c: In function `ata_thread':
drivers/scsi/libata-core.c:2571: Warnung: implicit declaration of 
function `refrigerator'
drivers/scsi/libata-core.c: At top level:
drivers/scsi/libata-core.c:2141: Warnung: `ata_qc_push' defined but not used

(Furthermore the patch didn't want to apply, so I had to do it by hand.)

Thx,

Prakash






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

* Re: libata and pm
  2003-11-30 16:56   ` Prakash K. Cheemplavam
@ 2003-11-30 17:02     ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2003-11-30 17:02 UTC (permalink / raw)
  To: Prakash K. Cheemplavam; +Cc: lkml

Prakash K. Cheemplavam wrote:
> Jeff Garzik wrote:
> 
>> Prakash K. Cheemplavam wrote:
>>
>>> Hi,
>>>
>>> I wonder whether libata can easily be made compatible with swsup or 
>>> pmdisk.
>>>
>>> Currently my tries stop with the message:
>>>
>>> PM: Preparing system for suspend
>>> Stopping tasks: 
>>> =================================================exiting...========
>>>  stopping tasks failed (1 tasks remaining)
>>> Restarting tasks...<6> Strange, katad-1 not stopped
>>>  done
>>>
>>>
>>> I think that katad belongs to libata.
>>
>>
>>
>> I'm curious if this [completely untested] patch works?  :)
> 
> 
> Well, it works as it should -I guess-,ie. swsusp proceeds, but (as 
> expected) after all it doesn't work with scsi and swsusp gives a kernel 
> panic. But that is another matter. ;-)
> 
> Nevertheless I got following wanrings on compile (second one was already 
> there):
> 
> drivers/scsi/libata-core.c: In function `ata_thread':
> drivers/scsi/libata-core.c:2571: Warnung: implicit declaration of 
> function `refrigerator'
> drivers/scsi/libata-core.c: At top level:
> drivers/scsi/libata-core.c:2141: Warnung: `ata_qc_push' defined but not 
> used
> 
> (Furthermore the patch didn't want to apply, so I had to do it by hand.)


Duh, I'm silly... you need #include <linux/suspend.h> at the top of that 
file, too.  I'm amazed swsusp proceeds at all :)

	Jeff




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

end of thread, other threads:[~2003-11-30 17:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-30 10:51 libata and pm Prakash K. Cheemplavam
2003-11-30 16:02 ` Jeff Garzik
2003-11-30 16:56   ` Prakash K. Cheemplavam
2003-11-30 17:02     ` Jeff Garzik

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