public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Andre Hedrick <andre-QA/0nRrxPJrNLxjTenLetw@public.gmane.org>
Cc: Alan Cox <alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>,
	"Faraoni,
	Michael"
	<Michael.Faraoni-YwRvm6FT6jBDPfheJLI6IQ@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: S3 Resume working, but IDE disk hung
Date: Sun, 6 Oct 2002 22:53:58 +0200	[thread overview]
Message-ID: <20021006205358.GA387@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.10.10210042302000.10557-100000-eTnbHd5RJ1QZiu+GbOt07GD2FQJk+8+b@public.gmane.org>

Hi!

[Note, you should look at the patch "to prevent data corruption". It
could do the trick. At least it should be good as a base.

> Prior to suspend one needs to :
> 
> 	block all new coming requests.
> 	flush cache and wait for return.
> 	disable DMA, and switch to PIO 0.

Why would you want to switch off DMA and go PIO 0?

As long as DMA is not happening (that is not disabled, we just don't
ask drive to do it), you should be fine.

> Resume requires calling :
> 
> 	"do_reset()"
> 	for (;;)
> 		if ((check_power()) == active)
> 			break;
> 	"piix_config_drive_xfer_rate()" 
> 	unblock request pathway.

You don't need to block/unblock request pathways. kernel/suspend.c takes care of that.

									Pavel
-- 
I'm pavel-7aPAsKgELzg@public.gmane.org "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss-q33YXrgyAoMgsBAKwltoeQ@public.gmane.org


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  parent reply	other threads:[~2002-10-06 20:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-04 15:02 S3 Resume working, but IDE disk hung Faraoni, Michael
     [not found] ` <1DD88DDBBB83D6119C8C00096BB0408FA9D2E6-CdvpJ7rTi0s@public.gmane.org>
2002-10-04 15:47   ` Alan Cox
     [not found]     ` <1033746424.32384.41.camel-MMxVpc8zpTQVh3rx8e9g/fyykp6/JSeS3vcXtXqGYxw@public.gmane.org>
2002-10-05  6:57       ` Andre Hedrick
     [not found]         ` <Pine.LNX.4.10.10210042302000.10557-100000-eTnbHd5RJ1QZiu+GbOt07GD2FQJk+8+b@public.gmane.org>
2002-10-06 20:53           ` Pavel Machek [this message]
     [not found]             ` <20021006205358.GA387-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2002-10-08  3:57               ` Andre Hedrick
     [not found]                 ` <Pine.LNX.4.10.10210072045080.31069-100000-eTnbHd5RJ1QZiu+GbOt07GD2FQJk+8+b@public.gmane.org>
2002-10-08 20:20                   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2002-10-09 14:35 Faraoni, Michael
     [not found] ` <1DD88DDBBB83D6119C8C00096BB0408FCE495C-CdvpJ7rTi0s@public.gmane.org>
2002-10-09 15:37   ` Alan Cox

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=20021006205358.GA387@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=Michael.Faraoni-YwRvm6FT6jBDPfheJLI6IQ@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org \
    --cc=andre-QA/0nRrxPJrNLxjTenLetw@public.gmane.org \
    /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