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: Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>,
	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: Tue, 8 Oct 2002 22:20:35 +0200	[thread overview]
Message-ID: <20021008222034.A296@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.10.10210072045080.31069-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?
> 
> Because it is a known state when we drop out of the driver.
> 99% of the failures of ACPI (please read the fine print, where it requires
> discrete access to "task file registers") is not knowing where or what
> stated the device and driver is set in.
> 
> The reality is it does not matter if it is in PIO 0 to the hardware, but
> setting the values in the kernel so it knows what to do is critical.
> 
> > As long as DMA is not happening (that is not disabled, we just don't
> > ask drive to do it), you should be fine.
>                        ^^^^^^^^^^^^^^^^^^
> 
> Should does not cut it, period.
> Either you are or are not correct.

Which spec does specify it needs to be in PIO0? I don't want to read
between the lines.

Actually, working around broken ACPI is probably good idea. And as
Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org> shown, such broken ACPI exists.

> > > 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.
> 
> Really, try sending a command to a drive when it is not ready.  Try send
> it to after a sleep, and watch it eat the command and hang the bus.

You can't send a command to the drive when not ready, because there's
noone there to generate request. If there is one, you have bigger
problems than that.

> It really seems like you can not or will not listen to real-documented
> logical concerns.  So please do as you wish and push it through, it does
> not bother me.  It will give me another chance to blast Linus and
> deflect

Okay. What's in there in 2.5.41 is fine with me (at least it does not
eat disks any more). Doing while check_power() and going PIO 0 seems
like good idea, and if someone wishes to add it, good luck for
him. blocking/unblocking request pathways is bad idea and is not
needed.
								Pavel
-- 
When do you have heart between your knees?


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

  parent reply	other threads:[~2002-10-08 20:20 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
     [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 [this message]
  -- 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=20021008222034.A296@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 \
    --cc=ducrot-kk6yZipjEM5g9hUCZPvPmw@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