Skip to contentSkip to conversation

drm/syncobj: disable the timeline UAPI for now

PATCH In review Christian König 2 participants 2 messages Nov 8, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/syncobj: disable the timeline UAPI for now

Until we have sorted out all problems.

---
 include/drm/drm_syncobj.h | 3 +++
 include/uapi/drm/drm.h    | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)
include/drm/drm_syncobj.h +3 -0
index 29244cbcd05e..ffd1f4fcf519 100644
@@ -30,6 +30,9 @@
 
 struct drm_syncobj_cb;
 
+/* Move the define here for the moment to avoid exposing the UAPI just yet */
+#define DRM_SYNCOBJ_CREATE_TYPE_TIMELINE (1 << 1)
+
 enum drm_syncobj_type {
 	DRM_SYNCOBJ_TYPE_BINARY,
 	DRM_SYNCOBJ_TYPE_TIMELINE
include/uapi/drm/drm.h +0 -1
index cebdb2541eb7..300f336633f2 100644
@@ -717,7 +717,6 @@ struct drm_prime_handle {
 struct drm_syncobj_create {
 	__u32 handle;
 #define DRM_SYNCOBJ_CREATE_SIGNALED (1 << 0)
-#define DRM_SYNCOBJ_CREATE_TYPE_TIMELINE (1 << 1)
 	__u32 flags;
 };
 
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Christian König

Until we have sorted out all problems.

---
 include/drm/drm_syncobj.h | 3 +++
 include/uapi/drm/drm.h    | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)
include/drm/drm_syncobj.h +0 -0
index 29244cbcd05e..ffd1f4fcf519 100644

include/drm/drm_syncobj.h line 34

Quoted 5 lines
include/drm/drm_syncobj.h +2 -0
@@ -30,6 +30,9 @@
 
 struct drm_syncobj_cb;
 
+/* Move the define here for the moment to avoid exposing the UAPI just yet */
+#define DRM_SYNCOBJ_CREATE_TYPE_TIMELINE (1 << 1)

Also needs the EINVAL check in drm_syncobj_create_ioctl() updated. With that:

Quoted 23 lines
include/drm/drm_syncobj.h +1 -0
+
 enum drm_syncobj_type {
 	DRM_SYNCOBJ_TYPE_BINARY,
 	DRM_SYNCOBJ_TYPE_TIMELINE
include/uapi/drm/drm.h +0 -1
index cebdb2541eb7..300f336633f2 100644
@@ -717,7 +717,6 @@ struct drm_prime_handle {
 struct drm_syncobj_create {
 	__u32 handle;
 #define DRM_SYNCOBJ_CREATE_SIGNALED (1 << 0)
-#define DRM_SYNCOBJ_CREATE_TYPE_TIMELINE (1 << 1)
 	__u32 flags;
 };
 
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel