From: Chris Wilson Date: Thu, 22 May 2014 08:16:52 +0000 (+0100) Subject: drm/i915: Only discard backing storage on releasing the last ref X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=340fbd8ca1c7d6006a6b6afe716c10007bbfde85;p=pandora-kernel.git drm/i915: Only discard backing storage on releasing the last ref Before purging our pages (as opposed to copying back the contents from the GPU), make sure that there is not an exposed CPU mmapping through which the user can inspect the results. Regression from commit 5537252b6b6d71fb1a8ed7395a8e5babf91953fd Author: Chris Wilson Date: Tue Mar 25 13:23:06 2014 +0000 drm/i915: Invalidate our pages under memory pressure Testcase: igt/gem_mmap/new-object Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79005 Signed-off-by: Chris Wilson Tested-by: Guo Jinxian Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed