drm/syncobj: Add a reset ioctl (v3)
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 28 Aug 2017 21:10:27 +0000 (14:10 -0700)
committerDave Airlie <airlied@redhat.com>
Tue, 29 Aug 2017 00:16:19 +0000 (10:16 +1000)
commitaa4035d2c7683d2f2fb0ffe8087abd9eabf6d54a
tree77167db05d67212faa9d9ac03b368a83badfc752
parent3e6fb72d6cef6a46f8531a01ed290785952fe25b
drm/syncobj: Add a reset ioctl (v3)

This just resets the dma_fence to NULL so it looks like it's never been
signaled.  This will be useful once we add the new wait API for allowing
wait on "submit and signal" behavior.

v2:
 - Take an array of sync objects (Dave Airlie)
v3:
 - Throw -EINVAL if pad != 0

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Christian König <christian.koenig@amd.com> (v1)
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_internal.h
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_syncobj.c
include/uapi/drm/drm.h