From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 08/11] drm/i915: don't write 0 to DIP control at HDMI init Date: Thu, 24 May 2012 13:58:52 -0700 Message-ID: <20120524135852.3d53505b@jbarnes-desktop> References: <1337892594-31908-1-git-send-email-przanoni@gmail.com> <1337892594-31908-9-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 oproxy8-pub.bluehost.com (oproxy8-pub.bluehost.com [69.89.22.20]) by gabe.freedesktop.org (Postfix) with SMTP id BB04A9F61B for ; Thu, 24 May 2012 13:58:55 -0700 (PDT) In-Reply-To: <1337892594-31908-9-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 Thu, 24 May 2012 17:49:50 -0300 Paulo Zanoni wrote: > From: Paulo Zanoni > > At this time, the HDMI port is enabled, and the DIP control register > specification says we need to disable the port *before* disabling the > DIPs. Also, while doing this we risk telling the HW to send the AVI > DIPs once (not every VSync), which really seems to confuse the HW and > trigger bugs where the DIPs are not sent. > > This code was here just to set the DIP register to a 'known state' > before using it, but since now the set_infoframes functions already > set the control registers to a known state, this code can go away. > > Also, the previous code disables *all* the DIP registers for *each* > HDMI port, so we end disabling each DIP register more than once. > > This patch solves a problem I can reproduce on my IVB machine. When I > boot it with just a single HDMI monitor, the AVI InfoFrames are not > sent. With this patch, the InfoFrames are sent. Previously, I wrote a > patch to 'touch the DIP registers after we enable the HDMI port' to > solve this same problem, but that patch doesn't seem to be needed > anymore after this patch. > > All this patch does is revert a chunk of the following commit: > > commit 64a8fc0145a1d0fdc25fc9367c2e6c621955fb3b > Author: Jesse Barnes > Date: Thu Sep 22 11:16:00 2011 +0530 > > drm/i915: fix ILK+ infoframe support > > So bugs that can be bisected to that commit may be fixed now. > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=43256 > Cc: jbarnes@virtuousgeek.org > Signed-off-by: Paulo Zanoni Acked-by: Jesse Barnes Thanks for tracking down the right disable and enable order on all the generations Paulo! \o/ -- Jesse Barnes, Intel Open Source Technology Center