dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/syncobj: return meaningful value to user space
@ 2019-07-18 11:13 Chunming Zhou
  2019-07-18 11:18 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Chunming Zhou @ 2019-07-18 11:13 UTC (permalink / raw)
  To: dri-devel

if WAIT_FOR_SUBMIT isn't set and in the meanwhile no underlying fence on syncobj,
then return non-block error code to user sapce.

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
---
 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 361a01a08c18..929f7c64f9a2 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -252,7 +252,7 @@ int drm_syncobj_find_fence(struct drm_file *file_private,
 			return 0;
 		dma_fence_put(*fence);
 	} else {
-		ret = -EINVAL;
+		ret = -ENOTBLK;
 	}
 
 	if (!(flags & DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT))
@@ -832,7 +832,7 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,
 			if (flags & DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT) {
 				continue;
 			} else {
-				timeout = -EINVAL;
+				timeout = -ENOTBLK;
 				goto cleanup_entries;
 			}
 		}
-- 
2.17.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-07-22 10:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-18 11:13 [PATCH] drm/syncobj: return meaningful value to user space Chunming Zhou
2019-07-18 11:18 ` Chris Wilson
2019-07-18 13:04   ` Chunming Zhou
2019-07-18 13:10     ` Chris Wilson
2019-07-18 13:15       ` Chunming Zhou
2019-07-18 13:23         ` Chris Wilson
2019-07-18 13:24         ` Chunming Zhou
2019-07-18 11:31 ` Lionel Landwerlin
2019-07-18 13:02   ` Chunming Zhou
2019-07-18 14:08     ` Lionel Landwerlin
2019-07-18 14:33       ` Chunming Zhou
2019-07-19  8:13         ` Lionel Landwerlin
2019-07-19  8:31           ` zhoucm1
2019-07-22  8:46 ` Lionel Landwerlin
2019-07-22 10:11   ` zhoucm1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox