drm/vmwgfx: Ditch the vmw_dummy_query_bo_prepare function
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 10 Oct 2013 16:52:52 +0000 (09:52 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 17 Jan 2014 06:52:37 +0000 (07:52 +0100)
commit4b9e45e68ff9ccd241fa61f9eff1cbddabc05ea1
tree28edfe64662fc3d37cabdea12248da31d9ee122f
parent173fb7d4e26705a9e8b8e9d197a18ff39bfdad0a
drm/vmwgfx: Ditch the vmw_dummy_query_bo_prepare function

Combine it with vmw_dummy_query_bo_create, and also make sure
we use tryreserve when reserving the bo to avoid any lockdep warnings
We are sure the tryreserve will always succeed since we are
the only users at that point.
In addition, allow the vmw_bo_pin function to pin/unpin system memory.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c