From: Pavel Machek Subject: Re: [PATCH -mm 2/8] AHCI: Speed-up resume Date: Thu, 10 Jul 2008 13:34:20 +0200 Message-ID: <20080710113420.GB15412@elf.ucw.cz> References: <200807100152.17755.rjw@sisk.pl> <200807100158.49341.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from gprs189-60.eurotel.cz ([160.218.189.60]:44406 "EHLO gprs189-60.eurotel.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755175AbYGJPDm (ORCPT ); Thu, 10 Jul 2008 11:03:42 -0400 Content-Disposition: inline In-Reply-To: <200807100158.49341.rjw@sisk.pl> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Andrew Morton , ACPI Devel Maling List , LKML , pm list , Tejun Heo , Zhang Rui , Jeff Garzik On Thu 2008-07-10 01:58:48, Rafael J. Wysocki wrote: > From: Zhang Rui > Subject: AHCI: Speed-up resume > > During resume, sleep 1 second to wait for the HBA reset > to finish is a waste of time. > > According to the AHCI 1.2 spec, > We should poll the HOST_CTL register, > and return error if the host reset is not > finished within 1 second. > > Test results show that the HBA reset can be done quickly(in usecs). > And this patch may save nearly 1 second during resume. > > Signed-off-by: Zhang Rui > Acked-by: Tejun Heo > Signed-off-by: Rafael J. Wysocki ACK. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html