From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: S3 Resume working, but IDE disk hung Date: Sun, 6 Oct 2002 22:53:58 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20021006205358.GA387@elf.ucw.cz> References: <1033746424.32384.41.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Andre Hedrick Cc: Alan Cox , "Faraoni, Michael" , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.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