]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/syncobj: use the timeline point in drm_syncobj_find_fence v4
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Mon, 1 Apr 2019 09:50:59 +0000 (17:50 +0800)
committerChristian König <christian.koenig@amd.com>
Mon, 1 Apr 2019 10:07:16 +0000 (12:07 +0200)
commitbc9c80fe01a2570a2fd78abbc492b377b5fda068
tree3f8805eca6bd50b2efc94be5cdd346921de4fb62
parent27b575a9aa2ff0358c5f4410a14f6413d5c792e4
drm/syncobj: use the timeline point in drm_syncobj_find_fence v4

Implement finding the right timeline point in drm_syncobj_find_fence.

v2: return -EINVAL when the point is not submitted yet.
v3: fix reference counting bug, add flags handling as well
v4: add timeout for find fence

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/295786/?series=58813&rev=1
drivers/gpu/drm/drm_syncobj.c