public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Add Baytrail PSR Support.
Date: Fri, 24 Jan 2014 19:41:04 +0200	[thread overview]
Message-ID: <20140124174104.GJ9454@intel.com> (raw)
In-Reply-To: <CABVU7+s3bRffjuo2oGo8pzMu6zEtJoifVcWpSQ5_hfRbbPa_xg@mail.gmail.com>

On Fri, Jan 24, 2014 at 02:05:57PM -0200, Rodrigo Vivi wrote:
> On Fri, Jan 24, 2014 at 12:53 PM, Ville Syrjälä
> <ville.syrjala@linux.intel.com> wrote:
> > On Thu, Jan 23, 2014 at 05:19:53PM -0200, Rodrigo Vivi wrote:
> > <snip>
> >> index 76126e0..f5501ab 100644
> >> --- a/drivers/gpu/drm/i915/i915_reg.h
> >> +++ b/drivers/gpu/drm/i915/i915_reg.h
> >> @@ -1969,6 +1969,40 @@
> >>  #define BCLRPAT(pipe) _PIPE(pipe, _BCLRPAT_A, _BCLRPAT_B)
> >>  #define VSYNCSHIFT(trans) _TRANSCODER(trans, _VSYNCSHIFT_A, _VSYNCSHIFT_B)
> >>
> >> +/* VLV eDP PSR registers */
> >> +#define VLV_EDP_PSR_CTL                              (VLV_DISPLAY_BASE + 0x60090)
> >
> > VLV has per-pipe PSR registers. The ones you have here are just for
> > pipe A. Seems like some rework is needed to make it work on either
> > pipe.
> 
> Yes, but since I don't have any hw with two eDPs here I decided to let
> the limitation we had for HSW, PSR only on pipe A.
> In my point of view we could go ahead with this one eDP scenario and
> implement psr on pipe b support later.

I don't see any pipe checks in the code, so you will happily enable PSR
on pipe A even if eDP is being fed by pipe B at the time.

Also even if you enable PSR on pipe A, you set the trunk clock gate
disable for pipe B, which seems weird. Setting that bit might actually
be the reason the pipe, port and PLL remain enabled during PSR.

-- 
Ville Syrjälä
Intel OTC

  reply	other threads:[~2014-01-24 17:41 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23 18:16 [PATCH 1/4] drm/i915: Set primary plane enable at dpcntrl Rodrigo Vivi
2014-01-23 18:16 ` [PATCH 2/4] drm/i915: move psr_setup_done to psr struct Rodrigo Vivi
2014-01-24 14:50   ` Ville Syrjälä
2014-01-24 16:02     ` Rodrigo Vivi
2014-01-23 18:16 ` [PATCH 3/4] drm/i915: Update PSR on resume Rodrigo Vivi
2014-02-05 19:04   ` [PATCH 1/2] " Rodrigo Vivi
2014-01-23 18:16 ` [PATCH 4/4] drm/i915: Add Baytrail PSR Support Rodrigo Vivi
2014-01-23 19:19   ` [PATCH] " Rodrigo Vivi
2014-01-24 14:53     ` Ville Syrjälä
2014-01-24 16:05       ` Rodrigo Vivi
2014-01-24 17:41         ` Ville Syrjälä [this message]
2014-01-28 19:47           ` [PATCH 4/4] " Rodrigo Vivi
2014-01-29 12:47             ` [PATCH] " Rodrigo Vivi
2014-01-29 13:12               ` Chris Wilson
2014-01-29 13:24                 ` Rodrigo Vivi
2014-01-29 13:27                   ` Chris Wilson
2014-01-29 13:54                     ` Rodrigo Vivi
2014-01-29 14:02                       ` Chris Wilson
2014-01-29 14:23                         ` Rodrigo Vivi
2014-01-29 14:26                           ` Chris Wilson
2014-01-29 19:20                             ` Daniel Vetter
2014-01-29 14:55                 ` Rodrigo Vivi
2014-01-29 19:21                   ` Daniel Vetter
2014-02-01 11:34                     ` Chris Wilson
2014-02-04 10:49                       ` Daniel Vetter
2014-01-29 14:56               ` Ville Syrjälä
2014-01-29 15:47                 ` Rodrigo Vivi
2014-01-29 16:38                   ` Ville Syrjälä
2014-01-29 17:48                     ` Rodrigo Vivi
2014-01-29 18:24                       ` Ville Syrjälä
2014-01-29 15:50                 ` Rodrigo Vivi
2014-01-30 13:02                   ` Chris Wilson
2014-01-30 17:01                     ` Rodrigo Vivi
2014-02-04 10:53                       ` Daniel Vetter
2014-02-04 13:03                         ` Rodrigo Vivi
2014-02-04 13:54                           ` Daniel Vetter
2014-02-05 19:04                             ` [PATCH 2/2] " Rodrigo Vivi
2014-02-07 17:24                               ` Ville Syrjälä
2014-02-07 18:05                                 ` Rodrigo Vivi
2014-02-07 18:39                                   ` Ville Syrjälä
2014-02-12 16:29                 ` [PATCH] " Daniel Vetter
2014-01-23 19:19 ` [PATCH] drm/i915: Set primary plane enable at dpcntrl Rodrigo Vivi
2014-01-24 14:58   ` Ville Syrjälä
2014-01-28 19:46     ` [PATCH 1/4] " Rodrigo Vivi
  -- strict thread matches above, loose matches on Subject: below --
2013-12-17 19:57 [PATCH 1/2] drm/i915: move psr_setup_done to psr struct Rodrigo Vivi
2013-12-17 20:31 ` [PATCH] drm/i915: Add Baytrail PSR Support Rodrigo Vivi
2013-12-18 10:03   ` Chris Wilson
2013-12-18 10:27     ` Rodrigo Vivi
2013-12-18 10:30       ` Rodrigo Vivi
2013-12-18 10:37       ` Chris Wilson

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=20140124174104.GJ9454@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@gmail.com \
    /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