]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unpin stolen pages
authorBen Widawsky <ben@bwidawsk.net>
Fri, 31 May 2013 21:46:20 +0000 (14:46 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Jun 2013 08:49:08 +0000 (10:49 +0200)
commitd0bbeb92cc2a6fdbd69740a090e0c283576bfaa3
tree72e2b76808678eb078155b05d33d8f3094865211
parentc2d69e81accce0e46b4339eb0d6e1049e33b4cc4
drm/i915: Unpin stolen pages

The way the stolen handling works is we take a pin on the backing pages,
but we never actually get a reference to the bo. On freeing objects
allocated with stolen memory, the final unref will end up freeing the
object with pinned pages count left. To enable an assertion to catch
bugs in this code path, this patch cleans up that remaining pin.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c