From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965031AbXCFQUi (ORCPT ); Tue, 6 Mar 2007 11:20:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965036AbXCFQUi (ORCPT ); Tue, 6 Mar 2007 11:20:38 -0500 Received: from www.osadl.org ([213.239.205.134]:53009 "EHLO mail.tglx.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965031AbXCFQUh (ORCPT ); Tue, 6 Mar 2007 11:20:37 -0500 Subject: Re: SATA resume slowness, e1000 MSI warning From: Thomas Gleixner Reply-To: tglx@linutronix.de To: Ingo Molnar Cc: "Michael S. Tsirkin" , Pavel Machek , Jens Axboe , Adrian Bunk , Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , linux-pm@lists.osdl.org, Michal Piotrowski , Jeff Garzik , Auke Kok In-Reply-To: <20070305101120.GA23032@elte.hu> References: <20070225175559.GC12392@stusta.de> <20070227100202.GV3822@kernel.dk> <20070227102109.GG6745@elf.ucw.cz> <20070227103021.GA2250@kernel.dk> <20070227103407.GA17819@elte.hu> <20070227105922.GD2250@kernel.dk> <20070227111515.GA4271@kernel.dk> <20070301093450.GA8508@elte.hu> <20070302100704.GB2293@elf.ucw.cz> <20070305084257.GA4464@mellanox.co.il> <20070305101120.GA23032@elte.hu> Content-Type: text/plain Date: Tue, 06 Mar 2007 17:26:41 +0100 Message-Id: <1173198401.24738.340.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2007-03-05 at 11:11 +0100, Ingo Molnar wrote: > the spin-up takes a few seconds here under suspend/resume simulation: > > | ata1: waiting for device to spin up (7 secs) > | Restarting tasks ... done. > > [5-10 seconds pass] > > | ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > | ata1.00: configured for UDMA/100 > | SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB) > | sda: Write Protect is off > | sda: Mode Sense: 00 3a 00 00 > | SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > with real resume it takes even longer time - but i dont see where the > delays come from in that case - i suspect it's SATA. SATA has another nice feature. Somehow there is an interrupt pending on the SATA controller, which comes in somewhere in the middle of resume. If it happens before the SATA code resumed, the SATA code ignores the interrupt and the interrupt is disabled due to "nobody cared", which in turn prevents SATA to ever become functional again. Any idea on that one ? tglx