From: Daniel Vetter <daniel@ffwll.ch>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH 07/11] drm/i915: add update function to disable/enable-back PSR
Date: Tue, 16 Jul 2013 07:16:48 +0200 [thread overview]
Message-ID: <20130716051648.GD5784@phenom.ffwll.local> (raw)
In-Reply-To: <CABVU7+syKojGnuNXzSNHDf8BVAXad5PzgEb_TB6c5ApxK8SHsg@mail.gmail.com>
On Mon, Jul 15, 2013 at 05:21:12PM -0300, Rodrigo Vivi wrote:
> On Mon, Jul 15, 2013 at 11:00 AM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > On Thu, Jul 11, 2013 at 06:45:01PM -0300, Rodrigo Vivi wrote:
> >> @@ -1602,6 +1611,26 @@ void intel_edp_psr_disable(struct intel_dp *intel_dp)
> >> DRM_ERROR("Timed out waiting for PSR Idle State\n");
> >> }
> >>
> >> +void intel_edp_psr_update(struct drm_device *dev)
> >> +{
> >> + struct intel_encoder *encoder;
> >> + struct intel_dp *intel_dp = NULL;
> >> +
> >> + list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.head)
> >> + if (encoder->type == INTEL_OUTPUT_EDP) {
> >
> > How many eDP are you planning to allow on the system? We already have
> > precedence for the presumption of a single (integrated) panel on a device,
> > maybe we can add the logic there (i.e. stash a back pointer in this case)?
>
> That is a good question... I asked it myself many times when I was
> trying to get intel_dp with edp from dev...
> For the first version I just run the loop getting any intel_dp with
> edp since we have this assumption of only one edp,
> but then I thought about that convertibles with 2 panels and since in
> hsw we can have edp on port D I decided to let the implementation
> more generic as possible although I know we won't have this case... at
> least not any time soon.
The way I nowadays solve such a conundrum is to shovel a bit of metadata
(like psr_capable_sink) into pipe_config and let encoders fill it out
appropriately in their ->compute_config functions. Most of the "walk over
all encoders and noodle int their innards" have disappeared through
that.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2013-07-16 5:16 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-11 21:44 [PATCH 00/11] Enable PSR on Haswell Rodrigo Vivi
2013-07-11 21:44 ` [PATCH 01/11] drm: Added SDP and VSC structures for handling PSR for eDP Rodrigo Vivi
2013-07-11 21:44 ` [PATCH 02/11] drm/i915: Read the EDP DPCD and PSR Capability Rodrigo Vivi
2013-07-11 21:44 ` [PATCH 03/11] drm/i915: split aux_clock_divider logic in a separated function for reuse Rodrigo Vivi
2013-07-11 21:44 ` [PATCH 04/11] drm/i915: Enable/Disable PSR Rodrigo Vivi
2013-07-17 17:02 ` Paulo Zanoni
2013-07-18 7:56 ` Daniel Vetter
2013-07-11 21:44 ` [PATCH 05/11] drm/i915: Added debugfs support for PSR Status Rodrigo Vivi
2013-07-15 14:03 ` Chris Wilson
2013-07-15 20:13 ` Rodrigo Vivi
2013-07-15 22:18 ` Chris Wilson
2013-07-11 21:45 ` [PATCH 06/11] drm/i915: Match all PSR mode entry conditions before enabling it Rodrigo Vivi
2013-07-15 14:06 ` Chris Wilson
2013-07-18 8:02 ` Daniel Vetter
2013-07-18 16:36 ` Rodrigo Vivi
2013-07-18 16:38 ` Daniel Vetter
2013-07-17 17:03 ` Paulo Zanoni
2013-07-11 21:45 ` [PATCH 07/11] drm/i915: add update function to disable/enable-back PSR Rodrigo Vivi
2013-07-15 14:00 ` Chris Wilson
2013-07-15 20:21 ` Rodrigo Vivi
2013-07-16 5:16 ` Daniel Vetter [this message]
2013-07-17 17:26 ` Paulo Zanoni
2013-07-11 21:45 ` [PATCH 08/11] drm/intel: add enable_psr module option and disable psr by default Rodrigo Vivi
2013-07-15 14:01 ` Chris Wilson
2013-07-15 20:23 ` Rodrigo Vivi
2013-07-15 22:01 ` Chris Wilson
2013-07-16 5:19 ` Daniel Vetter
2013-07-16 13:45 ` Rodrigo Vivi
2013-07-11 21:45 ` [PATCH 09/11] drm/i915: Adding global I915_PARAM for PSR ENABLED Rodrigo Vivi
2013-07-17 17:46 ` Rodrigo Vivi
2013-07-17 20:18 ` Chris Wilson
2013-07-17 21:01 ` Rodrigo Vivi
2013-07-17 21:08 ` Chris Wilson
2013-07-18 8:24 ` Daniel Vetter
2013-07-18 16:28 ` Rodrigo Vivi
2013-07-11 21:45 ` [PATCH 10/11] drm/i915: Add functions to force psr exit Rodrigo Vivi
2013-07-15 13:55 ` Chris Wilson
2013-07-15 20:29 ` [PATCH] " Rodrigo Vivi
2013-07-18 8:33 ` Daniel Vetter
2013-07-18 16:27 ` Rodrigo Vivi
2013-07-11 21:45 ` [PATCH 11/11] drm/i915: Hook PSR functionality Rodrigo Vivi
2013-07-18 9:54 ` Daniel Vetter
2013-07-18 16:17 ` Rodrigo Vivi
2013-07-15 9:53 ` [PATCH 00/11] Enable PSR on Haswell Shobhit Kumar
-- strict thread matches above, loose matches on Subject: below --
2013-06-26 21:55 [PATCH 01/11] drm: Added SDP and VSC structures for handling PSR for eDP Rodrigo Vivi
2013-06-26 21:55 ` [PATCH 07/11] drm/i915: add update function to disable/enable-back PSR Rodrigo Vivi
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=20130716051648.GD5784@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.