From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: fixup assert_pipe to take the pipe A quirk into account Date: Mon, 23 Jan 2012 20:40:27 +0100 Message-ID: <20120123194027.GC5998@phenom.ffwll.local> References: <1327192608-18168-1-git-send-email-daniel.vetter@ffwll.ch> <864nvojquh.fsf@sumi.keithp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A2039F72F for ; Mon, 23 Jan 2012 11:40:40 -0800 (PST) Received: by wibhq15 with SMTP id hq15so2995420wib.36 for ; Mon, 23 Jan 2012 11:40:39 -0800 (PST) Content-Disposition: inline In-Reply-To: <864nvojquh.fsf@sumi.keithp.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: Keith Packard Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Sat, Jan 21, 2012 at 08:36:38PM -0800, Keith Packard wrote: > On Sun, 22 Jan 2012 01:36:48 +0100, Daniel Vetter wrote: > > This was completely spamming dmesg on my i855gm. > > This comes from intel_disable_pll, which wants to turn the pll off, but > if the pipe is still active, it won't be able to. This seems bad to me. I honestly can't reconcile your comment with the code&patch. Afaics - the pll disable code checks for the pipe a quirk and does an early exit before mucking around with the hw and calling assert_pipe. - assert_pipe only does a WARN and the patch only changes whether we hit that WARN. All reg reads/writes should be unchanged. - the backtrace I'm seeing goes through crtc_disable. Yours, Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48