]> 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)
commit4ba7b95562e125862bd1f39b005db36499cea8d1
tree28edfe64662fc3d37cabdea12248da31d9ee122f
parent4b2cd616227d4627ed687f039e7b66fc014e802f
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