drm/i915: Zap mmaps of objects before unbinding them from the GTT.
authorEric Anholt <eric@anholt.net>
Wed, 9 Sep 2009 18:50:45 +0000 (11:50 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 9 Sep 2009 19:52:05 +0000 (12:52 -0700)
commit5323fd042f89164927ee8c311f0a975e8c846412
treea5328f9ce2dad76875652b0dfbc8f7530c5e6013
parent7839c5d5519b6d9e2ccf3cdbf1c39e3817ad0835
drm/i915: Zap mmaps of objects before unbinding them from the GTT.

Otherwise, some other userland writing into its buffer may race to land
writes either after the CPU thinks it's got a coherent view, or after its
GTT entries have been redirected to point at the scratch page.  Either
result is unpleasant.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c