From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 07/11] drm/i915: add update function to disable/enable-back PSR Date: Mon, 15 Jul 2013 15:00:50 +0100 Message-ID: <20130715140050.GC2823@cantiga.alporthouse.com> References: <1373579105-1732-1-git-send-email-rodrigo.vivi@gmail.com> <1373579105-1732-8-git-send-email-rodrigo.vivi@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 793E8E6396 for ; Mon, 15 Jul 2013 07:04:05 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1373579105-1732-8-git-send-email-rodrigo.vivi@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Rodrigo Vivi Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org 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)? We could then also do a debugfs/i915_panel_info where we can inspect various details normally associated with the panels (PSR status, backlight interface, eDP vs LVDS, etc). -Chris -- Chris Wilson, Intel Open Source Technology Centre