]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64c7772d30b9c640f3129ba35b6b88fa8ddc789b
tree28edfe64662fc3d37cabdea12248da31d9ee122f
parent563342cbfb54025dd05a22eaa92fe46aba513fb0
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