From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752497AbdBTJ2J (ORCPT ); Mon, 20 Feb 2017 04:28:09 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:33075 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751341AbdBTJ2I (ORCPT ); Mon, 20 Feb 2017 04:28:08 -0500 Date: Mon, 20 Feb 2017 14:48:48 +0530 From: Viresh Kumar To: Kevin Hilman Cc: Rafael Wysocki , ulf.hansson@linaro.org, Pavel Machek , Len Brown , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , sboyd@codeaurora.org, nm@ti.com, robh+dt@kernel.org, lina.iyer@linaro.org, rnayak@codeaurora.org Subject: Re: [PATCH V2 5/6] PM / domain: Save/restore performance state at runtime suspend/resume Message-ID: <20170220091848.GQ21911@vireshk-i7> References: <21383233a44afe5e5144fadb82867a0a890db46f.1486611268.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-02-17, 15:58, Kevin Hilman wrote: > Viresh Kumar writes: > > > With runtime PM, the devices get suspended while the system is up and > > running in order to save power. At such times, it is important to > > re-evaluate the required performance state of the domain, in order to > > choose a lower state if possible. > > > > This patch updates the genpd suspend/resume callbacks to do that. > > > > Signed-off-by: Viresh Kumar > > Doesn't this assume that a device in the domain would need to change > performance state while runtime suspended. How would that happen? > > Rather than adding this here, I would think that drivers would instead > remove any QoS requests before going into runtime suspend, which would > trigger an update before runtime suspending. Okay, lets leave it for the drivers, at least for the time being. I will drop this patch. -- viresh