drm/vmwgfx: Add export fence to file descriptor support
authorSinclair Yeh <syeh@vmware.com>
Wed, 5 Jul 2017 08:49:32 +0000 (01:49 -0700)
committerSinclair Yeh <syeh@vmware.com>
Mon, 28 Aug 2017 15:51:46 +0000 (17:51 +0200)
commitc906965dee22d5e95d0651759ba107b420212a9f
treeb0c5a08234cebcdede8f2ddf95045331da112953
parent585851164660e8dff961178a9533857b21d63975
drm/vmwgfx: Add export fence to file descriptor support

Added code to link a fence to a out_fence_fd file descriptor and
thread out_fence_fd down to vmw_execbuf_copy_fence_user() so it can be
copied into the IOCTL reply and be passed back up the the user.

v2:
Make sure to sync and clean up in case of failure

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Deepak Singh Rawat <drawat@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c