From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: Disk spin down issue on shut down/suspend to disk Date: Tue, 07 Aug 2007 15:41:18 +0900 Message-ID: <46B8140E.3000509@gmail.com> References: <46B7AF53.1040307@shaw.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46B7AF53.1040307@shaw.ca> Sender: linux-acpi-owner@vger.kernel.org To: Robert Hancock Cc: Michael Sedkowski , "Rafael J. Wysocki" , Henrique de Moraes Holschuh , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-acpi@vger.kernel.org, Thomas Renninger List-Id: linux-ide@vger.kernel.org Robert Hancock wrote: > Tejun Heo wrote: >> Michael Sedkowski wrote: >>>> Hmmm... If the problem only shows up on nx6325, it might be that >>>> ACPI is >>>> pulling unnecessary stunt. Please apply the attached patch and report >>>> when the disk spins down and up. >>> Disk spins down on "Pre-shutdown prepare" and then goes up and down on >>> "Power down". >> >> Oh... crap, so acpi wants to sync cache on shutdown. I wonder whether >> it spins down the disk correctly. Does emergency unload count increase >> after each power down? Also, please post the result of 'dmidecode'. > > I know that my Compaq X1000-series laptop does do some kind of ACPI > games with the disk on ACPI power off (I assume it is putting the disk > in standby before power-off at least). It also does this if you boot > into DOS, GRUB, etc. and then hit the power button. Could be if the disk > is dumb enough to spin up for sync cache and standby when there is > nothing to flush, and the kernel does its own standby, this could cause > an extra spinup/down.. Yeah, that seems to be what's going on. I don't think we have any other choice than blacklisting those notebooks. This is a mess. How does the other OS cope with this? I'm thinking about using DMI vendor/product match to detect the affected systems but I think it would be better to match the ACPI implementation directly. Is there a way to match specific ACPI implementation? Thanks. -- tejun