drm/vmwgfx: Hook up MOBs to TTM as a separate memory type
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 21 Nov 2012 10:06:22 +0000 (11:06 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 17 Jan 2014 06:52:21 +0000 (07:52 +0100)
commit6da768aa66d2df9067b0bb694a6106bee3cb191f
tree3fdb6f8bdce75e0477b5e4283d2beb945795b7e0
parent3530bdc35e99c3823bc98deb09baed89c51d9f46
drm/vmwgfx: Hook up MOBs to TTM as a separate memory type

To bind a buffer object as a MOB, just validate it as a MOB
memory type. We are reusing the GMRID manager, although we create a new
instance of it to manage MOB ids and tomake sure we don't exceed
the maximum amount of MOB pages.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c