Skip to content

Commit 5ec7763

Browse files
llandwerlin-intelairlied
authored andcommitted
drm: report consistent errors when checking syncobj capibility
We've been somewhat inconsistent when adding the new ioctl and returned ENODEV instead of EOPNOTSUPPORTED upon failing the syncobj capibility. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: ea56991 ("drm/syncobj: add transition iotcls between binary and timeline v2") Fixes: 01d6c35 ("drm/syncobj: add support for timeline point wait v8") Cc: Dave Airlie <airlied@redhat.com> Cc: Christian König <christian.koenig@amd.com> Cc: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> for the series. Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190416123048.2913-1-lionel.g.landwerlin@intel.com
1 parent 80869e7 commit 5ec7763

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/drm_syncobj.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ drm_syncobj_transfer_ioctl(struct drm_device *dev, void *data,
741741
int ret;
742742

743743
if (!drm_core_check_feature(dev, DRIVER_SYNCOBJ))
744-
return -ENODEV;
744+
return -EOPNOTSUPP;
745745

746746
if (args->pad)
747747
return -EINVAL;
@@ -1092,7 +1092,7 @@ drm_syncobj_timeline_wait_ioctl(struct drm_device *dev, void *data,
10921092
int ret = 0;
10931093

10941094
if (!drm_core_check_feature(dev, DRIVER_SYNCOBJ))
1095-
return -ENODEV;
1095+
return -EOPNOTSUPP;
10961096

10971097
if (args->flags & ~(DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL |
10981098
DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT |

0 commit comments

Comments
 (0)