From: Daniel Vetter Subject: Re: [PATCH 7/7] drm/i915: set TRANSCODER_EDP even earlier Date: Sat, 26 Jan 2013 17:57:56 +0100 Message-ID: <20130126165756.GV23080@phenom.ffwll.local> References: <1359140356-4050-1-git-send-email-przanoni@gmail.com> <1359140356-4050-8-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A09FE5F6C for ; Sat, 26 Jan 2013 08:55:49 -0800 (PST) Received: by mail-wg0-f47.google.com with SMTP id dr13so887690wgb.14 for ; Sat, 26 Jan 2013 08:55:48 -0800 (PST) Content-Disposition: inline In-Reply-To: <1359140356-4050-8-git-send-email-przanoni@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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Fri, Jan 25, 2013 at 04:59:16PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > Instead of setting it at the beginning of haswell_crtc_mode_set, let's > set it at the beginning of intel_crtc_mode_set. When > intel_crt_mode_set calls drm_vblank_pre_modeset we already need to > have the transcoder_edp correctly set, because eventually > drm_vblank_pre_modeset calls functions that call i915_pipe_enabled > from i915_irq.c, which will read PIPECONF(cpu_transcoder). > > This is a bug that affects us since we added support for > TRANSCODER_EDP, but I was only able to see the problem after > suspending a machine with the power well disabled (got an "unclaimed > register" error. > > Signed-off-by: Paulo Zanoni > Reviewed-by: Jani Nikula I've picked up patches 4-7 from this series. I'm leaving patch 3 out for now until that entire "unclaimed register write business" with the dynamic power down well code is settled. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch