]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8634d82aa9e81151adb1a96434029207c477c725
tree3fdb6f8bdce75e0477b5e4283d2beb945795b7e0
parentc08eeb813c77a65d990e352569f8ede0f36719e0
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