From: Michel Thierry Date: Tue, 19 Aug 2014 14:49:41 +0000 (+0100) Subject: drm/i915: Handle i915_ppgtt_put correctly X-Git-Tag: fixes-against-v3.18-rc2~73^2~32^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e07f0552c6adc9f36c8d07cac24adf2c87ddfd69;p=pandora-kernel.git drm/i915: Handle i915_ppgtt_put correctly Unfortunately, the gem_obj/vma relationship is not symmetrical; a gem_obj can look up for the same vma more than once (where the ppgtt refcount is incremented), but will free the vma only once (i915_gem_free_object). This difference in refcount get/put means that the ppgtt is not removed after the context and vma are destroyed, because sometimes the refcount will never go back to zero. v2: Just move the ppgtt refcount into vma_create. OTC-Jira: VIZ-3719 Signed-off-by: Michel Thierry Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed