mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
Cc: B.Zolnierkiewicz@elka.pw.edu.pl,
	kernel list <linux-kernel@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: Re: [RFT] solve "swsusp plays yoyo" with disks
Date: Thu, 21 Jul 2005 21:20:15 +0200	[thread overview]
Message-ID: <20050721192015.GA6367@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <42DFBFA8.5060800@stud.feec.vutbr.cz>

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>

Thanks, applied, I'll eventually propagate it.

							Pavel

> 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;


-- 
Boycott Kodak -- for their patent abuse against Java.

  reply	other threads:[~2005-07-21 19:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 17:29 Pavel Machek
2005-07-21 14:11 ` Michal Schmidt
2005-07-21 15:30   ` Michal Schmidt
2005-07-21 19:20     ` Pavel Machek [this message]
2005-07-23 17:20       ` [linux-pm] " 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=20050721192015.GA6367@atrey.karlin.mff.cuni.cz \
    --to=pavel@ucw.cz \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    --cc=xschmi00@stud.feec.vutbr.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

all inboxes | Powered by JetHome®