<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>ping, Could you help check in patch to gitlab? My connection to
gitlab still has problem.</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p>-David<br>
</p>
<br>
<div class="moz-cite-prefix">On 2019年05月16日 19:03, Zhou,
David(ChunMing) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:-yw2q6u7xkjpo-i83eg9msudz1wgjn7w-b101h0-sfv5ag1noxjz2wg54r-iuw7ml-f519uls55cqypexnfa-et96uc-nx96jg5fu1d3-wn1hxg-td9bpo5n1nbv-wmnwfr84y609mm8lnpxqaf92-n4k5l3.1558004611599@email.android.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<div>could you help push this patch as well?<br>
<br>
Thanks,<br>
-David<br>
<br>
-------- Original Message --------<br>
Subject: Re: [PATCH libdrm] enable syncobj test depending on
capability<br>
From: "Koenig, Christian" <br>
To: "Zhou, David(ChunMing)" ,<a class="moz-txt-link-abbreviated" href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
CC: <br>
<br>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Am 16.05.19 um 12:46 schrieb Chunming
Zhou:<br>
> Feature is controlled by DRM_CAP_SYNCOBJ_TIMELINE drm
capability.<br>
><br>
> Signed-off-by: Chunming Zhou
<a class="moz-txt-link-rfc2396E" href="mailto:david1.zhou@amd.com"><david1.zhou@amd.com></a><br>
<br>
Reviewed-by: Christian König
<a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com"><christian.koenig@amd.com></a><br>
<br>
> ---<br>
> include/drm/drm.h | 1 +<br>
> tests/amdgpu/syncobj_tests.c | 8 ++++++++<br>
> 2 files changed, 9 insertions(+)<br>
><br>
> diff --git a/include/drm/drm.h b/include/drm/drm.h<br>
> index c893f3b4..532787bf 100644<br>
> --- a/include/drm/drm.h<br>
> +++ b/include/drm/drm.h<br>
> @@ -643,6 +643,7 @@ struct drm_gem_open {<br>
> #define DRM_CAP_PAGE_FLIP_TARGET 0x11<br>
> #define DRM_CAP_CRTC_IN_VBLANK_EVENT 0x12<br>
> #define DRM_CAP_SYNCOBJ 0x13<br>
> +#define DRM_CAP_SYNCOBJ_TIMELINE 0x14<br>
> <br>
> /** DRM_IOCTL_GET_CAP ioctl argument type */<br>
> struct drm_get_cap {<br>
> diff --git a/tests/amdgpu/syncobj_tests.c
b/tests/amdgpu/syncobj_tests.c<br>
> index a0c627d7..869ed88e 100644<br>
> --- a/tests/amdgpu/syncobj_tests.c<br>
> +++ b/tests/amdgpu/syncobj_tests.c<br>
> @@ -22,6 +22,7 @@<br>
> */<br>
> <br>
> #include "CUnit/Basic.h"<br>
> +#include "xf86drm.h"<br>
> <br>
> #include "amdgpu_test.h"<br>
> #include "amdgpu_drm.h"<br>
> @@ -36,6 +37,13 @@ static void
amdgpu_syncobj_timeline_test(void);<br>
> <br>
> CU_BOOL suite_syncobj_timeline_tests_enable(void)<br>
> {<br>
> + int r;<br>
> + uint64_t cap = 0;<br>
> +<br>
> + r = drmGetCap(drm_amdgpu[0],
DRM_CAP_SYNCOBJ_TIMELINE, &cap);<br>
> + if (r || cap == 0)<br>
> + return CU_FALSE;<br>
> +<br>
> return CU_TRUE;<br>
> }<br>
> <br>
<br>
</div>
</span></font>
</blockquote>
<br>
</body>
</html>