From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Treat crtc->mode.clock == 0 as disabled Date: Mon, 7 Jan 2013 17:40:35 +0100 Message-ID: <20130107164035.GT5737@phenom.ffwll.local> References: <1357553501-8783-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by gabe.freedesktop.org (Postfix) with ESMTP id D2715E62B2 for ; Mon, 7 Jan 2013 08:38:39 -0800 (PST) Received: by mail-wg0-f44.google.com with SMTP id dr12so9937493wgb.35 for ; Mon, 07 Jan 2013 08:38:39 -0800 (PST) Content-Disposition: inline In-Reply-To: <1357553501-8783-1-git-send-email-chris@chris-wilson.co.uk> 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: Chris Wilson Cc: Alexey Zaytsev , Daniel Vetter , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Linus Torvalds List-Id: intel-gfx@lists.freedesktop.org On Mon, Jan 07, 2013 at 10:11:40AM +0000, Chris Wilson wrote: > Prevent a divide-by-zero by consistently treating an 'active' CRTC > without a mode set as actually disabled. > > This looks to have been first introduced with > > commit 24929352481f085c5f85d4d4cbc919ddf106d381 > Author: Daniel Vetter > Date: Mon Jul 2 20:28:59 2012 +0200 > > drm/i915: read out the modeset hw state at load and resume time > > but then combined with > > commit b0a2658acb5bf9ca86b4aab011b7106de3af0add > Author: Daniel Vetter > Date: Tue Dec 18 09:37:54 2012 +0100 > > drm/i915: don't disable disconnected outputs > > it finally started oopsing. > > Signed-off-by: Chris Wilson > Reported-and-tested-by: Alexey Zaytsev > Tested-by: Sedat Dilek > Cc: Daniel Vetter > Cc: Jesse Barnes > Cc: stable@vger.kernel.org Picked up for -fixes, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch