From: ville.syrjala@linux.intel.com Subject: [PATCH 0/2] drm/i915: Page flip stuff Date: Wed, 31 Oct 2012 19:38:39 +0200 Message-ID: <1351705121-17627-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 74C329E8B1 for ; Wed, 31 Oct 2012 10:38:48 -0700 (PDT) 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-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This is my quick attempt at aliminating i915_gem_execbuffer_wait_for_flips(). While doing that I noticed that intel_pipe_set_base() never actually waited for pending flips, while it probably should. I also spotted another possible problem, for which I didn't provide a patch. We wait on the pending_flip_queue based on two different variables. One is the unpin_work, which indicates pending flips, and the other is mm.wedged, which seems to indicate that the GPU is stuck. I noticed that we don't seem to call wake_up(pending_flip_queue) after clearing mm.wedged. Is that a bug, or did I just miss something?