From: Chris Wilson Date: Tue, 26 Mar 2013 11:29:27 +0000 (+0000) Subject: drm/i915: Always call fence-lost prior to removing the fence X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~51^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c513e9d6d25fec3404a97c9b0f03b2eb858315;p=pandora-kernel.git drm/i915: Always call fence-lost prior to removing the fence There is a minute window for a race between put-fence removing the fence and for a new transaction by an external party on the GTT mmap. That is we must zap the mmap prior to removing the fence and not afterwards. Fixes regression from commit 61050808bb019ebea966b7b5bfd357aaf219fb51 Author: Chris Wilson Date: Tue Apr 17 15:31:31 2012 +0100 drm/i915: Refactor put_fence() to use the common fence writing routine v2: Remember the fence to remove with a local variable (gcc) Signed-off-by: Chris Wilson Cc: Daniel Vetter Reviewed-by: Imre Deak Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed