From: Chris Wilson Subject: Re: [PATCH] drm/i915: Sanitize shared dpll state Date: Wed, 17 Jul 2013 09:19:03 +0100 Message-ID: <20130717081903.GA32394@cantiga.alporthouse.com> References: <1374036904-1099-1-git-send-email-daniel.vetter@ffwll.ch> 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 2F312E5F1D for ; Wed, 17 Jul 2013 01:19:08 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1374036904-1099-1-git-send-email-daniel.vetter@ffwll.ch> 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 Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 17, 2013 at 06:55:04AM +0200, Daniel Vetter wrote: > There seems to be no limit to the amount of gunk the firmware can > leave behind. Some platforms leave pch dplls on which are not in > active use at all. The example in the bug report is a Apple Macbook > Pro. > > Note that this escape scrunity of the hw state checker until we've > tried to use this enabled, but unused pll since we did only check for > the inverse case of a in-used, but disabled pll. > > v2: Add a WARN in the pll state checker which would have caught this > case. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66952 > Reported-and-tested-by: shui yangwei > Signed-off-by: Daniel Vetter Plonk it in intel_sanitize_plls(), and preferably move all the sanitze encoder/crtc/pll into intel_sanitize_display() (in a later patch), so that intel_modeset_setup_hw_state() is not quite so broken up. Other than that minor request, Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre