From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: cache hw power well enabled state Date: Thu, 19 Jun 2014 13:45:21 +0200 Message-ID: <20140619114521.GS5821@phenom.ffwll.local> References: <20140528111708.253e2578@jbarnes-desktop> <1401989507-9290-1-git-send-email-imre.deak@intel.com> <20140606171904.GN7416@phenom.ffwll.local> <1402076268.3099.6.camel@ideak-mobl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by gabe.freedesktop.org (Postfix) with ESMTP id DFD276E88A for ; Thu, 19 Jun 2014 04:45:29 -0700 (PDT) Received: by mail-we0-f178.google.com with SMTP id x48so2189939wes.37 for ; Thu, 19 Jun 2014 04:45:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1402076268.3099.6.camel@ideak-mobl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Imre Deak Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Jun 06, 2014 at 08:37:48PM +0300, Imre Deak wrote: > On Fri, 2014-06-06 at 19:19 +0200, Daniel Vetter wrote: > > On Thu, Jun 05, 2014 at 08:31:47PM +0300, Imre Deak wrote: > > > Jesse noticed that the punit communication needed to query the VLV power > > > well status can cause substantial delays. Since we can query the state > > > frequently, for example during I2C transfers, maintain a cached version > > > of the HW state to get rid of this delay. > > > > > > This fixes at least one reported regression where boot time increased by > > > ~4 seconds due to frequent power well state queries on VLV during eDP > > > EDID read. > > > > > > Reported-by: Jesse Barnes > > > Signed-off-by: Imre Deak > > > > A citation for the regressing commit here (i.e. the one that enabled vlv > > runtime pm) would be good so that Jani can pick it up. > > I'm not aware of any other case where we had a significant overhead, so > for the above particular issue I'd say > > this was introduced by > > commit bb4932c4f17b68f34645ffbcf845e4c29d17290b > Author: Imre Deak > Date: Mon Apr 14 20:24:33 2014 +0300 > > drm/i915: vlv: check port power domain instead of only D0 for eDP > VDD on Ok since Jani's out I've merged this. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch