From: Daniel Vetter Subject: Re: [PATCH] drm/i915: wake up all pageflip waiters Date: Thu, 10 Jan 2013 21:37:24 +0100 Message-ID: <20130110203723.GH5737@phenom.ffwll.local> References: <1356035047-10121-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 mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 2374FE605E for ; Thu, 10 Jan 2013 12:35:24 -0800 (PST) Received: by mail-we0-f181.google.com with SMTP id t11so491012wey.40 for ; Thu, 10 Jan 2013 12:35:24 -0800 (PST) Content-Disposition: inline In-Reply-To: <1356035047-10121-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: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org On Thu, Dec 20, 2012 at 09:24:07PM +0100, Daniel Vetter wrote: > Otherwise it seems like we can get stuck with concurrent waiters. > Right now this /shouldn't/ be a problem, since all pending pageflip > waiters are serialized by the one mode_config.mutex, so there's at > most on waiter. But better paranoid than sorry, since this is tricky > code. > > v2: WARN_ON(waitqueue_active) before waiting, as suggested by Chris > Wilson. > > Signed-off-by: Daniel Vetter Queued for next, with an irc-ack from Chris. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch