drm/vmwgfx: Add support for imported Fence File Descriptor
authorSinclair Yeh <syeh@vmware.com>
Wed, 5 Jul 2017 08:45:40 +0000 (01:45 -0700)
committerSinclair Yeh <syeh@vmware.com>
Mon, 28 Aug 2017 15:51:38 +0000 (17:51 +0200)
commit585851164660e8dff961178a9533857b21d63975
treec16506b1862c5f168cfe501c867097d80899e3d5
parent2cfa0bb25d25aa183ea29f1f9c2bc65f3f2c2264
drm/vmwgfx: Add support for imported Fence File Descriptor

This allows vmwgfx to wait on a fence created by another
device.

v2:
* Remove special handling for vmwgfx fence and just use dma_fence_wait()
* Use interruptible waits
* Added function documentation

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_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.h