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)
commit2c622036628b1a8f5bc358d60caab1eba504b025
treee35d2fc993254de3c64631df9c89bcee0f372da8
parentbccfc125975f1b6880eac061246bc7f14e1b5143
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