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)
commit29e190e049168b01dc5fa26d577ef99cafd753ee
treee8e6a543caa6ad85bd2e3467f0326a8d27ef777c
parentaa123268c2623c62e33248dafc0572f091689e86
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