From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 2/2] drm/i915: Enable the PCH PLL for all generations after link training Date: Sun, 13 May 2012 15:25:10 +0100 Message-ID: <1336919135_5662@CP5-2952> References: <1336899249-2612-1-git-send-email-chris@chris-wilson.co.uk> <1336899249-2612-2-git-send-email-chris@chris-wilson.co.uk> <20120513140832.GE4720@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (smtp.fireflyinternet.com [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id 587C49E765 for ; Sun, 13 May 2012 07:25:42 -0700 (PDT) In-Reply-To: <20120513140832.GE4720@phenom.ffwll.local> 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: Daniel Vetter , Eugeni Dodonov , Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sun, 13 May 2012 16:08:32 +0200, Daniel Vetter wrote: > On Sun, May 13, 2012 at 09:54:09AM +0100, Chris Wilson wrote: > > Hidden away within one chipset specific path was the necessary logic to > > turn on the PLL. This needs to be done everywhere in order for us to > > drive any display! As such as soon as we tested on a non-CougarPoint > > chipset, we failed to bring up any DisplayPorts and generated a nice set > > of assertion failures in the process. At least one part of our logic is > > working, the part that assumes that we have no idea what we are doing. > > > > Reported-by: guang.a.yang@intel.com > > References: https://bugs.freedesktop.org/show_bug.cgi?id=49712 > > Signed-off-by: Chris Wilson > > Cc: Jesse Barnes > > I guess as-is this patch will blow up on hsw. I think we need to change > the BUG_ON(!pll) in there into a return, like in the disable code. Eugeni? Whoops, should have looked harder. My thinking was that on hsw, the pll would be NULL and so the routine would have no effect. Tricksy BUG_ON. -Chris -- Chris Wilson, Intel Open Source Technology Centre