]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always call fence-lost prior to removing the fence
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Mar 2013 11:29:27 +0000 (11:29 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Mar 2013 19:16:18 +0000 (20:16 +0100)
commit506acc6b8373e8495f0f7b3715821638baf18bf5
tree25babd6bc934f1a2c2d6f6c08e9915e9f9ac0f55
parent6dd160f927ac55b7ea828bdc95551de3106d5edf
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 af61fc959ad6e0f69524d3dc02f86ce43f2a6d8f
Author: Chris Wilson <chris@chris-wilson.co.uk>
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 <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c