]> git.baikalelectronics.ru Git - kernel.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)
commit1107cd80b1881150b688402205bcdb9211cc0fb1
treec885743dde9b8c1862490e97ff8f086ad4055a30
parente6ddf761f79ddd9ada07b1090acd898ee1f0940e
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