From: "Jiejing.Zhang " Subject: Re: [RESEND PATCH] PM: add a config that give warnning if driver take too long on suspend/resume. Date: Tue, 12 Apr 2011 01:37:22 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3718408530758806418==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Alan Stern Cc: Len Brown , linux-pm@lists.linux-foundation.org, Greg Kroah-Hartman List-Id: linux-pm@vger.kernel.org --===============3718408530758806418== Content-Type: multipart/alternative; boundary=000e0cd16e545db61504a0a80808 --000e0cd16e545db61504a0a80808 Content-Type: text/plain; charset=ISO-8859-1 Hi Alan, 2011/4/12 Alan Stern > On Tue, 12 Apr 2011, Jiejing.Zhang wrote: > > > Hi, > > > > Does anyone have comments on this driver? > > > > Best regards, > > Zhang Jiejing > > > > > > 2011/4/7 Jiejing Zhang > > > > > From: Zhang Jiejing > > > > > > This patch add function to check each device's suspend time > > > consumption. If any driver takes more time that the threshold (default > > > 0.5 ms), it will print a warnning message including the device and bus > > > name on the console. You can change the threshold on-the-fly by > > > modify file '/sys/power/device_suspend_time_threshold' to adjust this > > > value,the unit is in microsecond. > > Bear in mind that rotating disk drives typically take several hundred > milliseconds to spin down. The warning would always trigger. That > doesn't seem particularly useful. > I think it's better change the default value 0 to disable it, enable it only some one write a threshold. First of all, it's a debug function (depends on PM_DEBUG), It's useful in embedded area, like mobile phone or e-book, they are suspend/resume very frequently and required resume as quick as possible. This debug function can used to figure out which driver(s) is/are slow on suspend/resume. I fact that embedded engineer meets a lot is, after some development the total time of suspend/resume is become slow, since there was a lot driver may affect the total time, it's function can help them to figure out which driver is slow, and it's make life easier. Thanks. Jiejing Zhang > Alan Stern > > --000e0cd16e545db61504a0a80808 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Alan,

2011/4/12 Alan Stern <stern@rowland.har= vard.edu>
On Tue, 12 Apr 2011, Jiejing.Zhang =A0wrote:

> Hi,
>
> Does anyone have comments on this driver?
>
> Best regards,
> Zhang Jiejing
>
>
> 2011/4/7 Jiejing Zhang <kzjeef@= gmail.com>
>
> > From: Zhang Jiejing <jiejing.zhang@freescale.com>
> >
> > This patch add function to check each device's suspend time > > consumption. If any driver takes more time that the threshold (de= fault
> > 0.5 ms), it will print a warnning message including the device an= d bus
> > name on the console. =A0You can change the threshold on-the-fly b= y
> > modify file '/sys/power/device_suspend_time_threshold' to= adjust this
> > value,the unit is in microsecond.

Bear in mind that rotating disk drives typically take several hundred=
milliseconds to spin down. =A0The warning would always trigger. =A0That
doesn't seem particularly useful.

I= think it's better change the default value 0 to disable it, enable it = only some one write a threshold.

First of all, it&= #39;s a debug function (depends on PM_DEBUG), It's useful in=A0embedded= =A0area, like mobile phone or e-book, they are suspend/resume very frequent= ly and required resume as quick as possible. This debug function can=A0used= to figure out which driver(s) is/are slow on suspend/resume.

I fact that=A0embedded=A0engineer meets a lot is, after= some development the total time of suspend/resume is become slow, since th= ere was a lot driver may affect the total time, it's function can help = them to figure out which driver is slow, and it's make life easier.

Thanks.

Jiejing Zhang


Alan Stern


--000e0cd16e545db61504a0a80808-- --===============3718408530758806418== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3718408530758806418==--