drm: report consistent errors when checking syncobj capibility
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 16 Apr 2019 12:30:47 +0000 (13:30 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 2 May 2019 02:36:42 +0000 (12:36 +1000)
commit5ec776383d5ba119cf1bcf67e1dbcd5e96911e8a
tree9b7515652f5f36317c8442f4b8c6168c06860dc1
parent80869e7e61ec0228c3652d3c10f461a5baa227b0
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: ea569910cbab98 ("drm/syncobj: add transition iotcls between binary and timeline v2")
Fixes: 01d6c357837918 ("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
drivers/gpu/drm/drm_syncobj.c