]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Add ttm lock functionality.
authorThomas Hellstrom <thellstrom@vmware.com>
Sun, 6 Dec 2009 20:46:25 +0000 (21:46 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Dec 2009 05:22:03 +0000 (15:22 +1000)
commita34819ac66bfe895a3eb49f6150365658b7c2e26
tree1317322a9e6e4c6094cfa32090c05c20db252ec0
parentbaf9312562aadc124e166310dfbb5b6c70debdba
drm/ttm: Add ttm lock functionality.

This is intended to be used by ttm-aware drivers to
1) Block clients to inactive masters when
they try to validate buffers for GPU use.
2) Optionally block clients to the current master when
there is thrashing due to GPU memory shortage.

Used by the vmwgfx driver.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/Makefile
drivers/gpu/drm/ttm/ttm_lock.c [new file with mode: 0644]
include/drm/ttm/ttm_lock.h [new file with mode: 0644]