From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758507AbYGJPEP (ORCPT ); Thu, 10 Jul 2008 11:04:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758002AbYGJPDn (ORCPT ); Thu, 10 Jul 2008 11:03:43 -0400 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 Date: Thu, 10 Jul 2008 13:34:20 +0200 From: Pavel Machek To: "Rafael J. Wysocki" Cc: Andrew Morton , ACPI Devel Maling List , LKML , pm list , Tejun Heo , Zhang Rui , Jeff Garzik Subject: Re: [PATCH -mm 2/8] AHCI: Speed-up resume 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 Content-Disposition: inline In-Reply-To: <200807100158.49341.rjw@sisk.pl> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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