From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Lionel Landwerlin <lionel.g.landwerlin@intel.com>,
dri-devel@lists.freedesktop.org
Cc: "Dave Airlie" <airlied@redhat.com>,
"Christian König" <christian.koenig@amd.com>
Subject: Re: [PATCH 1/2] drm: report consistent errors when checking syncobj capibility
Date: Tue, 16 Apr 2019 14:40:37 +0200 [thread overview]
Message-ID: <11f19c44-7410-eea1-22c8-a8705147271a@gmail.com> (raw)
In-Reply-To: <20190416123048.2913-1-lionel.g.landwerlin@intel.com>
Am 16.04.19 um 14:30 schrieb Lionel Landwerlin:
> 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.
How about also adding a DRM_CAP_TIMELINE_SYNCOBJ as Daniel suggested so
that userspace can note that as well?
Thanks,
Christian.
> ---
> drivers/gpu/drm/drm_syncobj.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
> index c534c5d46f1e..fb65f13d25cf 100644
> --- a/drivers/gpu/drm/drm_syncobj.c
> +++ b/drivers/gpu/drm/drm_syncobj.c
> @@ -756,7 +756,7 @@ drm_syncobj_transfer_ioctl(struct drm_device *dev, void *data,
> int ret;
>
> if (!drm_core_check_feature(dev, DRIVER_SYNCOBJ))
> - return -ENODEV;
> + return -EOPNOTSUPP;
>
> if (args->pad)
> return -EINVAL;
> @@ -1107,7 +1107,7 @@ drm_syncobj_timeline_wait_ioctl(struct drm_device *dev, void *data,
> int ret = 0;
>
> if (!drm_core_check_feature(dev, DRIVER_SYNCOBJ))
> - return -ENODEV;
> + return -EOPNOTSUPP;
>
> if (args->flags & ~(DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL |
> DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT |
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-04-16 12:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-16 12:30 [PATCH 1/2] drm: report consistent errors when checking syncobj capibility Lionel Landwerlin
2019-04-16 12:30 ` [PATCH 2/2] drm: introduce a capability flag for syncobj timeline support Lionel Landwerlin
2019-04-16 12:57 ` [PATCH v2] " Lionel Landwerlin
2019-04-16 13:15 ` Zhou, David(ChunMing)
2019-04-16 13:47 ` [PATCH " Christian König
2019-04-16 19:53 ` Dave Airlie
2019-05-01 9:00 ` Lionel Landwerlin
2019-04-16 12:40 ` Christian König [this message]
2019-04-16 12:43 ` [PATCH 1/2] drm: report consistent errors when checking syncobj capibility Daniel Vetter
2019-04-16 12:44 ` Koenig, Christian
2019-04-16 12:43 ` Lionel Landwerlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11f19c44-7410-eea1-22c8-a8705147271a@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=airlied@redhat.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=lionel.g.landwerlin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.