public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: cache hw power well enabled state
Date: Fri, 06 Jun 2014 20:37:48 +0300	[thread overview]
Message-ID: <1402076268.3099.6.camel@ideak-mobl> (raw)
In-Reply-To: <20140606171904.GN7416@phenom.ffwll.local>

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 <jesse.barnes@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> 
> 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 <imre.deak@intel.com>
Date:   Mon Apr 14 20:24:33 2014 +0300

    drm/i915: vlv: check port power domain instead of only D0 for eDP
VDD on

> Aside: intel_rpm.c with the runtime pm infrastructure + some overview
> kerneldoc would be really, really nice.

You mean to move out the power well and rpm stuff to this new file?
Agreed, intel_pm.c is rather big already.

--Imre

  reply	other threads:[~2014-06-06 17:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 16:50 [PATCH 1/2] drm/i915: use power well count instead of reading hw state when checking status Jesse Barnes
2014-05-28 16:50 ` [PATCH 2/2] drm/i915: rename is_enabled to hw_state Jesse Barnes
2014-05-28 18:09 ` [PATCH 1/2] drm/i915: use power well count instead of reading hw state when checking status Imre Deak
2014-05-28 18:17   ` Jesse Barnes
2014-06-05 17:31     ` [PATCH] drm/i915: cache hw power well enabled state Imre Deak
2014-06-05 17:35       ` Jesse Barnes
2014-06-05 17:44         ` Imre Deak
2014-06-06 17:19       ` Daniel Vetter
2014-06-06 17:37         ` Imre Deak [this message]
2014-06-06 18:05           ` Daniel Vetter
2014-06-19 11:45           ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402076268.3099.6.camel@ideak-mobl \
    --to=imre.deak@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox