From: Daniel Vetter Subject: Re: [Intel-gfx] [PATCH] drm/i915: Don't clobber crtc->fb when queue_flip fails Date: Sun, 3 Mar 2013 19:48:11 +0100 Message-ID: <20130303184811.GQ9021@phenom.ffwll.local> References: <1361535444-14625-1-git-send-email-ville.syrjala@linux.intel.com> <20130222133135.GB23278@cantiga.alporthouse.com> <20130222143638.GO4469@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20130222143638.GO4469@intel.com> Sender: stable-owner@vger.kernel.org To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: Chris Wilson , intel-gfx@lists.freedesktop.org, stable@vger.kernel.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Feb 22, 2013 at 04:36:38PM +0200, Ville Syrj=E4l=E4 wrote: > I don't think anyone should be poking at crtc->fb w/o holding the crt= c > mutex. Except that intel_update_fbc() actually does. That thing would > appear to be just broken since it crawls around in the crtc state w/o > proper protection. The fb could even disappear from under it. fbc has terminally broken locking, and that's been the case since forev= er afaict. Imo the right solution would be to keep around a bit of fbc sta= te with it's own mutex, and update that (with proper locking) from the crt= c enable/disable code at the right spots. But as long as fbc is disabled by default I don't care that much. -Daniel --=20 Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch