From: Daniel Vetter Date: Tue, 17 Dec 2013 22:42:11 +0000 (+0100) Subject: drm/i915: grab a pages pin count for preallocate stolen X-Git-Tag: v3.14-rc1~47^2~16^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ccba866356e5b8989ff9081df66cf300b1f834;p=pandora-kernel.git drm/i915: grab a pages pin count for preallocate stolen But only when we indeed set up a gtt mapping. We need this since the vma also holds a pages_pin_count, on top of the unconditional pages_pin_count we grab for all stolen objects (to avoid swap-out). This should avoid a pages_pin_count underrun when cleaning up framebuffers objects taken over from the BIOS. Chris mentioned in his review that this bug even predates the vma conversion. Reported-by: Jesse Barnes Cc: Jesse Barnes Cc: Ben Widawsky Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed