public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
To: B.Zolnierkiewicz@elka.pw.edu.pl
Cc: Linux-pm mailing list <linux-pm@lists.osdl.org>,
	kernel list <linux-kernel@vger.kernel.org>,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: [RFT] solve "swsusp plays yoyo" with disks
Date: Thu, 21 Jul 2005 17:30:48 +0200	[thread overview]
Message-ID: <42DFBFA8.5060800@stud.feec.vutbr.cz> (raw)
In-Reply-To: <42DFAD1C.80004@stud.feec.vutbr.cz>

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

Michal Schmidt wrote:
> Pavel Machek wrote:
> 
>>Hi!
>>
>>I'd like to get this tested under as many configurations as
>>possible. With this, your hdd should no longer do "yoyo" (spindown,
>>spinup, spindown) during suspend...
> 
> 
> It looks like the patch is now in -mm (I use 2.6.13-rc3-mm1).
> But my disks still yoyo during suspend. What more is needed? Some patch 
> to ide-disk.c ?

I think I've found the problem.
The attached patch stops the disks from spinning down and up on suspend.
The patch applies to 2.6.13-rc3-mm1.

Signed-off-by: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>

[-- Attachment #2: ide-disk-yoyo-on-suspend.diff --]
[-- Type: text/x-patch, Size: 570 bytes --]

diff -Nurp -X dontdiff.new linux-mm/drivers/ide/ide-io.c linux-mm.mich/drivers/ide/ide-io.c
--- linux-mm/drivers/ide/ide-io.c	2005-06-30 01:00:53.000000000 +0200
+++ linux-mm.mich/drivers/ide/ide-io.c	2005-07-21 16:59:46.000000000 +0200
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_
 
 	switch (rq->pm->pm_step) {
 	case ide_pm_flush_cache:	/* Suspend step 1 (flush cache) complete */
-		if (rq->pm->pm_state == 4)
+		if (rq->pm->pm_state == PM_EVENT_FREEZE)
 			rq->pm->pm_step = ide_pm_state_completed;
 		else
 			rq->pm->pm_step = idedisk_pm_standby;

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2005-07-21 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 17:29 [RFT] solve "swsusp plays yoyo" with disks Pavel Machek
2005-07-21 14:11 ` Michal Schmidt
2005-07-21 15:30   ` Michal Schmidt [this message]
2005-07-21 19:20     ` Pavel Machek
2005-07-23 17:20       ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42DFBFA8.5060800@stud.feec.vutbr.cz \
    --to=xschmi00@stud.feec.vutbr.cz \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox