drm/i915: unpin pages at unbind
authorBen Widawsky <ben@bwidawsk.net>
Fri, 31 May 2013 18:28:47 +0000 (11:28 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Jun 2013 08:50:22 +0000 (10:50 +0200)
commit401c29f607702864fd00b6154325f7570ebaba4f
treee35d2fc993254de3c64631df9c89bcee0f372da8
parent1d64ae719b436f2a5f8f5da801b4c560bf24aaa9
drm/i915: unpin pages at unbind

If we properly keep track of the pages_pin_count, then when we later add
multiple address spaces, the put_pages doesn't need any special checks
to be able to perform it's job.

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Rebased on top of the fix for stolen memory pinning.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c