summaryrefslogtreecommitdiff
path: root/vmwgfx_fence.h
AgeCommit message (Collapse)AuthorFilesLines
2017-06-14vmwgfx: Add support for imported Fence File DescriptorSinclair Yeh1-0/+5
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>
2017-02-23vmwgfx: Rename struct fence to struct dma_fenceThomas Hellstrom1-5/+5
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2017-02-23vmwgfx: Add a couple of core subsystemsThomas Hellstrom1-0/+4
Add a lightweight reimplementation of the ww_mutex subsystem, and import the fence- and reservation subsystems. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2017-02-23vmwgfx: Porting over new drm and ttm filesSinclair Yeh1-16/+21
This is the one large DRM and vmwgfx port from kernel 4.6+ to vmwgfx stand alone. The code is not quite v4.7, but some of the structures have been ported over. Signed-off-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2015-09-08vmwgfx: Fix copyright headersSinclair Yeh1-1/+1
Updating and fixing copyright headers. Bump version minor to signal vgpu10 support. Signed-off-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-30vmwgfx: Move function declaration to correct headerThomas Hellstrom1-2/+6
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-01-30vmwgfx: Clean up pending event references to struct drm_file objects on closeThomas Hellstrom1-0/+3
Pending events may have stale pointer references to struct drm_file objects after a file has been closed, but before the event is supposed to be attached to the drm file. Remove such events on file close. Tested with "modetest". Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19vmwgfx: Add fence eventsThomas Hellstrom1-2/+10
Add a way to send DRM events down the gpu fifo by attaching them to fence objects. This may be useful for Xserver swapbuffer throttling and page-flip done notifications. Bump version to 2.2 to signal the availability of the FENCE_EVENT ioctl. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-09-27vmwgfx: Implement fence objectsThomas Hellstrom1-0/+105
Will be needed for queries and drm event-driver throttling. As a benefit, they help avoid stale user-space fence handles. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmare.com>