]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Kill unneeded legacy security features
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 28 May 2019 06:08:55 +0000 (08:08 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 15 Aug 2019 06:39:27 +0000 (08:39 +0200)
commit5b8ad5eed41c8a5f2022f5f9c94debec8989911a
treeae9c21b525e9d2ccfc8ad48c465bc8a7ede9233e
parent94b84d84ac75cfa87d10881691ac6fdaf1716645
drm/vmwgfx: Kill unneeded legacy security features

At one point, the GPU command verifier and user-space handle manager
couldn't properly protect GPU clients from accessing each other's data.
Instead there was an elaborate mechanism to make sure only the active
master's primary clients could render. The other clients were either
put to sleep or even killed (if the master had exited). VRAM was
evicted on master switch. With the advent of render-node functionality,
we relaxed the VRAM eviction, but the other mechanisms stayed in place.

Now that the GPU  command verifier and ttm object manager properly
isolates primary clients from different master realms we can remove the
master switch related code and drop those legacy features.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/ttm_lock.c
drivers/gpu/drm/vmwgfx/ttm_lock.h
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c