]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Convert the dmabuf object to use the new i915_gem_object_ops
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Sep 2012 20:02:58 +0000 (21:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Sep 2012 12:23:10 +0000 (14:23 +0200)
commit2f745ad3d3ce96cb72d3981570d9e9988442bce8
treec885743dde9b8c1862490e97ff8f086ad4055a30
parent68d3472047a572936551f8ff0b6f4016c5a1fdef
drm/i915: Convert the dmabuf object to use the new i915_gem_object_ops

By providing a callback for when we need to bind the pages, and then
release them again later, we can shorten the amount of time we hold the
foreign pages mapped and pinned, and importantly the dmabuf objects then
behave as any other normal object with respect to the shrinker and
memory management.

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