From: Daniel Vetter Subject: Re: [PATCH 1/3] drm/i915: don't read HSW_AUD_PIN_ELD_CP_VLD when the power well is off Date: Wed, 21 May 2014 21:33:29 +0200 Message-ID: <20140521193329.GM14357@phenom.ffwll.local> References: <1400700202-2905-1-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-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by gabe.freedesktop.org (Postfix) with ESMTP id A34D46EADB for ; Wed, 21 May 2014 12:33:34 -0700 (PDT) Received: by mail-ee0-f48.google.com with SMTP id e49so1884063eek.7 for ; Wed, 21 May 2014 12:33:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1400700202-2905-1-git-send-email-przanoni@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Paulo Zanoni Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Wed, May 21, 2014 at 04:23:20PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Because this will trigger "Unclaimed register" messages. All I need to > reproduce this problem is to boot my HSW machine with eDP+HDMI > connected. > > Regression introduced by: > > commit 9ed109a7b445e3f073d8ea72f888ec80c0532465 > Author: Daniel Vetter > Date: Thu Apr 24 23:54:52 2014 +0200 > drm/i915: Track has_audio in the pipe config > > Cc: Daniel Vetter > Signed-off-by: Paulo Zanoni Argh, I always forget about these. Thanks for tracking this down, patch merged. -Daniel > --- > drivers/gpu/drm/i915/intel_ddi.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c > index 271ce19..355f569 100644 > --- a/drivers/gpu/drm/i915/intel_ddi.c > +++ b/drivers/gpu/drm/i915/intel_ddi.c > @@ -1560,9 +1560,11 @@ void intel_ddi_get_config(struct intel_encoder *encoder, > break; > } > > - temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD); > - if (temp & (AUDIO_OUTPUT_ENABLE_A << (intel_crtc->pipe * 4))) > - pipe_config->has_audio = true; > + if (intel_display_power_enabled(dev_priv, POWER_DOMAIN_AUDIO)) { > + temp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD); > + if (temp & (AUDIO_OUTPUT_ENABLE_A << (intel_crtc->pipe * 4))) > + pipe_config->has_audio = true; > + } > > if (encoder->type == INTEL_OUTPUT_EDP && dev_priv->vbt.edp_bpp && > pipe_config->pipe_bpp > dev_priv->vbt.edp_bpp) { > -- > 1.9.0 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch