]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Remove the CAP_SYS_ADMIN requirement for bo pinning
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 2 Nov 2010 13:21:48 +0000 (13:21 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 9 Nov 2010 03:39:06 +0000 (13:39 +1000)
commit5ced4e0a0ac5295986c74a9f1ba41542cffa8d37
treee8e6a543caa6ad85bd2e3467f0326a8d27ef777c
parent70c4f3fcfce510e1323d8b56e962847f628590e9
drm/ttm: Remove the CAP_SYS_ADMIN requirement for bo pinning

This breaks vmwgfx non-root EGL clients and is a remnant from the
TTM user-space interface. This test should be done in the driver.
Replace the remaining placement test with a BUG_ON, since triggering
it is a driver bug.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c